/**
 * Gemeinsamer Checkout-Wizard (Online-Shop /menu + Tisch /inhouse-order).
 * Dark-Mode und Checkout-Fokus wie food-menu.php zuvor inline.
 */
.iro-online-shop-page .iro-checkout-wizard {
    display: grid;
    gap: 24px;
}
.iro-online-shop-page .iro-checkout-stepper {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: 1px solid rgba(15,23,42,0.1);
    padding-bottom: 16px;
    margin-bottom: 8px;
}
.iro-online-shop-page .iro-checkout-step {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 8px;
    background: transparent;
    color: #94a3b8;
    transition: all 0.2s ease;
}
.iro-online-shop-page .iro-checkout-step.is-active {
    color: #0f172a;
    background: rgba(15,23,42,0.04);
}
.iro-online-shop-page .iro-checkout-step.is-done {
    color: #475569;
}
.iro-online-shop-page .iro-checkout-step__index {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid currentColor;
    background: transparent;
}
.iro-online-shop-page .iro-checkout-step.is-active .iro-checkout-step__index {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}
.iro-online-shop-page .iro-checkout-step__label {
    font-weight: 600;
    font-size: 0.9rem;
}
.iro-online-shop-page .iro-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(320px, .9fr);
    gap: 18px;
    align-items: start;
}
.iro-inhouse-checkout-wizard .iro-checkout-layout {
    grid-template-columns: 1fr;
}
.iro-online-shop-page .iro-checkout-main,
.iro-online-shop-page .iro-checkout-side {
    display: grid;
    gap: 18px;
}
.iro-online-shop-page .iro-checkout-panel,
.iro-online-shop-page .iro-checkout-side-card,
.iro-online-shop-page .iro-checkout-review-card {
    background: #fff;
    border: 1px solid rgba(15,23,42,0.1);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(15,23,42,0.03);
}
.iro-online-shop-page .iro-checkout-panels-viewport {
    overflow: hidden;
    width: 100%;
    position: relative;
    touch-action: pan-y;
}
.iro-online-shop-page .iro-checkout-panels-track {
    display: flex;
    width: 400%;
    will-change: transform;
    transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1);
}
/* Tischbestellung: 3 Schritte (Warenkorb → Zahlung → Bestellen) */
#checkout-wizard.iro-inhouse-checkout-wizard .iro-checkout-panels-track {
    width: 300%;
}
#checkout-wizard.iro-inhouse-checkout-wizard .iro-checkout-panels-track .iro-checkout-panel {
    flex: 0 0 33.333333%;
    width: 33.333333%;
    max-width: 33.333333%;
}
.iro-online-shop-page .iro-checkout-panels-track .iro-checkout-panel {
    flex: 0 0 25%;
    width: 25%;
    max-width: 25%;
    box-sizing: border-box;
    display: block !important;
    padding: 22px;
}
.iro-online-shop-page .iro-checkout-panels-track .iro-checkout-panel[aria-hidden="true"] {
    visibility: hidden;
    pointer-events: none;
}
.iro-online-shop-page .iro-checkout-panel__header p,
.iro-online-shop-page .iro-checkout-review-card p {
    color: #475569;
}
.iro-online-shop-page .iro-checkout-panel__eyebrow {
    display: inline-block;
    margin-bottom: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #64748b;
}
.iro-online-shop-page .iro-checkout-panel__actions {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 20px;
}
.iro-online-shop-page .iro-form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}
.iro-online-shop-page .iro-form-group {
    margin-bottom: 16px;
}
.iro-online-shop-page .iro-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #334155;
}
.iro-online-shop-page .iro-form-group input[type="text"],
.iro-online-shop-page .iro-form-group input[type="email"],
.iro-online-shop-page .iro-form-group input[type="tel"],
.iro-online-shop-page .iro-form-group input[type="password"],
.iro-online-shop-page .iro-form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(15,23,42,0.15);
    border-radius: 8px;
    background: #fff;
    font-family: inherit;
    font-size: 1rem;
    color: #0f172a;
    box-sizing: border-box;
    transition: all 0.2s ease;
}
.iro-online-shop-page .iro-form-group input:focus,
.iro-online-shop-page .iro-form-group textarea:focus {
    outline: none;
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15,23,42,0.05);
}
.iro-online-shop-page .iro-button-primary,
.iro-online-shop-page .iro-button-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}
.iro-online-shop-page .iro-button-primary {
    background: #0f172a;
    color: #fff;
}
.iro-online-shop-page .iro-button-primary:hover {
    background: #1e293b;
}
.iro-online-shop-page .iro-button-secondary {
    background: rgba(15,23,42,0.05);
    color: #334155;
}
.iro-online-shop-page .iro-button-secondary:hover {
    background: rgba(15,23,42,0.1);
    color: #0f172a;
}
.iro-online-shop-page .iro-checkout-choice-grid,
.iro-online-shop-page .iro-checkout-review-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
}
.iro-online-shop-page .iro-checkout-choice-card {
    position: relative;
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(15,23,42,0.15);
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}
.iro-online-shop-page .iro-checkout-choice-card input {
    position: absolute;
    inset: 16px 16px auto auto;
}
.iro-online-shop-page .iro-checkout-choice-card.is-selected {
    border-color: #0f172a;
    box-shadow: 0 4px 12px rgba(15,23,42,0.06);
}
.iro-online-shop-page .iro-checkout-choice-card.is-disabled {
    opacity: .62;
}
.iro-online-shop-page .iro-checkout-choice-card__title {
    font-weight: 800;
    color: #0f172a;
}
.iro-online-shop-page .iro-checkout-choice-card__text {
    color: #64748b;
}
.iro-online-shop-page .iro-checkout-side-card {
    padding: 18px;
}
.iro-online-shop-page .iro-checkout-review-card {
    padding: 16px;
}
.iro-online-shop-page .iro-checkout-summary-card > div,
.iro-online-shop-page .iro-checkout-summary-card h4 {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}
.iro-online-shop-page .iro-checkout-summary-card > div {
    margin-bottom: 10px;
}
.iro-online-shop-page .iro-checkout-summary-card h4 {
    margin-top: 16px;
}
.iro-online-shop-page .iro-checkout-status {
    padding: 12px 16px;
    border-radius: 8px;
    background: rgba(15,23,42,0.04);
    color: #0f172a;
    font-size: 0.95rem;
}
.iro-online-shop-page .iro-checkout-status.is-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.iro-online-shop-page .iro-inline-error {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
@media (max-width: 980px) {
    .iro-online-shop-page .iro-checkout-stepper,
    .iro-online-shop-page .iro-checkout-layout {
        grid-template-columns: 1fr;
    }
    .iro-online-shop-page .iro-form-row-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .iro-online-shop-page .iro-checkout-panel__actions {
        flex-direction: column;
    }
}
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-checkout-panel,
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-checkout-side-card,
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-checkout-review-card,
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-checkout-choice-card {
    background: #232f46;
    border-color: rgba(255,255,255,0.12);
    box-shadow: none;
}
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-checkout-step {
    color: #64748b;
}
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-checkout-step.is-active {
    color: #f8fafc;
    background: rgba(255,255,255,0.06);
}
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-checkout-step.is-done {
    color: #94a3b8;
}
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-checkout-step.is-active .iro-checkout-step__index {
    background: #f8fafc;
    color: #0f172a;
    border-color: #f8fafc;
}
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-checkout-choice-card.is-selected {
    border-color: #f8fafc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-checkout-step__label,
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-checkout-choice-card__title {
    color: #f8fafc;
}
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-checkout-panel__header p,
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-checkout-review-card p,
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-checkout-choice-card__text {
    color: #94a3b8;
}
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-checkout-status {
    background: rgba(255,255,255,0.06);
    color: #f8fafc;
}
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-checkout-status.is-error,
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-inline-error {
    background: rgba(239,68,68,0.1);
    color: #fca5a5;
    border-color: rgba(239,68,68,0.3);
}
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-form-group label {
    color: #cbd5e1;
}
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-form-group input[type="text"],
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-form-group input[type="email"],
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-form-group input[type="tel"],
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-form-group input[type="password"],
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-form-group textarea {
    background: rgba(15, 23, 42, 0.45);
    border-color: rgba(255, 255, 255, 0.2);
    color: #f8fafc;
}
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-form-group input:focus,
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-form-group input:focus-visible,
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-form-group textarea:focus,
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-form-group textarea:focus-visible {
    outline: none;
    border-color: var(--lp-ai-blue, #3b82f6);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.35);
}
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-button-primary {
    background: #f8fafc;
    color: #0f172a;
}
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-button-primary:hover {
    background: #e2e8f0;
}
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-button-secondary {
    background: rgba(255,255,255,0.1);
    color: #f8fafc;
}
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-button-secondary:hover {
    background: rgba(255,255,255,0.15);
    color: #fff;
}

body.checkout-active .iro-online-shop-page #im-header-and-accordion-wrapper {
    display: none !important;
}
body.checkout-active .hero-section {
    display: none !important;
}
body.checkout-active .iro-online-shop-page #checkout-wizard {
    margin-top: 0;
    scroll-margin-top: 80px;
    padding-bottom: max(96px, calc(88px + env(safe-area-inset-bottom, 0px)));
}
body.checkout-active .iro-bottom-cart-btn.is-checkout-hub {
    max-width: min(400px, 100%) !important;
}
body.checkout-active .iro-checkout-action-bar .iro-bottom-cart-btn.is-checkout-hub {
    max-width: none !important;
}
body.checkout-active .iro-bottom-cart-btn.is-checkout-final {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.32), 0 14px 40px rgba(0, 0, 0, 0.35) !important;
}
body.checkout-active .iro-bottom-cart-btn.is-checkout-final:hover:not(.is-sending) {
    transform: none !important;
    filter: none !important;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.36),
        0 14px 44px rgba(0, 0, 0, 0.38),
        0 0 24px rgba(15, 217, 110, 0.32),
        0 0 30px rgba(21, 179, 90, 0.22) !important;
}
body.checkout-active .iro-bottom-cart-btn.is-checkout-final:focus-visible:not(.is-sending) {
    transform: none !important;
    filter: none !important;
    outline: none !important;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.38),
        0 14px 44px rgba(0, 0, 0, 0.38),
        0 0 0 3px rgba(21, 179, 90, 0.45),
        0 0 24px rgba(15, 217, 110, 0.32),
        0 0 30px rgba(21, 179, 90, 0.22) !important;
}
.iro-online-shop-page .iro-checkout-panel__actions--secondary-only:empty {
    display: none;
    margin: 0;
    padding: 0;
    min-height: 0;
}

/* Höhere Spezifität als .iro-form-group label { display:block } — sonst stapelt sich alles vertikal */
.iro-online-shop-page .iro-form-group label.iro-checkout-account-toggle {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 12px;
    margin-bottom: 0;
    cursor: pointer;
    user-select: none;
    position: relative;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}
.iro-online-shop-page .iro-checkout-account-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
.iro-online-shop-page .iro-checkout-account-toggle__box {
    flex: 0 0 22px;
    width: 22px;
    height: 22px;
    margin-top: 1px;
    flex: 0 0 22px;
    border-radius: 6px;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.iro-online-shop-page .iro-checkout-account-toggle__box::after {
    content: "";
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2.5px 2.5px 0;
    transform: rotate(45deg) scale(0.9);
    opacity: 0;
    transform-origin: 60% 60%;
    transition: transform 0.16s ease-in-out, opacity 0.16s ease-in-out;
}
.iro-online-shop-page .iro-checkout-account-toggle input[type="checkbox"]:checked + .iro-checkout-account-toggle__box {
    background: #0f172a;
    border-color: #0f172a;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.3);
}
.iro-online-shop-page .iro-checkout-account-toggle input[type="checkbox"]:checked + .iro-checkout-account-toggle__box::after {
    transform: rotate(45deg) scale(1);
    opacity: 1;
}
.iro-online-shop-page .iro-checkout-account-toggle:hover .iro-checkout-account-toggle__box {
    border-color: #0f172a;
}
.iro-online-shop-page .iro-checkout-account-toggle input[type="checkbox"]:focus-visible + .iro-checkout-account-toggle__box {
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.2);
}
.iro-online-shop-page .iro-checkout-account-toggle__title {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    white-space: nowrap;
    line-height: 1.2;
}
.iro-online-shop-page .iro-checkout-account-toggle__hint,
.iro-online-shop-page .iro-checkout-account-password-hint {
    color: #64748b;
    font-size: 0.875rem;
}
.iro-online-shop-page .iro-checkout-account-toggle__hint {
    margin: 8px 0 0 34px;
    line-height: 1.4;
}
.iro-online-shop-page .iro-checkout-account-password-hint {
    margin: 8px 0 0;
}
.iro-online-shop-page .iro-checkout-password-field-wrap {
    position: relative;
}
.iro-online-shop-page .iro-checkout-password-field-wrap input[type="password"],
.iro-online-shop-page .iro-checkout-password-field-wrap input[type="text"] {
    padding-right: 46px;
}
.iro-online-shop-page .iro-checkout-password-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    line-height: 1;
}
.iro-online-shop-page .iro-checkout-password-toggle .iro-password-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.iro-online-shop-page .iro-checkout-password-toggle .iro-password-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}
.iro-online-shop-page .iro-checkout-password-toggle .iro-password-icon--hide {
    display: none;
}
.iro-online-shop-page .iro-checkout-password-toggle.is-visible .iro-password-icon--show {
    display: none;
}
.iro-online-shop-page .iro-checkout-password-toggle.is-visible .iro-password-icon--hide {
    display: inline-flex;
}
.iro-online-shop-page .iro-checkout-password-toggle:hover {
    background: rgba(15, 23, 42, 0.06);
    color: #0f172a;
}
.iro-online-shop-page .iro-checkout-password-toggle:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.15);
}

html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-checkout-account-toggle input[type="checkbox"] {
    background: transparent;
    border-color: transparent;
}
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-checkout-account-toggle__box {
    background: #fff;
    border-color: rgba(255,255,255,0.6);
}
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-checkout-account-toggle input[type="checkbox"]:checked + .iro-checkout-account-toggle__box {
    background: #0f172a;
    border-color: #0f172a;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.45);
}
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-checkout-account-toggle:hover .iro-checkout-account-toggle__box {
    border-color: #0f172a;
}
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-checkout-account-toggle input[type="checkbox"]:focus-visible + .iro-checkout-account-toggle__box {
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.35);
}
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-checkout-account-toggle__hint,
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-checkout-account-password-hint {
    color: #94a3b8;
}
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-checkout-password-toggle {
    color: #94a3b8;
}
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-checkout-password-toggle:hover {
    background: rgba(148, 163, 184, 0.16);
    color: #f8fafc;
}
html[data-lp-color-scheme="dark"] .iro-online-shop-page .iro-checkout-password-toggle:focus-visible {
    box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.28);
}
