/* Pilzbox Order — Form Three. Six-step flow with a live "Deine Auswahl"
   summary sidebar (steps 1–4) that becomes the checkout card on step 5.
   Dark navy theme, yellow accent — mirrors zp-f1/zp-f2 conventions. */

.zp-f3 {
    position: relative;
    box-sizing: border-box;
    color: #fff;
    font-family: "Inter", sans-serif;
}

.zp-f3 *,
.zp-f3 *::before,
.zp-f3 *::after {
    box-sizing: border-box;
}

/* ---- Submit overlay + spinner ---- */
.zp-f3-submit-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: rgba(13, 14, 52, 0.9);
    border-radius: inherit;
    text-align: center;
    padding: 24px;
}

.zp-f3-submit-overlay[hidden] {
    display: none;
}

.zp-f3-submit-spinner {
    width: 48px;
    height: 48px;
    border: 5px solid rgba(255, 255, 255, 0.22);
    border-top-color: #ff7a1a;
    border-radius: 50%;
    animation: zp-f3-spin 0.8s linear infinite;
}

.zp-f3-submit-overlay-text {
    font-size: 18px;
    font-weight: 800;
}

@keyframes zp-f3-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .zp-f3-submit-spinner {
        animation-duration: 1.8s;
    }
}

/* ---- Progress tabs ---- */
.zp-f3-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
    margin-bottom: 28px;
}

.zp-f3 .zp-f3-tab {
    appearance: none;
    border: none;
    cursor: default;
    padding: 10px 16px;
    border-radius: 999px !important;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08) !important;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.zp-f3-tab.is-done {
    cursor: pointer;
    background: rgba(255, 210, 0, 0.85) !important;
    color: #141644;
}

.zp-f3-tab.is-active {
    background: #ffd200 !important;
    color: #141644;
}

/* Keep reached and unreached non-active tabs unchanged while they are
   hovered, focused, or pressed. The site theme has broad button state rules
   that otherwise alter their text colour. */
.zp-f3 .zp-f3-tab:not(.is-active):not(.is-done),
.zp-f3 .zp-f3-tab:not(.is-active):not(.is-done):hover,
.zp-f3 .zp-f3-tab:not(.is-active):not(.is-done):focus,
.zp-f3 .zp-f3-tab:not(.is-active):not(.is-done):active {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
}

.zp-f3 .zp-f3-tab.is-done:not(.is-active),
.zp-f3 .zp-f3-tab.is-done:not(.is-active):hover,
.zp-f3 .zp-f3-tab.is-done:not(.is-active):focus,
.zp-f3 .zp-f3-tab.is-done:not(.is-active):active {
    background-color: rgba(255, 210, 0, 0.85) !important;
    color: #141644 !important;
}

/* ---- Layout ---- */
.zp-f3-body {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

.zp-f3-body:has(.zp-f3-sidebar:not([hidden])) {
    grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr);
}

.zp-f3-heading {
    font-size: var(--fs-headline-h1, clamp(2.38rem, calc(2.015rem + 1.8vw), 3.5rem));
    line-height: 120%;
    font-weight: 900 !important;
    margin: 0 0 22px;
}

.zp-f3-heading--center {
    text-align: center;
}

/* Only the active step shows. */
.zp-f3-step {
    display: none;
}
.zp-f3-step.zp-f3-step--active {
    display: block;
}

/* The callback view keeps Form Three's product/editor vocabulary while
   temporarily replacing the six-step workspace. */
.zp-f3-payment-return {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    min-height: 360px;
    justify-content: center;
    padding: clamp(30px, 6vw, 72px) clamp(22px, 6vw, 72px);
    text-align: center;
}

.zp-f3-payment-return[hidden] {
    display: none;
}

.zp-f3-payment-return [data-zp-payment-retry][hidden] {
    display: none !important;
}

.zp-f3-payment-return-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.25);
    border-top-color: #ffd200;
    border-radius: 50%;
    animation: zp-f3-payment-return-spin 0.8s linear infinite;
}

.zp-f3-payment-return .zp-f3-heading,
.zp-f3-payment-return-message {
    margin: 0;
}

.zp-f3-payment-return-message {
    max-width: 52ch;
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    line-height: 1.5;
}

@keyframes zp-f3-payment-return-spin {
    to { transform: rotate(360deg); }
}

.zp-f3-payment-return[data-zp-payment-state="paid"] {
    border-color: rgba(255, 210, 0, 0.85);
}

.zp-f3-payment-return[data-zp-payment-state="failed"],
.zp-f3-payment-return[data-zp-payment-state="cancelled"],
.zp-f3-payment-return[data-zp-payment-state="error"] {
    border-color: rgba(245, 124, 31, 0.85);
}

.zp-f3[data-zp-payment-return-active="1"] > .zp-f3-tabs,
.zp-f3[data-zp-payment-return-active="1"] > .zp-f3-body,
.zp-f3[data-zp-payment-return-active="1"] > .zp-f3-lightbox,
.zp-f3[data-zp-payment-return-active="1"] > .zp-f3-submit-overlay {
    display: none !important;
}

.zp-f3-panel {
    background: #0d0e34;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 18px;
}

.zp-f3-panel-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.zp-f3-panel-eyebrow {
    display: block;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    color: #eaeef5;
}

.zp-f3-panel-label {
    display: block;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.3;
    color: #fff;
}

.zp-f3-gameboard-panel-label {
    display: block;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1;
    color: #eaeef5;
}

.zp-f3-note {
    font-size: 13px;
    opacity: 0.8;
    margin: 12px 0 0;
    text-align: center;
}

/* ---- Step 1: products ---- */
/* Shared product preview image — mobile only (see mobile media query). */
.zp-f3-product-preview {
    display: none;
}

.zp-f3-products {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.zp-f3 .zp-f3-product {
    display: flex;
    flex-direction: column;
    border: 2px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 16px !important;
    align-items: stretch;
    text-align: left;
    padding: 0;
    overflow: hidden;
    background: none !important;
    box-shadow: 4px 4px 12px 4px rgba(0, 0, 0, 0.1);
    color: #fff;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.zp-f3-product.is-selected {
    border-color: #ffd200 !important;
}

.zp-f3-product-media {
    display: block;
    background: #171947;
}

.zp-f3-product-img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 6px 8px 16px rgba(0, 0, 0, 0.25);
}

.zp-f3-product-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 12px 18px 20px;
}

.zp-f3-product-titlerow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.zp-f3-product-name {
    font-size: 22px;
    font-weight: 900;
    line-height: 1.2;
    color: #fff !important;
}

.zp-f3 .zp-f3-product-name:hover,
.zp-f3 .zp-f3-product-name:focus,
.zp-f3 .zp-f3-product-name:active,
.zp-f3 .zp-f3-product:hover .zp-f3-product-name,
.zp-f3 .zp-f3-product:focus .zp-f3-product-name,
.zp-f3 .zp-f3-product:active .zp-f3-product-name {
    color: #fff !important;
}

.zp-f3-product-badge {
    flex-shrink: 0;
    background: #ffd200;
    color: #0d0e34;
    font-size: 8px;
    font-weight: 700;
    line-height: 1em;
    padding: 8px 12px;
    border-radius: 999px;
    white-space: nowrap;
}

.zp-f3-product-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.18);
}

.zp-f3-product-tagline {
    font-size: 15px;
    line-height: 1.5;
    color: #fff;
    opacity: 0.9;
    text-wrap: auto;
}

.zp-f3-product-price-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.zp-f3-price-summary {
    display: flex;
    width: 100%;
    height: 41px;
    flex-direction: column;
    align-items: center;
}

.zp-f3-price-summary-inner {
    display: flex;
    width: max-content;
    max-width: 100%;
    height: 41px;
    flex-direction: column;
    align-items: flex-end;
}

.zp-f3-price {
    display: flex;
    width: max-content;
    height: 31px;
    align-items: center;
    justify-content: flex-end;
    gap: 1px;
    font-size: 24px;
    font-weight: 900;
    color: #ffd200;
    line-height: 1.3;
}

.zp-f3-price-dec {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 10px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.5;
}

.zp-f3-compare {
    display: flex;
    width: min-content;
    height: 10px;
    align-items: center;
    justify-content: flex-end;
    gap: 2px;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    line-height: 1.03;
    white-space: nowrap;
}

.zp-f3-compare-price {
    position: relative;
    display: grid;
    width: min-content;
    height: 10px;
    place-items: start;
    line-height: 0;
}

.zp-f3-compare-price-value {
    grid-area: 1 / 1;
    font-size: 8px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
}

.zp-f3-compare-strike {
    grid-area: 1 / 1;
    width: 23.2524px;
    height: 6.96762px;
    max-width: none;
    margin: 2px 0 0 2px;
}

.zp-f3-product-shipping {
    display: flex;
    min-width: 112px;
    height: 18px;
    align-items: center;
    justify-content: center;
    background: #2fbf71;
    color: #0d0e34;
    font-size: 10px;
    font-weight: 400;
    padding: 0 10px;
    border-radius: 999px;
    line-height: 1.03;
    white-space: nowrap;
}

/* ---- Step 2: design ---- */
.zp-f3-design-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(220px, 1fr);
    gap: 20px;
    align-items: start;
}

.zp-f3-design-preview {
    width: 600px;
    height: 600px;
    max-width: 100%;
    background: #0d0e34;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 12px;
}

.zp-f3-design-preview img {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    object-fit: cover;
    display: block;
}

.zp-f3-designs {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zp-f3 .zp-f3-design,
.zp-f3 .zp-f3-design:hover,
.zp-f3 .zp-f3-design:focus,
.zp-f3 .zp-f3-design:active {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 12px;
    background: #171947 !important;
    color: #fff;
    cursor: pointer;
    text-align: left;
}

.zp-f3-design[hidden] {
    display: none;
}
.zp-f3 .zp-f3-design.is-selected {
    border-width: 2px !important;
    border-color: #ffd200 !important;
    box-shadow: 0 7px 5px rgba(255, 210, 0, 0.15);
}

.zp-f3-design-label {
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    color: #eaeef5;
    text-transform: uppercase;
}

.zp-f3-swatch {
    display: flex;
    height: 38px;
    border-radius: 12px;
    overflow: hidden;
}

.zp-f3-swatch-bar {
    flex: 1;
}

/* ---- Step 3: gameboard ---- */
.zp-f3-gameboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(240px, 1fr);
    gap: 20px;
    align-items: start;
}

.zp-f3-gameboard-img {
    width: 600px;
    height: 600px;
    max-width: 100%;
    background: #0d0e34;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 12px;
    display: flex;
    align-items: center;
}

.zp-f3-gameboard-img img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 3px solid #ffffff;
    object-fit: cover;
    display: block;
}

/* Step 3's panel only — Step 2's .zp-f3-panel keeps its default block layout. */
.zp-f3-gameboard-layout .zp-f3-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.zp-f3-gameboard-titles {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.zp-f3 .zp-f3-gameboard-how {
    font-family: "Inter", sans-serif;
    font-size: 24px;
    font-weight: 900;
    line-height: 1.3;
    color: #fff;
    margin: 0;
}

.zp-f3-gameboard-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: space-between !important;
}

.zp-f3 .zp-f3-gameboard-badge {
    color: #141644 !important;
    font-size: 12px;
    font-weight: 800;
    border: none;
    border-radius: 12px;
    background: linear-gradient(108deg, #fdc700 3.15%, #ff8216 94.89%);
    box-shadow: -2px 6px 10px 0 rgba(253, 199, 0, 0.27);
    padding: 17px 10px;
    min-width: 60px;
    cursor: pointer !important;
}

.zp-f3 .zp-f3-gameboard-badge.is-selected {
    box-shadow: 0 0 0 2px #fff, -2px 6px 10px 0 rgba(253, 199, 0, 0.27);
}

.zp-f3 .zp-f3-gameboard-badge:hover,
.zp-f3 .zp-f3-gameboard-badge:focus,
.zp-f3 .zp-f3-gameboard-badge:active {
    color: #141644 !important;
}

.zp-f3-gameboard-price-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 210, 0, 0.1);
    border: 1px solid #ffd200;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
}

.zp-f3-gameboard-unit-label {
    font-size: 14px;
    font-weight: 700;
    color: #ffd200;
}

.zp-f3-gameboard-unit-price {
    font-size: 36px;
    font-weight: 900;
    color: #ffd200;
}

.zp-f3-gameboard-qty {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.zp-f3-qty-heading {
    display: block;
    font-size: 20px !important;
    font-weight: 900 !important;
    color: #fff;
    margin: 0 0 8px;
}

.zp-f3-qty-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    background: linear-gradient(151deg, #fdc700 3.15%, #ff8216 94.89%);
    box-shadow: -2px 6px 10px 0 rgba(253, 199, 0, 0.27);
    color: #0d0e34;
    font-family: "Inter", sans-serif;
    font-weight: 700;
    font-size: 14px;
    line-height: 1.03;
    text-align: center;
    text-align-last: center;
    white-space: nowrap;
    border: 2px solid #fff;
    border-radius: 12px;
    padding: 17px 24px;
    cursor: pointer;
}

.zp-f3-qty-select:focus {
    outline: 2px solid rgba(20, 22, 68, 0.3);
}

.zp-f3-gameboard-layout .zp-f3-note {
    margin-top: 0;
    opacity: 1;
    color: #fff;
    font-weight: 500 !important;
}

/* ---- Step 4: address ---- */
.zp-f3-address {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px 12px;
    background: #0d0e34;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 18px;
}

.zp-f3-field {
    min-width: 0;
}

.zp-f3-input {
    width: 100%;
    border-radius: 16px !important;
    padding: 18px !important;
    font-size: 18px;
    font-weight: 800;
    line-height: 150%;
    background: #fff;
    color: #141644;
}

.zp-f3-input::placeholder {
    color: rgba(20, 22, 68, 0.5);
}

.zp-f3-error-msg {
    margin: 6px 0 0;
    font-size: 12px;
    color: #ff4d4f;
    min-height: 1em;
}

.zp-f3-error-msg:empty {
    margin: 0;
    min-height: 0;
}

.zp-f3-field--error .zp-f3-input {
    border-color: #ff4d4f;
}

/* ---- Sidebar / summary ---- */
.zp-f3-sidebar {
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 22px;
    align-self: start;
}

.zp-f3-sidebar[hidden] {
    display: none;
}

.zp-f3-summary-heading {
    font-size: 24px;
    font-weight: 900 !important;
    margin: 0 0 16px;
}

.zp-f3-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 14px;
}

.zp-f3-summary-label {
    opacity: 1;
}
.zp-f3-summary-value {
    font-weight: 800;
    text-align: right;
    opacity: 1;
}

.zp-f3-total-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    border: 2px solid #ffd200;
    border-radius: 12px;
    padding: 18px;
    margin: 18px 0 14px;
    background: rgba(255, 210, 0, 0.06);
}

.zp-f3-total-label {
    font-size: clamp(12px, 2.8vw, 14px);
    font-weight: 700;
    line-height: 1em;
    color: #ffd200;
    margin-bottom: 12px;
}

.zp-f3-total-value {
    font-size: clamp(30px, 9vw, 48px);
    font-weight: 800;
    color: #ffd200;
}

/* ---- Checkout (step 5) ---- */
.zp-f3-checkout-card {
    max-width: 560px;
    margin: 0 auto;
    background: #0d0e34;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.25);
}

.zp-f3-coupon {
    margin: 18px 0;
}

.zp-f3-coupon-heading {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 10px;
}

.zp-f3-coupon-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

/* Native <input>/<button> — wrapper-scoped (0,2,0) so they beat the Elementor
   kit's `.elementor-kit-XXXX input/button` rules (0,1,1). */
.zp-f3 .zp-f3-coupon-input {
    flex: 1 1 auto;
    min-width: 0;
}

.zp-f3 .zp-f3-coupon-apply {
    flex: 0 0 auto;
    width: auto;
    margin-top: 0;
    padding: 15px 22px;
    white-space: nowrap;
}

.zp-f3 .zp-f3-coupon-apply.is-applied {
    background-color: transparent;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.zp-f3-coupon-message {
    margin: 8px 0 0;
    font-size: 13px;
    min-height: 1em;
}

.zp-f3-coupon-message:empty {
    margin: 0;
    min-height: 0;
}

.zp-f3-coupon-message--success {
    color: #4caf50;
}

.zp-f3-coupon-message--error {
    color: #ff4d4f;
}

.zp-f3-coupon-message--info {
    color: rgba(255, 255, 255, 0.75);
}

.zp-f3-submit-message {
    color: #ff4d4f;
    font-size: 14px;
    margin: 10px 0 0;
    min-height: 1em;
    text-align: center;
}

/* ---- Buttons ---- */
/* Neutralise theme/Elementor-kit defaults on our interactive elements. These
   reset decoration only (never color/background), so the Elementor style
   controls still win. */
.zp-f3 button,
.zp-f3 a.zp-f3-btn {
    font-family: inherit;
    letter-spacing: normal;
    text-transform: none;
    background-image: none;
    text-shadow: none;
}

/* Null theme hover shadows on the pill buttons/tabs only — the product cards
   keep their own box-shadow. */
.zp-f3 .zp-f3-btn,
.zp-f3 .zp-f3-tab {
    box-shadow: none;
}

.zp-f3-btn {
    display: block;
    width: 100%;
    -webkit-appearance: none;
    appearance: none;
    border: none;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 999px !important;
    font-size: 15px;
    font-weight: 800;
    margin-top: 12px;
    transition: opacity 0.15s ease;
}

/* Prefix the variant colours with .zp-f3 so they outspecify theme
   `a:hover`/`button:hover` rules, while still tying with (and yielding to)
   the later-loaded Elementor control output. */
.zp-f3 .zp-f3-btn--primary {
    background-color: #ffd200;
    color: #141644;
}
.zp-f3 .zp-f3-btn--secondary {
    background-color: #fff;
    color: #141644;
}
.zp-f3 .zp-f3-btn--workshop {
    background-color: #f57c1f;
    color: #141644;
}

.zp-f3 .zp-f3-btn:hover,
.zp-f3 .zp-f3-btn:focus,
.zp-f3 .zp-f3-btn:active {
    opacity: 0.9;
    box-shadow: none;
    background-image: none;
    text-decoration: none;
    transform: none;
    outline: none;
}

.zp-f3-btn[hidden] {
    display: none;
}

/* ---- Confirmation (step 6) ---- */
.zp-f3-order-reference {
	text-align: center;
    font-weight: 700;
    margin: 0 0 16px;
	opacity: 0.85;
}

.zp-f3-order-reference[hidden] {
	    display: none;
}

.zp-f3-thankyou-card {
    max-width: 420px;
    margin: 0 auto 20px;
    border: 3px solid #f57c1f;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
}

.zp-f3-thankyou-video {
    position: relative;
    cursor: pointer;
}

.zp-f3-thankyou-video-img img,
.zp-f3-thankyou-image {
    width: 100%;
    display: block;
}

.zp-f3-thankyou-video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.05),
        rgba(0, 0, 0, 0.45)
    );
}

.zp-f3-thankyou-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zp-f3-thankyou-body {
    padding: 18px 20px 22px;
}

.zp-f3-thankyou-heading {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    margin: 0 0 8px;
}

.zp-f3-thankyou-text {
    font-size: 14px;
    opacity: 0.8;
    margin: 0;
}

.zp-f3-step[data-zp-step="6"] .zp-f3-btn,
.zp-f3-step[data-zp-step="5"] .zp-f3-btn {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Lightbox ---- */
.zp-f3 .zp-f3-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.zp-f3 .zp-f3-lightbox-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
}

.zp-f3 .zp-f3-lightbox-content {
    position: relative;
    width: 80%;
    max-width: 960px;
    aspect-ratio: 16 / 9;
    max-height: 80vh;
    z-index: 1;
}

.zp-f3 .zp-f3-lightbox-content.is-vertical {
    width: min(420px, 92vw, calc(80vh * 9 / 16));
    max-width: none;
    height: auto;
    max-height: none;
    aspect-ratio: 9 / 16;
}

.zp-f3 .zp-f3-lightbox > .zp-f3-lightbox-close {
    position: absolute !important;
    top: calc(env(safe-area-inset-top, 0px) + 16px) !important;
    right: calc(env(safe-area-inset-right, 0px) + 16px) !important;
    width: 40px !important;
    min-width: 40px !important;
    max-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    max-height: 40px !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    appearance: none;
    background: #f57c1f;
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.zp-f3 .zp-f3-lightbox > .zp-f3-lightbox-close svg {
    display: block;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
}

.zp-f3 .zp-f3-lightbox-video,
.zp-f3 .zp-f3-lightbox-video iframe,
.zp-f3 .zp-f3-lightbox-video video {
    width: 100%;
    height: 100%;
    border: none;
}

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .zp-f3-body:has(.zp-f3-sidebar:not([hidden])),
    .zp-f3-design-layout,
    .zp-f3-gameboard-layout {
        grid-template-columns: 1fr;
    }

    .zp-f3-design-preview,
    .zp-f3-gameboard-img {
        width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .zp-f3-products {
        grid-template-columns: 1fr;
    }
    .zp-f3-address {
        grid-template-columns: 1fr;
    }
}

/* ---- Phone (≤600px): matches the mobile Figma frames ---- */
@media (max-width: 600px) {
    .zp-f3-price-summary {
        align-items: flex-end;
    }

    .zp-f3-product-shipping {
        width: fit-content;
        min-width: 0;
        max-width: 100%;
    }

    .zp-f3-heading {
        margin-bottom: 18px;
    }

    /* Center headings (steps 5/6) go left-aligned on phone. */
    .zp-f3-heading--center {
        text-align: left;
    }

    /* Progress tabs collapse to a thin segmented bar (labels hidden). */
    .zp-f3-tabs {
        flex-wrap: nowrap;
        justify-content: stretch;
        gap: 6px;
        margin-bottom: 22px;
    }

    /* Scoped under .zp-f3 to reach 0,2,0 and beat the Elementor kit's
       `.elementor-kit-XXXX button` (0,1,1), which otherwise re-imposes
       font-size/padding and keeps the labels visible. */
    .zp-f3 .zp-f3-tab {
        flex: 1 1 0;
        min-width: 0;
        height: 6px;
        padding: 0;
        font-size: 0;
        line-height: 0;
        overflow: hidden;
    }

    /* Step 1: shared preview image on top, compact option rows below. */
    .zp-f3-product-preview {
        display: block;
        width: 100%;
        aspect-ratio: 1 / 1;
        background: #0d0e34;
        border: 1px solid rgba(255, 255, 255, 0.25);
        border-radius: 16px;
        padding: 12px;
        margin-bottom: 16px;
    }

    .zp-f3-product-preview:empty {
        display: none;
    }

    .zp-f3-product-preview img {
        width: 100%;
        height: 100%;
        border-radius: 12px;
        object-fit: cover;
        display: block;
    }

    .zp-f3-products {
        gap: 12px;
    }

    /* Per-card images give way to the shared preview above. */
    .zp-f3-product-media {
        display: none;
    }

    .zp-f3-product-body {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        column-gap: 12px;
        row-gap: 4px;
        padding: 16px 18px;
    }

    .zp-f3-product-titlerow {
        grid-column: 1;
        grid-row: 1;
        flex-direction: column-reverse;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 6px;
    }

    .zp-f3-product-name {
        font-size: 20px;
    }

    .zp-f3-product-divider {
        display: none;
    }

    .zp-f3-product-tagline {
        grid-column: 1;
        grid-row: 2;
        font-size: 14px;
    }

    .zp-f3-product-price-block {
        grid-column: 2;
        grid-row: 1 / span 2;
        align-items: flex-end;
        justify-content: center;
        margin-top: 0;
    }

    /* Step 2: swatches become a 2-col grid with the label overlaid. */
    .zp-f3-designs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .zp-f3-design,
    .zp-f3-design:hover,
    .zp-f3-design:focus,
    .zp-f3-design:active {
        display: block;
        position: relative;
        min-height: 62px;
        padding: 0;
        gap: 0;
        border: none !important;
        background: transparent !important;
        border-radius: 12px;
        overflow: hidden;
    }

    .zp-f3-design.is-selected {
        border-width: 0 !important;
        box-shadow: 0 0 0 3px #ffd200;
    }

    .zp-f3-swatch {
        position: absolute;
        inset: 0;
        height: 100%;
        border-radius: 12px;
    }

    .zp-f3-design-label {
        position: absolute;
        inset: 0;
        z-index: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        padding: 6px;
        color: #141644;
        text-shadow: 0 1px 2px rgba(255, 255, 255, 0.4);
    }

    /* Sidebar strips down to the total box + nav buttons on phone;
       the "Deine Auswahl" heading + row list are hidden per the design. */
    .zp-f3-sidebar {
        border: none;
        padding: 0;
        background: none !important;
    }

    .zp-f3-summary-heading,
    .zp-f3-sidebar .zp-f3-summary-list {
        display: none;
    }

    /* Step 1 has no total box in the design — only the "next" button. */
    .zp-f3-body:has(.zp-f3-step--active[data-zp-step="1"])
        .zp-f3-sidebar
        .zp-f3-total-box {
        display: none;
    }

    /* Gameboard badges: tighten padding so all four fit one row. */
    .zp-f3 .zp-f3-gameboard-badge {
        padding: 17px 5px;
        min-width: 0;
    }
}
