*{box-sizing:border-box}
.cart-page{background:#e5e5e9;color:#1d1d1f}
.cart-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start;gap:24px;width:calc(100% - 48px);max-width:1440px;margin:0 auto 72px}
.cart-layout.cart-is-empty{align-items:stretch;grid-auto-rows:1fr}
.cart-layout.cart-is-empty .checkout-box{display:flex;flex-direction:column}
.cart-layout.cart-is-empty .checkout-box h2{margin-bottom:0;text-align:left}
.cart-layout.cart-is-empty #checkoutEmpty{margin:auto 0;padding:0 4px}
.cart-box{min-width:0;padding:28px;background:#f5f5f7;border:1px solid #d1d1d8;border-radius:20px}
.cart-box-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}
.cart-box h1,.cart-box h2{margin:0;font-size:clamp(25px,2.5vw,34px);line-height:1.2;letter-spacing:-.035em}
.cart-text-button,.cart-remove,.cart-back-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:38px;padding:7px 12px;border:1px solid #dedee4;border-radius:999px;background:#fff;color:#000;font:inherit;font-size:13px;font-weight:600;line-height:1.2;cursor:pointer;text-decoration:none;white-space:nowrap}
.cart-text-button:hover,.cart-remove:hover,.cart-back-link:hover{background:#ededf0;color:#000}
.cart-text-button[hidden]{display:none}
.cart-text-button svg{width:16px;height:16px;flex:none}
.cart-text-button{flex:none}
.cart-remove{min-height:32px;padding:5px 10px;font-size:12px}
.cart-item-row{display:grid;grid-template-columns:92px minmax(0,1fr) auto;column-gap:16px;row-gap:10px;align-items:start;padding:18px 0;border-bottom:1px solid #d8d8de}
.cart-item-photo{grid-column:1;grid-row:1/3;align-self:center;display:grid;place-items:center;width:92px;height:92px;border-radius:14px;background:#ededf0}
.cart-item-photo img{width:88px;height:88px;object-fit:contain;mix-blend-mode:multiply}
.cart-item-info{grid-column:2;grid-row:1;min-width:0}.cart-item-info:only-child{grid-column:1/-1}.cart-item-info a{display:block;color:inherit;text-decoration:none;font-weight:600;line-height:1.35;overflow-wrap:anywhere}.cart-item-info small{display:block;margin-top:5px;color:#63636a;line-height:1.4;overflow-wrap:anywhere}
.cart-item-actions{grid-column:2;grid-row:2;display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.cart-quantity{display:inline-flex;align-items:center;border:1px solid #c8c8d0;border-radius:10px;background:#fff;overflow:hidden}
.cart-quantity button{width:38px;height:38px;border:0;background:transparent;color:#1d1d1f;font-size:21px;cursor:pointer}
.cart-quantity input{width:48px;height:38px;padding:0;border:0;background:transparent;text-align:center;font:inherit;font-size:16px;appearance:textfield}
.cart-quantity input::-webkit-inner-spin-button,.cart-quantity input::-webkit-outer-spin-button{appearance:none;margin:0}
.cart-item-price{grid-column:3;grid-row:1/3;align-self:center;text-align:right;white-space:nowrap;font-weight:700}.cart-item-price small{display:block;margin-top:5px;color:#777;font-weight:400;font-size:12px}
.cart-summary,.checkout-total{display:flex;justify-content:space-between;gap:16px;padding:22px 0;border-bottom:1px solid #d8d8de;font-size:17px}.cart-summary strong,.checkout-total strong{white-space:nowrap;font-size:22px}
.cart-back-link{margin-top:16px}.cart-empty-message{padding:38px 4px;color:#696970}.cart-empty-message a{color:#000}
.checkout-box h2{margin-bottom:24px}.checkout-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.checkout-fields label,.delivery-address label{display:grid;gap:8px;font-weight:600;font-size:14px}.checkout-fields input,.delivery-address textarea{width:100%;min-width:0;min-height:48px;padding:11px 13px;border:1px solid #c9c9d0;border-radius:12px;background:#fff;color:#1d1d1f;font:inherit;font-size:16px}.cart-phone-field{display:flex;align-items:center;gap:8px;min-height:48px;padding-left:13px;border:1px solid #c9c9d0;border-radius:12px;background:#fff}.cart-phone-field input{min-height:46px;border:0;padding-left:0;outline:none}
.cart-page :focus-visible{outline:none}
.cart-page .checkout-fields input:focus-visible,.cart-page .delivery-address textarea:focus-visible{border-color:#8c8c94;box-shadow:0 0 0 1px #8c8c9433}
.cart-page .cart-phone-field:focus-within{outline:none;border-color:#8c8c94;box-shadow:0 0 0 1px #8c8c9433}
.cart-page button:focus-visible,.cart-page a:focus-visible,.cart-page input[type=checkbox]:focus-visible{outline:1px solid #8c8c94;outline-offset:2px}
.delivery-choice{display:flex;align-items:center;gap:10px;min-height:48px;margin-top:22px;font-weight:600;cursor:pointer}.delivery-choice input[type=checkbox]{position:relative;appearance:none;flex:none;width:20px;height:20px;margin:0;border:1px solid #8c8c94;border-radius:3px;background:#fff;cursor:pointer}.delivery-choice input[type=checkbox]:checked{border-color:#000;background:#000}.delivery-choice input[type=checkbox]:checked::after{content:"";position:absolute;top:50%;left:50%;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:translate(-50%,-60%) rotate(45deg)}.delivery-choice input[type=checkbox]:disabled{opacity:1;cursor:default}.delivery-address{margin:8px 0 0}.delivery-address textarea{resize:vertical;min-height:90px}.delivery-address p{margin:8px 0 0;color:#55555d;font-size:14px;line-height:1.45}
.payment-choice{cursor:default}.payment-choice + .delivery-choice{margin-top:4px}
.checkout-consent{display:flex;align-items:center;gap:6px;min-height:20px;margin-top:8px;color:#929298;font-size:10px;line-height:1.25}
.checkout-consent input{flex:none;width:13px;height:13px;margin:0;accent-color:#77777e;cursor:pointer}
.checkout-consent label{cursor:pointer}
.checkout-consent a{color:inherit;text-decoration:underline;text-underline-offset:2px}
.checkout-consent a:hover{color:#29292d}
.checkout-consent.is-invalid{color:#ff674d}
.checkout-consent.is-invalid input{accent-color:#ff674d;outline:none;border:1px solid #ffcabc;border-radius:3px;background:#ffcabc;appearance:none}
.checkout-consent.is-invalid a:hover{color:#e9543c}
.checkout-total{margin-top:24px}.checkout-submit{display:flex;align-items:center;justify-content:center;width:100%;min-height:50px;margin-top:22px;border-radius:12px;font-size:16px;font-weight:600}#checkoutStatus{min-height:18px;margin:12px 0 0;color:#b42318;font-size:13px;line-height:1.4;overflow-wrap:anywhere}
.cart-page .checkout-submit,.cart-page .order-confirmation-close{background:#000;border-color:#000;color:#fff}
.cart-page .checkout-submit:hover,.cart-page .order-confirmation-close:hover{background:#242424;color:#fff}
@media(max-width:760px){
 .cart-layout{grid-template-columns:minmax(0,1fr);width:calc(100% - 2cm);gap:10px;margin-bottom:24px}
 .cart-box{padding:14px;border-radius:15px}
 .cart-box-head{align-items:center;gap:8px;margin-bottom:4px}
 .cart-box h1,.cart-box h2{font-size:22px;line-height:1.15}
 .cart-text-button{min-height:30px;padding:5px 8px;gap:5px;font-size:11px}
 .cart-text-button svg{width:13px;height:13px}
 .cart-item-row{grid-template-columns:56px minmax(0,1fr);column-gap:8px;row-gap:5px;align-items:center;padding:7px 0}
 .cart-item-photo{grid-column:1;grid-row:1;align-self:start;width:56px;height:56px;border-radius:10px}
 .cart-item-photo img{width:52px;height:52px}
 .cart-item-info{grid-column:2;grid-row:1}
 .cart-item-info a{font-size:14px;line-height:1.25}
 .cart-item-info small{margin-top:2px;font-size:11px;line-height:1.3}
 .cart-item-actions{grid-column:1/-1;grid-row:2;gap:6px;margin-top:0;justify-self:start}
 .cart-quantity{border-radius:6px}
 .cart-quantity button{width:20px;height:26px;font-size:16px}
 .cart-quantity input{width:20px;height:26px;font-size:13px}
 .cart-remove{min-height:26px;padding:4px 7px;font-size:10px}
 .cart-item-price{grid-column:1/-1;grid-row:2;justify-self:end;text-align:right;font-size:16px;line-height:1.2;margin-top:0}
 .cart-item-price small{display:none}
 .cart-summary,.checkout-total{align-items:center;gap:8px;padding:12px 0;font-size:13px}
 .cart-summary strong,.checkout-total strong{font-size:17px}
 .cart-back-link{min-height:32px;margin-top:8px;padding:6px 10px;font-size:11px}
 .checkout-box h2{text-align:left;margin-bottom:12px}
 .checkout-fields{grid-template-columns:minmax(0,1fr);gap:9px}
 .checkout-fields label,.delivery-address label{gap:4px;font-size:12px}
 .checkout-fields input,.delivery-address textarea{min-height:44px;padding:8px 10px;border-radius:9px;font-size:16px}
 .cart-phone-field{min-height:44px;padding-left:10px;border-radius:9px}
 .cart-phone-field input{min-height:42px}
 .delivery-choice{gap:8px;min-height:38px;margin-top:10px;font-size:13px}
 .delivery-choice input[type=checkbox]{width:18px;height:18px}
 .payment-choice{align-items:flex-start;font-size:13px}
 .payment-choice-text{line-height:18px}
 .payment-choice-text > span{display:block}
 .delivery-address{margin-top:4px}.delivery-address textarea{min-height:72px}.delivery-address p{margin-top:6px;font-size:13px}
 .checkout-total{margin-top:10px}
 .checkout-consent{gap:8px;min-height:44px;margin-top:7px;font-size:12px;line-height:1.4}
 .checkout-consent input{width:20px;height:20px}
 .checkout-consent label{display:block;box-sizing:border-box;min-height:44px;padding:12px 0}
 .checkout-submit{min-height:44px;margin-top:9px;border-radius:9px;font-size:14px}
 #checkoutStatus{min-height:0;margin-top:8px;font-size:12px}
 #checkoutStatus:empty{display:none}
}
@media(max-width:360px){.cart-box{padding:11px}.cart-box h1,.cart-box h2{font-size:20px}.cart-text-button{padding:4px;gap:4px;font-size:10px}.cart-text-button svg{width:12px;height:12px}.cart-item-row{grid-template-columns:52px minmax(0,1fr);column-gap:7px;row-gap:5px}.cart-item-photo{width:52px;height:52px}.cart-item-photo img{width:48px;height:48px}.cart-item-info a{font-size:13px}.cart-item-price{font-size:14px}.cart-summary strong,.checkout-total strong{font-size:16px}}

.cart-phone-field>span{flex:none;font-size:16px;font-weight:inherit;line-height:1.4}
.cart-phone-field input{line-height:1.4}

/* Invalid required checkout fields use inline outlines, including focused phone. */
.cart-page .checkout-fields input.is-invalid,.cart-page .delivery-address textarea.is-invalid,.cart-page .cart-phone-field.is-invalid{border-color:#ff674d!important;box-shadow:0 0 0 1px #ff674d!important}
.cart-page .cart-phone-field.is-invalid input{border:0!important;box-shadow:none!important}
.checkout-consent.is-invalid input{border:1px solid #ff674d;box-shadow:0 0 0 1px #ff674d}

@media(max-width:760px){.delivery-address textarea::placeholder{font-size:70%}}
