.upf-product-shipping{margin:24px 0;padding:0;border:0;border-radius:0;background:transparent;color:#20252c;font-size:14px;line-height:1.5;width:100%;box-sizing:border-box}
.upf-product-shipping[hidden],.upf-product-shipping [hidden]{display:none!important}
.upf-product-shipping__heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:6px 16px;margin-bottom:12px}
.upf-product-shipping__heading strong{font-size:18px;font-weight:500}
.upf-product-shipping__hint{color:#168555;font-size:13px;font-weight:500}
.upf-product-shipping__controls{display:flex;align-items:center;gap:10px;padding:8px;border:1px solid #9b9b9b;border-radius:4px;background:#fff}
.upf-product-shipping__controls:focus-within{border-color:#20252c;box-shadow:0 0 0 1px #20252c}
.upf-product-shipping .upf-product-shipping__label{display:block;flex:1;min-width:0;margin:0}
.upf-product-shipping input[data-upf-cep]{display:block;width:100%;height:42px;min-height:42px;border:0;border-radius:0;padding:8px 10px;font:inherit;font-size:16px;margin:0;background:transparent;color:#20252c;box-shadow:none;box-sizing:border-box}
.upf-product-shipping button[data-upf-calculate]{display:inline-flex;align-items:center;justify-content:center;align-self:center;box-sizing:border-box;height:42px;min-height:42px;margin:0;border:1px solid #8c8c8c;border-radius:999px;padding:0 18px;min-width:108px;background:#fff;color:#20252c;font:inherit;font-size:15px;line-height:1;font-weight:500;cursor:pointer;white-space:nowrap}
.upf-product-shipping button[data-upf-calculate]:hover{border-color:#20252c;background:#f5f5f5}
.upf-product-shipping button[data-upf-calculate]:disabled{opacity:.6;cursor:wait}
.upf-product-shipping input:focus-visible{outline:0}
.upf-product-shipping button:focus-visible{outline:2px solid #20252c;outline-offset:2px}
.upf-product-shipping input[aria-invalid=true]{outline:1px solid #b42318}
.upf-product-shipping__status{font-size:12px;color:#68717c;margin-top:10px}
.upf-product-shipping__status:empty{display:none}
.upf-product-shipping__status[data-error=true]{color:#b42318}
.upf-product-shipping__tools{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.upf-product-shipping .upf-product-shipping__close{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;padding:0;margin:10px 0 0;border:0;background:transparent;color:#68717c;font:inherit;font-size:12px;line-height:1.5;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.upf-product-shipping__saved{font-size:12px;line-height:1.5;color:#168555;margin-top:8px}
.upf-product-shipping__selected{padding:12px 0;border-top:1px solid #eeeeef;border-bottom:1px solid #eeeeef}
.upf-product-shipping__selected-rate{display:flex;align-items:center;justify-content:space-between;gap:12px}
.upf-product-shipping__selected-rate>div{min-width:0;overflow-wrap:anywhere}
.upf-product-shipping__selected-rate strong{display:block;font-size:14px;font-weight:500}
.upf-product-shipping__selected-rate small{display:block;font-size:12px;color:#68717c;margin-top:2px}
.upf-product-shipping__selected-footer{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:8px;font-size:12px;color:#68717c}
.upf-product-shipping__selected-footer .upf-product-shipping__close{margin:0}
.upf-product-shipping__selected-rate .upf-product-shipping__amount{flex-shrink:0;text-align:right}
.upf-product-shipping__amount [data-upf-price-label]{font-size:11px;font-weight:400;margin:0 0 2px;color:#68717c}
.upf-product-shipping__reference-note{display:block;font-size:12px;color:#68717c;margin-top:6px}
.upf-product-shipping__selected-footer{flex-wrap:wrap}
.upf-product-shipping__selected-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px 16px;margin-left:auto}
.upf-product-shipping__selected-actions button:disabled{opacity:.6;cursor:wait}
.upf-product-shipping .upf-product-shipping__rates{list-style:none;margin:8px 0 0;padding:0}
.upf-product-shipping .upf-product-shipping__rate{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;margin:0;border-top:1px solid #eeeeef;cursor:pointer;width:100%;font-weight:400}
.upf-product-shipping__rate div{min-width:0;flex:1;overflow-wrap:anywhere}
.upf-product-shipping .upf-product-shipping__rate input[type=radio]{appearance:auto;-webkit-appearance:radio;position:static;opacity:1;display:block;flex:0 0 16px;width:16px;height:16px;min-height:0;padding:0;margin:0;accent-color:#168555;cursor:pointer}
.upf-product-shipping__rate:has(input:checked){background:#f4faf7}
.upf-product-shipping__rate strong{display:block;font-size:13px;font-weight:500}
.upf-product-shipping__rate small{display:block;font-size:12px;color:#68717c;margin-top:2px}
.upf-product-shipping__price{flex-shrink:0;font-size:13px;font-weight:500}
.upf-product-shipping__price--free{color:#168555}
.upf-product-shipping .upf-product-shipping__note{display:none;font-size:11px;color:#68717c;line-height:1.5;margin:8px 0 0}
.upf-product-shipping__rates:not([hidden])+.upf-product-shipping__note{display:block}
@media(max-width:480px){.upf-product-shipping__heading strong{font-size:17px}.upf-product-shipping__hint{font-size:12px}.upf-product-shipping__controls{gap:6px}.upf-product-shipping button[data-upf-calculate]{padding:0 14px;min-width:98px}.upf-product-shipping__rate{gap:10px}}

/* Only the opt-in calculator owns these rules; native product and checkout modals are untouched. */
.upf-product-shipping .upf-product-shipping__launch{display:inline-flex;align-items:center;justify-content:center;min-height:44px;max-width:100%;padding:10px 20px;margin:0;border:1px solid #8c8c8c;border-radius:999px;background:#fff;color:#20252c;font:inherit;font-weight:500;line-height:1.5;cursor:pointer;white-space:normal}
.upf-product-shipping .upf-product-shipping__launch:hover{background:#f5f5f5;border-color:#20252c}
.upf-product-shipping--modal [data-upf-selected]:not([hidden])~.upf-product-shipping__launch{margin-top:12px}
.upf-product-shipping .upf-product-shipping__modal-status{font-size:13px;margin:8px 0 0;color:#68717c;overflow-wrap:anywhere}
.upf-product-shipping__modal-status[data-error=true]{color:#b42318!important}
.upf-product-shipping .upf-product-shipping__dialog{position:fixed;inset:0;width:calc(100% - 32px);max-width:620px;max-height:calc(100vh - 32px);max-height:calc(100dvh - 32px);height:auto;margin:auto;padding:0;border:0;border-radius:16px;background:#fff;color:#20252c;box-shadow:0 20px 65px #0003;overflow:hidden;box-sizing:border-box;font:inherit;line-height:1.5}
.upf-product-shipping__dialog:not([open]){display:none}
.upf-product-shipping .upf-product-shipping__dialog[open]{display:flex;flex-direction:column}
.upf-product-shipping__dialog::backdrop{background:rgb(0 0 0 / 50%)}
.upf-product-shipping__dialog-header{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-shrink:0;padding:16px 20px;border-bottom:1px solid #eeeeef}
.upf-product-shipping__dialog-header h2{margin:0;padding:0;font:inherit;font-size:20px;font-weight:600;line-height:1.4;color:inherit}
.upf-product-shipping .upf-product-shipping__dismiss{display:inline-flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;min-height:44px;padding:0;margin:0;border:0;border-radius:50%;background:#f3f4f5;color:#20252c;font:inherit;font-size:28px;line-height:1;cursor:pointer}
.upf-product-shipping .upf-product-shipping__dismiss:hover{background:#e6e8eb}
.upf-product-shipping__dialog-body{min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 20px 20px;scrollbar-gutter:stable}
.upf-product-shipping__dialog .upf-product-shipping__heading strong{display:none}
.upf-product-shipping__dialog .upf-product-shipping__heading{justify-content:flex-start}
.upf-product-shipping__dialog .upf-product-shipping__rate{min-height:58px}
.upf-product-shipping__dialog .upf-product-shipping__price{max-width:42%;text-align:right;white-space:normal;overflow-wrap:anywhere}
.upf-product-shipping__dialog .upf-product-shipping__close{min-height:44px;margin-top:0}
.upf-product-shipping__dialog input[type=radio]:focus-visible{outline:2px solid #20252c;outline-offset:3px}
.upf-product-shipping__noscript{font-size:13px;margin:16px 0}
html:has(.upf-product-shipping__dialog[open]){overflow:hidden}
.upf-product-shipping--results-modal .upf-product-shipping__heading{display:none}
.upf-product-shipping--results-modal .upf-product-shipping__dialog{height:fit-content}
.upf-product-shipping--results-modal .upf-product-shipping__controls{padding:0;border:0;box-shadow:none;background:transparent}
.upf-product-shipping--results-modal .upf-product-shipping__truck{flex:0 0 24px;color:#68717c}
.upf-product-shipping--results-modal input[data-upf-cep]{height:46px;min-height:46px;padding:10px 12px;border:1px solid #9b9b9b;border-radius:6px;background:#fff}
.upf-product-shipping--results-modal input[data-upf-cep]:focus-visible{outline:2px solid #20252c;outline-offset:2px}
.upf-product-shipping--results-modal button[data-upf-calculate]{height:46px;min-height:46px}
.upf-product-shipping--results-modal [data-upf-selected]:not([hidden])~[data-upf-details]{margin-top:12px}
.upf-product-shipping--results-modal .upf-product-shipping__dialog .upf-product-shipping__rates{margin-top:0}
.upf-product-shipping--results-modal .upf-product-shipping__rates>li:first-child .upf-product-shipping__rate{border-top:0}
@media(max-width:480px){
    .upf-product-shipping .upf-product-shipping__dialog{width:calc(100% - 24px);max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);border-radius:12px}
    .upf-product-shipping__dialog-header{padding:12px}
    .upf-product-shipping__dialog-header h2{font-size:18px}
    .upf-product-shipping__dialog-body{padding:12px;scrollbar-gutter:auto}
    .upf-product-shipping__dialog .upf-product-shipping__tools{align-items:flex-start;flex-wrap:wrap;gap:0 12px}
    .upf-product-shipping--results-modal .upf-product-shipping__controls{gap:8px;flex-wrap:wrap}
    .upf-product-shipping--results-modal .upf-product-shipping__label{flex-basis:120px}
    .upf-product-shipping--results-modal button[data-upf-calculate]{padding:0 12px}
}
