/* v734 – Checkout strict replication based on references/jtl-shops/Bestellvorgang.png. */
body:has(#checkout) { background:#f8f6f4; color:#29242a; }
body:has(#checkout) #main-wrapper,
body:has(#checkout) #content-wrapper,
body:has(#checkout) #content { background:transparent; }
body:has(#checkout) #content-wrapper { padding-top:0!important; }

body:has(#checkout) #checkout { width:min(calc(100% - 48px),1800px)!important; max-width:1800px!important; margin:0 auto; padding:22px 0 48px; font-family:Arial,Helvetica,sans-serif; }
body:has(#checkout) .checkout-steps { display:grid!important; grid-template-columns:repeat(3,1fr); gap:0; margin:0 0 22px; padding:0; border-bottom:1px solid #ddd4d1; }
body:has(#checkout) .checkout-steps .nav-item { position:relative; width:auto!important; max-width:none!important; min-height:52px; padding:0!important; }
body:has(#checkout) .checkout-steps .step,
body:has(#checkout) .checkout-steps .step::before,
body:has(#checkout) .checkout-steps .step::after,
body:has(#checkout) .checkout-steps .step a { clip-path:none!important; border:0!important; background-image:none!important; }
body:has(#checkout) .checkout-steps .step::before { display:none!important; }
body:has(#checkout) .checkout-steps .nav-item::after { content:""; position:absolute; right:0; bottom:-1px; left:0; height:3px; background:#d7d0cd; }
body:has(#checkout) .checkout-steps .nav-item.step-current::after { background:#76052f; }
body:has(#checkout) .checkout-steps .step-content { display:flex; align-items:center; justify-content:center; gap:12px; height:52px; color:#575055; font-size:14px; font-weight:600; }
body:has(#checkout) .checkout-steps .badge { display:flex; align-items:center; justify-content:center; width:27px; height:27px; padding:0; border-radius:50%; background:#8b8b8b; color:#fff; font-size:13px; }
body:has(#checkout) .checkout-steps .step-current .badge { background:#76052f; }
body:has(#checkout) .checkout-steps a { color:inherit!important; }

body:has(#checkout) .luna-checkout-layout { display:grid!important; grid-template-columns:minmax(0,1.9fr) minmax(360px,1fr); gap:20px; margin:0!important; }
body:has(#checkout) .luna-checkout-layout > [class*='col'] { width:auto!important; max-width:none!important; padding:0!important; }
body:has(#checkout) .luna-checkout-main { min-width:0; }
body:has(#checkout) .luna-checkout-summary-column { display:flex; justify-content:flex-end; width:min(100%,420px)!important; justify-self:end; }
body:has(#checkout) .luna-checkout-main > h1,
body:has(#checkout) .luna-checkout-main .h1,
body:has(#checkout) .luna-checkout-main #customer > h1 { margin:0 0 14px; color:#4e071f; font-family:Georgia,"Times New Roman",serif; font-size:29px; font-weight:400; }
body:has(#checkout) .luna-checkout-main #register-customer { display:grid!important; grid-template-columns:1fr; gap:0; margin:0!important; border:1px solid #eadfda; border-radius:10px; background:#fff; box-shadow:0 4px 18px rgba(58,29,39,.05); overflow:hidden; }
body:has(#checkout) .luna-checkout-main #register-customer > [class*='col'] { width:auto!important; max-width:none!important; padding:0!important; }
body:has(#checkout) .luna-checkout-main #existing-customer { margin:12px 12px 8px; padding:16px!important; border:1px solid #eee5e1; border-radius:4px; background:#fcfaf9; }
body:has(#checkout) .luna-checkout-main #existing-customer fieldset { display:grid; grid-template-columns:minmax(170px,.9fr) minmax(180px,1fr) minmax(180px,1fr) minmax(150px,.72fr); column-gap:14px; align-items:end; }
body:has(#checkout) .luna-checkout-main #existing-customer .card-title { grid-column:1; grid-row:1; }
body:has(#checkout) .luna-checkout-main #existing-customer .luna-checkout-existing-note { grid-column:1; grid-row:2; margin:0; color:#655b60; font-size:12px; line-height:1.42; }
body:has(#checkout) .luna-checkout-main #existing-customer .form-group { margin:0; }
body:has(#checkout) .luna-checkout-main #existing-customer .customer-login-buttons { grid-column:4; grid-row:1 / span 2; }
body:has(#checkout) .luna-checkout-main #existing-customer .customer-login-buttons .row { margin:0!important; }
body:has(#checkout) .luna-checkout-main #existing-customer .customer-login-buttons [class*='col'] { width:100%; max-width:100%; padding:0 0 5px!important; }
body:has(#checkout) .luna-checkout-main .card { margin:0; border:0; border-radius:0; background:transparent; box-shadow:none; }
body:has(#checkout) .luna-checkout-main .card-title,
body:has(#checkout) .luna-checkout-main #customer h2,
body:has(#checkout) .luna-checkout-main #customer h3 { color:#4e071f; font-family:Georgia,"Times New Roman",serif; font-weight:400; }
body:has(#checkout) .luna-checkout-main .card-title { margin:0 0 10px; font-size:25px; }
body:has(#checkout) .luna-checkout-main #customer { min-width:0; }
body:has(#checkout) .luna-checkout-main .checkout-register-form { margin:0; padding:22px 28px 28px; border:0; border-top:1px solid #eadfda; border-radius:0; background:#fff; box-shadow:none; }
body:has(#checkout) .luna-checkout-main #neukunde { margin:0; padding:22px 28px 28px; border:1px solid #eadfda; border-radius:8px; background:#fff; box-shadow:0 4px 18px rgba(58,29,39,.05); }
body:has(#checkout) .luna-checkout-main .form-control,
body:has(#checkout) .luna-checkout-main select,
body:has(#checkout) .luna-checkout-main input:not([type='checkbox']):not([type='radio']) { min-height:34px; border-color:#ddd1cc; border-radius:3px; box-shadow:none!important; }
body:has(#checkout) .luna-checkout-main label { color:#4d464a; font-size:12px; font-weight:600; }
body:has(#checkout) .luna-checkout-main .form-group { margin-bottom:10px; }
body:has(#checkout) .luna-checkout-main hr { margin:18px 0; border-color:#eee5e1; }
body:has(#checkout) .luna-checkout-main .btn-primary { min-height:42px; border-color:#76052f!important; border-radius:4px; background:#76052f!important; color:#fff!important; font-weight:700; }
body:has(#checkout) .luna-checkout-main .checkout-button-row { margin:16px 0 0!important; }

/* Zusammenfassung: Die NOVA-Reihenfolge bleibt erhalten. Das native
   Gewährleistungslabel steht nach den Pflichtbestätigungen vor den Positionen;
   die Karten erhalten ausschließlich die Luna-Oberfläche. */
body:has(#checkout) #order-confirm > .row-eq-height { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; margin:0!important; }
body:has(#checkout) #order-confirm > .row-eq-height > [class*='col'] { width:auto!important; max-width:none!important; padding:0!important; }
body:has(#checkout) #order-confirm .checkout-confirmation-billing-address,
body:has(#checkout) #order-confirm .checkout-confirmation-shipping,
body:has(#checkout) #order-confirm #panel-edit-comment { overflow:hidden; border:1px solid #eadfda; border-radius:8px; background:#fff; box-shadow:0 4px 18px rgba(58,29,39,.05); }
body:has(#checkout) #order-confirm .card-header { padding:13px 17px; border-bottom:1px solid #eee5e1; background:#fcfaf9; }
body:has(#checkout) #order-confirm .card-body { padding:17px; }
body:has(#checkout) #order-confirm .checkout-confirmation-heading { color:#4e071f; font-family:Georgia,"Times New Roman",serif; font-size:20px; font-weight:400; }
body:has(#checkout) #order-confirm .warranty-label-checkout { width:665px; max-width:100%; margin:24px auto; }
body:has(#checkout) #order-confirm .warranty-label-checkout img { display:block; width:100%; height:auto; }
body:has(#checkout) #order-confirm .checkout-button-row { margin-top:20px!important; }
body:has(#checkout) #order-confirm .checkout-button-row .btn { min-height:43px; border-radius:4px; font-size:13px; font-weight:700; }
body:has(#checkout) #order-confirm .checkout-button-row .btn-primary { border-color:#76052f!important; background:#76052f!important; color:#fff!important; }
body:has(#checkout) #order-confirm .checkout-button-row .btn-primary:hover,
body:has(#checkout) #order-confirm .checkout-button-row .btn-primary:focus { border-color:#5d041f!important; background:#5d041f!important; }
body:has(#checkout) #order-confirm .checkout-button-row .btn-outline-primary { border-color:#76052f!important; background:#fff!important; color:#76052f!important; }
body:has(#checkout) #order-confirm .checkout-button-row .btn-outline-primary:hover,
body:has(#checkout) #order-confirm .checkout-button-row .btn-outline-primary:focus { background:#f9eef2!important; color:#76052f!important; }

/* Rechnungs- und Lieferadresse: desktop reference grid.  The form keeps NOVA's
   original controls and validation, only its presentation is flattened. */
@media (min-width:992px) {
  body:has(#checkout) .luna-checkout-main .checkout-register-form { padding:20px 28px 26px; }
  body:has(#checkout) .luna-checkout-main #neukunde { padding:20px 28px 26px; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form .inc-billing-address-form > .row { display:grid!important; grid-template-columns:repeat(12,minmax(0,1fr)); column-gap:14px; margin:0!important; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form .inc-billing-address-form > .row > [class*='col'] { width:auto!important; max-width:none!important; padding:0!important; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form .inc-billing-address-form > .row > .col-12 { grid-column:1 / -1; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form .inc-billing-address-form > .row > .col-md-4 { display:none!important; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form .inc-billing-address-form > .row > .col-md-8 { grid-column:1 / -1; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form .inc-billing-address-form > .row > .col-12 > hr { display:none; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form .inc-billing-address-form h1 { margin:0 0 5px; color:#4e071f; font-family:Georgia,"Times New Roman",serif; font-size:27px; font-weight:400; line-height:1.15; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form .inc-billing-address-form h1 + div,
  body:has(#checkout) .luna-checkout-main .checkout-register-form .inc-billing-address-form .required-info { color:#655b60; font-size:13px; line-height:1.45; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form .inc-billing-address-form .required-info { margin:3px 0 15px; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form .luna-checkout-primary-email { margin:0 0 12px!important; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form .luna-checkout-primary-email > [class*='col'] { width:100%!important; max-width:100%!important; padding:0!important; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form .inc-billing-address-form > .row > [class*='col'] > .row { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 14px; margin:0!important; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form .inc-billing-address-form > .row > [class*='col'] > .row > [class*='col'] { width:auto!important; max-width:none!important; padding:0!important; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form .inc-billing-address-form > .row > [class*='col'] > .row > .w-100-util { display:none!important; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form .inc-billing-address-form > .row > [class*='col'] > .row .form-group { margin:0; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form .inc-billing-address-form > .row > [class*='col'] > .row [class*='col']:has(input[name='titel']),
  body:has(#checkout) .luna-checkout-main .checkout-register-form .inc-billing-address-form > .row > [class*='col'] > .row [class*='col']:has(#title) { display:none!important; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form .inc-billing-address-form > .row > [class*='col'] > .row:has(#street) { grid-template-columns:repeat(4,minmax(0,1fr)); }
  body:has(#checkout) .luna-checkout-main .checkout-register-form .inc-billing-address-form > .row > [class*='col'] > .row:has(#street) > [class*='col']:has(#street) { grid-column:span 2; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form .inc-billing-address-form > .row > [class*='col'] > .row:has(#street) > [class*='col']:has(#streetnumber),
  body:has(#checkout) .luna-checkout-main .checkout-register-form .inc-billing-address-form > .row > [class*='col'] > .row:has(#street) > [class*='col']:has(#street2) { grid-column:span 1; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form .inc-billing-address-form > .row > [class*='col'] > .row:has(#street) > [class*='col']:has(#billing_address-country) { grid-column:4; grid-row:2; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form .inc-billing-address-form > .row > [class*='col'] > .row:has(#street) > [class*='col']:has(#postcode) { grid-column:1; grid-row:2; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form .inc-billing-address-form > .row > [class*='col'] > .row:has(#street) > [class*='col']:has(#city) { grid-column:span 2; grid-row:2; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form .inc-billing-address-form label,
  body:has(#checkout) .luna-checkout-main .checkout-register-form .luna-checkout-primary-email label { position:static!important; display:block!important; width:auto!important; height:auto!important; margin:0 0 4px!important; padding:0!important; transform:none!important; background:transparent!important; color:#4d464a!important; font-size:13px!important; font-weight:600!important; line-height:1.25!important; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form .inc-billing-address-form input:not([type='checkbox']):not([type='radio']),
  body:has(#checkout) .luna-checkout-main .checkout-register-form .luna-checkout-primary-email input { min-height:34px; padding:5px 10px!important; }

  /* The authenticated address-edit action renders #neukunde rather than the
     registration form.  Apply the same quiet checkout grid to both JTL paths. */
  body:has(#checkout) .luna-checkout-main #neukunde .inc-billing-address-form > .row { display:grid!important; grid-template-columns:repeat(12,minmax(0,1fr)); column-gap:14px; margin:0!important; }
  body:has(#checkout) .luna-checkout-main #neukunde .inc-billing-address-form > .row > [class*='col'] { width:auto!important; max-width:none!important; padding:0!important; }
  body:has(#checkout) .luna-checkout-main #neukunde .inc-billing-address-form > .row > .col-12 { grid-column:1 / -1; }
  body:has(#checkout) .luna-checkout-main #neukunde .inc-billing-address-form > .row > .col-md-4 { display:none!important; }
  body:has(#checkout) .luna-checkout-main #neukunde .inc-billing-address-form > .row > .col-md-8 { grid-column:1 / -1; }
  body:has(#checkout) .luna-checkout-main #neukunde .inc-billing-address-form > .row > .col-12 > hr { display:none; }
  body:has(#checkout) .luna-checkout-main #neukunde .inc-billing-address-form h1 { margin:0 0 5px; color:#4e071f; font-family:Georgia,"Times New Roman",serif; font-size:27px; font-weight:400; line-height:1.15; }
  body:has(#checkout) .luna-checkout-main #neukunde .inc-billing-address-form h1 + div,
  body:has(#checkout) .luna-checkout-main #neukunde .inc-billing-address-form .required-info { color:#655b60; font-size:13px; line-height:1.45; }
  body:has(#checkout) .luna-checkout-main #neukunde .inc-billing-address-form .required-info { margin:3px 0 15px; }
  body:has(#checkout) .luna-checkout-main #neukunde .luna-checkout-primary-email { margin:0 0 12px!important; }
  body:has(#checkout) .luna-checkout-main #neukunde .luna-checkout-primary-email > [class*='col'] { width:100%!important; max-width:100%!important; padding:0!important; }
  body:has(#checkout) .luna-checkout-main #neukunde .inc-billing-address-form > .row > [class*='col'] > .row { display:grid!important; grid-template-columns:repeat(3,minmax(0,1fr)); gap:10px 14px; margin:0!important; }
  body:has(#checkout) .luna-checkout-main #neukunde .inc-billing-address-form > .row > [class*='col'] > .row > [class*='col'] { width:auto!important; max-width:none!important; padding:0!important; }
  body:has(#checkout) .luna-checkout-main #neukunde .inc-billing-address-form > .row > [class*='col'] > .row > .w-100-util { display:none!important; }
  body:has(#checkout) .luna-checkout-main #neukunde .inc-billing-address-form > .row > [class*='col'] > .row .form-group { margin:0; }
  body:has(#checkout) .luna-checkout-main #neukunde .inc-billing-address-form > .row > [class*='col'] > .row [class*='col']:has(input[name='titel']),
  body:has(#checkout) .luna-checkout-main #neukunde .inc-billing-address-form > .row > [class*='col'] > .row [class*='col']:has(#title) { display:none!important; }
  body:has(#checkout) .luna-checkout-main #neukunde .inc-billing-address-form > .row > [class*='col'] > .row:has(#street) { grid-template-columns:repeat(4,minmax(0,1fr)); }
  body:has(#checkout) .luna-checkout-main #neukunde .inc-billing-address-form > .row > [class*='col'] > .row:has(#street) > [class*='col']:has(#street) { grid-column:span 2; }
  body:has(#checkout) .luna-checkout-main #neukunde .inc-billing-address-form > .row > [class*='col'] > .row:has(#street) > [class*='col']:has(#streetnumber),
  body:has(#checkout) .luna-checkout-main #neukunde .inc-billing-address-form > .row > [class*='col'] > .row:has(#street) > [class*='col']:has(#street2) { grid-column:span 1; }
  body:has(#checkout) .luna-checkout-main #neukunde .inc-billing-address-form > .row > [class*='col'] > .row:has(#street) > [class*='col']:has(#billing_address-country) { grid-column:4; grid-row:2; }
  body:has(#checkout) .luna-checkout-main #neukunde .inc-billing-address-form > .row > [class*='col'] > .row:has(#street) > [class*='col']:has(#postcode) { grid-column:1; grid-row:2; }
  body:has(#checkout) .luna-checkout-main #neukunde .inc-billing-address-form > .row > [class*='col'] > .row:has(#street) > [class*='col']:has(#city) { grid-column:span 2; grid-row:2; }
  body:has(#checkout) .luna-checkout-main #neukunde .inc-billing-address-form label,
  body:has(#checkout) .luna-checkout-main #neukunde .luna-checkout-primary-email label { position:static!important; display:block!important; width:auto!important; height:auto!important; margin:0 0 4px!important; padding:0!important; transform:none!important; background:transparent!important; color:#4d464a!important; font-size:13px!important; font-weight:600!important; line-height:1.25!important; }
  body:has(#checkout) .luna-checkout-main #neukunde .inc-billing-address-form input:not([type='checkbox']):not([type='radio']),
  body:has(#checkout) .luna-checkout-main #neukunde .luna-checkout-primary-email input { min-height:34px; padding:5px 10px!important; }

  /* Lieferadresse: NOVA supplies a separate form tree.  It receives the same
     flat checkout grid as the billing address without changing any controls. */
  body:has(#checkout) .luna-checkout-main #neukunde .inc-shipping-address { margin:18px 0 0!important; }
  body:has(#checkout) .luna-checkout-main #neukunde .inc-shipping-address > .row,
  body:has(#checkout) .luna-checkout-main #neukunde .select-shipping-address > .row { display:grid!important; grid-template-columns:repeat(12,minmax(0,1fr)); column-gap:14px; margin:0!important; }
  body:has(#checkout) .luna-checkout-main #neukunde .inc-shipping-address > .row > [class*='col'],
  body:has(#checkout) .luna-checkout-main #neukunde .select-shipping-address > .row > [class*='col'] { width:auto!important; max-width:none!important; padding:0!important; }
  /* Die linke Beschriftung und die rechte Auswahlliste bleiben erhalten.
     Das DHL-Wunschpaket ergänzt dort Packstation und Postfiliale Direkt. */
  body:has(#checkout) .luna-checkout-main #neukunde .select-shipping-address > .row > .col-md-4 { display:block!important; grid-column:1 / span 4; }
  body:has(#checkout) .luna-checkout-main #neukunde .select-shipping-address > .row > .col-md-8 { grid-column:5 / -1; }
  body:has(#checkout) .luna-checkout-main #neukunde .select-shipping-address legend,
  body:has(#checkout) .luna-checkout-main #neukunde .new-shipping-address > label { color:#4e071f; font-family:Georgia,"Times New Roman",serif; font-size:22px; font-weight:400; }
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-address,
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-contact > .row { display:grid!important; grid-template-columns:repeat(12,minmax(0,1fr)); gap:10px 14px; margin:0!important; }
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-address > [class*='col'],
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-contact > .row > [class*='col'] { width:auto!important; max-width:none!important; padding:0!important; }
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-address > .w-100-util { display:none!important; }
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-address .form-group,
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-contact .form-group { margin:0!important; }
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-address [class*='col']:has(#register-shipping_address-title) { display:none!important; }
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-address [class*='col']:has(#register-shipping_address-salutation),
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-address [class*='col']:has(#register-shipping_address-firstName),
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-address [class*='col']:has(#register-shipping_address-lastName) { grid-column:span 4; }
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-address [class*='col']:has(#register-shipping_address-firm),
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-address [class*='col']:has(#register-shipping_address-firmext) { grid-column:span 6; }
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-address [class*='col']:has(#register-shipping_address-street) { grid-column:span 6; }
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-address [class*='col']:has(#register-shipping_address-streetnumber) { grid-column:span 2; }
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-address [class*='col']:has(#register-shipping_address-street2) { grid-column:span 4; }
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-address [class*='col']:has(#register-shipping_address-postcode) { grid-column:1 / span 3; grid-row:5; }
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-address [class*='col']:has(#register-shipping_address-city) { grid-column:4 / span 5; grid-row:5; }
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-address [class*='col']:has(#register-shipping_address-country) { grid-column:9 / span 4; grid-row:5; }
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-address [class*='col']:has(#checkout_register_set-shipping-address-as-default) { grid-column:1 / -1; grid-row:6; }
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-address [class*='col']:has(#checkout_register_save-shipping-address-as-preset) { grid-column:1 / -1; grid-row:7; }
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-address [class*='col']:has(#checkout_register_set-shipping-address-as-default) label,
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-address [class*='col']:has(#checkout_register_save-shipping-address-as-preset) label { display:inline-flex!important; align-items:center; gap:8px; margin:0!important; }
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-address [class*='col']:has(#checkout_register_set-shipping-address-as-default) input[type='checkbox'],
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-address [class*='col']:has(#checkout_register_save-shipping-address-as-preset) input[type='checkbox'] { margin-left:24px!important; }
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-address label,
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-contact label { position:static!important; display:block!important; width:auto!important; height:auto!important; margin:0 0 4px!important; padding:0!important; transform:none!important; background:transparent!important; color:#4d464a!important; font-size:13px!important; font-weight:600!important; line-height:1.25!important; }
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-address input:not([type='checkbox']):not([type='radio']),
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-contact input:not([type='checkbox']):not([type='radio']) { min-height:34px; padding:5px 10px!important; }
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-contact { margin:18px 0 0!important; padding:16px 0 0; border-top:1px solid #eee5e1; }
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-contact .h3 { display:none!important; }
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-contact hr { display:none!important; }
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-contact > .row > .col-12:has(.h3),
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-contact > .row > .col-12:has(hr) { display:none!important; }
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-contact > .row > [class*='col']:has(#register-shipping_address-email),
  body:has(#checkout) .luna-checkout-main #neukunde .customer-shipping-contact > .row > [class*='col']:has(#register-shipping_address-tel) { grid-column:span 6; }
}

body:has(#checkout) .luna-checkout-summary { align-self:flex-start; height:max-content; width:450px; max-width:100%; overflow:hidden; border:1px solid #eadfda; border-radius:8px; background:#fff; box-shadow:0 4px 18px rgba(58,29,39,.06); }
body:has(#checkout) .luna-checkout-summary h2 { margin:0; padding:17px 16px 12px; border-bottom:1px solid #eadfda; color:#4e071f; font-family:Georgia,"Times New Roman",serif; font-size:27px; font-weight:400; }
body:has(#checkout) .luna-checkout-summary .checkout-items-header { display:grid!important; grid-template-columns:70px minmax(0,1fr) 24px 58px; column-gap:12px; margin:0 16px; padding:10px 0; color:#766971; font-size:8px; font-weight:700; text-transform:uppercase; border-bottom:1px solid #eee5e1; }
body:has(#checkout) .luna-checkout-summary .checkout-items-header > [class*='col'] { width:auto!important; max-width:none!important; padding:0!important; }
body:has(#checkout) .luna-checkout-summary .luna-summary-heading-image { grid-column:1; }
body:has(#checkout) .luna-checkout-summary .luna-summary-heading-product { grid-column:2; }
body:has(#checkout) .luna-checkout-summary .luna-summary-heading-vat,
body:has(#checkout) .luna-checkout-summary .luna-summary-heading-unit-price { display:none!important; }
body:has(#checkout) .luna-checkout-summary .luna-summary-heading-quantity { grid-column:3; text-align:center; }
body:has(#checkout) .luna-checkout-summary .luna-summary-heading-price { grid-column:4; text-align:right; }
body:has(#checkout) .luna-checkout-summary .checkout-items-item { display:grid!important; grid-template-columns:70px minmax(0,1fr) 24px 58px; column-gap:12px; margin:0 16px; padding:18px 0; border-bottom:1px solid #eee5e1; align-items:start; }
body:has(#checkout) .luna-checkout-summary .checkout-items-item > [class*='col'] { width:auto!important; max-width:none!important; padding:0!important; }
body:has(#checkout) .luna-checkout-summary .checkout-items-item-image-wrapper { grid-column:1; }
body:has(#checkout) .luna-checkout-summary .checkout-items-item-image-wrapper img { width:70px; height:70px; object-fit:contain; border:1px solid #eee5e1; border-radius:3px; }
body:has(#checkout) .luna-checkout-summary .checkout-items-item-main { grid-column:2; }
body:has(#checkout) .luna-checkout-summary .checkout-items-item.luna-checkout-service-position .checkout-items-item-image-wrapper { display:none!important; }
body:has(#checkout) .luna-checkout-summary .checkout-items-item.luna-checkout-service-position .checkout-items-item-main { grid-column:1 / span 2; text-align:left!important; }
body:has(#checkout) .luna-checkout-summary .checkout-items-item-quantity { grid-column:3; padding-top:2px!important; font-size:10px; text-align:center; }
body:has(#checkout) .luna-checkout-summary .checkout-items-item .price-col { grid-column:4; padding-top:2px!important; font-size:11px; text-align:right!important; }
body:has(#checkout) .luna-checkout-summary .checkout-items-item > [class*='col']:last-child { grid-column:1 / -1; }
body:has(#checkout) .luna-checkout-summary .checkout-items-item-main p { margin:0 0 3px; font-family:Georgia,"Times New Roman",serif; font-size:12px; font-weight:700; line-height:1.12; }
body:has(#checkout) .luna-checkout-summary .checkout-items-item-main p a { color:#2d2428!important; text-decoration:none; }
body:has(#checkout) .luna-checkout-summary .checkout-items-item-main .small { margin:0; font-size:9px; line-height:1.2; }
body:has(#checkout) .luna-checkout-summary .checkout-items-item-main .list-unstyled { margin:0; }
body:has(#checkout) .luna-checkout-summary .checkout-items-item-main .list-unstyled li:not(.sku):not(.variation) { display:none; }
body:has(#checkout) .luna-checkout-summary .checkout-items-item-main .list-unstyled .variation { display:block; }
body:has(#checkout) .luna-checkout-summary .checkout-items-item-vat,
body:has(#checkout) .luna-checkout-summary .checkout-items-item-price-single { display:none; }
body:has(#checkout) .luna-checkout-summary .checkout-items-total-wrapper { display:block!important; width:100%; margin:0; padding:11px 16px 0; }
body:has(#checkout) .luna-checkout-summary .checkout-items-total { display:block!important; flex:0 0 100%!important; width:100%!important; max-width:none!important; padding:0!important; }
body:has(#checkout) .luna-checkout-summary .luna-checkout-subtotal,
body:has(#checkout) .luna-checkout-summary .luna-checkout-shipping-estimate,
body:has(#checkout) .luna-checkout-summary .checkout-items-total-total,
body:has(#checkout) .luna-checkout-summary .tax { display:flex!important; align-items:center; width:100%; margin:0!important; font-size:12px; }
body:has(#checkout) .luna-checkout-summary .luna-checkout-subtotal > [class*='col'],
body:has(#checkout) .luna-checkout-summary .luna-checkout-shipping-estimate > [class*='col'],
body:has(#checkout) .luna-checkout-summary .checkout-items-total-total > [class*='col'],
body:has(#checkout) .luna-checkout-summary .tax > [class*='col'] { width:auto!important; max-width:none!important; padding:0!important; }
body:has(#checkout) .luna-checkout-summary .luna-checkout-subtotal > [class*='col']:first-child,
body:has(#checkout) .luna-checkout-summary .luna-checkout-shipping-estimate > [class*='col']:first-child,
body:has(#checkout) .luna-checkout-summary .checkout-items-total-total > [class*='col']:first-child,
body:has(#checkout) .luna-checkout-summary .tax > [class*='col']:first-child { flex:1 1 auto; }
body:has(#checkout) .luna-checkout-summary .luna-checkout-subtotal > [class*='col']:last-child,
body:has(#checkout) .luna-checkout-summary .luna-checkout-shipping-estimate > [class*='col']:last-child,
body:has(#checkout) .luna-checkout-summary .checkout-items-total-total > [class*='col']:last-child,
body:has(#checkout) .luna-checkout-summary .tax > [class*='col']:last-child { flex:0 0 auto; text-align:right!important; }
body:has(#checkout) .luna-checkout-summary .luna-checkout-subtotal,
body:has(#checkout) .luna-checkout-summary .luna-checkout-shipping-estimate { padding:6px 0; }
body:has(#checkout) .luna-checkout-summary .luna-checkout-shipping-estimate { padding-bottom:12px; }
body:has(#checkout) .luna-checkout-summary .checkout-items-total > hr { display:block; width:100%; margin:10px 0!important; border-color:#eadfda; }
body:has(#checkout) .luna-checkout-summary .checkout-items-total-total { padding:12px 0 8px; border-top:0; }
body:has(#checkout) .luna-checkout-summary .checkout-items-total-total .price_label { font-size:15px; font-weight:700; }
body:has(#checkout) .luna-checkout-summary .total-sum { color:#76052f; font-family:Georgia,"Times New Roman",serif; font-size:22px; }
body:has(#checkout) .luna-checkout-summary .checkout-items-item .price_overall { color:#76052f; font-size:14px; }
body:has(#checkout) .luna-checkout-summary .tax { padding:4px 0 12px; font-size:10px; }
body:has(#checkout) .luna-checkout-proceed { position:relative; display:flex; align-items:center; justify-content:center; width:calc(100% - 32px); min-height:40px; margin:0 16px 12px; padding:8px 36px; border-color:#76052f!important; border-radius:4px; background:#76052f!important; color:#fff!important; font-size:12px; font-weight:700; text-align:center; }
body:has(#checkout) .luna-checkout-proceed i { position:absolute; right:13px; font-size:13px; }
body:has(#checkout) .luna-checkout-shipping-note { display:flex; gap:9px; margin:0 16px 16px; padding:10px 12px; border:1px solid #e5eaef; border-radius:3px; background:#f4f7fa; color:#4d464a; line-height:1.25; }
body:has(#checkout) .luna-checkout-shipping-note i { padding-top:1px; font-size:18px; }
body:has(#checkout) .luna-checkout-shipping-note small { font-size:11px; }
body:has(#checkout) .luna-checkout-main-submit { display:none!important; }
body:has(#checkout) .luna-checkout-security { display:flex; gap:8px; margin:0 16px 14px; padding:9px; border:1px solid #e5eaef; border-radius:3px; background:#f4f7fa; color:#4d464a; }
body:has(#checkout) .luna-checkout-security i { color:#4e071f; font-size:15px; }
body:has(#checkout) .luna-checkout-security strong,
body:has(#checkout) .luna-checkout-security small { display:block; }
body:has(#checkout) .luna-checkout-security strong { font-size:10px; }
body:has(#checkout) .luna-checkout-security small { margin-top:1px; font-size:8px; }

/* Step 2 – Versand und Zahlungsart.  The native NOVA form remains intact; only
   its desktop presentation is brought to the supplied checkout rendering. */
@media (min-width:992px) {
  body:has(#checkout) .luna-checkout-step2-card { width:75%; min-width:0; margin:0; padding:24px 26px 26px; border:1px solid #eadfda; border-radius:8px; background:#fff; box-shadow:0 4px 18px rgba(58,29,39,.05); }
  body:has(#checkout) .luna-checkout-step2-card > h1 { margin:0 0 18px!important; color:#4e071f; font-family:Georgia,"Times New Roman",serif; font-size:28px; font-weight:400; line-height:1.18; }
  body:has(#checkout) .luna-checkout-step2-card > .row { margin:0!important; }
  body:has(#checkout) .luna-checkout-step2-card > .row > [class*='col'] { padding:0!important; }
  body:has(#checkout) .checkout-shipping-form { width:100%; max-width:none; margin:0!important; color:#4d464a; font-size:12px; }
  body:has(#checkout) .checkout-shipping-form fieldset { margin:0 0 54px!important; padding:0; }
  body:has(#checkout) .checkout-shipping-form .h2 { margin:0 0 16px; color:#29242a; font-family:Arial,Helvetica,sans-serif; font-size:20px; font-weight:700; line-height:1.2; }
  body:has(#checkout) .checkout-shipping-form-change { margin:0 0 17px!important; color:#585157; font-size:12px; }
  body:has(#checkout) .checkout-shipping-form-change .btn-link { padding:0 0 0 9px!important; color:#585157!important; font-size:12px!important; }
  body:has(#checkout) .checkout-shipping-form hr { margin:0 0 12px!important; border-color:#e4dedb; }

  body:has(#checkout) .checkout-shipping-form-options { margin:0!important; }
  body:has(#checkout) .checkout-shipping-form-options > * { margin-bottom:20px!important; }
  body:has(#checkout) .checkout-shipping-form-options .content { display:grid!important; grid-template-columns:minmax(360px,1.42fr) minmax(150px,.72fr) minmax(150px,.8fr); column-gap:18px; align-items:start; min-height:76px; }
  body:has(#checkout) .checkout-shipping-form-options .content > [class*='col'] { width:auto!important; max-width:none!important; padding:0!important; }
  body:has(#checkout) .checkout-shipping-form-options .title { grid-column:1; display:flex!important; align-items:center; min-height:64px; color:#4d464a; font-size:13px; font-weight:600; }
  body:has(#checkout) .checkout-shipping-form-options .title img { width:82px!important; max-width:82px!important; height:76px!important; margin:0 12px 0 0!important; object-fit:contain; }
  body:has(#checkout) .checkout-shipping-form-options .title small { display:block; margin-top:8px; color:#4d464a; font-size:11px; font-weight:400; line-height:1.25; }
  body:has(#checkout) .checkout-shipping-form-options .desc { grid-column:2; display:block; padding-top:9px; color:#5b5458!important; font-size:11px; line-height:1.25; }
  body:has(#checkout) .checkout-shipping-form-options .price-col { grid-column:3; padding-top:8px!important; color:#302a2e; font-size:12px; font-weight:700; text-align:left!important; }
  body:has(#checkout) .checkout-shipping-form-options .custom-control,
  body:has(#checkout) .checkout-shipping-form-options .form-check { min-height:94px; margin:0 0 10px!important; padding-top:0; }
  body:has(#checkout) .checkout-shipping-form-options .custom-control-label,
  body:has(#checkout) .checkout-shipping-form-options .form-check-label { display:block!important; min-height:94px; padding:0 0 0 18px; }
  body:has(#checkout) .checkout-shipping-form-options input[type='radio'] { accent-color:#76052f; }

  body:has(#checkout) #fieldset-payment { margin-bottom:32px!important; }
  body:has(#checkout) #fieldset-payment > .h2 { margin-bottom:14px; }
  body:has(#checkout) .checkout-payment-method { width:100%!important; margin:0 0 12px!important; padding:0!important; }
  body:has(#checkout) .checkout-payment-method .custom-control,
  body:has(#checkout) .checkout-payment-method .form-check { min-height:22px; margin:0!important; }
  body:has(#checkout) .checkout-payment-method label { display:flex!important; align-items:center; min-height:22px; color:#4d464a; font-size:12px; font-weight:600; }
  body:has(#checkout) .checkout-payment-method img { width:auto!important; max-width:96px!important; max-height:31px!important; margin-right:8px!important; object-fit:contain; }
  body:has(#checkout) .checkout-payment-method-note { display:block; margin:3px 0 0 18px; color:#4d464a; font-size:10px; line-height:1.25; }
  body:has(#checkout) .checkout-payment-method input[type='radio'] { accent-color:#76052f; }

  body:has(#checkout) .checkout-shipping-form .checkout-button-row { display:grid!important; grid-template-columns:minmax(250px,1fr) minmax(250px,1fr); gap:30px; margin:38px 0 0!important; }
  body:has(#checkout) .checkout-shipping-form .checkout-button-row > [class*='col'] { width:auto!important; max-width:none!important; margin:0!important; padding:0!important; }
  body:has(#checkout) .checkout-shipping-form .checkout-button-row > [class*='col']:first-child { grid-column:2; grid-row:1; }
  body:has(#checkout) .checkout-shipping-form .checkout-button-row > [class*='col']:last-child { grid-column:1; grid-row:1; }
  body:has(#checkout) .checkout-shipping-form .checkout-button-row .btn { min-height:43px; border-radius:0; font-size:12px; font-weight:700; }
  body:has(#checkout) .checkout-shipping-form .checkout-button-row .btn-primary { border-color:#76052f!important; background:#76052f!important; color:#fff!important; }
  body:has(#checkout) .checkout-shipping-form .checkout-button-row .btn-outline-primary { border-color:#76052f!important; background:#fff!important; color:#76052f!important; }
}

@media (max-width:991.98px) {
  body:has(#checkout) { overflow-x:hidden; }
  body:has(#checkout) #checkout { width:100%!important; max-width:100%!important; padding:16px 14px 32px; }
  body:has(#checkout) .checkout-steps .step-content { justify-content:center; min-width:0; padding:0 4px; font-size:12px; text-align:center; }
  body:has(#checkout) .luna-checkout-layout,
  body:has(#checkout) .luna-checkout-main #register-customer { grid-template-columns:1fr; }
  body:has(#checkout) .luna-checkout-layout > [class*='col'],
  body:has(#checkout) .luna-checkout-main,
  body:has(#checkout) .luna-checkout-main #customer,
  body:has(#checkout) .luna-checkout-main .checkout-register-form,
  body:has(#checkout) .luna-checkout-main #neukunde { min-width:0!important; max-width:100%!important; }
  body:has(#checkout) #order-confirm > .row-eq-height { grid-template-columns:1fr; }
  body:has(#checkout) .luna-checkout-main #existing-customer { border-right:0; border-bottom:1px solid #eadfda; }
  body:has(#checkout) .luna-checkout-main #existing-customer fieldset { display:block; }
  body:has(#checkout) .luna-checkout-main #existing-customer .form-group { margin-bottom:12px; }
  body:has(#checkout) .luna-checkout-summary-column { display:block; width:100%!important; margin-top:20px; }
}

/* Choice surfaces: retain native radio controls and provider logos, but make the
   active shipping and payment method unmistakable in the Luna color system. */
body:has(#checkout) .checkout-shipping-form-options .custom-control,
body:has(#checkout) .checkout-shipping-form-options .form-check,
body:has(#checkout) .checkout-payment-method .custom-control,
body:has(#checkout) .checkout-payment-method .form-check { border:1px solid transparent; border-radius:5px; transition:border-color .15s ease, background-color .15s ease; }
body:has(#checkout) .checkout-shipping-form-options .custom-control:has(input[type='radio']:checked),
body:has(#checkout) .checkout-shipping-form-options .form-check:has(input[type='radio']:checked),
body:has(#checkout) .checkout-payment-method .custom-control:has(input[type='radio']:checked),
body:has(#checkout) .checkout-payment-method .form-check:has(input[type='radio']:checked) { border-color:#76052f; background:#fbf2f5; box-shadow:0 0 0 2px rgba(118,5,47,.08); }
body:has(#checkout) .checkout-shipping-form-options input[type='radio'],
body:has(#checkout) .checkout-payment-method input[type='radio'] { accent-color:#76052f; }
body:has(#checkout) .checkout-shipping-form-options .custom-control:has(input[type='radio']:checked) .title,
body:has(#checkout) .checkout-shipping-form-options .form-check:has(input[type='radio']:checked) .title,
body:has(#checkout) .checkout-payment-method .custom-control:has(input[type='radio']:checked) label,
body:has(#checkout) .checkout-payment-method .form-check:has(input[type='radio']:checked) label { color:#76052f!important; }
/* Fallback for mobile engines which do not apply :has() to the radio wrapper. */
body:has(#checkout) .checkout-shipping-form-options input[type='radio']:checked + label,
body:has(#checkout) .checkout-payment-method input[type='radio']:checked + label { border:1px solid #76052f!important; border-radius:5px; background:#fbf2f5!important; box-shadow:0 0 0 2px rgba(118,5,47,.08); color:#76052f!important; }

/* Step 2 desktop refinement: NOVA keeps the original radio inputs, provider
   logos and plugin controls.  The presentation makes each method a complete,
   consistently aligned choice instead of detached fragments in a narrow
   Bootstrap column. */
@media (min-width:992px) {
  body:has(#checkout) .luna-checkout-step2-card > .row > [class*='col'] { flex:0 0 100%!important; width:100%!important; max-width:100%!important; padding:0!important; }
  body:has(#checkout) .checkout-shipping-form fieldset { margin-bottom:38px!important; }
  body:has(#checkout) .checkout-shipping-form-options > * { margin:0 0 12px!important; }
  body:has(#checkout) .checkout-shipping-form-options .custom-control,
  body:has(#checkout) .checkout-shipping-form-options .form-check,
  body:has(#checkout) .checkout-payment-method .custom-control,
  body:has(#checkout) .checkout-payment-method .form-check { position:relative; display:block!important; width:100%!important; min-height:0!important; margin:0!important; padding:14px 20px 14px 48px!important; border:1px solid #e5dad5!important; border-radius:7px!important; background:#fffdfa!important; box-shadow:none!important; }
  body:has(#checkout) .checkout-shipping-form-options .custom-control-label,
  body:has(#checkout) .checkout-shipping-form-options .form-check-label { display:block!important; min-height:74px!important; padding:0!important; }
  body:has(#checkout) .checkout-shipping-form-options .content { display:grid!important; grid-template-columns:minmax(0,1fr) minmax(125px,.42fr) minmax(130px,.42fr); column-gap:20px; align-items:center; min-height:74px; }
  body:has(#checkout) .checkout-shipping-form-options .title { display:flex!important; align-items:center; gap:14px; min-height:74px; color:#332b30; font-size:15px; font-weight:700; }
  body:has(#checkout) .checkout-shipping-form-options .title img { width:86px!important; max-width:86px!important; height:58px!important; margin:0!important; object-fit:contain; }
  body:has(#checkout) .luna-checkout-shipping-title-copy { display:flex; flex-direction:column; gap:5px; min-width:0; }
  body:has(#checkout) .luna-checkout-shipping-title-name { display:block; color:#4e071f; font-size:15px; line-height:1.25; }
  body:has(#checkout) .checkout-shipping-form-options .title small { display:block; margin:0; color:#6b6064; font-size:11px; font-weight:400; line-height:1.35; }
  body:has(#checkout) .checkout-shipping-form-options .desc { padding:0!important; color:#655b60!important; font-size:12px; line-height:1.4; }
  body:has(#checkout) .checkout-shipping-form-options .price-col { padding:0!important; color:#4e071f!important; font-size:13px; font-weight:700; text-align:right!important; }
  body:has(#checkout) .luna-checkout-payment-grid { display:grid!important; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; width:100%!important; margin:0!important; }
  body:has(#checkout) .luna-checkout-payment-grid > .checkout-payment-method { width:auto!important; min-width:0!important; margin:0!important; padding:0!important; }
  body:has(#checkout) .checkout-payment-method { width:auto!important; min-width:0!important; margin:0!important; padding:0!important; }
  body:has(#checkout) .checkout-payment-method label { display:flex!important; align-items:center; min-height:34px; color:#332b30; font-size:14px; font-weight:600; }
  body:has(#checkout) .checkout-payment-method img { width:auto!important; max-width:112px!important; max-height:36px!important; margin-right:13px!important; object-fit:contain; }
  body:has(#checkout) .checkout-payment-method-note { margin:5px 0 0!important; color:#6b6064; font-size:11px; line-height:1.4; }
  body:has(#checkout) .checkout-shipping-form-options .custom-control-label::before,
  body:has(#checkout) .checkout-shipping-form-options .custom-control-label::after,
  body:has(#checkout) .checkout-payment-method .custom-control-label::before,
  body:has(#checkout) .checkout-payment-method .custom-control-label::after { top:20px!important; left:-32px!important; }
  body:has(#checkout) .checkout-shipping-form-options .form-check-input,
  body:has(#checkout) .checkout-payment-method .form-check-input,
  body:has(#checkout) .checkout-shipping-form-options .custom-control-input,
  body:has(#checkout) .checkout-payment-method .custom-control-input { top:20px!important; left:18px!important; margin:0!important; }
  body:has(#checkout) .checkout-shipping-form-options .custom-control:has(input[type='radio']:checked),
  body:has(#checkout) .checkout-shipping-form-options .form-check:has(input[type='radio']:checked),
  body:has(#checkout) .checkout-payment-method .custom-control:has(input[type='radio']:checked),
  body:has(#checkout) .checkout-payment-method .form-check:has(input[type='radio']:checked) { border-color:#76052f!important; background:#fcf4f6!important; box-shadow:0 0 0 2px rgba(118,5,47,.07)!important; }
  body:has(#checkout) .checkout-shipping-form-options input[type='radio']:checked + label,
  body:has(#checkout) .checkout-payment-method input[type='radio']:checked + label { margin:0!important; padding:0!important; border:0!important; background:transparent!important; box-shadow:none!important; }
  body:has(#checkout) .checkout-shipping-form .checkout-button-row { gap:20px; margin-top:28px!important; }
  body:has(#checkout) .checkout-shipping-form .checkout-button-row .btn { min-height:44px; border-radius:5px!important; }
}

@media (max-width:767.98px) {
  body:has(#checkout) #checkout { padding:12px 10px 28px; }
  body:has(#checkout) .checkout-steps { margin-bottom:14px; }
  body:has(#checkout) .checkout-steps .nav-item,
  body:has(#checkout) .checkout-steps .step-content { min-height:48px; }
  body:has(#checkout) .checkout-steps .step-content { gap:5px; font-size:10px; line-height:1.2; }
  body:has(#checkout) .checkout-steps .badge { width:25px; height:25px; flex:0 0 25px; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form,
  body:has(#checkout) .luna-checkout-main #neukunde { padding:18px!important; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form .row,
  body:has(#checkout) .luna-checkout-main #neukunde .row { width:100%!important; min-width:0!important; margin-left:0!important; margin-right:0!important; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form [class*='col'],
  body:has(#checkout) .luna-checkout-main #neukunde [class*='col'] { display:block!important; flex:0 0 100%!important; width:100%!important; max-width:100%!important; min-width:0!important; padding-left:0!important; padding-right:0!important; }
  body:has(#checkout) .luna-checkout-main input:not([type='checkbox']):not([type='radio']),
  body:has(#checkout) .luna-checkout-main select { width:100%!important; max-width:100%!important; }
  body:has(#checkout) .luna-checkout-step2-card { width:100%!important; max-width:100%!important; padding:18px!important; border:1px solid #eadfda; border-radius:8px; background:#fff; box-shadow:0 4px 18px rgba(58,29,39,.05); }
  body:has(#checkout) .luna-checkout-step2-card > .row,
  body:has(#checkout) .luna-checkout-step2-card > .row > [class*='col'] { display:block!important; flex:0 0 100%!important; width:100%!important; max-width:100%!important; min-width:0!important; margin-left:0!important; margin-right:0!important; padding-left:0!important; padding-right:0!important; }
  body:has(#checkout) .luna-checkout-step2-card > h1 { margin:0 0 18px!important; color:#4e071f; font-family:Georgia,"Times New Roman",serif; font-size:27px; font-weight:400; line-height:1.15; }
  body:has(#checkout) .checkout-shipping-form fieldset { margin:0 0 30px!important; padding:0; }
  body:has(#checkout) .checkout-shipping-form .h2 { margin:0 0 14px; color:#4e071f; font-family:Georgia,"Times New Roman",serif; font-size:23px; font-weight:400; }
  body:has(#checkout) .checkout-shipping-form-change { margin-bottom:15px!important; font-size:13px; line-height:1.45; }
  body:has(#checkout) .checkout-shipping-form-options .custom-control,
  body:has(#checkout) .checkout-shipping-form-options .form-check { min-height:0!important; margin:0 0 12px!important; padding:10px!important; }
  body:has(#checkout) .checkout-shipping-form-options .custom-control-label,
  body:has(#checkout) .checkout-shipping-form-options .form-check-label { display:block!important; min-height:0!important; padding-left:20px!important; }
  body:has(#checkout) .checkout-shipping-form-options input[type='radio']:checked + label,
  body:has(#checkout) .checkout-payment-method input[type='radio']:checked + label { margin:-10px!important; padding:10px 10px 10px 30px!important; }
  body:has(#checkout) .checkout-shipping-form-options .content { display:grid!important; grid-template-columns:minmax(0,1fr); gap:6px; }
  body:has(#checkout) .checkout-shipping-form-options .content > [class*='col'] { display:block!important; flex:0 0 100%!important; width:100%!important; max-width:100%!important; min-width:0!important; padding:0!important; }
  body:has(#checkout) .checkout-shipping-form-options .title { display:flex!important; align-items:center; color:#29242a; font-size:14px; font-weight:700; }
  body:has(#checkout) .checkout-shipping-form-options .title img { width:70px!important; max-width:70px!important; height:46px!important; margin:0 10px 0 0!important; object-fit:contain; }
  body:has(#checkout) .checkout-shipping-form-options .title small { display:block; margin-top:4px; color:#655b60; font-size:11px; font-weight:400; line-height:1.3; }
  body:has(#checkout) .checkout-shipping-form-options .desc,
  body:has(#checkout) .checkout-shipping-form-options .price-col { display:block!important; padding-left:80px!important; color:#51494e!important; font-size:12px; line-height:1.4; text-align:left!important; }
  body:has(#checkout) .checkout-shipping-form-options .price-col { color:#76052f!important; font-weight:700; }
  body:has(#checkout) .checkout-payment-method { width:100%!important; margin:0 0 10px!important; padding:0!important; }
  body:has(#checkout) .checkout-payment-method .custom-control,
  body:has(#checkout) .checkout-payment-method .form-check,
  body:has(#checkout) .checkout-shipping-form-options .custom-control,
  body:has(#checkout) .checkout-shipping-form-options .form-check { display:block!important; position:relative; width:calc(100% - 36px)!important; max-width:none!important; box-sizing:border-box!important; margin-left:18px!important; margin-right:18px!important; padding:10px 12px 10px 30px!important; }
  body:has(#checkout) .checkout-payment-method label { display:flex!important; align-items:center; min-height:28px; color:#29242a; font-size:13px; font-weight:600; }
  body:has(#checkout) .checkout-payment-method .custom-control-label::before,
  body:has(#checkout) .checkout-payment-method .custom-control-label::after,
  body:has(#checkout) .checkout-shipping-form-options .custom-control-label::before,
  body:has(#checkout) .checkout-shipping-form-options .custom-control-label::after { left:-22px!important; }
  body:has(#checkout) .checkout-payment-method .form-check-input,
  body:has(#checkout) .checkout-shipping-form-options .form-check-input { left:8px!important; margin-left:0!important; }
  body:has(#checkout) .checkout-payment-method .custom-control-input,
  body:has(#checkout) .checkout-shipping-form-options .custom-control-input { left:8px!important; margin-left:0!important; }
  body:has(#checkout) .checkout-payment-method img { width:auto!important; max-width:102px!important; max-height:32px!important; margin-right:8px!important; object-fit:contain; }
  body:has(#checkout) .checkout-payment-method-note { margin:4px 0 0 20px!important; color:#655b60; font-size:11px; line-height:1.35; }
  body:has(#checkout) .checkout-shipping-form-options input[type='radio']:checked + label,
  body:has(#checkout) .checkout-payment-method input[type='radio']:checked + label { margin:0!important; padding:0!important; border:0!important; background:transparent!important; box-shadow:none!important; }
  body:has(#checkout) .checkout-shipping-form .checkout-button-row { display:flex!important; flex-direction:column; gap:10px; margin:26px 0 0!important; }
  body:has(#checkout) .checkout-shipping-form .checkout-button-row > [class*='col'] { flex:0 0 100%!important; width:100%!important; max-width:100%!important; margin:0!important; padding:0!important; }
  body:has(#checkout) .checkout-shipping-form .checkout-button-row > [class*='col']:first-child { order:1; }
  body:has(#checkout) .checkout-shipping-form .checkout-button-row > [class*='col']:last-child { order:2; }
  body:has(#checkout) .checkout-shipping-form .checkout-button-row .btn { width:100%; min-height:44px; }

  /* A mobile checkout reads as a few calm sections, not as nested desktop cards. */
  body:has(#checkout) .luna-checkout-main #register-customer { border-radius:8px; }
  body:has(#checkout) .luna-checkout-main #existing-customer { margin:8px; padding:14px!important; border-radius:6px; }
  body:has(#checkout) .luna-checkout-main #existing-customer .card-title { margin-bottom:6px; font-size:22px; }
  body:has(#checkout) .luna-checkout-main #existing-customer .luna-checkout-existing-note { margin-bottom:12px; font-size:12px; }
  body:has(#checkout) .luna-checkout-main #existing-customer .form-group { margin-bottom:9px; }
  body:has(#checkout) .luna-checkout-main #existing-customer .btn { width:100%; min-height:40px; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form,
  body:has(#checkout) .luna-checkout-main #neukunde { padding:18px!important; }
  body:has(#checkout) .luna-checkout-main .inc-billing-address-form > .row > [class*='col'] { margin-bottom:0!important; }
  body:has(#checkout) .luna-checkout-main .inc-billing-address-form h1 { margin:0 0 6px!important; color:#4e071f; font-family:Georgia,"Times New Roman",serif; font-size:27px; font-weight:400; line-height:1.14; }
  body:has(#checkout) .luna-checkout-main .inc-billing-address-form .required-info,
  body:has(#checkout) .luna-checkout-main .luna-checkout-address-intro { margin:0 0 12px; color:#655b60; font-size:12px; line-height:1.45; }
  body:has(#checkout) .luna-checkout-main .inc-billing-address-form .h3,
  body:has(#checkout) .luna-checkout-main #neukunde legend { margin:19px 0 10px; color:#4e071f; font-family:Georgia,"Times New Roman",serif; font-size:20px; font-weight:400; }
  body:has(#checkout) .luna-checkout-main .inc-billing-address-form hr,
  body:has(#checkout) .luna-checkout-main #neukunde hr { margin:16px 0!important; border-color:#eadfda; }
  body:has(#checkout) .luna-checkout-main .form-group { margin-bottom:9px!important; }
  body:has(#checkout) .luna-checkout-main .form-control,
  body:has(#checkout) .luna-checkout-main select,
  body:has(#checkout) .luna-checkout-main input:not([type='checkbox']):not([type='radio']) { min-height:40px; }
  body:has(#checkout) .luna-checkout-summary { margin-top:4px; }
}

@media (max-width:991.98px) {
  body:has(#checkout) .luna-toys-service { grid-template-columns:repeat(2,minmax(0,1fr)); width:100%; padding:10px 12px; }
  body:has(#checkout) .luna-toys-service > span { min-height:70px; justify-content:flex-start; padding:0 8px; border-bottom:1px solid #e6e0dd; }
  body:has(#checkout) .luna-toys-service > span:nth-child(2n) { border-right:0; }
  body:has(#checkout) .luna-v562-footer { grid-template-columns:repeat(2,minmax(0,1fr)); gap:24px; padding:24px 20px 78px; }
  body:has(#checkout) .luna-v562-footer-brand { grid-column:1 / -1; }
}

@media (max-width:575.98px) {
  body:has(#checkout) .luna-toys-service { grid-template-columns:1fr; }
  body:has(#checkout) .luna-toys-service > span { border-right:0; }
  body:has(#checkout) .luna-v562-footer { grid-template-columns:1fr; gap:0; padding:24px 18px 112px; }
  body:has(#checkout) .luna-v562-footer-brand { grid-column:1; padding-bottom:16px; }
  body:has(#checkout) .luna-v562-footer > div:not(.luna-v562-footer-brand):not(.luna-v562-footer-withdrawal):not(.luna-v575-footer-bottom) { padding:14px 0; border-top:1px solid rgba(190,194,196,.2); }
  body:has(#checkout) .luna-v562-footer h5 { font-size:14px; }
  body:has(#checkout) .luna-v562-footer a { font-size:13px; line-height:1.7; }
  body:has(#checkout) .luna-v562-footer p { font-size:11px; }
  body:has(#checkout) .luna-v562-footer-withdrawal { right:18px; bottom:58px; }
  body:has(#checkout) .luna-v575-footer-bottom { left:18px; right:18px; bottom:15px; gap:12px; font-size:8px; }
}

/* Extreme narrow-view guard (e.g. the 137px mobile audit viewport): every
   native Bootstrap row becomes a single controlled flow.  No input, label or
   checkout card is permitted to reserve an intrinsic width outside #checkout. */
@media (max-width:260px) {
  body:has(#checkout) #checkout { width:100%!important; padding:8px 4px 20px; }
  body:has(#checkout) #checkout,
  body:has(#checkout) #checkout * { box-sizing:border-box!important; min-width:0!important; max-width:100%!important; }
  body:has(#checkout) .checkout-steps { margin-bottom:8px; }
  body:has(#checkout) .checkout-steps .nav-item,
  body:has(#checkout) .checkout-steps .step-content { min-height:40px; }
  body:has(#checkout) .checkout-steps .step-content { font-size:0!important; gap:0; }
  body:has(#checkout) .checkout-steps .badge { width:22px; height:22px; flex:0 0 22px; font-size:11px; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form,
  body:has(#checkout) .luna-checkout-main #neukunde,
  body:has(#checkout) .luna-checkout-step2-card { padding:10px!important; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form .row,
  body:has(#checkout) .luna-checkout-main #neukunde .row,
  body:has(#checkout) .luna-checkout-step2-card .row { display:block!important; width:100%!important; margin:0!important; }
  body:has(#checkout) .luna-checkout-main .checkout-register-form [class*='col'],
  body:has(#checkout) .luna-checkout-main #neukunde [class*='col'],
  body:has(#checkout) .luna-checkout-step2-card [class*='col'] { display:block!important; width:100%!important; max-width:100%!important; margin:0 0 8px!important; padding:0!important; }
  body:has(#checkout) .luna-checkout-main h1,
  body:has(#checkout) .luna-checkout-step2-card > h1 { font-size:20px!important; overflow-wrap:anywhere; }
  body:has(#checkout) .luna-checkout-main h2,
  body:has(#checkout) .luna-checkout-main h3,
  body:has(#checkout) .checkout-shipping-form .h2 { font-size:17px!important; overflow-wrap:anywhere; }
  body:has(#checkout) .luna-checkout-main label,
  body:has(#checkout) .luna-checkout-main input,
  body:has(#checkout) .luna-checkout-main select,
  body:has(#checkout) .luna-checkout-main textarea { width:100%!important; max-width:100%!important; }
  body:has(#checkout) .checkout-shipping-form-options .custom-control,
  body:has(#checkout) .checkout-shipping-form-options .form-check,
  body:has(#checkout) .checkout-payment-method .custom-control,
  body:has(#checkout) .checkout-payment-method .form-check { padding:7px!important; }
  body:has(#checkout) .checkout-shipping-form-options .custom-control-label,
  body:has(#checkout) .checkout-shipping-form-options .form-check-label { padding-left:16px!important; }
  body:has(#checkout) .checkout-shipping-form-options .title { display:block!important; overflow-wrap:anywhere; }
  body:has(#checkout) .checkout-shipping-form-options .title img { display:block; width:54px!important; height:34px!important; margin:0 0 4px!important; }
  body:has(#checkout) .checkout-shipping-form-options .desc,
  body:has(#checkout) .checkout-shipping-form-options .price-col { padding-left:0!important; overflow-wrap:anywhere; }
  body:has(#checkout) .luna-checkout-summary { width:100%!important; }
  body:has(#checkout) .luna-checkout-summary h2 { padding:12px 9px; font-size:21px; overflow-wrap:anywhere; }
  body:has(#checkout) .luna-checkout-summary .checkout-items-header,
  body:has(#checkout) .luna-checkout-summary .checkout-items-item { grid-template-columns:minmax(0,1fr)!important; margin:0 8px; }
  body:has(#checkout) .luna-checkout-summary .checkout-items-item-image-wrapper,
  body:has(#checkout) .luna-checkout-summary .checkout-items-item-main,
  body:has(#checkout) .luna-checkout-summary .checkout-items-item-quantity,
  body:has(#checkout) .luna-checkout-summary .checkout-items-item .price-col { grid-column:1!important; text-align:left!important; }
  body:has(#checkout) .luna-checkout-summary .checkout-items-item-image-wrapper img { width:58px; height:58px; }
  body:has(#checkout) .luna-checkout-proceed { width:calc(100% - 16px); margin:0 8px 10px; padding:8px; overflow-wrap:anywhere; }
}

/* Approved Luna service strip and footer, enabled for the checkout route. */
body:has(#checkout) .luna-toys-service { display:grid; grid-template-columns:repeat(4,1fr); width:100%; min-height:66px; margin:0; padding:8px 22px; border-top:1px solid #eee7e3; background:#fff; font-family:Arial,Helvetica,sans-serif; }
body:has(#checkout) .luna-toys-service > span { display:flex; align-items:center; justify-content:center; gap:15px; border-right:1px solid #e6e0dd; }
body:has(#checkout) .luna-toys-service > span:last-child { border-right:0; }
body:has(#checkout) .luna-toys-service i { color:#76052f; font-size:22px; }
body:has(#checkout) .luna-toys-service strong,
body:has(#checkout) .luna-toys-service small { display:block; }
body:has(#checkout) .luna-toys-service strong { color:#272126; font-size:12px; }
body:has(#checkout) .luna-toys-service small { margin-top:2px; color:#746b6e; font-size:10px; }
/* Checkout uses the verified front-page footer geometry verbatim. */
body:has(#checkout) #footer { min-height:0!important; margin:0!important; padding:0!important; border:0; background:linear-gradient(110deg,#171c20 0%,#111619 100%); color:#fff; }
body:has(#checkout) #footer > .container { width:min(calc(100% - 32px),1600px); max-width:1600px; min-height:0!important; padding:0 22px!important; margin:auto; }
body:has(#checkout) #footer > .container > *:not(.luna-v562-footer) { display:none!important; }
body:has(#checkout) .luna-v562-footer { position:relative; display:grid; grid-template-columns:1.42fr repeat(3,.92fr) 1.18fr; align-items:start; gap:clamp(34px,4.5vw,78px); min-height:205px; padding:24px 28px 49px; color:#bec2c4; font-family:Arial,Helvetica,sans-serif; }
body:has(#checkout) .luna-v562-footer a { display:block; color:#bec2c4!important; font-size:11px; line-height:1.48; text-decoration:none!important; }
body:has(#checkout) .luna-v562-footer a:hover { color:#d5a44c!important; }
body:has(#checkout) .luna-v562-footer .luna-legal-warranty { display:block!important; visibility:visible!important; }
body:has(#checkout) .luna-v562-footer h5 { margin:1px 0 7px; color:#d5d7d8; font-size:12px; font-weight:700; }
body:has(#checkout) .luna-v562-footer p { margin:0; color:#b4b9bb; font-size:10px; line-height:1.45; }
body:has(#checkout) .luna-v562-footer-brand p { max-width:244px; margin-top:4px; }
body:has(#checkout) .luna-v575-footer-logo { display:flex!important; align-items:center; gap:9px; width:max-content; max-width:100%; margin:-2px 0 8px; text-decoration:none!important; }
body:has(#checkout) .luna-v575-footer-mark { position:relative; display:block; width:53px; height:53px; flex:0 0 53px; overflow:hidden; }
body:has(#checkout) .luna-v575-footer-mark img { display:block!important; width:83px!important; max-width:none!important; height:auto!important; margin:0!important; transform:translate(-15px,-1px); background:transparent!important; }
body:has(#checkout) .luna-v575-footer-wordmark { display:flex; flex-direction:column; min-width:0; color:#d7a443; }
body:has(#checkout) .luna-v575-footer-wordmark strong { font-family:Georgia,"Times New Roman",serif; font-size:24px; font-weight:400; line-height:1; letter-spacing:.2px; white-space:nowrap; }
body:has(#checkout) .luna-v575-footer-wordmark small { margin-top:4px; color:#aeb3b5; font-size:8px; line-height:1; white-space:nowrap; }
body:has(#checkout) .luna-v562-payments > div { display:flex; align-items:center; gap:6px; }
body:has(#checkout) .luna-v562-payments > div span { display:flex; align-items:center; justify-content:center; min-height:25px; padding:3px 8px; border-radius:3px; background:#fff; color:#173c72; font-size:11px; font-weight:700; }
body:has(#checkout) .luna-v562-payments > div span:last-child { background:#f5a9cb; color:#111; }
body:has(#checkout) .luna-v562-payments > div .luna-v575-mastercard { position:relative; width:43px; padding:0; }
body:has(#checkout) .luna-v575-mastercard:before,
body:has(#checkout) .luna-v575-mastercard:after { content:''; position:absolute; top:5px; width:15px; height:15px; border-radius:50%; }
body:has(#checkout) .luna-v575-mastercard:before { left:8px; background:#e53824; }
body:has(#checkout) .luna-v575-mastercard:after { right:8px; background:#f4a71d; mix-blend-mode:multiply; }
body:has(#checkout) .luna-v562-payments p { margin-top:6px; }
body:has(#checkout) .luna-v562-payments nav { display:flex; align-items:center; gap:22px; margin-top:13px; }
body:has(#checkout) .luna-v562-payments nav a,
body:has(#checkout) .luna-v562-payments nav > span { display:flex!important; align-items:center; justify-content:center; width:25px; height:25px; padding:0; color:#d5d7d8!important; font-size:22px; line-height:1; }
body:has(#checkout) .luna-v562-footer-withdrawal { position:absolute; right:28px; bottom:42px; }
body:has(#checkout) .luna-v562-footer-withdrawal .withdrawal-link { display:flex!important; align-items:center; justify-content:center; min-width:158px; min-height:28px; padding:5px 12px; border:1px solid #d5a44c!important; border-radius:3px; background:#fff!important; color:#6a5b53!important; text-align:center; font-size:9px; font-weight:700; }
body:has(#checkout) .luna-v575-footer-bottom { position:absolute; left:28px; right:28px; bottom:11px; display:flex; align-items:center; justify-content:space-between; padding-top:8px; border-top:1px solid rgba(190,194,196,.22); color:#b7bcbe; font-size:10px; line-height:1; }
body:has(#checkout) .luna-v575-footer-bottom b { color:#f0a5b8; }
