/* ATELIER: JTL-Standardbestellvorgang und Bestellabschluss. */
body:not(.aopc-active) #checkout { max-width: 1440px; margin-inline:auto; padding-top:24px; padding-bottom:56px; color:var(--atelier-color-ink,#29313a); }
body:not(.aopc-active) #checkout h1 { font-size:clamp(1.5rem,2.1vw,2rem); font-weight:700; margin-bottom:24px; color:var(--atelier-color-ink,#252c34); }
body:not(.aopc-active) #checkout h2,
body:not(.aopc-active) #checkout .h2,
body:not(.aopc-active) #checkout .checkout-confirmation-heading,
body:not(.aopc-active) #checkout .card-title { font-weight:700; color:var(--atelier-color-ink,#252c34); }
body:not(.aopc-active) #checkout .checkout-steps { margin:0 0 32px; padding:16px 18px; border:1px solid var(--atelier-color-border,#e1e5e9); border-radius:8px; background:var(--atelier-color-soft,#f6f7f8); }
body:not(.aopc-active) #checkout .checkout-steps .step-content { display:flex; align-items:center; gap:9px; }
body:not(.aopc-active) #checkout .checkout-steps .step-text { font-weight:600; color:var(--atelier-color-muted,#606b76); }
body:not(.aopc-active) #checkout .checkout-steps .step-current .step-text { color:var(--atelier-color-ink,#252c34); }
body:not(.aopc-active) #checkout .checkout-steps .step-active .badge { background:var(--atelier-primary,var(--atelier-color-accent,#b32932)); color:#fff; }
body:not(.aopc-active) #checkout .card { border:1px solid var(--atelier-color-border,#e1e5e9); border-radius:8px; background:var(--atelier-color-surface,#fff); box-shadow:0 2px 12px rgba(30,40,50,.04); overflow:visible; }
body:not(.aopc-active) #checkout .card-header { background:var(--atelier-color-soft,#f6f7f8); border-bottom:1px solid var(--atelier-color-border,#e1e5e9); border-radius:8px 8px 0 0; padding:16px 18px; }
body:not(.aopc-active) #checkout .card-body { padding:20px 18px; }
body:not(.aopc-active) #checkout .form-control { border-color:#cbd2d8; border-radius:5px; min-height:42px; }
body:not(.aopc-active) #checkout textarea.form-control { min-height:90px; }
body:not(.aopc-active) #checkout .form-control:focus { border-color:var(--atelier-primary,var(--atelier-color-accent,#b32932)); box-shadow:0 0 0 3px rgba(179,41,50,.12); }
body:not(.aopc-active) #checkout .checkout-shipping-form-options,
body:not(.aopc-active) #checkout #fieldset-payment { margin-bottom:24px; }
body:not(.aopc-active) #checkout .checkout-payment-method { border:1px solid var(--atelier-color-border,#e1e5e9); border-radius:6px; margin-bottom:8px; background:var(--atelier-color-surface,#fff); }
body:not(.aopc-active) #checkout .checkout-payment-method:has(input[name="Zahlungsart"]:checked) { background:var(--atelier-color-soft,#f3f5f6); border-color:#cbd2d8; }
body:not(.aopc-active) #checkout .checkout-confirmation .card { height:calc(100% - 16px); margin-bottom:16px; }
body:not(.aopc-active) #checkout .checkout-button-row .btn-primary,
body:not(.aopc-active) #checkout #complete-order-button { background:var(--atelier-primary,var(--atelier-color-accent,#b32932)); border-color:var(--atelier-primary,var(--atelier-color-accent,#b32932)); color:#fff; min-height:44px; font-weight:700; }
body:not(.aopc-active) #checkout .btn-link,
body:not(.aopc-active) #checkout .checkout-confirmation-change { color:var(--atelier-primary,var(--atelier-color-accent,#b32932)); }
body:not(.aopc-active) #checkout input[type="radio"],
body:not(.aopc-active) #checkout input[type="checkbox"] { accent-color:var(--atelier-primary,var(--atelier-color-accent,#b32932)); }
/* The native payment-module output remains visible and in its original order. */
.order-completed { max-width:1440px; margin:0 auto 56px; color:var(--atelier-color-ink,#29313a); }
.order-completed #order-confirmation { border:1px solid #dce5df; border-radius:8px; background:#f6faf7; box-shadow:0 2px 12px rgba(30,40,50,.04); margin:0 0 24px; }
.order-completed #order-confirmation .card-body { padding:24px; }
.order-completed .order-confirmation-note { color:#273b2d; font-size:1.05rem; font-weight:600; }
.order-completed .order-confirmation-details { margin:18px 0 0; line-height:1.8; }
.order-completed a.btn-primary { background:var(--atelier-primary,var(--atelier-color-accent,#b32932)); border-color:var(--atelier-primary,var(--atelier-color-accent,#b32932)); color:#fff; min-height:44px; font-weight:700; }
@media (max-width:767.98px) {
 body:not(.aopc-active) #checkout { padding-top:16px; padding-bottom:36px; }
 body:not(.aopc-active) #checkout .checkout-steps { padding:12px; margin-bottom:24px; }
 body:not(.aopc-active) #checkout .card-body { padding:16px; }
 .order-completed { margin-bottom:36px; }
 .order-completed #order-confirmation .card-body { padding:18px; }
}

/* Ruhige Fortschrittsanzeige und zusammenhängende Auswahl im JTL-Checkout. */
body:not(.aopc-active) #checkout .checkout-steps { display:flex; align-items:stretch; flex-wrap:nowrap; gap:0; padding:0; overflow:hidden; }
body:not(.aopc-active) #checkout .checkout-steps .step { flex:1 1 0; min-width:0; max-width:none; padding:12px 16px; background:transparent; }
body:not(.aopc-active) #checkout .checkout-steps .step::before,
body:not(.aopc-active) #checkout .checkout-steps .step::after,
body:not(.aopc-active) #checkout .checkout-steps .step-content::after { display:none; }
body:not(.aopc-active) #checkout .checkout-steps .step + .step { border-left:1px solid var(--atelier-color-border,#e1e5e9); }
body:not(.aopc-active) #checkout .checkout-steps .step-current { background:var(--atelier-color-surface,#fff); box-shadow:inset 0 -3px var(--atelier-primary,var(--atelier-color-accent,#b32932)); }
body:not(.aopc-active) #checkout .checkout-steps .step .step-content { min-height:40px; }
body:not(.aopc-active) #checkout .checkout-shipping-form { width:100%; max-width:960px; }
body:not(.aopc-active) #checkout .checkout-shipping-form fieldset { margin:0 0 28px; padding:20px; border:1px solid var(--atelier-color-border,#e1e5e9); border-radius:8px; background:var(--atelier-color-surface,#fff); }
body:not(.aopc-active) #checkout .checkout-shipping-form fieldset > .h2 { font-size:1.25rem; line-height:1.3; margin:0 0 12px; }
body:not(.aopc-active) #checkout .checkout-shipping-form-change { color:var(--atelier-color-muted,#626c75); font-size:.9rem; margin-bottom:16px; }
body:not(.aopc-active) #checkout .checkout-shipping-form fieldset > hr { margin:0 0 14px; border-color:#e7eaed; }
body:not(.aopc-active) #checkout .checkout-shipping-form-options { margin:0; }
body:not(.aopc-active) #checkout .checkout-shipping-form-options .custom-radio { padding:0; border:1px solid var(--atelier-color-border,#dce2e6); background:var(--atelier-color-soft,#f7f8f9); }
body:not(.aopc-active) #checkout .checkout-shipping-form-options .custom-radio + .custom-radio { margin-top:-1px; }
body:not(.aopc-active) #checkout .checkout-shipping-form-options .custom-radio:first-child { border-radius:6px 6px 0 0; }
body:not(.aopc-active) #checkout .checkout-shipping-form-options .custom-radio:last-child { border-radius:0 0 6px 6px; }
body:not(.aopc-active) #checkout .checkout-shipping-form-options .custom-radio:only-child { border-radius:6px; }
body:not(.aopc-active) #checkout .checkout-shipping-form-options .custom-radio:has(>input:checked) { background:#e9eff3; }
body:not(.aopc-active) #checkout .checkout-shipping-form-options .custom-radio > label { display:block; width:100%; min-height:54px; padding:15px 16px 15px 44px; margin:0; cursor:pointer; }
body:not(.aopc-active) #checkout .checkout-shipping-form-options .custom-radio > label:before,
body:not(.aopc-active) #checkout .checkout-shipping-form-options .custom-radio > label:after { left:16px; top:50%; transform:translateY(-50%); }
body:not(.aopc-active) #checkout #fieldset-payment .checkout-payment-options { display:block; margin:0; }
body:not(.aopc-active) #checkout #fieldset-payment .checkout-payment-options > [role="group"] { display:block; width:100%; max-width:none; }
body:not(.aopc-active) #checkout #fieldset-payment .checkout-payment-method { display:block; width:100%; max-width:none; margin:0; padding:0; border:0; border-radius:0; background:transparent; }
body:not(.aopc-active) #checkout #fieldset-payment .checkout-payment-method > .custom-radio { width:100%; padding:0; margin:0; border:1px solid var(--atelier-color-border,#dce2e6); background:var(--atelier-color-soft,#f7f8f9); }
body:not(.aopc-active) #checkout #fieldset-payment .checkout-payment-method + .checkout-payment-method > .custom-radio { margin-top:-1px; }
body:not(.aopc-active) #checkout #fieldset-payment .checkout-payment-method:first-child > .custom-radio { border-radius:6px 6px 0 0; }
body:not(.aopc-active) #checkout #fieldset-payment .checkout-payment-method:last-child > .custom-radio { border-radius:0 0 6px 6px; }
body:not(.aopc-active) #checkout #fieldset-payment .checkout-payment-method:only-child > .custom-radio { border-radius:6px; }
body:not(.aopc-active) #checkout #fieldset-payment .checkout-payment-method > .custom-radio:has(>input:checked) { background:#e9eff3; }
body:not(.aopc-active) #checkout #fieldset-payment .custom-radio > label { display:block; width:100%; min-height:54px; padding:14px 16px 14px 44px; margin:0; cursor:pointer; font-weight:600; }
body:not(.aopc-active) #checkout #fieldset-payment .custom-radio > label:before,
body:not(.aopc-active) #checkout #fieldset-payment .custom-radio > label:after { left:16px; top:19px; }
body:not(.aopc-active) #checkout #fieldset-payment .custom-radio img { max-height:28px; width:auto; object-fit:contain; }
body:not(.aopc-active) #checkout #fieldset-payment .checkout-payment-method-note { font-weight:400; line-height:1.45; }
@media(max-width:767.98px){
 body:not(.aopc-active) #checkout .checkout-steps .step { padding:10px 8px; }
 body:not(.aopc-active) #checkout .checkout-steps .step .step-content { gap:5px; }
 body:not(.aopc-active) #checkout .checkout-steps .step-text { font-size:.75rem; }
 body:not(.aopc-active) #checkout .checkout-shipping-form fieldset { padding:16px; }
 body:not(.aopc-active) #checkout .checkout-shipping-form-options .custom-radio > label { padding:12px 12px 12px 40px; }
}

/* Dezenter Seitenhintergrund und kompaktere Bestellzusammenfassung. */
body:not(.aopc-active) #content-wrapper:has(#checkout):not(:has(#aopc-root)) { background:var(--atelier-color-page,#edf0f2); }
body:not(.aopc-active) #checkout .card,
body:not(.aopc-active) #checkout .checkout-shipping-form fieldset { background:#fafbfc; box-shadow:none; }
body:not(.aopc-active) #checkout .checkout-confirmation { max-width:1160px; margin:0 auto; }
body:not(.aopc-active) #checkout .checkout-confirmation > h1 { margin:0 0 20px; font-size:clamp(1.5rem,2vw,1.8rem); font-weight:700; }
body:not(.aopc-active) #checkout .checkout-confirmation .card-header { padding:12px 16px; background:var(--atelier-color-soft,#e8ecef); }
body:not(.aopc-active) #checkout .checkout-confirmation .card-body { padding:14px 16px; }
body:not(.aopc-active) #checkout .checkout-confirmation .card .checkout-confirmation-heading { font-size:1rem; font-weight:700; }
body:not(.aopc-active) #checkout .checkout-confirmation .card-body p { margin-bottom:8px; }
body:not(.aopc-active) #checkout .checkout-confirmation .card-body p:last-child { margin-bottom:0; }
body:not(.aopc-active) #checkout .checkout-confirmation .checkout-confirmation-pre-form-hr { margin:20px 0; }
body:not(.aopc-active) #checkout .checkout-confirmation .checkout-confirmation-legal-notice { margin:14px 0; }
body:not(.aopc-active) #checkout #complete_order > hr { margin:14px 0; border-color:#d8dfe3; }
body:not(.aopc-active) #checkout .checkout-confirmation .checkout-confirmation-items .card-header { padding:8px 16px; }
body:not(.aopc-active) #checkout .checkout-confirmation .checkout-confirmation-items .card-body { margin-top:0; padding:14px 16px; }
body:not(.aopc-active) #checkout .checkout-items-item-image-wrapper img { max-width:90px; max-height:90px; height:auto; object-fit:contain; }
body:not(.aopc-active) #checkout .checkout-items-item-image-wrapper a { display:flex; justify-content:center; }
body:not(.aopc-active) #checkout .checkout-items-header-hr { margin:10px 0; }
body:not(.aopc-active) #checkout .checkout-items-item { align-items:flex-start; }
body:not(.aopc-active) #checkout .checkout-items-total { padding-top:12px; padding-bottom:4px; }
body:not(.aopc-active) #checkout .checkout-confirmation-comment { background:transparent; min-height:70px; }
@media(max-width:767.98px){
 body:not(.aopc-active) #checkout .checkout-confirmation .card-header { padding:12px 14px; }
 body:not(.aopc-active) #checkout .checkout-confirmation .card-body { padding:14px; }
 body:not(.aopc-active) #checkout .checkout-items-item-image-wrapper img { max-width:72px; max-height:72px; }
}

/* Einheitliche mittige Inhaltsbreite für Versand, Zahlung und Zusammenfassung. */
body:not(.aopc-active) #checkout:has(.checkout-shipping-form) > h1 { max-width:1160px; margin-left:auto; margin-right:auto; }
body:not(.aopc-active) #checkout > .row:has(.checkout-shipping-form) > .col-lg-9 { flex:0 0 100%; width:100%; max-width:1190px; margin-left:auto; margin-right:auto; }
body:not(.aopc-active) #checkout .checkout-shipping-form { max-width:1160px; margin-left:auto; margin-right:auto; }
@media(max-width:767.98px){body:not(.aopc-active) #checkout > .row:has(.checkout-shipping-form) > .col-lg-9 { max-width:100%; }}

body.is-checkout:not(.aopc-active) #jtl-nav-wrapper #logo .navbar-brand {
    padding-block: 0;
}
body.is-checkout:not(.aopc-active) #jtl-nav-wrapper #logo img {
    max-height: 44px;
    max-width: min(200px, 46vw);
    width: auto;
    height: auto;
    object-fit: contain;
}

body.is-checkout:not(.aopc-active) #jtl-nav-wrapper .toggler-logo-wrapper {
    display: flex;
    align-items: center;
    align-self: stretch;
}
body.is-checkout:not(.aopc-active) #jtl-nav-wrapper #logo .navbar-brand {
    display: flex;
    align-items: center;
}
body.is-checkout:not(.aopc-active) #complete_order input.atelier-consent-invalid {
    outline: 2px solid #b42318;
    outline-offset: 2px;
}
body.is-checkout:not(.aopc-active) #complete_order .atelier-consent-error {
    color: #b42318;
    font-weight: 600;
    margin: .4rem 0 .6rem;
}

/* Put the NOVA logo back in flow within the compact checkout header. */
body.is-checkout:not(.aopc-active) #jtl-nav-wrapper:not(.full-width-mega) {
    height: auto;
}
body.is-checkout:not(.aopc-active) #jtl-nav-wrapper:not(.full-width-mega) > :is(.container, .container-fluid) {
    display: flex;
    align-items: center;
    gap: clamp(.5rem, 3vw, 2rem);
    min-height: 64px;
    padding-block: 8px;
}
body.is-checkout:not(.aopc-active) #jtl-nav-wrapper:not(.full-width-mega) .toggler-logo-wrapper {
    position: static;
    float: none;
    align-self: center;
    flex: 0 0 auto;
    margin-block: 0;
}
body.is-checkout:not(.aopc-active) #jtl-nav-wrapper:not(.full-width-mega) :is(#logo, .navbar-brand) {
    float: none;
    margin-block: 0;
}
body.is-checkout:not(.aopc-active) #jtl-nav-wrapper:not(.full-width-mega) .navbar {
    height: auto;
    min-height: 0;
    padding-block: 0;
    flex: 1 1 auto;
}

/* The single-row header has its own NOVA height and spacing rules. */
body.is-checkout:not(.aopc-active) #jtl-nav-wrapper.full-width-mega {
    height: auto;
}
body.is-checkout:not(.aopc-active) #jtl-nav-wrapper.full-width-mega .navbar:has(.secure-checkout-icon) {
    height: auto;
    min-height: 64px;
    padding-block: 8px;
    align-items: center !important;
}
body.is-checkout:not(.aopc-active) #jtl-nav-wrapper.full-width-mega :is(.nav-logo-wrapper, .toggler-logo-wrapper, #logo, .secure-checkout-icon) {
    align-self: center;
    margin-block: 0;
    padding-block: 0;
}
