/* Clean selected delivery state */
body:has(.checkout-layout) .delivery-option:has(input:checked) .delivery-option-box{border-color:#a7d61c!important;background:#f4fbd8!important;box-shadow:none!important}

/* Checkout: phone-first layout */
@media(max-width:760px){
  html,body{max-width:100%;overflow-x:hidden}
  *,*::before,*::after{box-sizing:border-box}
  body:has(.checkout-layout) .container{width:100%;max-width:none;padding-left:16px;padding-right:16px}
  .checkout-site-header{grid-template-columns:1fr auto;min-height:68px;padding:0 16px}
  .checkout-brand span{font-size:1.42rem}.checkout-brand small{margin-top:5px;font-size:.49rem;letter-spacing:.15em}
  .checkout-header-actions{height:68px}.checkout-cart{min-width:58px}.checkout-cart-icon{font-size:1.28rem}
  body:has(.checkout-layout) .page-header{margin-top:16px;padding:27px 20px 24px}
  body:has(.checkout-layout) .page-header h1{margin:18px 0 14px;font-size:clamp(2.7rem,13vw,4rem);line-height:.92;letter-spacing:-.07em}
  body:has(.checkout-layout) .page-header p{font-size:.9rem;line-height:1.5}
  .breadcrumb{font-size:.72rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .checkout-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:25px}.checkout-steps li{min-width:0;gap:6px;font-size:.57rem;letter-spacing:.03em}.checkout-steps li+li::before{display:none}.checkout-steps span{flex:0 0 25px;width:25px;height:25px;font-size:.6rem}
  body:has(.checkout-layout) .section-sm{padding:16px 0 34px}
  body:has(.checkout-layout) .checkout-layout{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
  body:has(.checkout-layout) .checkout-form{min-width:0;padding:24px 16px;box-shadow:0 12px 28px rgba(19,28,23,.07)}
  body:has(.checkout-layout) .checkout-form::before{margin-bottom:21px;font-size:.67rem}
  body:has(.checkout-layout) .form-grid{grid-template-columns:minmax(0,1fr);gap:15px}
  body:has(.checkout-layout) .form-field.full{grid-column:auto}
  body:has(.checkout-layout) .form-field input,body:has(.checkout-layout) .form-field textarea{max-width:100%;min-height:51px;padding:14px 14px;font-size:.93rem}
  body:has(.checkout-layout) .form-field textarea{min-height:112px}
  body:has(.checkout-layout) .delivery-section,body:has(.checkout-layout) .payment-section,body:has(.checkout-layout) .pay-section{margin-top:30px;padding-top:23px}
  body:has(.checkout-layout) .delivery-options{gap:10px}
  body:has(.checkout-layout) .delivery-option,.delivery-option-box{min-width:0!important;max-width:100%}
  body:has(.checkout-layout) .delivery-option-box{grid-template-columns:64px minmax(0,1fr)!important;gap:11px;min-height:0;padding:14px 12px}
  body:has(.checkout-layout) .delivery-option-logo{width:64px!important}.delivery-option-logo svg{display:block;width:64px!important;max-width:100%;height:auto}
  body:has(.checkout-layout) .delivery-option-name{font-size:.87rem;line-height:1.2}.delivery-option-desc{font-size:.76rem!important;line-height:1.35}.delivery-option-time{font-size:.69rem!important;line-height:1.3}
  body:has(.checkout-layout) .delivery-option-price{grid-column:2;justify-self:start;padding-left:0!important;margin-top:3px;font-size:.8rem}
  body:has(.checkout-layout) .paczkomat-picker{padding:15px;min-width:0}.paczkomat-picker input{width:100%;max-width:100%}
  body:has(.checkout-layout) .card-type-select{grid-template-columns:1fr!important;gap:9px}.card-type-box{min-height:76px!important;padding:14px!important}.type-name{font-size:1.2rem!important}.type-desc{margin-top:4px!important}
  .card-row-split{grid-template-columns:1fr!important}.card-frame{padding:14px!important}.card-field input{min-width:0}
  body:has(.checkout-layout) .form-submit{min-height:56px;margin-top:27px;padding:16px;font-size:.88rem}
  body:has(.checkout-layout) .summary-card{position:static;min-width:0;padding:25px 20px}.summary-card h2{font-size:1.6rem!important}.summary-item{min-width:0}.summary-item span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body:has(.checkout-layout) .promo-code-box{grid-template-columns:minmax(0,1fr)!important;gap:8px}.promo-code-box input,.promo-code-box button{width:100%;max-width:100%}
  .maro-footer .container{padding-left:20px!important;padding-right:20px!important}.maro-footer-grid{gap:25px!important}
}
@media(max-width:380px){
  body:has(.checkout-layout) .container{padding-left:12px;padding-right:12px}.checkout-site-header{padding:0 12px}.checkout-brand span{font-size:1.3rem}
  body:has(.checkout-layout) .page-header{padding:24px 16px 22px}.checkout-steps li{font-size:.51rem}.checkout-steps span{width:22px;height:22px;flex-basis:22px}
  body:has(.checkout-layout) .checkout-form{padding:21px 13px}.checkout-notice{padding:12px}
}

/* Promo code controls */
body:has(.checkout-layout) .promo-code-box{margin-top:0!important;min-width:0}body:has(.checkout-layout) .promo-code-box>div{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:stretch!important}body:has(.checkout-layout) .promo-code-box input{width:100%!important;min-width:0!important;height:52px!important;padding:0 16px!important;border:1px solid #d5dcd3!important;border-radius:0!important;background:#fff!important;color:#171918!important;box-sizing:border-box!important}body:has(.checkout-layout) .promo-code-box button{width:auto!important;min-width:126px!important;height:52px!important;padding:0 22px!important;border:1px solid #171918!important;border-radius:0!important;background:#171918!important;color:#fff!important;box-sizing:border-box!important}body:has(.checkout-layout) .promo-code-box button:hover{background:#d9ff65!important;color:#171918!important}@media(max-width:620px){body:has(.checkout-layout) .promo-code-box>div{grid-template-columns:1fr!important}body:has(.checkout-layout) .promo-code-box button{width:100%!important;min-width:0!important}}

/* Stable mobile cart button */
.checkout-cart{flex:0 0 70px!important;width:70px!important;padding:0!important}.checkout-cart-icon{display:block!important;width:21px!important;height:21px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.8!important}.checkout-cart .count{flex:0 0 22px!important;padding:0!important}@media(max-width:760px){.checkout-cart{flex:0 0 58px!important;width:58px!important;min-width:58px!important}.checkout-cart-icon{width:22px!important;height:22px!important}.checkout-cart .count{position:absolute;top:10px;right:8px;width:18px!important;height:18px!important;font-size:.58rem!important}.checkout-header-actions{position:relative}.checkout-cart{position:relative!important;background:#171918!important;border:0!important;color:#fff!important}.checkout-cart:hover{background:#d9ff65!important;color:#171918!important}}
