.custom-size-link{display:block;margin:10px 0 0;padding:0;border:0;background:none;color:#76604e;font:inherit;font-size:12px;line-height:1.6;text-align:left;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.custom-size-dialog{box-sizing:border-box;width:min(500px,calc(100% - 32px));max-height:calc(100dvh - 32px);padding:28px;border:1px solid #e4ded6;border-radius:8px;background:#fff;color:#292824;overflow:auto;font-family:var(--font-body-family);font-size:14px;line-height:1.5}
.custom-size-dialog::backdrop{background:rgba(30,28,24,.45)}
.custom-size-dialog h2{margin:0 40px 8px 0;font-family:inherit;font-size:22px;font-weight:400;line-height:1.3}
.custom-size-dialog p{margin:0 0 16px}.custom-size-close{position:absolute;right:8px;top:8px;width:44px;height:44px;border:0;background:none;font-size:26px;color:#625c53;cursor:pointer}
.custom-size-product{display:flex;gap:12px;align-items:center;padding:12px;margin:18px 0;background:#f7f5f1}.custom-size-product img{width:60px;height:60px;object-fit:contain}.custom-size-product strong{display:block;font-weight:500}.custom-size-product span{display:block;font-size:12px;color:#625c53;margin-top:4px}
.custom-size-dialog label,.custom-size-dialog legend{display:block;margin:14px 0 6px;font-size:13px;font-weight:500}.custom-size-dialog input:not([type=hidden]),.custom-size-dialog select,.custom-size-dialog textarea{box-sizing:border-box;width:100%;min-width:0;border:1px solid #d7cfc3;border-radius:4px;background:#fff;color:#292824;padding:11px 12px;font:inherit;font-size:16px;min-height:46px}.custom-size-dialog textarea{resize:vertical}.custom-size-dialog fieldset{border:0;padding:0;margin:0}.custom-size-dimensions{display:grid;grid-template-columns:1fr 1fr 76px;gap:10px}.custom-size-dimensions label{margin-top:0;font-weight:400}.custom-size-dialog small,.custom-size-note{display:block;font-size:12px;color:#6e685f;margin-top:8px!important}.custom-size-submit{width:100%;margin:22px 0 12px;padding:14px;border:0;border-radius:4px;background:#292824;color:white;font:inherit;font-weight:500;cursor:pointer}.custom-size-submit:disabled{opacity:.5;cursor:not-allowed}.custom-size-dialog :focus-visible,.custom-size-link:focus-visible{outline:2px solid #8a5946;outline-offset:3px}.custom-size-error{color:#9c3225}.custom-size-status{padding:16px;background:#f7f5f1}
@media(max-width:380px){.custom-size-dialog{padding:20px}.custom-size-dimensions{grid-template-columns:1fr 1fr 64px;gap:8px}}
