/* BR Commerce Storefront | Product selection, cart & checkout.
   Theme actions continue to use merchant-accent variables/classes. */
[data-commerce-product-detail] .commerce-choice-group{
    min-width:0;border:1px solid #dce5ed;border-radius:13px;background:#fff;
    padding:13px 14px 14px;box-shadow:0 2px 10px rgba(17,39,65,.025);
}
[data-commerce-product-detail] .commerce-choice-group legend{
    display:flex;align-items:center;gap:9px;flex-wrap:wrap;
    padding:0 4px;font-size:13px;font-weight:650;line-height:1.4;color:#1b374e;
}
[data-commerce-product-detail] .commerce-choice-hint{
    border-radius:8px;background:#f2f7fb;padding:3px 8px;
    font-size:11px;font-weight:550;color:#536e84;
}
[data-commerce-product-detail] .commerce-choice-required{
    color:#a93a49;font-size:11px;font-weight:600;
}
[data-commerce-product-detail] .commerce-choice-selected{
    border-radius:8px;background:#eef8fb;padding:3px 8px;
    font-size:11px;font-weight:650;color:#13688b;
}
[data-commerce-product-detail] .commerce-choice-option{
    display:flex;align-items:center;gap:11px;min-height:48px;min-width:0;
    padding:10px 12px;border:1px solid #e3ebf1;border-radius:10px;background:#f8fafc;
    color:#25445b;cursor:pointer;transition:background .15s,border-color .15s;
}
[data-commerce-product-detail] .commerce-choice-option:hover{border-color:#a5cddd;background:#f2f8fc}
[data-commerce-product-detail] .commerce-choice-option:has(input:checked){border-color:#6bb7d2;background:#ebf7fc}
[data-commerce-product-detail] .commerce-choice-option:has(input:focus-visible){outline:2px solid #168dc0;outline-offset:2px}
[data-commerce-product-detail] .commerce-choice-option input[type=checkbox]{width:18px;height:18px;flex:none;accent-color:#0c84b4}
[data-commerce-product-detail] .commerce-choice-group select{min-height:48px;font-size:14px;background-color:#f8fafc}
[data-commerce-product-detail] .commerce-choice-group select:focus{background-color:#fff}
[data-commerce-product-detail] .commerce-choice-group [data-multi-validation]:not([hidden]){
    margin-top:8px;padding:9px 11px;border:1px solid #f2cad1;border-radius:8px;background:#fff4f4;
}
[data-commerce-cart] .commerce-cart-item{
    border-color:#dde6ec;box-shadow:0 2px 12px rgba(19,48,74,.035);
}
[data-commerce-cart] .commerce-cart-customizations{
    min-width:0;border-left:2px solid #b5dbe9;padding-left:10px;
    font-size:12px;line-height:1.55;color:#48667c;overflow-wrap:anywhere;
}
[data-commerce-cart] .commerce-cart-bundle{
    border-radius:9px;background:#f0f7fb;padding:8px 10px;
    font-size:12px;line-height:1.5;overflow-wrap:anywhere;
}
[data-commerce-cart] .commerce-cart-item :is(button,input,select):focus-visible,
[data-storefront-checkout] :is(a,button,input,select,textarea,summary):focus-visible,
[data-commerce-product-detail] :is(a,button,input,select,textarea):focus-visible {
    outline:2px solid #178fc4;outline-offset:2px;
}
[data-commerce-cart] [data-cart-ajax] button{min-height:44px}
[data-commerce-cart] [data-cart-ajax] button:disabled{opacity:.55;cursor:wait}
[data-commerce-cart] .commerce-cart-feedback{font-size:12px;line-height:1.5;color:#3e6e88}
[data-commerce-cart] .commerce-cart-feedback[data-state=error]{color:#b33845}
[data-commerce-cart] .commerce-cart-toast{
    position:static;width:100%;max-width:100%;margin:0 0 16px;transform:none;
    border:1px solid #bde6d1;border-radius:11px;background:#effaf3;
    padding:12px 15px;color:#1c6b45;
    font-size:12px;line-height:1.55;
}
[data-commerce-cart] .commerce-cart-toast[data-state=error]{
    border-color:#f0c5cb;background:#fff3f5;color:#a12d3d
}
[data-storefront-checkout] .commerce-checkout-mobile-review{
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    min-height:52px;padding:13px 15px;margin-bottom:20px;
    border:1px solid #dce6ee;border-radius:13px;background:#fff;
    color:#274c64;text-decoration:none;
}
[data-storefront-checkout] .commerce-checkout-mobile-review .review-total{font-weight:700;white-space:nowrap;color:#153850;font-variant-numeric:tabular-nums}
[data-storefront-checkout] :is(input:not([type=hidden]):not([type=radio]):not([type=checkbox]),select,textarea) {
    border-color:#d7e4ed;border-radius:10px;
    max-width:100%;min-width:0;
}
[data-storefront-checkout] input:focus,[data-storefront-checkout] select:focus,[data-storefront-checkout] textarea:focus{
    border-color:#5eafd1;box-shadow:0 0 0 3px rgba(20,139,181,.1);
}
[data-storefront-checkout] .commerce-checkout-choices{
    min-width:0;border-top:1px solid #e8eef4;
}
[data-storefront-checkout] .commerce-checkout-choice{
    min-width:0;overflow-wrap:anywhere;line-height:1.5;
}
[data-storefront-checkout] .commerce-checkout-bundle{font-size:11px;line-height:1.5;color:#59748a}
[data-storefront-checkout] [data-checkout-summary]{border-radius:18px}
@media(max-width:639px) {
    [data-commerce-cart] .commerce-cart-item{
        display:grid;grid-template-columns:70px minmax(0,1fr);gap:12px;align-items:start;
        padding:14px;border-radius:15px;
    }
    [data-commerce-cart] .commerce-cart-item>div:nth-child(1){width:70px;height:70px}
    [data-commerce-cart] .commerce-cart-item>div:nth-child(2){min-width:0}
    [data-commerce-cart] .commerce-cart-item>div:last-child{
        grid-column:2;grid-row:auto;text-align:left;margin-top:-7px;
    }
    [data-commerce-cart] .commerce-cart-item h2{font-size:14px;line-height:1.45}
    [data-commerce-cart] .commerce-cart-item form{max-width:100%}
    [data-commerce-cart] .commerce-cart-continue{text-align:right}
    [data-storefront-checkout] .checkout-columns{gap:16px}
    [data-storefront-checkout] [data-checkout-customer]{border-radius:16px}
    [data-storefront-checkout] [data-checkout-summary]{border-radius:16px}
    [data-storefront-checkout] [data-checkout-customer] form{padding:17px}
    [data-storefront-checkout] .commerce-checkout-mobile-review{display:flex}
    [data-commerce-product-detail] .commerce-choice-group{padding:12px 12px 13px}
    [data-commerce-product-detail] .commerce-choice-option{min-height:49px}
}
@media(min-width:640px){
    [data-storefront-checkout] .commerce-checkout-mobile-review{display:none}
}
@media(prefers-reduced-motion:reduce){
    [data-commerce-cart] *,[data-storefront-checkout] *,[data-commerce-product-detail] *{transition:none!important;scroll-behavior:auto!important}
}
/* V11: quantity editing and estimated total belong to Cart, not Product Detail. */
[data-commerce-cart] .commerce-cart-quantity-form{
    display:flex; flex-direction:column; align-items:flex-start; gap:6px; min-width:0;
}
[data-commerce-cart] .commerce-cart-quantity-label{
    color:#5a7188; font-size:12px; line-height:1.4; font-weight:600;
}
[data-commerce-cart] .commerce-cart-stepper{
    display:grid; grid-template-columns:44px 48px 44px;
    height:44px; overflow:hidden; border:1px solid #dbe5ee;
    border-radius:10px; background:#fff; color:#173951;
}
[data-commerce-cart] .commerce-cart-stepper button{
    display:flex; align-items:center; justify-content:center;
    width:44px; height:44px; min-height:44px; border:0; background:#fff;
    color:#395b76; cursor:pointer; transition:background-color .18s,color .18s;
}
[data-commerce-cart] .commerce-cart-stepper button:hover:not(:disabled){
    color:#123a5c; background:#f0f6fb;
}
[data-commerce-cart] .commerce-cart-stepper button:disabled{
    cursor:not-allowed; color:#b5c4d1; opacity:1;
}
[data-commerce-cart] .commerce-cart-stepper button .commerce-icon{width:17px;height:17px}
[data-commerce-cart] .commerce-cart-stepper input{
    display:block; min-width:0; width:48px; height:42px; min-height:42px;
    padding:0 2px; border:0; border-inline:1px solid #e7edf3;
    border-radius:0; background:#fff; text-align:center;
    font-size:14px; font-weight:650; color:#172e45;
    font-variant-numeric:tabular-nums; appearance:textfield;
    -moz-appearance:textfield;
}
[data-commerce-cart] .commerce-cart-stepper input::-webkit-outer-spin-button,
[data-commerce-cart] .commerce-cart-stepper input::-webkit-inner-spin-button{
    appearance:none; -webkit-appearance:none; margin:0;
}
[data-commerce-cart] .commerce-cart-stepper :is(button,input):focus-visible{
    outline:2px solid #168fc2; outline-offset:-3px; z-index:1; position:relative;
}
[data-commerce-cart] .commerce-cart-stepper[aria-busy=true]{opacity:.72}
[data-commerce-cart] .commerce-cart-estimated-total{
    display:flex; align-items:center; justify-content:space-between; gap:14px;
    margin-top:17px; padding:16px 15px; min-height:78px;
    color:#fff; background:#1d2c43; border-radius:13px;
}
[data-commerce-cart] .commerce-cart-estimated-total p{
    margin:0; font-size:12px; font-weight:650; color:#c8d4e0;
    text-transform:uppercase; letter-spacing:.025em;
}
[data-commerce-cart] .commerce-cart-estimated-total small{
    display:block; margin-top:5px; font-size:12px;
    font-weight:500; color:#a8bed2;
}
[data-commerce-cart] .commerce-cart-estimated-total strong{
    font-size:clamp(19px,2.3vw,24px); line-height:1.15;
    font-weight:730; white-space:nowrap; font-variant-numeric:tabular-nums;
}
@media(max-width:639px){
    [data-commerce-cart] .commerce-cart-estimated-total{min-height:72px;padding:14px;}
    [data-commerce-cart] .commerce-cart-estimated-total strong{font-size:21px;}
}
