/* =============================================================================
   ALTAY — checkout (checkout/*.tpl). docs/03 · Kasse, docs/05, docs/06 · Checkout;
   values from the rendered design Altay A Checkout (+ Altay A Mobile M6).
   Prefix al-co-. JTL's real step flow stays (one page load per JTL step); a JTL
   page may hold two of the design's steps (accountwahl = Anmelden + Adresse,
   Versand = Versandart + Zahlungsart) — altay-checkout.js slides between them.
   Without that script every pane of the page stands open (html.al-co-js gate).
   ========================================================================== */

/* ---- page grid: stepper over main | summary ------------------------------- */
.al-co {
  max-width: 1200px; margin: 0 auto; padding: 36px 32px 80px;
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; align-items: start;
}
.al-co-main { min-width: 0; }
/* the design's buttons name "Figtree, sans-serif": the arrow and tick glyphs come from that fallback */
.al-co, .al-co-done { --al-co-font: "Figtree", sans-serif; }
.al-co-shipform { margin: 0; }

/* ---- stepper: 28px circles, 1px connectors (ink when done) ---------------- */
.al-co-steps { grid-column: 1 / -1; display: flex; align-items: center; margin-bottom: -12px; }
:where(.jtlw) .al-co-step, .al-co-step {
  display: flex; align-items: center; gap: 8px; font: 600 13px var(--al-co-font); color: var(--muted); white-space: nowrap;
}
.al-co-step.is-done, .al-co-step.is-current, .al-co-step.is-done:hover { color: var(--ink); }
.al-co-step__num {
  width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line2); color: var(--muted); font-size: 12px; transition: all .3s;
}
.al-co-step.is-done .al-co-step__num, .al-co-step.is-current .al-co-step__num { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.al-co-step__ok { display: none; }
.al-co-step.is-done .al-co-step__ok { display: inline; }
.al-co-step.is-done .al-co-step__n { display: none; }
.al-co-step__line { flex: 1; height: 1px; margin: 0 10px; background: var(--line2); min-width: 0; transition: background .4s; }
.al-co-step.is-done + .al-co-step__line { background: var(--ink); }
.al-co-prog { display: none; }

/* ---- the slide: panes side by side, the track moves (.6s) ------------------ */
.al-co-slide { overflow: hidden; margin: 0 -4px; padding: 0 4px; }
.al-co-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; align-items: start; transition: transform .6s var(--ease-out); }
.al-co-track.is-instant { transition: none; }
.al-co-pane { min-width: 0; transition: opacity .4s; }
html.al-co-js .al-co-pane.is-off { display: none; }
html.al-co-js .al-co-pane.is-fading { opacity: 0; }
html:not(.al-co-js) .al-co-track { grid-auto-flow: row; gap: 40px; }
.al-co-next--js { display: none; }
html.al-co-js .al-co-next--js { display: flex; }
.al-co-h {
  margin: 0 0 6px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 38px;
}
.al-co-h--m { display: none; }

/* shared button + input */
:where(.jtlw) .al-co-btn, .al-co-btn {
  height: 58px; border-radius: 999px; border: none; background: var(--ink); color: var(--paper);
  font: 600 16px var(--al-co-font); cursor: pointer; display: flex; align-items: center; justify-content: center;
  padding: 1px 6px; width: 100%; text-decoration: none; transition: background .2s, color .2s;
}
.al-co-btn:hover { background: var(--accent); color: var(--on-accent); }
:where(.jtlw) .al-co-btn--ghost, .al-co-btn--ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.al-co-btn--ghost:hover { background: var(--ink); color: var(--paper); }
.al-co-input {
  height: 54px; border-radius: 14px; border: 1px solid var(--line2); background: var(--surface); padding: 0 18px;
  font: 400 15px var(--font-body); color: var(--ink); outline: none; min-width: 0; width: 100%;
}
.al-co-input:focus { border-color: var(--ink); }
.al-co-input::placeholder { color: var(--muted); opacity: 1; }
.al-co-formnav { display: flex; flex-direction: column; }
.al-co-formnav--m { display: none; }
.al-co-next { margin-top: 8px; }

/* ---- pane 0: Ich bin Kunde · Neu hier? · express --------------------------- */
.al-co-pane--login { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.al-co-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px;
  display: flex; flex-direction: column; gap: 12px; min-width: 0;
}
.al-co-card__h { margin: 0 0 6px; font-family: var(--font-display); font-weight: var(--display-weight); font-size: 30px; }
.al-co-card__open { display: none; }
.al-co-login { display: flex; flex-direction: column; gap: 12px; flex: 1; margin: 0; }
.al-co-field { margin: 0; }
:where(.jtlw) .al-co-login__forgot, .al-co-login__forgot { font-size: 13px; text-decoration: underline; color: var(--ink); }
.al-co-login__go { margin-top: auto; }
.al-co-login .form-error-msg, .al-co-login .simple-captcha-wrapper { font-size: 13px; }
.al-co-card__p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink2); }
.al-co-perk { display: flex; gap: 10px; font-size: 14px; }
.al-co-perk__ok { color: var(--success); }
.al-co-card__go { margin-top: auto; }
:where(.jtlw) .al-co-card__link, .al-co-card__link { text-align: center; font-size: 13px; text-decoration: underline; color: var(--ink); }
.al-co-express { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.al-co-express__btn {
  height: 50px; border-radius: 999px; border: none; background: #111; color: #fff; font: 600 15px var(--font-body); cursor: pointer; padding: 1px 6px;
}
.al-co-express__btn--paypal { background: #FFC439; color: #003087; font-weight: 700; }
.al-co-express__btn--klarna { background: #FFB3C7; color: #17120F; font-weight: 700; }

/* ---- pane 1: the address — JTL's own form, laid out as the design's rows ----
   JTL prints Name + Rechnungsadresse in one .row and Kontaktdaten in a second
   fieldset (h3 column + fields column, hr between). Here every wrapper steps
   aside (display: contents) and the fields flow in one wrapping row, ordered
   and sized like the design: Anrede chips · E-Mail · Vorname | Nachname ·
   Straße | Nr. · PLZ | Ort | Land. Labels sit in the field like a placeholder
   and give way once there is a value. */
.al-co-pane--address { display: flex; flex-direction: column; gap: 14px; }
.al-co-addr { display: flex; flex-wrap: wrap; gap: 14px 12px; margin: 0; }
.al-co-addr > fieldset, .al-co-addr > fieldset > .row, .al-co-addr > fieldset > .row > .col,
.al-co-addr > fieldset > .row > .col > .form-row, .al-co-addr > fieldset > .row > .col > .form-row > .col,
.al-co-addr > .register-form-account, .al-co-addr > .register-form-account > .col,
.al-co-addr > .inc-shipping-address { display: contents; }
.al-co-addr hr, .al-co-addr .h3, .al-co-addr .w-100-util,
.al-co-addr > fieldset > .h2, .al-co-addr > fieldset > div:not(.row) { display: none; }
.al-co-addr .form-group { flex: 0 0 100%; min-width: 0; margin: 0; order: 20; }
.al-co-addr .form-group > .d-flex { position: relative; }
.al-co-addr .form-control {
  height: 54px; border-radius: 14px; border: 1px solid var(--line2); background: var(--surface); padding: 0 18px;
  font: 400 15px var(--font-body); color: var(--ink); outline: none; min-width: 0; width: 100%; box-shadow: none;
}
.al-co-addr select.form-control { padding: 0 12px; -webkit-appearance: menulist; appearance: auto; background-image: none; }
.al-co-addr .form-control:focus { border-color: var(--ink); box-shadow: none; }
.al-co-addr .has-error .form-control { border-color: var(--accent-ink); }
.al-co-addr .form-group .col-form-label {
  position: absolute; left: 19px; top: 0; height: 54px; display: flex; align-items: center; margin: 0; padding: 0;
  font: 400 15px var(--font-body); color: var(--muted); pointer-events: none; white-space: nowrap; overflow: hidden; max-width: calc(100% - 38px);
}
.al-co-addr .form-group .col-form-label .optional { margin-left: .25em; }
.al-co-addr .form-control:not(:placeholder-shown) + .col-form-label,
.al-co-addr select.form-control + .col-form-label,
.al-co-addr .form-control:focus + .col-form-label,
/* JTL's city autocomplete wraps the Ort input in .twitter-typeahead, so the label follows the wrapper */
.al-co-addr .twitter-typeahead:has(.tt-input:not(:placeholder-shown)) + .col-form-label,
.al-co-addr .twitter-typeahead:has(.tt-input:focus) + .col-form-label { opacity: 0; }
.al-co-addr .form-error-msg { order: -1; margin-top: 6px; font-size: 13px; color: var(--accent-ink); }
.al-co-addr .form-error-msg .fas, .al-co-addr .form-error-msg .fa { display: none; }
/* the design's order and widths, field by field (the ids are JTL's) */
.al-co-addr .form-group:has(#salutation) { order: 1; }
.al-co-addr .form-group:has(#title) { order: 2; }
.al-co-addr .form-group:has(#email) { order: 3; }
.al-co-addr .form-group:has(#firstName) { order: 4; flex-basis: calc((100% - 12px) / 2); }
.al-co-addr .form-group:has(#lastName) { order: 5; flex-basis: calc((100% - 12px) / 2); }
.al-co-addr .form-group:has(#firm) { order: 6; }
.al-co-addr .form-group:has(#firmext) { order: 7; }
.al-co-addr .form-group:has(#street) { order: 8; flex-basis: calc((100% - 12px) * 2.2 / 3.2); }
.al-co-addr .form-group:has(#streetnumber) { order: 9; flex-basis: calc((100% - 12px) / 3.2); }
.al-co-addr .form-group:has(#street2) { order: 10; }
.al-co-addr .form-group:has(#postcode) { order: 11; flex-basis: calc((100% - 24px) / 4.4); }
.al-co-addr .form-group:has(#city) { order: 12; flex-basis: calc((100% - 24px) * 2 / 4.4); }
.al-co-addr .form-group:has(#billing_address-country) { order: 13; flex-basis: calc((100% - 24px) * 1.4 / 4.4); }
.al-co-addr .form-group:has(#billing_address-state) { order: 14; }
.al-co-addr .form-group:has(#ustid) { order: 15; }
.al-co-addr .form-group:has(#tel), .al-co-addr .form-group:has(#fax),
.al-co-addr .form-group:has(#mobile), .al-co-addr .form-group:has(#www) { order: 16; flex-basis: calc((100% - 12px) / 2); }
.al-co-addr .direct-advertising { order: 17; flex: 0 0 100%; font-size: 13px; color: var(--muted); padding: 0; }
.al-co-addr .form-group.register-form-account-unreg { order: 30; }
.al-co-addr #create_account_data { order: 31; flex: 0 0 100%; margin: 0; }
.al-co-addr #create_account_data.show { display: flex; gap: 12px; }
.al-co-addr #create_account_data > .col { padding: 0; flex: 1 1 0; max-width: none; }
.al-co-addr #create_account_data .form-group { position: relative; }
.al-co-addr .register-form-account-password { flex-direction: column-reverse !important; }
.al-co-addr .al-co-same { order: 40; }
.al-co-addr #select-shipping-address { order: 41; flex: 0 0 100%; }
.al-co-addr .al-co-formnav { order: 60; flex: 0 0 100%; }
.al-co-addr .custom-control { padding: 0; min-height: 0; }
/* JTL's account switch: the step-0 buttons set it (guest / account), so it stays out of sight */
html.al-co-js .al-co-addr .register-form-account-unreg { display: none; }

/* salutation chips (altay-checkout.js builds them from JTL's select) */
.al-co-sal { display: flex; gap: 8px; flex-wrap: wrap; }
.al-co-sal__chip {
  height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line2); background: transparent;
  font: 500 14px var(--font-body); color: var(--ink); cursor: pointer;
}
.al-co-sal__chip.is-on { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.al-co-addr .al-co-has-sal select, .al-co-addr .al-co-has-sal .col-form-label { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }

/* „Rechnungsadresse entspricht der Lieferadresse" */
.al-co-check {
  display: flex; align-items: center; gap: 12px; padding: 6px 0; cursor: pointer; font: 500 15px var(--font-body); color: var(--ink); position: relative;
}
.al-co-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.al-co-check__box {
  width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--ink); background: transparent; flex-shrink: 0;
  color: var(--paper); font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.al-co-check input:checked + .al-co-check__box { background: var(--ink); }
.al-co-check input:checked + .al-co-check__box::after { content: '✓'; }
.al-co-check input:focus-visible + .al-co-check__box { outline: 2px solid var(--accent); outline-offset: 2px; }
/* the second address: dashed box, JTL's own 12-column rows */
.al-co-addr #select-shipping-address.show, .al-co-addr #select-shipping-address.collapsing {
  padding: 16px; border-radius: 18px; border: 1px dashed var(--line2);
}
.al-co-addr #select-shipping-address .row, .al-co-addr #select-shipping-address .form-row {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 12px; margin: 0;
}
.al-co-addr #select-shipping-address [class*="col"] { grid-column: span 12; padding: 0; max-width: none; flex: none; width: auto; }
.al-co-addr #select-shipping-address .col-md-6 { grid-column: span 6; }
.al-co-addr #select-shipping-address .col-md-8 { grid-column: span 8; }
.al-co-addr #select-shipping-address .col-md-4 { grid-column: span 4; }
.al-co-addr #select-shipping-address .row > .col-md-4:empty { display: none; }
.al-co-addr #select-shipping-address .form-group { flex: none; }
.al-co-addr #select-shipping-address legend { display: none; }
.al-co-addr #select-shipping-address table { width: 100%; font-size: 14px; }

/* ---- panes 2 + 3: radio cards (Versandart, Zahlungsart) -------------------- */
.al-co-pane--ship, .al-co-pane--pay, .al-co-pane--extra { display: flex; flex-direction: column; gap: 12px; }
.al-co-opts { display: flex; flex-direction: column; gap: 12px; }
.al-co-opt {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--line2);
  background: var(--surface); cursor: pointer; text-align: left; font: 400 15px var(--font-body); color: var(--ink);
  transition: border-color .2s; position: relative; margin: 0;
}
.al-co-opt:has(.al-co-opt__input:checked), .al-co-opt.is-on { border: 2px solid var(--ink); }
.al-co-opt__input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.al-co-opt__dot {
  width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ink); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.al-co-opt__dot > span { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .25s var(--ease-spring); }
.al-co-opt__input:checked ~ .al-co-opt__dot > span { transform: scale(1); }
.al-co-opt__input:focus-visible ~ .al-co-opt__dot { outline: 2px solid var(--accent); outline-offset: 2px; }
.al-co-opt__txt { flex: 1; min-width: 0; }
.al-co-opt__sub { color: var(--muted); font-size: 14px; }
.al-co-opt__note { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.al-co-opt__price { white-space: nowrap; }
.al-co-opt__price small { font-weight: 400; color: var(--muted); }
/* carrier and payment chips (fixed brand colours) */
.al-co-logo {
  width: 46px; height: 30px; border-radius: 7px; background: var(--hover); color: var(--ink); font: 800 11px var(--font-body);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; overflow: hidden; white-space: nowrap;
}
.al-co-logo--pay { font-size: 10px; }
.al-co-logo img { max-width: 40px; max-height: 24px; width: auto; height: auto; display: block; }
.al-co-logo--img { background: #fff; border: 1px solid var(--line); }
.al-co-logo--dhl { background: #FFCC00; color: #D40511; }
.al-co-logo--hermes { background: #00A6E1; color: #fff; }
.al-co-logo--dpd { background: #DC0032; color: #fff; }
.al-co-logo--gls { background: #061AB1; color: #FFD100; }
.al-co-logo--ups { background: #351C15; color: #FFB500; }
.al-co-logo--visa { background: #1A1F71; color: #fff; }
.al-co-logo--paypal { background: #FFC439; color: #003087; }
.al-co-logo--klarna { background: #FFB3C7; color: #17120F; }
.al-co-logo--sepa { background: #2B4593; color: #fff; }
.al-co-logo--applepay { background: #111; color: #fff; }
.al-co-logo .rz-paymark__sym { width: 20px; height: 20px; }
.al-co-eta { font-size: 14px; color: var(--ink2); padding: 12px 16px; border-radius: 14px; background: var(--hover); }
.al-co-pack { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.al-co-pack__h { font-weight: 700; font-size: 15px; }
.al-co-pack .custom-control { padding-left: 0; }
/* payment details of the extra step (checkout/modules/*): the design's card box */
.al-co-extra {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 18px; border-radius: 18px;
  background: var(--surface); border: 1px solid var(--line);
}
.al-co-extra > *, .al-co-extra .row, .al-co-extra .form-row, .al-co-extra fieldset { grid-column: 1 / -1; }
.al-co-extra .form-group { margin: 0; }
.al-co-extra .form-control {
  height: 54px; border-radius: 14px; border: 1px solid var(--line2); background: var(--paper); padding: 0 18px;
  font: 400 15px var(--font-body); color: var(--ink); box-shadow: none;
}
.al-co-extra .col-form-label, .al-co-extra label { font-size: 13px; color: var(--muted); padding: 0 0 6px; }

/* ---- pane 4: review ------------------------------------------------------------ */
.al-co-pane--review { display: flex; flex-direction: column; gap: 14px; }
.al-co-review { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.al-co-rcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 18px;
  display: flex; flex-direction: column; gap: 6px; font-size: 14px; line-height: 1.5; min-width: 0;
}
.al-co-rcard__h { display: flex; justify-content: space-between; gap: 8px; }
:where(.jtlw) .al-co-rcard__edit, .al-co-rcard__edit { font: 500 13px var(--font-body); text-decoration: underline; color: var(--accent-ink); line-height: normal; align-self: center; }
.al-co-rcard__edit:hover { color: var(--ink); }
.al-co-rcard__l { color: var(--ink2); overflow-wrap: anywhere; }
.jtlw textarea.al-co-comment {
  height: auto; min-height: 0; border-radius: 14px; border: 1px solid var(--line2); background: var(--surface); padding: 14px 18px;
  font: 400 15px var(--font-body); line-height: normal; color: var(--ink); outline: none; resize: vertical; box-shadow: none;
}
.jtlw textarea.al-co-comment::placeholder { color: var(--muted); opacity: 1; }
.al-co-order { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.al-co-agb { display: flex; flex-direction: column; gap: 10px; }
.al-co-agb .snippets-checkbox-wrapper { margin: 0; }
.al-co-agb .rz-inline-check {
  display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font: 400 14px var(--font-body); color: var(--ink);
  line-height: 1.5; position: relative; margin: 0;
}
.al-co-agb .rz-inline-check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.al-co-agb .rz-check__box {
  flex-shrink: 0; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--ink); background: transparent;
  color: var(--paper); font-size: 12px; display: flex; align-items: center; justify-content: center; line-height: normal;
}
.al-co-agb input:checked + .rz-check__box { background: var(--ink); }
.al-co-agb input:checked + .rz-check__box::after { content: '✓'; }
.al-co-agb input:focus-visible + .rz-check__box { outline: 2px solid var(--accent); outline-offset: 2px; }
.al-co-agb .is-error .rz-check__box { border-color: var(--accent-ink); }
.al-co-agb .rz-inline-check__text a { text-decoration: underline; }
.al-co-agb .rz-inline-check__desc { font-size: 13px; color: var(--muted); margin: 4px 0 0 32px; }
.al-co-legal { font-size: 13px; color: var(--muted); line-height: 1.5; }
.al-co-legal a { text-decoration: underline; color: var(--muted); }
.al-co-place {
  height: 62px; padding: 0 28px; border-radius: 999px; border: none; background: var(--accent); color: var(--on-accent);
  font: 600 17px var(--al-co-font); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 6px; width: 100%; transition: background .2s;
}
.al-co-place:hover { background: var(--ink); color: var(--paper); }
.al-co-place__spin {
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: var(--on-accent);
  display: none; animation: al-spin .8s linear infinite;
}
.al-co-place.is-busy .al-co-place__spin { display: block; }
.al-co-more { font-size: 14px; }
.al-co-more > summary { cursor: pointer; font-weight: 600; list-style: none; text-decoration: underline; }
.al-co-more > summary::-webkit-details-marker { display: none; }
.al-co-more[open] > summary { margin-bottom: 10px; }
.al-co-more .coupon-form, .al-co-more form { margin: 0; }
.al-co-more .credit-description { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.al-co-more .input-group { display: flex; gap: 8px; flex-wrap: nowrap; }
.al-co-more .form-control { height: 46px; border-radius: 999px; border: 1px solid var(--line2); background: var(--paper); padding: 0 16px; font-size: 14px; flex: 1; min-width: 0; }
.al-co-more .btn { height: 46px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ink); background: transparent; color: var(--ink); font: 600 14px var(--font-body); }

/* ---- order summary (sticky) --------------------------------------------------- */
.al-co-sum {
  position: sticky; top: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px;
  display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.al-co-sum__toggle { display: none; }
.al-co-sum__body, .al-co-sum__clip { display: contents; }
.al-co-sum__title { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 26px; }
.al-co-sum__lines { display: flex; flex-direction: column; gap: 14px; }
.al-co-sum__line { display: flex; gap: 14px; align-items: center; }
:where(.jtlw) .al-co-sum__img, .al-co-sum__img { position: relative; width: 58px; height: 70px; border-radius: 10px; background: var(--hover); flex-shrink: 0; display: block; }
.al-co-sum__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; border-radius: 10px; display: block; }
.al-co-sum__qty {
  position: absolute; top: -6px; right: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--paper);
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.al-co-sum__info { flex: 1; min-width: 0; }
.al-co-sum__name { font-weight: 600; font-size: 14px; }
.al-co-sum__meta { font-size: 13px; color: var(--muted); }
.al-co-sum__price { font-size: 14px; white-space: nowrap; }
.al-co-sum__rows { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.al-co-sum__row { display: flex; justify-content: space-between; gap: 12px; }
.al-co-sum__row--disc { color: var(--accent-ink); }
.al-co-sum__row--tax { color: var(--muted); font-size: 13px; }
.al-co-sum__total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 14px; }
.al-co-sum__sum { font-family: var(--font-display); font-weight: var(--display-weight); font-size: 34px; }
.al-co-sum__hint { font-size: 13px; color: var(--muted); }

/* ---- Vielen Dank (order_completed.tpl) ---------------------------------------- */
.al-co-done {
  max-width: 1100px; margin: 0 auto; padding: 70px 32px 80px;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: start;
}
.al-co-done__main { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; min-width: 0; }
.al-co-done__check {
  width: 96px; height: 96px; border-radius: 50%; background: var(--accent); color: var(--on-accent);
  display: flex; align-items: center; justify-content: center; animation: al-co-pop .7s var(--ease-spring) both;
}
.al-co-done__check path { stroke-dasharray: 24; stroke-dashoffset: 0; animation: al-co-draw .6s ease .35s both; }
@keyframes al-co-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes al-co-draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
.al-co-done__no { font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; color: var(--accent-ink); text-transform: uppercase; }
.al-co-done__h {
  font-family: var(--font-display); font-weight: var(--display-weight); letter-spacing: -.025em; margin: 0;
  font-size: clamp(52px, 6vw, 88px); line-height: .95;
}
.al-co-done__p { margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink2); }
.al-co-done__p b { color: var(--ink2); }
.al-co-track4 { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; margin: 10px 0; }
.al-co-track4__step { display: flex; flex-direction: column; gap: 8px; }
.al-co-track4__row { display: flex; align-items: center; }
.al-co-track4__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--line2); }
.al-co-track4__line { flex: 1; height: 2px; background: var(--line2); }
.al-co-track4__l { font-size: 13px; font-weight: 600; color: var(--muted); }
.al-co-track4__step.is-on .al-co-track4__dot { background: var(--accent-ink); }
.al-co-track4__step.is-on .al-co-track4__l { color: var(--ink); }
.al-co-upsell {
  background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 22px; width: 100%;
  display: flex; gap: 18px; align-items: center;
}
.al-co-upsell__txt { flex: 1; }
.al-co-upsell__sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
:where(.jtlw) .al-co-upsell__btn, .al-co-upsell__btn {
  height: 46px; padding: 0 20px; border-radius: 999px; background: var(--ink); color: var(--paper);
  display: flex; align-items: center; font-weight: 600; font-size: 14px; white-space: nowrap;
}
.al-co-upsell__btn:hover { background: var(--accent); color: var(--on-accent); }
.al-co-done__btns { display: flex; gap: 10px; flex-wrap: wrap; }
:where(.jtlw) .al-co-done__shop, .al-co-done__shop {
  height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid var(--ink); display: flex; align-items: center; font-weight: 600; color: var(--ink);
}
.al-co-done__shop:hover { background: var(--ink); color: var(--paper); }
.al-co-done__print {
  height: 52px; padding: 0 24px; border-radius: 999px; border: none; background: transparent;
  font: 600 15px var(--font-body); text-decoration: underline; cursor: pointer; color: var(--ink);
}
.al-co-done__pay { width: 100%; font-size: 15px; line-height: 1.5; }
.al-co-done__pay:empty { display: none; }
.al-co-done__pay .payment-method-module-ids, .al-co-done__pay .checkout-paymentmodules-alert { display: none; }
.al-co-done .al-co-sum { top: 30px; }

/* ---- tablet 768–1099: one column, the summary first -------------------------- */
@media (max-width: 1099px) {
  .al-co { grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 28px 20px 64px; }
  .al-co-steps { margin-bottom: 0; }
  .al-co-sum { position: static; grid-row: 3; }
  .al-co-steps { grid-row: 1; }
  .al-co-main { grid-row: 2; }
  .al-co-done { grid-template-columns: minmax(0, 1fr); padding: 48px 20px 64px; gap: 32px; }
}

/* ---- phone < 768 (M6): 5-segment progress, collapsible summary, sticky CTA ---- */
@media (max-width: 767px) {
  .al-co { padding: 14px 16px 120px; gap: 0; }
  .al-co-steps { display: none; }
  .al-co-prog { display: block; grid-row: 1; }
  .al-co-prog__bars { display: flex; gap: 4px; }
  .al-co-prog__bar { flex: 1; height: 4px; border-radius: 4px; background: var(--line2); transition: background .4s; }
  .al-co-prog__bar.is-on { background: var(--ink); }
  .al-co-prog__txt { display: flex; justify-content: space-between; font-size: 12px; margin-top: 8px; }
  .al-co-prog__name { color: var(--muted); }
  .al-co-sum { grid-row: 2; margin-top: 12px; padding: 0; border-radius: 14px; gap: 0; position: static; }
  .al-co-sum__toggle {
    display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 12px 14px; border: 0; border-radius: 14px;
    background: transparent; font: 500 14px var(--font-body); color: var(--ink); cursor: pointer;
  }
  .al-co-sum__chev { display: inline-block; transition: transform .3s; }
  .al-co-sum.is-open .al-co-sum__chev { transform: rotate(180deg); }
  .al-co-sum__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s; }
  .al-co-sum.is-open .al-co-sum__body { grid-template-rows: 1fr; }
  .al-co-sum__clip { display: flex; flex-direction: column; gap: 12px; overflow: hidden; min-height: 0; padding: 0 14px; }
  .al-co-sum.is-open .al-co-sum__clip { padding-bottom: 14px; }
  .al-co-sum__title { display: none; }
  .al-co-sum__lines { gap: 0; }
  .al-co-sum__line { gap: 10px; padding: 10px 4px; font-size: 13px; }
  :where(.jtlw) .al-co-sum__img, .al-co-sum__img { width: 40px; height: 50px; border-radius: 8px; }
  .al-co-sum__qty { display: none; }
  .al-co-sum__rows { font-size: 14px; }
  .al-co-sum__sum { font-size: 26px; }
  .al-co-main { grid-row: 3; padding-top: 18px; }
  .al-co-h { font-size: 30px; letter-spacing: -.02em; margin: 0; }
  .al-co-pane--login { display: flex; flex-direction: column; gap: 10px; }
  .al-co-h--m { display: block; }
  .al-co-card { background: none; border: 0; border-radius: 0; padding: 0; gap: 10px; }
  .al-co-card__h, .al-co-card__p, .al-co-perk, .al-co-card__link { display: none; }
  html.al-co-js .al-co-card__open { display: flex; height: 52px; font-size: 15px; }
  html.al-co-js .al-co-card--login:not(.is-open) .al-co-login { display: none; }
  .al-co-card--login.is-open .al-co-card__open { display: none; }
  .al-co-card__go { height: 52px; font-size: 16px; }
  .al-co-express { grid-column: auto; grid-template-columns: 1fr 1fr; margin-top: 6px; }
  .al-co-express__btn { height: 48px; font-size: 16px; }
  .al-co-express__btn--klarna, .al-co-express__x { display: none; }
  .al-co-input, .al-co-addr .form-control { height: 50px; font-size: 16px; }
  .al-co-addr .form-group .col-form-label { height: 50px; font-size: 16px; }
  .al-co-addr .form-group:has(#firstName), .al-co-addr .form-group:has(#lastName) { flex-basis: 100%; }
  .al-co-addr .form-group:has(#postcode) { flex-basis: calc((100% - 12px) * .38); }
  .al-co-addr .form-group:has(#city) { flex-basis: calc((100% - 12px) * .62); }
  .al-co-addr .form-group:has(#billing_address-country) { flex-basis: 100%; }
  .al-co-addr #select-shipping-address .col-md-6, .al-co-addr #select-shipping-address .col-md-8, .al-co-addr #select-shipping-address .col-md-4 { grid-column: span 12; }
  .al-co-review { grid-template-columns: minmax(0, 1fr); }
  .al-co-opt { padding: 14px 16px; gap: 12px; }
  /* the pane's main button: a bar at the bottom of the screen */
  .al-co-formnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px 26px; border-top: 1px solid var(--line); background: var(--surface); }
  html.al-co-js .al-co-pane.is-off .al-co-formnav { display: none; }
  .al-co-formnav--m { display: flex; }
  .al-co-addr .al-co-formnav { flex: none; }
  .al-co-next { margin-top: 0; height: 52px; background: var(--accent); color: var(--on-accent); font-size: 15px; }
  .al-co-place { height: 56px; font-size: 15px; }
  #panel-submit-order { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; padding: 12px 16px 26px; border-top: 1px solid var(--line); background: var(--surface); }
  .al-co-place { margin-top: 0; }
  .al-co-done { padding: 32px 16px 48px; }
  .al-co-done__check { width: 72px; height: 72px; }
  .al-co-done__check svg { width: 34px; height: 34px; }
  .al-co-upsell { flex-direction: column; align-items: flex-start; }
}

/* ---- additions: JTL lines the design does not draw ------------------------------ */
.al-co-pane--ship > .al-co-h { order: -3; }
.al-co-pane--ship > #checkout-shipping-payment { order: -2; }
.al-co-pane--ship > .al-co-eta { order: -1; }
.al-co-shipto { font-size: 13px; color: var(--muted); }
.al-co-shipto a { text-decoration: underline; color: var(--muted); margin-left: 4px; }
.al-co-privacy { order: 2; margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted); text-decoration: underline; }
.al-co-extraform { display: flex; flex-direction: column; gap: 12px; margin: 0; }
.al-co-opt.is-on .al-co-opt__dot > span { transform: scale(1); }
.al-co-opt .al-co-rcard__edit { margin-left: auto; }
.al-co-mores { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.al-co-done__pay { display: contents; }
.al-co-done__pay #order-confirmation, .al-co-done__pay .payment-method-inner:not(:has(*)) { display: none; }
.al-co-h[tabindex="-1"]:focus, .al-co-card__h[tabindex="-1"]:focus { outline: none; }
