/* Checkout presentation only: preserve native steps, validation and payment handling. */
#checkout { --checkout-line:#e5e5e5; --checkout-radius:12px; --checkout-muted:#707070; --checkout-ink:#171717; }
#checkout #main > .page-title { font-size:30px; font-weight:600; border:0; margin:0 0 24px; padding:0; }
#checkout #main { max-width:none; width:100%; margin:0; }
#checkout #main > .row { display:grid; grid-template-columns:minmax(0,1fr) 350px; gap:28px; margin:0; align-items:start; }
#checkout #main > .row > :is(.col-md-8,.cart-grid-right) { width:auto; max-width:none; min-width:0; padding:0; }
#checkout section.checkout-step { border:1px solid var(--checkout-line); border-radius:var(--checkout-radius); margin:0 0 12px; padding:0; box-shadow:none; background:#fff; }
#checkout section.checkout-step .step-title { display:flex; align-items:center; gap:12px; margin:0; padding:18px 22px; font-size:19px; line-height:1.4; font-weight:600; border:0; }
#checkout section.checkout-step.-current .step-title { border-bottom:1px solid var(--checkout-line); }
#checkout section.checkout-step .step-number { display:inline-flex; flex:0 0 30px; align-items:center; justify-content:center; width:30px; height:30px; text-align:center; line-height:30px; border-radius:50%; background:#f0f0f0; color:#777; font-size:14px; font-weight:600; }
#checkout section.checkout-step.-current .step-number { background:#171717; color:#fff; }
#checkout section.checkout-step .step-edit { margin-left:auto; font-size:12px; font-weight:400; }
#checkout section.checkout-step .content { padding:20px; }
#checkout #checkout-personal-information-step .content > p { margin:0 0 20px; font-size:14px; line-height:1.5; }
#checkout #customer-form > div:first-child { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 18px; }
#checkout #customer-form > div:first-child > * { grid-column:1 / -1; min-width:0; }
#checkout #customer-form > div:first-child > .form-group:has(input[name=firstname]),
#checkout #customer-form > div:first-child > .form-group:has(input[name=lastname]) { grid-column:auto; }
#checkout section.checkout-step .form-group { display:block; margin:0 0 16px; }
#checkout #customer-form > div:first-child > .form-group,
#checkout #customer-form .field-password-policy .form-group { margin-bottom:0; }
#checkout section.checkout-step .form-group > :is(.col-form-label,.js-input-column,.form-control-comment) { width:100%; max-width:none; padding:0; flex:none; }
#checkout section.checkout-step .col-form-label { display:block; text-align:left; font-size:13px; font-weight:500; line-height:1.5; margin:0 0 7px; color:var(--checkout-ink); }
#checkout section.checkout-step .form-control { min-height:46px; border:1px solid #dcdcdc; border-radius:7px; background:#fff; color:#222; font-size:15px; line-height:1.5; padding:10px 12px; box-shadow:none; }
#checkout section.checkout-step .form-control:focus { border-color:#9a7828; outline:2px solid #e7dec8; outline-offset:1px; }
#checkout section.checkout-step .form-control-comment { display:block; margin-top:5px; font-size:11px; line-height:1.5; color:var(--checkout-muted); }
#checkout section.checkout-step .form-group > .form-control-comment:empty { display:none; }
#checkout section.checkout-step .form-group:has(input[type=checkbox]) > .col-form-label { display:none; }
#checkout section.checkout-step .custom-checkbox { display:flex; align-items:flex-start; gap:9px; line-height:1.5; }
#checkout section.checkout-step .custom-checkbox > span { flex:0 0 18px; margin:2px 0 0; border-radius:3px; }
#checkout section.checkout-step .custom-checkbox label { margin:0; font-size:13px; line-height:1.6; }
#checkout section.checkout-step .custom-checkbox label em { display:inline-block; margin-top:4px; color:var(--checkout-muted); font-size:11px; line-height:1.5; font-style:normal; }
#checkout section.checkout-step .input-group .form-control { min-width:0; border-radius:7px 0 0 7px; }
#checkout section.checkout-step .input-group-append { margin-left:-1px; }
#checkout section.checkout-step button[data-action=show-password] { min-width:46px; height:46px; padding:10px; border:1px solid #dcdcdc; border-radius:0 7px 7px 0; background:#f6f6f6; color:#555; }
#checkout #customer-form > div:first-child > p { margin:2px 0 -4px; padding-top:14px; border-top:1px solid var(--checkout-line); font-size:13px; line-height:1.6; }
#checkout #customer-form > div:first-child > p .text-muted { font-size:12px; }
#checkout section.checkout-step .form-footer { padding:0; margin:16px 0 0; }
#checkout section.checkout-step .continue,
#checkout section.checkout-step #login-form button[type=submit] { min-height:48px; padding:12px 22px; border-radius:8px; border:1px solid #111; background:#111; color:#fff; font-size:14px; line-height:22px; }
#checkout section.checkout-step .continue:hover,
#checkout section.checkout-step #login-form button[type=submit]:hover { background:#333; }
#checkout section.checkout-step .continue:disabled { opacity:.5; }
#checkout #customer-form .ets_solo_social_wrapper { margin:0; padding:0; width:100%; }
#checkout #customer-form .ets_solo_or { margin:0 0 12px; font-size:11px; }
#checkout #customer-form .ets_solo_social { margin:0; padding:0; }
#checkout #customer-form .es-google-signin { width:100%; max-width:360px; min-height:46px; border-color:#d8d8d8; border-radius:7px; }
#checkout #personal-information-step-login { background:#f7f7f7; border-radius:8px; }
#checkout #personal-information-step-login.show { padding:18px; margin-bottom:20px; }
#checkout section.checkout-step .help-block { font-size:12px; line-height:1.5; }
#checkout section.checkout-step .has-error .form-control { border-color:#b44242; }
#checkout #js-checkout-summary { border:1px solid var(--checkout-line); border-radius:var(--checkout-radius); background:#f7f7f7; overflow:hidden; }
#checkout #js-checkout-summary .card-body { padding:18px 20px; }
#checkout #js-checkout-summary hr { margin:0 20px; border-color:var(--checkout-line); }
#checkout #js-checkout-summary .cart-summary-line { display:flex; justify-content:space-between; gap:12px; margin:0 0 8px; font-size:14px; }
#checkout #js-checkout-summary .cart-summary-line .label { flex:1; width:auto; }
#checkout #js-checkout-summary .cart-summary-line .value { flex:0 0 auto; width:auto; white-space:nowrap; text-align:right; }
#checkout #js-checkout-summary .cart-total { font-size:19px; font-weight:600; color:var(--checkout-ink); }
#checkout #js-checkout-summary .sub { font-size:12px; color:var(--checkout-muted); }
#checkout #js-checkout-summary .cart-summary-products { font-size:14px; }
#checkout #js-checkout-summary .cart-summary-products > p { margin:0; }
#checkout #js-checkout-summary .cart-summary-products a { font-size:12px; }
#checkout #js-checkout-summary .iqitfreedeliverycount { padding:12px!important; margin:16px 0 0!important; border:1px solid #e4dece; border-radius:8px; background:#fff; color:#494332; font-size:12px; line-height:1.6; }
#checkout #js-checkout-summary .iqitfreedeliverycount p { margin:0; }
#checkout #js-checkout-summary .block-promo { padding:18px 20px; background:transparent; }
#checkout #js-checkout-summary .cart-voucher-area { padding:0; background:transparent; }
#checkout #js-checkout-summary .cart-voucher .input-group { display:flex; flex-wrap:nowrap; gap:8px; }
#checkout #js-checkout-summary .voucher-icon { display:none; }
#checkout #js-checkout-summary input[name=discount_name] { min-width:0; width:0; flex:1; height:44px; padding:10px 12px; border:1px solid #ddd; border-radius:6px; background:#fff; font-size:13px; }
#checkout #js-checkout-summary .input-group-append { flex:0 0 auto; }
#checkout #js-checkout-summary .cart-voucher button { border:1px solid #ccc; border-radius:6px; padding:10px 14px; min-height:44px; font-size:13px; color:#222; background:#fff; }
#checkout #js-checkout-summary .alert-danger { font-size:13px; line-height:1.5; }
#checkout #main :is(a,button,input,select,[tabindex]):focus-visible { outline:2px solid #9a7828; outline-offset:3px; }
@media(max-width:1199px) { #checkout #main > .row { grid-template-columns:minmax(0,1fr) 310px; gap:20px; } }
@media(max-width:991px) { #checkout #main > .row { grid-template-columns:minmax(0,1fr); } }
@media(max-width:575px) {
 #checkout #main { margin-inline:0; }
 #checkout #main > .page-title { font-size:25px; margin-bottom:18px; }
 #checkout section.checkout-step .step-title { padding:14px; gap:9px; font-size:16px; }
 #checkout section.checkout-step .content { padding:16px 14px; }
 #checkout #customer-form > div:first-child { grid-template-columns:minmax(0,1fr); gap:14px; }
 #checkout section.checkout-step .form-control { font-size:16px; }
 #checkout section.checkout-step .step-edit { font-size:11px; }
}

/* Compact first step: native forms and consent controls remain intact. */
#checkout .es-checkout-access { display:flex; align-items:center; justify-content:space-between; gap:16px; padding-bottom:18px; margin-bottom:18px; border-bottom:1px solid var(--checkout-line); }
#checkout .es-checkout-login { margin:0; font-size:13px; line-height:1.5; }
#checkout .es-checkout-social-slot:empty { display:none; }
#checkout .es-checkout-social-slot { flex:0 1 280px; min-width:0; }
#checkout .es-checkout-social-slot .ets_solo_social_wrapper,
#checkout .es-checkout-social-slot .ets_solo_social { width:100%; margin:0; padding:0; }
#checkout .es-checkout-social-slot .ets_solo_or { display:none; }
#checkout .es-checkout-social-slot .es-google-signin { width:100%; min-height:44px; margin:0; font-size:13px; }
#checkout .es-checkout-account-toggle { display:flex; align-items:center; gap:10px; margin:0; min-height:44px; cursor:pointer; font-size:13px; }
#checkout .es-checkout-account-toggle small { font-size:12px; color:var(--checkout-muted); }
#checkout .es-checkout-account-toggle input { position:static; opacity:1; appearance:auto; width:18px; height:18px; margin:0; accent-color:var(--checkout-ink); }
#checkout .es-checkout-account [hidden] { display:none!important; }
#checkout #es-checkout-password { margin-top:8px; }
#checkout #customer-form .form-group:has(input[type=checkbox]) { margin:0; }
#checkout #customer-form .form-group:has(input[type=checkbox]) .form-control-comment { margin:0; }
#checkout section.checkout-step .form-group > .form-control-comment { margin:0; }
@media(min-width:992px) { #checkout #main > .row > .cart-grid-right { position:sticky; top:100px; } }
@media(max-width:575px) {
 #checkout .es-checkout-access { flex-direction:column; align-items:stretch; gap:12px; padding-bottom:14px; margin-bottom:14px; }
 #checkout .es-checkout-social-slot { flex:auto; }
 #checkout #customer-form > div:first-child { gap:12px; }
}
