/* Shop adaptation of the shared StyleGuide's text outline button. */
.shop-ui .btn:is(.shop-secondary-action, .download-product-choice) {
    background: var(--bs-white);
    color: color-mix(in srgb, var(--tenant-primary-color, var(--bs-primary)) 65%, black);
    border: 2px solid color-mix(in srgb, var(--tenant-primary-color, var(--bs-primary)) 45%, white);
    border-radius: 12px;
    min-height: 44px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.shop-ui .btn:is(.shop-secondary-action, .download-product-choice):hover:not(:disabled) {
    background: var(--bs-light);
    border-color: color-mix(in srgb, var(--tenant-primary-color, var(--bs-primary)) 65%, white);
    box-shadow: 0 4px 12px rgb(0 0 0 / 8%);
}
.shop-ui .btn:is(.shop-secondary-action, .download-product-choice):active:not(:disabled) {
    background: var(--bs-secondary-bg);
    box-shadow: none;
}
@media (prefers-reduced-motion: reduce) {
    .shop-ui .btn:is(.shop-secondary-action, .download-product-choice) { transition: none; }
}
.shop-ui .btn.shop-secondary-action:focus-visible { outline: 2px solid var(--tenant-primary-color, var(--bs-primary)); outline-offset: 3px; }

/* Email registration confirmation, scoped to the waiting page. */
.shop-registration-result { display: grid; grid-template-columns: 1fr 1fr; max-width: 1120px; margin: 40px auto; background: white; border: 1px solid #e5e5e5; border-radius: 16px; overflow: hidden; }
.shop-registration-hero img { width: 100%; height: 100%; object-fit: cover; }
.shop-registration-content { padding: 48px 40px 32px; min-width: 0; text-align: center; }
.shop-registration-logo { display: block; width: auto; max-width: min(300px, 100%); max-height: 72px; margin: 0 auto 12px; }
body.shop-ui .shop-registration-content .shop-registration-job { padding: 0; background: none; font-size: 17px; line-height: 1.5; color: #697586; margin: 0 auto 34px !important; overflow-wrap: anywhere; }
.shop-registration-symbol { width: 80px; height: 80px; margin: 0 auto 20px; color: var(--tenant-primary-color); }
body.shop-ui .shop-registration-symbol.is-confirmed { --registration-success: #269b24; border-radius: 50%; color: var(--registration-success) !important; background: #f5f6f7; }
.shop-registration-symbol svg { width: 100%; height: 100%; }
body.shop-ui .shop-registration-symbol.is-confirmed svg, body.shop-ui .shop-registration-symbol.is-confirmed path { color: var(--registration-success) !important; stroke: var(--registration-success) !important; }
body.shop-ui main .shop-registration-result .shop-registration-content h1 { width: 100%; max-width: none; padding: 0; margin: 0 auto 30px; color: #444950; }
body.shop-ui main .shop-registration-result .shop-registration-content .shop-registration-message { width: 100%; max-width: none; padding: 0; font-size: 20px !important; line-height: 1.5; margin: 0; }
body.shop-ui main .shop-registration-result .shop-registration-content .shop-registration-email { width: 100%; max-width: none; padding: 0; font-size: 20px !important; line-height: 1.5; margin: 2px 0; overflow-wrap: anywhere; }
body.shop-ui main .shop-registration-result .shop-registration-content .shop-registration-note { font-size: 16px !important; line-height: 1.6; color: #697586; margin: 30px 0 0; }
.shop-registration-back { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid #d9dde1; border-radius: 8px; background: #fff; color: #586779; font-size: 14px; line-height: 1.4; text-decoration: none; }
.shop-registration-back:hover { background: #f5f6f7; border-color: #aeb5bd; color: #444950; }
body.shop-ui .shop-registration-content .shop-registration-back { margin-top: 42px; }
.shop-registration-contact { margin-top: 22px; padding-top: 20px; border-top: 1px solid #e5e5e5; font-size: 14px; overflow-wrap: anywhere; }
.shop-registration-contact p { margin: 0 0 4px; }
body.shop-ui .shop-registration-contact .shop-registration-company { margin: 12px 0 0; font-size: 16px; overflow-wrap: anywhere; }
.shop-registration-contact a { display: inline-block; padding-block: 10px; min-height: 44px; color: var(--tenant-primary-color); text-underline-offset: 3px; }
.shop-registration-content a:focus-visible { outline: 2px solid var(--tenant-primary-color); outline-offset: 3px; }
@media (max-width: 767px) {
    .shop-registration-result { display: block; width: 100%; margin: 0; border: 0; border-radius: 0; }
    .shop-registration-hero { display: none; }
    .shop-registration-content { padding: 52px 28px 28px; }
    .shop-registration-logo { max-width: min(300px, 100%); max-height: 64px; }

}
body.shop-ui .shop-code-field-error { margin-top: 8px; padding: 12px 14px; text-align: left; background: var(--bs-danger-bg-subtle, #f8d7da); color: var(--bs-danger-text-emphasis, #58151c); border-left: 3px solid var(--bs-danger, #dc3545); border-radius: 6px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.shop-code-field-error strong, .shop-code-field-error span { display: block; }
.shop-code-field-error strong::before { content: "⚠ "; }
body.shop-ui #codeForm .shop-code-invalid { border-color: var(--bs-danger, #dc3545) !important; }
@media (max-width: 767px) { body.shop-ui .shop-code-field-error { width: 100% !important; } }
.collect-email-access-summary { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; overflow-x: auto; margin-bottom: 12px; padding-block: 4px; text-align: left; }
body.shop-ui .collect-email-access-summary p { flex-shrink: 0; margin: 0 !important; font-size: 12px !important; line-height: 24px; color: #666; white-space: nowrap; }
.collect-email-access-codes { display: flex; align-items: center; flex-wrap: nowrap; gap: 6px; }
.collect-email-access-codes > span { flex-shrink: 0; padding: 2px 8px; border: 0; border-radius: 4px; background: #f2f3f5; color: #484848; font-size: 12px; line-height: 20px; white-space: nowrap; }
.collect-email-access-summary:focus-visible { outline: 2px solid var(--tenant-primary-color); outline-offset: 2px; }

/* Contact uses a compact desktop dialog and a full-screen mobile sheet. */
.shop-contact-modal .modal-dialog { max-width: 600px; }
.shop-contact-modal .modal-content { border: 0; border-radius: 12px; background: #fff; color: #484848; }
.shop-contact-modal .modal-header { padding: 16px 24px; border-bottom: 1px solid #e5e5e5; flex-shrink: 0; }
.shop-contact-modal .modal-header h2 { margin: 0; font-size: 20px; }
.shop-contact-modal .btn-close { box-sizing: border-box; width: 44px; height: 44px; margin: 0 -10px 0 12px; padding: 12px; background-size: 14px; flex-shrink: 0; }
body.shop-ui #kontaktModal .modal-header { display: flex; align-items: center; justify-content: space-between; }
body.shop-ui #kontaktModal .modal-header > .btn-close { margin-left: auto !important; }
.shop-contact-modal .modal-body { padding: 28px 24px; overflow-wrap: anywhere; }
.shop-contact-modal .shop-contact-logo { display: block; max-width: 180px; width: auto; max-height: 48px; object-fit: contain; object-position: left; margin-bottom: 32px; }
.shop-contact-modal .shop-contact-name { font-size: 22px; margin: 0 0 16px; }
.shop-contact-modal .shop-contact-action { padding-top: 12px; }
.shop-contact-modal .shop-contact-action p { line-height: 1.6; margin-bottom: 0; padding-bottom: 0; }
body.shop-ui #kontaktModal .shop-contact-action > .shop-contact-email { margin-top: 32px !important; }
.shop-contact-modal .shop-contact-email { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 12px; background: var(--tenant-primary-color); color: var(--tenant-primary-contrast-color, #fff); font-weight: 600; text-decoration: none; }
.shop-contact-modal .shop-contact-email-address { display: block; width: fit-content; padding-block: 12px; min-height: 44px; color: var(--tenant-primary-color); text-underline-offset: 3px; }
.shop-contact-modal .shop-contact-address { margin-top: 24px; padding-top: 28px; border-top: 1px solid #e5e5e5; line-height: 1.6; }
.shop-contact-modal :is(a, button):focus-visible { outline: 2px solid var(--tenant-primary-color); outline-offset: 3px; }
.shop-contact-modal .shop-contact-website { display: inline-block; min-height: 44px; padding-block: 10px; color: var(--tenant-primary-color); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 767px) {
    .shop-contact-modal .modal-dialog { width: 100%; max-width: none; height: 100%; height: 100dvh; margin: 0; }
    .shop-contact-modal .modal-content { height: 100%; max-height: 100%; border-radius: 0; }
    .shop-contact-modal .modal-header { padding: calc(12px + env(safe-area-inset-top, 0px)) 20px 12px; }
    .shop-contact-modal .modal-body { padding: 28px 20px calc(28px + env(safe-area-inset-bottom, 0px)); }
}

/* Keep horizontal overflow and edge gestures inside the shop viewport.
   Clip preserves document scrolling and does not create a body scroll container. */
html.shop-viewport,
body.shop-ui {
    overflow-x: clip;
    overscroll-behavior-x: none;
}

/* Older engines without clip still need to constrain horizontal overflow. */
@supports not (overflow-x: clip) {
    html.shop-viewport,
    body.shop-ui {
        overflow-x: hidden;
    }
}

/* Mobile browsing pages share one outer gutter; desktop keeps its existing layout. */
@font-face {
    font-family: 'Caveat';
    src: url('/assets/website/fonts/caveat/Caveat-Variable.ttf') format('truetype');
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}
.floating-offer-mobile-label { display: none; }
.collect-email-fields { display: contents; }
.collect-email-step-hint { display: none; }
.collect-email-photo-doodle { display: none; }
.collect-email-privacy-note { display: none; }
.collect-email-code-desktop { display: none; }
.collect-email-visual { display: contents; }
.campaign-offer-entry-title,
.campaign-offer-entry-tier,
.campaign-offer-entry-explanation { display: none; }
.campaign-offer-entry-gift { display: none; }
.campaign-offer-entry-automatic,
.collect-email-button-arrow { display: none; }
.shop-access-photo, .shop-access-arrow { display: none; }
.shop-access-heading-accent, .shop-access-instruction-accent { display: none; }
.shop-access-heading, .shop-access-personal { display: none; }
.shop-access-instruction-mobile { display: none; }
.shop-footer-section-label, .shop-footer-language-name { display: none; }
.shop-footer-language { border: 0; padding: 0; background: transparent; cursor: pointer; font-size: 18px; }
.shop-footer-language[aria-pressed="false"] { opacity: .5; }

/* Center the entry card in the space above the footer, allowing tall content to scroll. */
@media (min-width: 768px) {
    body.shop-ui main.shop-email-entry { display: flex; flex-direction: column; }
    main.shop-email-entry > .container { margin-block: auto; }
    .shop-email-entry .collect-email-page { padding: 32px 20px; }
    .shop-email-entry .card-wrapper,
    .shop-email-entry .collect-email-card { max-width: 1000px; }
    .shop-email-entry .collect-email-card { padding: 24px 48px; }
    .shop-email-entry .form-width-wrapper { width: 100%; max-width: 720px; }
    .shop-email-entry .tenant-logo { max-height: 44px; margin-bottom: 12px; }
    .shop-email-entry .preview-gallery {
        order: 2;
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0 0;
        align-items: center;
        height: auto;
        max-width: 420px;
        margin: 20px auto 28px;
        padding: 10px 22px;
        isolation: isolate;
    }

    .shop-email-entry .preview-gallery::before {
        content: "";
        position: absolute;
        inset: 4px 0;
        z-index: -1;
        pointer-events: none;
        border-radius: 42% 58% 53% 47%;
        background: radial-gradient(ellipse at 40% 45%,
            color-mix(in srgb, var(--tenant-primary-color) 22%, transparent),
            transparent 72%);
    }

    .shop-email-entry .preview-photo {
        position: relative;
        grid-column: span 2;
        justify-self: center;
        width: max-content;
        max-width: calc(100% + 20px);
        transform: none;
        border: 3px solid white;
        background: white;
        border-radius: 3px;
        box-shadow: 0 5px 14px rgb(0 0 0 / 18%);
    }

    .shop-email-entry .preview-photo img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 100px;
        object-fit: contain;
    }

    .shop-email-entry .preview-photo:nth-child(1) { transform: translateY(12px) rotate(-7deg); z-index: 4; border: 3px solid white; box-shadow: 0 5px 14px rgb(0 0 0 / 18%); }
    .shop-email-entry .preview-photo:nth-child(2) { transform: translateY(-6px) rotate(3deg); }
    .shop-email-entry .preview-photo:nth-child(3) { transform: translateY(5px) rotate(-3deg); }
    .shop-email-entry .preview-photo:nth-child(4) { grid-column: 2 / span 2; transform: translateY(-10px) rotate(2deg); }
    .shop-email-entry .preview-photo:nth-child(5) { grid-column: 4 / span 2; transform: translateY(-4px) rotate(-3deg); }
    .shop-email-entry .preview-photo:only-of-type { grid-column: 2 / span 4; transform: none; }
    .shop-email-entry .preview-gallery:has(.preview-photo:nth-child(2):last-of-type) .preview-photo:first-child { grid-column: 2 / span 2; }
    .shop-email-entry .preview-gallery:has(.preview-photo:nth-child(4):last-of-type) .preview-photo:nth-child(3) { grid-column: 2 / span 2; }
    .shop-email-entry .preview-gallery:has(.preview-photo:nth-child(4):last-of-type) .preview-photo:first-child { grid-column: 2 / span 2; }
    .shop-email-entry .preview-gallery:has(.preview-photo:nth-child(4):last-of-type) .preview-photo:nth-child(4) { grid-column: 4 / span 2; }
    .shop-email-entry .collect-email-photo-doodle {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        fill: none;
        stroke: var(--tenant-primary-color);
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        z-index: -1;
    }
    .shop-email-entry .preview-photo--group::after { display: none; }
    .shop-email-entry .collect-email-card > br,
    .shop-email-entry #emailForm > br { display: none; }
    .shop-email-entry #emailForm { margin-top: 20px; }
    .shop-email-entry .collect-email-intro-step,
    .shop-email-entry .collect-email-code-mobile { display: none; }
    .shop-email-entry .collect-email-code-desktop { display: inline; }
    .shop-email-entry .collect-email-add-code {
        border: 0;
        padding: 0;
        background: transparent;
    }
    .shop-email-entry .collect-email-add-code > summary {
        display: flex;
        align-items: center;
        gap: 10px;
        min-height: 48px;
        padding-block: 12px;
        list-style: none;
        cursor: pointer;
        font-family: inherit;
        font-size: 13px;
        font-weight: 400;
        color: var(--bs-secondary-color);
    }
    .shop-email-entry .collect-email-add-code > summary::-webkit-details-marker { display: none; }
    .shop-email-entry .collect-email-add-code > summary::before { content: "+"; font-size: 22px; line-height: 1; }
    .shop-email-entry .collect-email-add-code[open] > summary::before { content: "−"; }
    .shop-email-entry .collect-email-add-code > summary:focus-visible { outline: 2px solid var(--tenant-primary-color); outline-offset: 3px; }
    .shop-email-entry .collect-email-add-code > form { margin-top: 0 !important; padding-bottom: 16px; }
    .shop-email-entry #emailForm .legal-notice { display: none; }
    body.shop-ui main.shop-email-entry #emailForm .collect-email-privacy-note {
        display: block;
        margin: 8px 0 0;
        font-size: 12px !important;
        font-weight: 300 !important;
        line-height: 1.5;
        color: var(--bs-secondary-color);
        text-align: left;
    }
    .shop-email-entry .collect-email-fields--offer {
        display: flex;
        flex-direction: column;
        padding: 20px;
        border-radius: 12px;
        background: linear-gradient(110deg, color-mix(in srgb, var(--tenant-primary-color) 12%, white), color-mix(in srgb, var(--tenant-primary-color) 6%, white));
        text-align: left;
    }
    .shop-email-entry #emailForm .collect-email-fields--offer .campaign-offer {
        order: -1;
        margin: 0 0 14px;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border: 0;
        color: var(--bs-body-color);
        --offer-ink: var(--bs-body-color);
    }
    .shop-email-entry .campaign-offer-main { gap: 14px; }
    .shop-email-entry .campaign-offer-intro { width: 100%; }
    .shop-email-entry .campaign-offer-standard-title { display: none; }
    .shop-email-entry .campaign-offer-entry-title { display: block; }
    body.shop-ui main.shop-email-entry .campaign-offer-title { font-size: 24px !important; font-weight: 700 !important; line-height: 1.25; margin-bottom: 6px; }
    .shop-email-entry .campaign-offer-icon { display: none; }
    .shop-email-entry .campaign-offer-entry-gift { display: block; width: 32px; height: 36px; flex-shrink: 0; color: var(--tenant-primary-color); }
    .shop-email-entry .campaign-offer-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); width: 100%; gap: 8px; }
    body.shop-ui main.shop-email-entry .campaign-offer-tier {
        flex-direction: column;
        align-items: flex-start;
        white-space: normal;
        gap: 3px;
        padding: 10px 14px;
        border-radius: 10px !important;
        background: white;
        font-size: 14px !important;
        line-height: 1.4;
    }
    .shop-email-entry .campaign-offer-standard-tier { display: none; }
    .shop-email-entry .campaign-offer-entry-tier { display: block; }
    .shop-email-entry .campaign-offer-tier span.campaign-offer-entry-tier { color: var(--bs-secondary-color); font-weight: 400; }
    .shop-email-entry .collect-email-fields--offer .email-input { margin-bottom: 0; }
    .shop-email-entry .collect-email-actions { margin-top: 16px; }
    .shop-email-entry #emailForm > .form-width-wrapper > br { display: none; }
    .shop-email-entry .collect-email-button-arrow { display: inline; margin-left: 10px; font-size: 24px; font-weight: 300; }
}

@media (min-width: 992px) {
    body.shop-ui:has(main.shop-email-entry) .shop-footer > .container {
        padding-inline: 32px;
    }
    body.shop-ui:has(main.shop-email-entry) .shop-footer > .container > div {
        max-width: 1120px;
        margin-inline: auto;
    }
    .shop-email-entry .card-wrapper,
    .shop-email-entry .collect-email-card { max-width: 1120px; }
    .shop-email-entry .collect-email-card {
        display: grid;
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        grid-template-rows: auto auto auto auto;
        column-gap: 36px;
        padding: 36px;
    }
    .shop-email-entry .collect-email-visual {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        grid-column: 1;
        grid-row: 1 / 5;
        min-width: 0;
        padding-block: 20px;
    }
    .shop-email-entry .collect-email-visual .tenant-logo { width: auto; height: auto; max-width: min(260px, 100%); max-height: 78px; margin-bottom: 28px; }
    .shop-email-entry .collect-email-visual .preview-gallery { margin: 12px auto 24px; }
    .shop-email-entry .collect-email-visual .preview-photo img { max-height: 120px; }
    .shop-email-entry .collect-email-welcome { grid-column: 2; grid-row: 1; }
    .shop-email-entry #emailForm,
    .shop-email-entry #emailForm > .form-width-wrapper { display: contents; }
    .shop-email-entry .collect-email-fields { display: flex; flex-direction: column; grid-column: 2; grid-row: 2; min-width: 0; }
    .shop-email-entry .collect-email-add-code { grid-column: 2; grid-row: 3; }
    .shop-email-entry .collect-email-actions { grid-column: 2; grid-row: 4; }
}

@media (max-width: 767px) {
    body.shop-ui .shop-footer { background: #f7f7f7 !important; padding: 16px 0 !important; border-top-color: #e5e5e5 !important; }
    .shop-footer > .container { padding-inline: 20px; }
    .shop-footer .shop-footer-sections { display: grid !important; gap: 16px !important; }
    .shop-footer .shop-footer-links { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px !important; }
    .shop-footer-links > span { display: none; }
    .shop-footer .shop-footer-links a { display: flex; align-items: center; min-height: 44px; color: #484848 !important; line-height: 1.4; overflow-wrap: anywhere; }
    .shop-footer .shop-footer-links a[data-bs-toggle] { font-weight: 600; border-top: 1px solid #dedede; margin-top: 8px; padding-top: 8px; }
    .shop-footer .shop-footer-section-label { display: block; width: 100%; font-size: 12px; font-weight: 600; color: #666; }
    .shop-footer .shop-footer-payments { gap: 10px 16px !important; color: #666 !important; font-size: 24px !important; }
    .shop-footer-payments:not(:has(i)) { display: none !important; }
    .shop-footer .shop-footer-languages { flex-wrap: wrap; gap: 8px !important; }
    .shop-footer .shop-footer-languages .shop-footer-section-label { display: none; }
    .shop-footer .shop-footer-flag { display: none; }
    .shop-footer .shop-footer-language-name { display: inline; }
    .shop-footer .shop-footer-language { min-height: 44px; padding: 8px 16px; border: 1px solid #d5d5d5; border-radius: 8px; font-family: inherit; font-size: 14px; color: #484848; opacity: 1; }
    .shop-footer .shop-footer-language[aria-pressed="true"] { background: white; border-color: #777; font-weight: 600; }
    .shop-footer .shop-footer-copyright { margin-top: 12px; padding-top: 12px; border-top: 1px solid #dedede; color: #777 !important; font-size: 12px !important; line-height: 1.5; }
    .shop-footer :is(a, button):focus-visible { outline: 2px solid var(--tenant-primary-color); outline-offset: 3px; }
    /* Decorative accents follow the tenant colour and grow with the welcome copy. */
    .shop-access-welcome {
        position: relative;
        isolation: isolate;
        padding: 8px 14px 12px;
        margin: 0 12px 8px;
    }
    .shop-access-welcome::before {
        content: "";
        position: absolute;
        inset: -18px -8px -4px;
        z-index: -1;
        border-radius: 48% 52% 40% 60%;
        background: radial-gradient(ellipse at 45% 50%, color-mix(in srgb, var(--tenant-primary-color) 13%, white), transparent 74%);
        pointer-events: none;
    }
    .shop-access-welcome > .mt-4 { margin-top: 0 !important; font-size: 26px !important; line-height: 1.2; }
    .shop-access-photo, .shop-access-arrow {
        display: block;
        position: absolute;
        fill: none;
        stroke: var(--tenant-primary-color);
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
        pointer-events: none;
    }
    .shop-access-photo { width: 62px; height: 50px; right: 4px; top: -49px; transform: rotate(8deg); }
    .shop-access-code-target { position: relative; }
    .shop-access-arrow { width: 54px; height: 48px; left: -8px; top: -43px; z-index: 2; }
    /* Email entry is a full-width page on mobile, with the same content gutter as the shop. */
    main.shop-email-entry > .container {
        max-width: none;
        padding-inline: 16px;
    }

    .shop-email-entry .collect-email-page {
        padding: 12px 0 56px;
    }

    .shop-email-entry .collect-email-card {
        --entry-ink: #202428;
        display: flex;
        flex-direction: column;
        padding: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .shop-email-entry .collect-email-card > br { display: none; }

    .shop-email-entry .skip-btn {
        position: absolute;
        top: -4px;
        right: -4px;
        width: 44px;
        height: 44px;
        color: #949494;
    }

    .shop-email-entry .tenant-logo {
        order: 0;
        max-width: 140px;
        max-height: 40px;
        margin: 4px auto 32px;
    }

    /* Move and enlarge the logo without shifting the photo collage or form. */
    .shop-email-entry:not(.shop-email-preparing) .tenant-logo {
        transform: translateY(16px) scale(1.2);
        transform-origin: center;
    }

    .shop-email-entry .collect-email-welcome {
        color: var(--entry-ink);
        order: 1;
        width: 100%;
        max-width: 34ch;
        margin-inline: auto;
        text-align: center;
        text-wrap: pretty;
    }

    /* Keep the heading accessible while giving the photos more room on mobile. */
    .shop-email-entry .collect-email-welcome:has(.collect-email-intro-step) .collect-email-title {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
        border: 0;
    }

    .shop-email-entry .collect-email-title {
        color: var(--entry-ink);
        max-width: 29ch;
        margin-inline: auto;
        text-align: center;
        text-wrap: balance;
        margin-bottom: 8px;
    }

    .shop-email-entry .collect-email-welcome p {
        max-width: 34ch;
        margin: 0 auto 8px;
        text-wrap: balance;
    }

    .shop-email-entry .collect-email-welcome:has(.collect-email-welcome-body) {
        max-width: none;
        margin-inline: 0;
        text-align: left;
    }
    .shop-email-entry .collect-email-welcome:has(.collect-email-welcome-body) :is(.collect-email-title, .collect-email-welcome-body) {
        width: 100%;
        max-width: none;
        margin-inline: 0;
        text-align: left;
        text-wrap: wrap;
    }

    .shop-email-entry .preview-gallery {
        order: 2;
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 0 0;
        align-items: center;
        height: auto;
        margin: 8px auto 2px;
        padding: 10px 22px;
        isolation: isolate;
    }

    .shop-email-entry .preview-gallery::before {
        content: "";
        position: absolute;
        inset: 4px 0;
        z-index: -1;
        pointer-events: none;
        border-radius: 42% 58% 53% 47%;
        background: radial-gradient(ellipse at 40% 45%,
            color-mix(in srgb, var(--tenant-primary-color) 22%, transparent),
            transparent 72%);
    }

    .shop-email-entry .preview-photo {
        position: relative;
        grid-column: span 2;
        justify-self: center;
        width: max-content;
        max-width: calc(100% + 20px);
        transform: none;
        border: 3px solid white;
        background: white;
        border-radius: 3px;
        box-shadow: 0 5px 14px rgb(0 0 0 / 18%);
    }

    .shop-email-entry .preview-photo img {
        width: auto;
        height: auto;
        max-width: 100%;
        max-height: 88px;
        object-fit: contain;
    }

    .shop-email-entry .preview-photo:nth-child(1) { transform: translateY(12px) rotate(-7deg); z-index: 4; border: 3px solid white; box-shadow: 0 5px 14px rgb(0 0 0 / 18%); }
    .shop-email-entry .preview-photo:nth-child(2) { transform: translateY(-6px) rotate(3deg); }
    .shop-email-entry .preview-photo:nth-child(3) { transform: translateY(5px) rotate(-3deg); }
    .shop-email-entry .preview-photo:nth-child(4) { grid-column: 2 / span 2; transform: translateY(-10px) rotate(2deg); }
    .shop-email-entry .preview-photo:nth-child(5) { grid-column: 4 / span 2; transform: translateY(-4px) rotate(-3deg); }
    .shop-email-entry .preview-photo:only-of-type { grid-column: 2 / span 4; transform: none; }
    .shop-email-entry .preview-gallery:has(.preview-photo:nth-child(2):last-of-type) .preview-photo:first-child { grid-column: 2 / span 2; }
    .shop-email-entry .preview-gallery:has(.preview-photo:nth-child(4):last-of-type) .preview-photo:nth-child(3) { grid-column: 2 / span 2; }
    .shop-email-entry .preview-gallery:has(.preview-photo:nth-child(4):last-of-type) .preview-photo:first-child { grid-column: 2 / span 2; }
    .shop-email-entry .preview-gallery:has(.preview-photo:nth-child(4):last-of-type) .preview-photo:nth-child(4) { grid-column: 4 / span 2; }
    .shop-email-entry .collect-email-photo-doodle {
        display: block;
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        fill: none;
        stroke: var(--tenant-primary-color);
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
        z-index: -1;
    }
    .shop-email-entry .preview-photo--group::after { display: none; }

    .shop-email-entry #emailForm { order: 3; margin-top: 4px; text-align: left !important; }
    .shop-email-entry .collect-email-card > details { order: 4; }
    .shop-email-entry .form-width-wrapper { width: 100%; }
    .shop-email-entry #emailForm > .form-width-wrapper { display: flex; flex-direction: column; }
    .shop-email-entry .collect-email-intro-step { display: none; }
    .shop-email-entry .collect-email-fields { display: flex; flex-direction: column; order: 0; }
    .shop-email-entry .collect-email-fields--offer {
        padding: 16px;
        border-radius: 12px;
        background: linear-gradient(110deg, color-mix(in srgb, var(--tenant-primary-color) 12%, white), color-mix(in srgb, var(--tenant-primary-color) 6%, white));
        color: var(--entry-ink);
    }
    .shop-email-entry #emailForm .collect-email-fields--offer .campaign-offer {
        --offer-ink: var(--entry-ink);
        color: var(--entry-ink);
        margin: 0 0 10px;
        padding: 0;
        background: transparent;
        box-shadow: none;
        border-radius: 0;
    }
    .shop-email-entry .collect-email-fields .email-input { margin-bottom: 0; height: 44px; padding: 10px 12px; }
    .shop-email-entry .email-label { color: var(--entry-ink); }
    .shop-email-entry .collect-email-step-hint {
        order: 3;
        display: none;
        align-items: center;
        justify-content: center;
        gap: 6px;
        margin: 14px 0 6px;
        font-size: 14px;
        font-weight: 300;
        font-style: italic;
        line-height: 1.5;
        text-align: center;
        text-wrap: balance;
        color: var(--bs-body-color);
    }
    .shop-email-entry .collect-email-step-hint svg {
        width: 54px;
        height: 40px;
        flex-shrink: 0;
        fill: none;
        stroke: color-mix(in srgb, var(--tenant-primary-color) 66%, #251b23);
        stroke-width: 1.8;
        stroke-linecap: round;
        stroke-linejoin: round;
    }
    .shop-email-entry #emailForm .campaign-offer { order: 0; }
    .shop-email-entry #emailForm .email-label { order: 1; }
    .shop-email-entry #emailForm .email-input { order: 2; }
    .shop-email-entry #collectEmailValidationFeedback { order: 3; }
    /* Follow the offer normally, but stay visible when it extends below the viewport. */
    .shop-email-entry .collect-email-actions {
        order: 4;
        position: sticky;
        bottom: 0;
        z-index: 100;
        margin-top: 28px;
        padding: 8px 0 calc(8px + env(safe-area-inset-bottom, 0px));
        background: var(--bs-body-bg, white);
    }
    .shop-email-entry #collectEmailSubmitButton { margin-top: 0; }
    .shop-email-entry .collect-email-fields { scroll-margin-bottom: 90px; }
    .shop-email-entry #emailForm .legal-notice { display: none; }
    body.shop-ui main.shop-email-entry #emailForm .collect-email-privacy-note {
        display: block;
        order: 4;
        margin: 8px 0 0;
        font-size: 12px !important;
        font-weight: 300 !important;
        line-height: 1.5;
        color: #565656;
        text-align: left;
    }
    .shop-email-entry #emailForm > .form-width-wrapper > br { display: none; }
    .shop-email-entry .submit-btn { font-size: 16px; font-weight: 600; }
    .shop-email-entry .email-input { font-size: 16px; }

    .shop-email-entry #emailForm .campaign-offer { padding: 12px; border-radius: 8px; text-align: left; }
    .shop-email-entry .campaign-offer-icon,
    .shop-email-entry .campaign-offer-zero-minimum,
    .shop-email-entry .campaign-offer-separator { display: none; }
    .shop-email-entry .campaign-offer-expiration { display: block; }
    .shop-email-entry .campaign-offer-main { gap: 14px; }
    .shop-email-entry .campaign-offer-intro { width: 100%; }
    .shop-email-entry .campaign-offer-tiers { width: 100%; flex-direction: column; gap: 8px; }
    body.shop-ui main.shop-email-entry .campaign-offer-tier {
        flex-direction: column;
        align-items: flex-start;
        gap: 3px;
        padding: 10px 12px;
        border-radius: 10px !important;
        font-size: 14px !important;
        line-height: 1.4;
        background: white;
    }
    body.shop-ui main.shop-email-entry .campaign-offer-tier span.campaign-offer-entry-tier {
        font-size: 13px;
        font-weight: 400;
        color: var(--bs-secondary-color, #565656);
        white-space: normal;
    }
    .shop-email-entry .campaign-offer-standard-tier { display: none; }
    .shop-email-entry .campaign-offer-entry-tier { display: block; }
    .shop-email-entry .campaign-offer-standard-title,
    .shop-email-entry .campaign-offer-automatic,
    .shop-email-entry .campaign-offer-entry-automatic,
    .shop-email-entry .campaign-offer-standard-explanation { display: none; }
    .shop-email-entry .campaign-offer-entry-title,
    .shop-email-entry .campaign-offer-entry-explanation { display: block; }
    .shop-email-entry .collect-email-button-arrow { display: inline; margin-left: 10px; font-size: 24px; font-weight: 300; }
    .shop-email-entry .campaign-offer-intro:has(.campaign-offer-entry-gift) {
        display: grid;
        grid-template-columns: 32px minmax(0, 1fr);
        align-items: center;
        column-gap: 8px;
        row-gap: 0;
    }
    .shop-email-entry .campaign-offer-intro:has(.campaign-offer-entry-gift) .campaign-offer-copy { display: contents; }
    .shop-email-entry .campaign-offer-intro:has(.campaign-offer-entry-gift) .campaign-offer-title { grid-column: 2; }
    .shop-email-entry .campaign-offer-intro:has(.campaign-offer-entry-gift) .campaign-offer-note { grid-column: 1 / -1; }
    .shop-email-entry .campaign-offer-entry-gift {
        display: block;
        width: 32px;
        height: 36px;
        color: var(--tenant-primary-color);
        transform: rotate(-5deg);
    }
    .shop-email-entry .campaign-offer-copy { min-width: 0; }

    .discount-banner[data-activated="true"],
    body:has(#floatingOffer[data-cart="true"]) #discountBanner,
    .floating-offer-desktop-label {
        display: none;
    }

    .floating-offer-mobile-label { display: inline; }

    body.shop-ui .floating-offer-controls {
        background: var(--bs-body-bg, white);
        color: var(--bs-body-color, #212529);
        border: 1px solid var(--bs-border-color, #dee2e6);
        border-radius: 8px;
        box-shadow: 0 2px 10px rgb(0 0 0 / 12%);
    }

    body.shop-ui .floating-offer-toggle {
        font-size: 12px;
        font-weight: 600;
    }

    body.shop-ui .floating-offer-close {
        border-left-color: var(--bs-border-color, #dee2e6) !important;
    }

    body.shop-ui .floating-offer button:focus-visible {
        outline-color: currentColor;
        border-radius: 8px;
    }

    body.shop-ui .floating-offer-panel {
        overflow-y: auto;
        overscroll-behavior: contain;
        border-radius: 8px;
    }

    body.shop-ui .floating-offer-panel .campaign-offer {
        padding: 16px;
        border-radius: 8px;
    }

    body.shop-ui .floating-offer-panel .campaign-offer-icon { display: none; }

    body.shop-ui .floating-offer-panel .campaign-offer-title {
        font-size: 16px;
        font-weight: 700;
    }

    body.shop-ui .floating-offer-panel .campaign-offer-note {
        font-size: 14px !important;
        font-weight: 300 !important;
        line-height: 1.5;
    }

    body.shop-ui .floating-offer-panel .campaign-offer-tiers {
        width: 100%;
        flex-direction: column;
    }

    body.shop-ui .floating-offer-panel .campaign-offer-tier {
        justify-content: space-between;
        border-radius: 8px;
    }

    body.shop-ui .floating-offer-panel .campaign-offer-tier :is(strong, span) {
        font-size: 12px;
        white-space: normal;
    }

    body.shop-ui .floating-offer-panel .campaign-offer-zero-minimum,
    body.shop-ui .floating-offer-panel .campaign-offer-separator { display: none; }

    body.shop-ui .floating-offer-panel .campaign-offer-expiration { display: block; }

    body.has-mobile-discount-reminder > footer { padding-bottom: 80px !important; }

    main:is(.shop-overview, .shop-gallery) {
        font-size: var(--shop-mobile-body-size);
        font-weight: var(--shop-mobile-body-weight);
        line-height: 1.5;
    }

    main:is(.shop-overview, .shop-gallery) p,
    .shop-overview .shop-welcome-body {
        font-size: var(--shop-mobile-body-size) !important;
        font-weight: var(--shop-mobile-body-weight) !important;
        line-height: 1.5;
    }

    .shop-overview .shop-welcome-title,
    .shop-gallery .shop-gallery-content h4 {
        font-size: var(--shop-mobile-title-size);
        font-weight: var(--shop-mobile-heading-weight) !important;
        line-height: 1.35;
    }

    .shop-overview .shop-welcome-spacer {
        display: none;
    }

    .shop-overview .shop-welcome-title {
        margin-top: 20px;
        margin-bottom: 6px;
    }

    .shop-overview:has(#downloads) .shop-welcome-photo-count {
        display: none;
    }

    .shop-overview .section-card .section-label {
        position: static;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        margin-bottom: 12px;
        white-space: normal;
        text-transform: none;
        letter-spacing: normal;
        font-size: var(--shop-mobile-heading-size);
        font-weight: var(--shop-mobile-heading-weight);
        line-height: 1.35;
    }

    .shop-overview .shop-section-photo-count {
        display: inline-block !important;
        text-transform: none;
        letter-spacing: normal;
    }

    .shop-overview .download-product-btn .fs-photog-14-600,
    .shop-overview #fotopakete .fs-photog-20-700,
    .shop-overview .fs-head2 {
        font-size: var(--shop-mobile-heading-size) !important;
        font-weight: var(--shop-mobile-heading-weight) !important;
    }

    .shop-overview .download-product-btn .fs-photog-12-400 {
        font-size: var(--shop-mobile-note-size) !important;
        font-weight: var(--shop-mobile-body-weight) !important;
        line-height: 1.4;
    }

    main:is(.shop-overview, .shop-gallery) .btn {
        font-size: var(--shop-mobile-heading-size);
        font-weight: 600;
    }

    main:is(.shop-overview, .shop-gallery) {
        --shop-mobile-gutter: 16px;
    }

    main:is(.shop-overview, .shop-gallery) > .container {
        max-width: none;
        padding-inline: var(--shop-mobile-gutter);
    }

    /* Full-width promotional surfaces have no card outline or rounded corners. */
    main > .discount-banner {
        padding-inline: 0;
    }

    main > .discount-banner > .container {
        max-width: none;
    }

    main .discount-banner .campaign-offer {
        padding-inline: 16px;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    /* Flatten only presentation wrappers so title, tiers and notes can wrap naturally. */
    main .discount-banner .campaign-offer-intro,
    main .discount-banner .campaign-offer-copy {
        display: contents;
    }

    main .discount-banner .campaign-offer-main {
        gap: 4px 12px;
    }

    main .discount-banner .campaign-offer-icon,
    main .discount-banner .campaign-offer-zero-minimum,
    main .discount-banner .campaign-offer-separator {
        display: none;
    }

    main .discount-banner .campaign-offer-title {
        flex: 1 1 130px;
        font-size: var(--shop-mobile-heading-size);
        font-weight: var(--shop-mobile-heading-weight);
    }

    main .discount-banner .campaign-offer-tiers {
        order: 1;
        max-width: 100%;
    }

    main .discount-banner p.campaign-offer-note {
        order: 2;
        flex: 0 0 100%;
        min-width: 0;
        font-size: var(--shop-mobile-note-size) !important;
        font-weight: var(--shop-mobile-body-weight) !important;
        line-height: 1.5;
    }

    main .discount-banner .campaign-offer-expiration {
        display: block;
    }

    main .discount-banner .campaign-offer-tier strong,
    main .discount-banner .campaign-offer-tier span {
        font-size: var(--shop-mobile-note-size);
        white-space: normal;
    }

    /* Text badges share one shape and scale; circular photo controls and nav counters do not. */
    main .discount-banner .campaign-offer-tier,
    .shop-overview .shop-section-photo-count,
    .shop-overview .shop-welcome-photo-count,
    .shop-overview .download-product-btn .badge,
    .shop-overview #fotopakete .badge,
    .shop-gallery #favCountBadge {
        box-sizing: border-box;
        padding: 3px 8px !important;
        border-radius: var(--shop-mobile-badge-radius) !important;
        font-size: var(--shop-mobile-badge-size) !important;
        font-weight: 600;
        line-height: 16px;
        white-space: normal;
    }

    .shop-overview .shop-section-photo-count,
    .shop-overview .shop-welcome-photo-count,
    .shop-overview .download-product-btn .badge,
    .shop-overview #fotopakete .badge,
    .shop-gallery #favCountBadge {
        border: 1px solid transparent;
    }

    main .discount-banner .campaign-offer-tier strong,
    main .discount-banner .campaign-offer-tier span {
        font-size: inherit;
        line-height: inherit;
    }

    .shop-overview .section-card,
    .shop-overview .section-card > .row.card-product {
        margin-inline: 0;
    }

    /* Photo sections are content, not another card nested inside the page. */
    .shop-overview :is(#einzelprodukte, #gruppenfotos),
    .shop-overview .section-card > .card-product {
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .shop-overview #downloads > .card-product > .row,
    .shop-overview .section-card > .row.card-product > [class*="col-"] {
        padding-inline: 0 !important;
    }

    .shop-overview #downloads > .card-product > .row {
        padding-top: var(--shop-mobile-title-content-gap, 20px) !important;
    }

    .shop-overview .section-label {
        left: 0;
        padding-inline: 0;
    }

    .shop-overview #download-cart-footer {
        padding-inline: 0 !important;
        background: transparent !important;
    }

    .shop-overview #download-cart-footer > div > .d-flex,
    .shop-overview #download-add-to-cart-btn {
        width: 100%;
    }

    /* Align package headings with the section heading on phones. */
    .shop-overview #fotopakete > .card-product > .bg-light {
        padding-inline: 0 !important;
        background: transparent !important;
    }

    .shop-overview .package-card-price-meta {
        flex-wrap: wrap;
    }

    .shop-overview .package-card-savings {
        flex-wrap: wrap;
        justify-content: flex-start;
        white-space: normal;
    }

    .shop-gallery .shop-gallery-content {
        padding-inline: 0 !important;
    }

    .shop-gallery .gallery-cta-bar {
        padding-inline: 0;
    }

    .shop-gallery .gallery-cta-inner {
        flex-wrap: wrap;
        align-items: stretch !important;
    }

    .shop-gallery .gallery-cta-form,
    .shop-gallery .gallery-cta-btn {
        width: 100%;
    }

    .shop-gallery .gallery-cta-form {
        margin-left: 0;
    }
}

.shop-discount-confirmation {
    position: fixed;
    z-index: 1080;
    top: calc(var(--shop-header-height, 64px) + 16px);
    left: 50%;
    transform: translateX(-50%);
    width: min(440px, calc(100% - 32px));
    padding: 16px 20px;
    border: 1px solid var(--tenant-primary-color);
    border-radius: 8px;
    background: #fff;
    color: #484848;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}
.shop-discount-confirmation {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 22px 18px;
    background: linear-gradient(120deg, color-mix(in srgb, var(--tenant-primary-color) 12%, white), white);
    box-shadow: 0 10px 32px rgb(0 0 0 / 18%);
    animation: shop-discount-arrive 450ms ease-out both, shop-discount-leave 300ms ease-in 3.5s forwards;
}
.shop-discount-confirmation-art {
    width: 68px;
    height: 80px;
    flex: 0 0 68px;
    fill: none;
    stroke: var(--tenant-primary-color);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: rotate(-7deg);
}
.shop-discount-confirmation-copy { min-width: 0; }
.shop-discount-confirmation-thanks { display: block; font-size: 14px; margin-bottom: 3px; }
.shop-discount-confirmation-title { display: block; font-size: 22px; font-weight: 600; line-height: 1.2; }
.shop-discount-confirmation-copy p { margin: 8px 0 0; font-size: 14px; line-height: 1.5; }
@keyframes shop-discount-arrive {
    from { opacity: 0; transform: translate(-50%, -28px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes shop-discount-leave {
    to { opacity: 0; transform: translate(-50%, -12px); }
}
@media (prefers-reduced-motion: reduce) {
    .shop-discount-confirmation { animation: none; }
}

/* Keep the mobile gallery action within reach while browsing photos. */
@media (max-width: 767px) {
    body.shop-ui { --shop-mobile-title-content-gap: 20px; }

    body.shop-ui #gruppenfotos .shop-photo-preview-heading { display: none; }
    body.shop-ui #gruppenfotos .carousel-inner { border: 0 !important; }

    /* Match viewer navigation with an inverted palette on the white product page. */
    body.shop-ui :is(#einzelprodukte, #gruppenfotos) :is(.carousel-control-prev, .carousel-control-next) {
        top: 50%; bottom: auto; transform: translateY(-50%);
        width: 44px; height: 44px; border-radius: 50%;
        background: #f1f2f4; color: #59616b; opacity: 1;
    }
    body.shop-ui :is(#einzelprodukte, #gruppenfotos) :is(.carousel-control-prev-icon, .carousel-control-next-icon) {
        width: 12px; height: 12px; background: none !important;
        border-top: 2px solid currentColor; border-right: 2px solid currentColor;
    }
    body.shop-ui :is(#einzelprodukte, #gruppenfotos) .carousel-control-prev-icon { transform: rotate(-135deg); margin-left: 5px; }
    body.shop-ui :is(#einzelprodukte, #gruppenfotos) .carousel-control-next-icon { transform: rotate(45deg); margin-right: 5px; }
    body.shop-ui :is(#einzelprodukte, #gruppenfotos) :is(.carousel-control-prev, .carousel-control-next):focus-visible {
        outline: 2px solid var(--tenant-primary-color, var(--bs-primary)); outline-offset: 2px;
    }

    body.shop-ui main .shop-section-title {
        margin-bottom: var(--shop-mobile-title-content-gap);
    }

    body.shop-ui main .shop-section-title:has(+ .shop-section-subtitle) {
        margin-bottom: 0;
    }

    body.shop-ui main .shop-page-subtitle.shop-section-subtitle {
        margin-bottom: var(--shop-mobile-title-content-gap);
    }

    /* Avoid stacking download padding, card margin and the next section's margin. */
    .shop-overview #downloads:has(+ #fotopakete) > .card-product {
        margin-bottom: 0 !important;
    }

    .shop-overview #downloads:has(+ #fotopakete) > .card-product > .row {
        padding-bottom: 8px !important;
    }

    /* The global paragraph reset uses !important, so the subtitle gap must override it. */
    body.shop-ui main #fotopakete .shop-section-subtitle {
        margin-bottom: var(--shop-mobile-title-content-gap) !important;
    }

    body.shop-ui main .shop-gallery-content .gallery-filter-pills {
        margin-top: var(--shop-mobile-title-content-gap);
    }

    body.shop-ui:has(.shop-gallery) {
        --gallery-action-height: calc(69px + env(safe-area-inset-bottom));
        padding-bottom: var(--gallery-action-height) !important;
    }

    body.shop-ui main .gallery-cta-bar {
        position: fixed;
        inset: auto 0 0;
        z-index: 1020;
        padding: 12px max(16px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
        background: var(--bs-white);
        border-top: 1px solid var(--bs-border-color);
        box-shadow: 0 -4px 16px rgb(0 0 0 / 6%);
    }

    body.shop-ui main .gallery-cta-bar .gallery-cta-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    body.shop-ui:has(.shop-gallery) .floating-offer {
        bottom: calc(var(--gallery-action-height) + 12px);
    }
}

.download-favorites-tile .download-show-all {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    height: 100%;
    min-height: 44px;
    padding: 8px;
    border: 1px dashed rgba(var(--bs-primary-rgb), 0.22);
    border-radius: 0;
    background: var(--bs-white);
    color: var(--tenant-primary-color, var(--bs-primary));
    text-align: center;
    white-space: normal;
    cursor: pointer;
}
.download-favorites-tile .download-show-all:hover {
    border-color: currentColor;
}
.download-favorites-tile .download-show-all:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: -3px;
}
.download-favorites-tile svg {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: var(--bs-gray-600);
}
.download-favorites-tile-heart {
    stroke: var(--tenant-primary-color, var(--bs-primary));
}
.photo-picker-grid .photo-in-list-button[hidden] { display: none !important; }
[data-cart-photo-filter] [data-filter-photo][hidden] { display: none !important; }
.package-unassigned { color: var(--bs-gray-600); }
.package-selection-status { color: var(--tenant-primary-color, var(--bs-primary)); }
.photo-picker-grid .selected-image::after {
    content: '✓';
    position: absolute;
    bottom: 6px;
    left: 6px;
    background: var(--tenant-primary-color, var(--bs-primary));
    color: var(--bs-white);
    border-radius: 50%;
    width: 24px;
    height: 24px;
    text-align: center;
    pointer-events: none;
}
.download-favorites-tile-hint {
    color: var(--bs-gray-600);
    font-size: 12px;
    line-height: 1.3;
}
.download-favorites-tile-action {
    max-width: 140px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
}

/* The photo strip reuses the desktop gallery; only its mobile placement changes. */
.individual-photo-position { display: none; }
.individual-photo-select {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: transparent;
}
.individual-photo-select:focus-visible {
    outline: 2px solid var(--tenant-primary-color);
    outline-offset: 2px;
}

@media (max-width: 767px) {
    body.shop-ui .individual-preview-heading { display: none; }
    body.shop-ui :is(#Individual-carousel, #Group-carousel) {
        background: transparent; border-radius: 0; padding-top: 0;
    }
    body.shop-ui :is(#Individual-carousel, #Group-carousel) .carousel-inner { margin-bottom: 0 !important; }
    body.shop-ui :is(#Individual-carousel, #Group-carousel) .magnifier-button { top: 8px; bottom: auto !important; right: 8px !important; }
    body.shop-ui .individual-photo-strip {
        width: calc(100% + 32px);
        max-width: none;
        margin: 12px -16px 20px !important;
        padding: 10px 16px 4px;
        background: #f5f1eb;
        border-block: 1px solid #e8e0d5;
        box-shadow: 0 2px 8px rgb(72 54 32 / 5%);
    }
    body.shop-ui :is(#Individual-toggle-gallery, #Group-toggle-gallery) { display: none; }
    body.shop-ui :is(#Individual-collapse-gallery, #Group-collapse-gallery) { display: block !important; height: auto !important; }
    body.shop-ui :is(#Individual-collapse-gallery, #Group-collapse-gallery) > .card {
        border: 0;
        box-shadow: none;
        background: transparent;
        margin: 0 !important;
        padding: 0 !important;
    }
    body.shop-ui :is(#Individual-gallery, #Group-gallery) {
        display: flex;
        flex-wrap: nowrap;
        gap: 8px;
        width: calc(100% + 32px);
        max-width: none;
        margin: 0 -16px;
        padding: 0 16px;
        overflow-x: auto;
        scrollbar-width: none;
    }
    body.shop-ui :is(#Individual-gallery, #Group-gallery) .gallery-item {
        --individual-thumbnail-content-height: 84px;
        flex: 0 0 auto;
        width: auto;
        height: calc(var(--individual-thumbnail-content-height) + 4px);
        padding: 0;
        margin: 0 !important;
        border: 2px solid transparent;
        border-radius: 6px;
        overflow: hidden;
    }
    body.shop-ui :is(#Individual-gallery, #Group-gallery) .gallery-item.selected-image {
        border-color: var(--tenant-primary-color);
        background: #fff;
        outline: none;
        box-shadow: none;
    }
    body.shop-ui :is(#Individual-gallery, #Group-gallery) .individual-photo-select img {
        width: auto;
        max-width: none;
        height: 100%;
        object-fit: contain;
        background: #f1f2f4;
    }
    body.shop-ui :is(#Individual-gallery, #Group-gallery) .gallery-fav-btn { width: 32px; height: 32px; top: 2px; right: 2px; }
    body.shop-ui .individual-photo-position {
        display: block;
        text-align: center;
        margin-top: 6px;
        color: #6b7280;
        font-size: 12px;
        font-weight: 400;
    }
    body.shop-ui .individual-products-column { min-height: 0 !important; }
    body.shop-ui .individual-products-column > .border { padding: 0 !important; border: 0 !important; }
    body.shop-ui .individual-products-column .tab-pane { max-height: none !important; overflow: visible; }
}
@media (max-width: 767px) {
    body.shop-ui :is(#Individual-gallery, #Group-gallery) { scrollbar-width: none; }
    body.shop-ui :is(#Individual-gallery, #Group-gallery)::-webkit-scrollbar { display: none; }
}

.individual-photo-filter, .individual-gallery-link { display: none !important; }
@media (max-width: 767px) {
    body.shop-ui :is(#Individual-carousel, #Group-carousel) { background: transparent; border-radius: 0; padding-top: 0; }
    body.shop-ui :is(#Individual-gallery, #Group-gallery) .individual-photo-select img { background: transparent; }
    body.shop-ui main .individual-photo-filter { display: flex !important; margin: 8px 0 0; padding: 3px; background: rgb(255 255 255 / 45%); }
    body.shop-ui main .individual-photo-filter > button { min-height: 44px; font-size: 12px; padding: 4px 6px; }
    body.shop-ui .individual-photo-empty { font-size: 12px; font-weight: 400; color: #6b7280; margin: 0 0 12px; }
    body.shop-ui :is(#Individual-gallery, #Group-gallery) .gallery-item[hidden] { display: none !important; }
}

/* Labeled photo previews make effects recognizable without relying on color alone. */
body.shop-ui .shop-photo-effect {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-width: 44px;
    min-height: 48px;
    padding: 4px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: #4b5563;
    background: transparent;
    cursor: pointer;
}
body.shop-ui .shop-photo-effect svg { width: 28px; height: 23px; }
body.shop-ui .shop-photo-effect span { font-size: 10px; font-weight: 500; line-height: 12px; white-space: nowrap; }
body.shop-ui .btn-check:checked + .shop-photo-effect {
    border-color: var(--tenant-primary-color);
    background: rgba(var(--bs-primary-rgb), 0.08);
    box-shadow: inset 0 -2px var(--tenant-primary-color);
}
body.shop-ui .btn-check:focus-visible + .shop-photo-effect {
    outline: 2px solid var(--tenant-primary-color);
    outline-offset: 2px;
}
@media (max-width: 374px) {
    body.shop-ui :is(.mobile-sticky-footer, .group-mobile-sticky-footer) > .d-flex:last-child { flex-wrap: wrap; gap: 8px !important; }
}

@media (max-width: 767px) {
    body.shop-ui .individual-gallery-link {
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 44px;
        font-size: 12px;
        font-weight: 500;
        color: var(--tenant-primary-color);
        text-decoration: underline;
        text-underline-offset: 3px;
    }
    body.shop-ui .individual-gallery-link:focus-visible { outline: 2px solid var(--tenant-primary-color); outline-offset: 2px; }
    body.shop-ui .individual-photo-empty { margin: 8px 0; }
}

/* Shared cart confirmation for desktop and mobile shop selections. */
body.shop-ui #toast-container:has(.shop-cart-confirmation) {
    top: auto;
    bottom: max(var(--shop-cart-confirmation-bottom, 80px), calc(var(--shop-bottom-navigation-space, 0px) + 80px + env(safe-area-inset-bottom, 0px)));
    right: 20px;
}
body.shop-ui #toast-container > .shop-cart-confirmation {
    background: rgba(222, 245, 232, 0.88);
    color: #205b39;
    border: 1px solid rgba(40, 130, 75, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.12);
    padding: 8px 12px;
    font-family: inherit;
    font-size: 12px !important;
    font-weight: 400;
    line-height: 1.35;
    opacity: 1;
    background-image: none !important;
    display: flex;
    align-items: center;
    gap: 10px;
}
body.shop-ui #toast-container > .shop-cart-confirmation .toast-message {
    font-family: inherit;
    font-size: 12px !important;
    font-weight: 400;
    line-height: 1.4;
    color: inherit;
}
body.shop-ui #toast-container > .shop-cart-confirmation::before {
    content: none;
}
body.shop-ui #toast-container > .shop-cart-confirmation {
    display: flex !important; /* Override the toast library's inline display:block. */
}
body.shop-ui .shop-cart-confirmation-icon {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    align-self: center;
}
@media (max-width: 767px) {
    body.shop-ui #toast-container:has(.shop-cart-confirmation) {
        top: auto;
        right: 16px;
        left: 16px;
        width: auto;
    }
    body.shop-ui #toast-container > .shop-cart-confirmation { width: 100%; }
}

.shop-registration-accesses { margin-top: 24px; }
.shop-registration-accesses ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; margin: 8px 0 0; list-style: none; }
.shop-registration-accesses li { padding: 4px 10px; border-radius: 6px; background: #f5f6f7; font-size: 14px; overflow-wrap: anywhere; }

/* Pre-opening email registration shares the confirmation page's visual hierarchy. */
body.shop-ui main.shop-email-preparing .collect-email-page { padding: 32px 0; }
body.shop-ui main.shop-email-preparing .card-wrapper { max-width: 560px; }
body.shop-ui main.shop-email-preparing .collect-email-card { display: block; padding: 40px 28px 28px; text-align: center; }
body.shop-ui main.shop-email-preparing .collect-email-card > br,
body.shop-ui main.shop-email-preparing #skipForm,
body.shop-ui main.shop-email-preparing .collect-email-step-hint { display: none; }
body.shop-ui main.shop-email-preparing .collect-email-visual { display: block; padding: 0; }
body.shop-ui main.shop-email-preparing .collect-email-visual .tenant-logo { width: auto; max-width: min(300px, 100%); max-height: 64px; margin: 0 auto 24px; }
body.shop-ui main.shop-email-preparing .preparing-job-name { margin: 0 0 12px; color: #697586; font-size: 17px !important; }
.preparing-notification-icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; background: #f5f6f7; color: var(--tenant-primary-color); }
.preparing-notification-icon svg { width: 100%; height: 100%; }
body.shop-ui main.shop-email-preparing .collect-email-card .collect-email-welcome { max-width: none; margin: 0; text-align: center; }
body.shop-ui main.shop-email-preparing .collect-email-card .collect-email-welcome :is(.collect-email-title, .collect-email-welcome-body) { width: 100%; max-width: none; text-align: center; margin-inline: 0; }
body.shop-ui main.shop-email-preparing .collect-email-card .collect-email-title { color: #444950; margin-bottom: 24px; }
body.shop-ui main.shop-email-preparing .collect-email-card .collect-email-welcome-body { font-size: 20px !important; line-height: 1.5; margin-bottom: 0; }
body.shop-ui main.shop-email-preparing #emailForm,
body.shop-ui main.shop-email-preparing #emailForm > .form-width-wrapper { display: block; width: 100%; max-width: none; margin: 0; }
body.shop-ui main.shop-email-preparing #emailForm { padding-top: 28px; }
body.shop-ui main.shop-email-preparing .collect-email-actions { margin-top: 28px; }
body.shop-ui main.shop-email-preparing .collect-email-add-code { width: 100%; max-width: none; text-align: left; margin-top: 20px !important; }
body.shop-ui main.shop-email-preparing .preparing-back { margin-top: 28px; }
@media (max-width: 767px) {
    body.shop-ui main.shop-email-preparing .collect-email-page { padding: 0; }
    body.shop-ui main.shop-email-preparing .collect-email-card { padding-top: 52px; border: 0; border-radius: 0; box-shadow: none; }
}

body.shop-ui main.shop-email-preparing #emailForm .collect-email-privacy-note { margin-top: 12px; }


/* Compact group-photo preview, separate from portrait favorites. */
body.shop-ui .gallery-group-strip { margin: 16px 16px 24px; padding-top: 18px; border-top: 1px solid var(--bs-border-color, #dee2e6); }
body.shop-ui .gallery-group-strip-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
body.shop-ui .gallery-group-strip-heading h2 { margin: 0; font-size: 16px !important; line-height: 1.4; font-weight: 600; }
body.shop-ui .gallery-group-strip-heading h2 span { font-weight: 400; }
body.shop-ui .gallery-group-strip-heading a { font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }
body.shop-ui .gallery-group-thumbnails { display: grid; width: 100%; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 10px; }
body.shop-ui .gallery-group-thumbnails a { display: block; border-radius: 8px; overflow: hidden; background: var(--bs-tertiary-bg, #f5f6f7); }
body.shop-ui .gallery-group-thumbnails img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; display: block; border-radius: 8px; }
body.shop-ui .gallery-group-strip a:focus-visible { outline: 2px solid var(--tenant-primary-color); outline-offset: 3px; }

@media (max-width: 767px) {
    body.shop-ui .gallery-group-strip { margin-inline: 0; }
}

/* Stable desktop shell across code entry, email entry and registration results. */
.shop-entry-preparing-image { display: none; }
@media (min-width: 992px) {
    body.shop-ui main.shop-entry-frame { --shop-entry-min-height: clamp(640px, calc(100vh - 214px), 800px); display: block; }
    body.shop-ui main.shop-entry-frame > .container { margin-block: 0; }
    body.shop-ui main.shop-entry-frame > .container > br { display: none; }
    body.shop-ui main.shop-entry-frame .main-element-container,
    body.shop-ui main.shop-entry-frame .shop-registration-result,
    body.shop-ui main.shop-entry-frame .collect-email-page { margin: 70px 0 48px !important; padding: 0; width: 100%; max-width: none; }
    body.shop-ui main.shop-entry-frame .card-index,
    body.shop-ui main.shop-entry-frame .shop-registration-result,
    body.shop-ui main.shop-entry-frame .collect-email-card { min-height: var(--shop-entry-min-height); border-radius: 12px; }
    body.shop-ui main.shop-entry-frame .card-index { margin-inline: 0; }
    body.shop-ui main.shop-entry-frame .card-wrapper,
    body.shop-ui main.shop-entry-frame .collect-email-card { width: 100%; max-width: none; }
    body.shop-ui main.shop-entry-frame .collect-email-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    body.shop-ui main.shop-entry-frame .shop-registration-hero { position: relative; min-height: 0; }
    body.shop-ui main.shop-entry-frame .shop-registration-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
    body.shop-ui main.shop-email-preparing.shop-entry-frame .collect-email-card { display: flex; flex-direction: column; justify-content: center; padding: 48px 40px 32px calc(50% + 40px); overflow: hidden; }
    body.shop-ui main.shop-email-preparing.shop-entry-frame .shop-entry-preparing-image { display: block; position: absolute; inset: 0 auto 0 0; width: 50%; height: 100%; object-fit: cover; }
    body.shop-ui:has(main.shop-entry-frame) .shop-footer > .container { padding-inline: 12px; }
    body.shop-ui:has(main.shop-entry-frame) .shop-footer > .container > div { max-width: none; margin-inline: 0; }
}

/* Keep additional access-code fields removable on every screen size. */
.shop-access-entry #codeForm .input-group:has(.remove-code-btn) .form-control {
    padding-inline: 44px !important;
    border-radius: 8px !important;
}
.shop-access-entry #codeForm .input-group-append {
    display: flex;
    position: absolute;
    inset: 0 0 0 auto;
    z-index: 5;
    align-items: center;
}
.shop-access-entry #codeForm .remove-code-btn {
    width: 44px;
    min-height: 44px;
    margin: 0;
    justify-content: center;
    color: var(--bs-secondary-color, #6c757d);
    border-radius: 6px;
}
.shop-access-entry #codeForm .remove-code-btn:hover {
    background: rgba(var(--bs-primary-rgb), 0.08);
    color: var(--bs-primary);
}
.shop-access-entry #codeForm .remove-code-btn:focus-visible {
    outline: 2px solid var(--bs-primary);
    outline-offset: -3px;
}

/* Shared code-entry typography and guidance across mobile and desktop. */
    .shop-access-entry { --shop-access-heading-color: #484848; }
    body.shop-ui main.shop-access-entry :is(h1, h2, h3, h4, h5, h6) { color: var(--shop-access-heading-color); }
    .shop-access-instruction-desktop { display: none; }
    .shop-access-instruction-mobile { display: inline; }
    .shop-access-entry .shop-access-welcome { display: none; }
    .shop-access-entry .container:has(> .shop-access-heading) { display: flex; flex-direction: column; padding: 32px 24px 0 !important; }
    .shop-access-entry .container:has(> .shop-access-heading) > br { display: none; }
    body.shop-ui main.shop-access-entry .shop-access-heading {
        display: block;
        position: relative;
        width: fit-content;
        max-width: 100%;
        margin: 24px auto 12px;
        font-size: 30px !important;
        line-height: 1.15;
        color: var(--shop-access-heading-color);
        text-align: center;
    }
    .shop-access-entry .shop-access-heading-accent {
        display: block;
        position: absolute;
        right: 20px;
        top: -15px;
        transform: rotate(-45deg);
        width: 16px;
        height: 25px;
        color: var(--tenant-primary-color);
        pointer-events: none;
    }
    .shop-access-entry .shop-access-instruction {
        position: relative;
        isolation: isolate;
        text-align: left !important;
        padding: 18px 0 12px 36px;
        font-family: 'Caveat', cursive;
        font-size: 26px !important;
        font-weight: 700 !important;
        color: var(--tenant-primary-color) !important;
        line-height: 1.15;
    }
    .shop-access-entry .shop-access-instruction::before {
        content: "";
        position: absolute;
        inset: 0 -4px 4px;
        z-index: -1;
        border-radius: 45% 55% 48% 52%;
        background: radial-gradient(ellipse at 42% 45%, color-mix(in srgb, var(--tenant-primary-color) 12%, transparent), transparent 75%);
        pointer-events: none;
    }
    .shop-access-entry .shop-access-instruction-accent {
        display: block;
        position: absolute;
        left: 0;
        bottom: 0;
        width: 36px;
        height: 34px;
        color: var(--tenant-primary-color);
        pointer-events: none;
    }
    .shop-access-entry #codeForm > .w-100 { display: flex; flex-direction: column; margin-top: 4px !important; }
    .shop-access-entry #codeForm > .w-100 > br { display: none; }
    .shop-access-entry #codeForm .input-group,
    .shop-access-entry #codeForm .btn { width: 100% !important; }
    .shop-access-entry #codeForm .form-control { text-align: center !important; font-size: 16px !important; height: 48px !important; padding: 0 12px !important; line-height: normal; }
    .shop-access-entry #codeForm .form-control::placeholder { font-size: 14px; }
    .shop-access-entry #codeForm .shop-access-submit { order: 2; margin-top: 28px !important; position: relative; }
    .shop-access-entry .shop-access-submit::after { content: "→"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: white; font-size: 24px; pointer-events: none; }
    .shop-access-entry #codeForm .shop-access-submit .btn { min-height: 48px; }
    .shop-access-entry #codeForm .shop-access-add { order: 1; margin-top: 16px !important; }
    .shop-access-entry #add-code-btn span { font-size: 14px; font-weight: 300; }
    .shop-access-entry #add-code-btn { border: 0 !important; background: transparent !important; padding: 0 !important; color: #555 !important; }
    .shop-access-entry #add-code-btn .icon-circle { color: inherit; border-color: currentColor; }
    .shop-access-entry #codeForm .shop-access-security { display: none; }
    .shop-access-entry .container:has(> .shop-access-heading) > .text-danger > br { display: none; }
    .shop-access-entry .container:has(> .shop-access-heading) > .w-100:has(.account-card) { padding-inline: 0 !important; margin-top: 16px !important; }
    .shop-access-entry .shop-access-arrow { display: none; }
    .shop-access-entry .shop-access-personal {
        display: block;
        order: 1;
        position: relative;
        margin-top: 28px;
        padding-top: 28px;
        border-top: 1px solid var(--bs-border-color);
        text-align: left;
        overflow-wrap: anywhere;
    }
    body.shop-ui main.shop-access-entry p { color: #555 !important; }
    body.shop-ui main.shop-access-entry .shop-access-personal-label { font-size: 12px !important; color: #777 !important; margin-bottom: 10px; }
    body.shop-ui main.shop-access-entry .shop-access-personal h2 { font-size: 24px !important; padding-right: 34px; margin-bottom: 12px; color: var(--shop-access-heading-color); }
    .shop-access-entry #codeForm .form-control { color: #333 !important; border-color: #999 !important; }
    .shop-access-entry #codeForm .form-control::placeholder { color: #777 !important; }
    .shop-access-entry .shop-access-personal svg { position: absolute; top: 50px; right: 0; width: 34px; height: 38px; fill: none; stroke: var(--tenant-primary-color); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }

@media (min-width: 768px) {
    .shop-access-entry .container:has(> .shop-access-heading) {
        padding: 48px 40px 32px !important;
    }
    .shop-access-entry .card-index > .col-12:has(#codeForm) {
        padding-bottom: 0 !important;
    }
    body.shop-ui main.shop-access-entry .shop-access-heading {
        margin-top: 32px;
        font-weight: 700;
    }
    .shop-access-entry .shop-access-personal {
        margin-bottom: 0;
    }
}

/* Compact package purchase areas without reducing the photo previews. */
@media (max-width: 767px) {
    .shop-overview #fotopakete > .card-product { margin-bottom: 16px !important; padding-bottom: 20px !important; }
    /* Alternate package surfaces without adding another horizontal inset. */
    .shop-overview #fotopakete > .card-product:nth-child(even of .card-product) {
        background: var(--bs-tertiary-bg, #f8f9fa);
        box-shadow: -16px 0 0 var(--bs-tertiary-bg, #f8f9fa), 16px 0 0 var(--bs-tertiary-bg, #f8f9fa);
    }
    .shop-overview #fotopakete .ratio > .bg-white { background: transparent !important; }
    .shop-overview #fotopakete .package-card-summary-details { padding: 0 !important; }
    .shop-overview #fotopakete .package-card-purchase { padding: 16px 0 !important; margin-bottom: 0 !important; }
    .shop-overview #fotopakete > .card-product > .row { margin-inline: 0; }
    .shop-overview #fotopakete > .card-product > .row > [class*="col-"] { padding-inline: 0 !important; }
    .shop-overview #fotopakete .package-card-summary { border-left: 0 !important; background: transparent !important; }
    .shop-overview #fotopakete .package-card-purchase .btn { --bs-btn-hover-bg: var(--tenant-primary-color); --bs-btn-hover-color: var(--bs-white); }
}
@media (max-width: 767px) {
    .shop-overview #fotopakete .package-card-spacer { display: none; }
}

@media (max-width: 991px) {
    .shop-overview .package-card-subtitle-row { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
    .shop-overview .package-card-motif-badge { white-space: nowrap; }
}

/* Illustrated download item shares the package photo grid. */
.shop-overview .package-product-copy--front { display: contents; }
.shop-overview .package-product-copy--back { display: none; }
.shop-overview .package-product-visual--protected { overflow: hidden; }
.shop-overview .package-download-visual { padding-top: 12px; }
.shop-overview .package-download-art { display: flex; align-items: center; justify-content: center; color: var(--tenant-primary-color); padding: 0 8px; }
.shop-overview .package-download-art svg { display: block; width: 100%; max-width: 190px; height: auto; }

.shop-overview .package-desktop-download { color: var(--tenant-primary-color); background: rgba(var(--bs-primary-rgb), 0.08); border: 0; border-radius: 12px; }
.shop-overview .package-desktop-download-art { flex: 0 0 72px; color: var(--tenant-primary-color); }
.shop-overview .package-desktop-download-art svg { display: block; width: 100%; height: auto; }

.shop-overview .package-download-card { max-width: 240px; aspect-ratio: 3 / 2; margin: 12px auto 16px; padding: 8px; display: flex; flex-direction: column; justify-content: center; border-radius: 12px; background: rgba(var(--bs-primary-rgb), 0.08); }
.shop-overview .package-download-card .package-download-visual { padding-top: 0; }
.shop-overview .package-download-card .package-download-art { padding: 0; }
.shop-overview .package-download-card .package-download-art svg { width: 44%; max-width: 105px; }

/* Desktop package section follows the download overview heading. */
@media (min-width: 992px) {
    body.shop-ui #fotopakete > .card-product { border: 1px solid var(--bs-border-color); border-radius: 12px; box-shadow: none; background: var(--bs-white); overflow: hidden; }
    body.shop-ui #fotopakete > .card-product:nth-child(odd of .card-product) { background: var(--bs-tertiary-bg, #f8f9fa); }
    body.shop-ui #fotopakete > .card-product > .row { margin: 0; }
    body.shop-ui #fotopakete .ratio > .bg-white { background: transparent !important; }
    .shop-overview .package-desktop-heading { align-items: center; gap: 16px; padding: 0; margin-bottom: 20px; }
    .shop-overview .package-desktop-heading svg { display: block; width: 60px; height: auto; flex-shrink: 0; color: var(--tenant-primary-color); }
    .shop-overview .package-desktop-heading h2 { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.2; color: var(--bs-dark, #212529); }
    body.shop-ui #fotopakete .package-card-summary { border-left: 0 !important; border-radius: 0; background: transparent !important; }
}
@media (min-width: 992px) {
    .shop-overview .package-desktop-heading p { margin: 4px 0 0; font-size: 14px; color: var(--bs-secondary-color, #59616b); }
    body.shop-ui :is(#einzelprodukte, #gruppenfotos) { --shop-print-surface: #fdfcf9; border: 0; background: var(--shop-print-surface); padding: 20px 0; box-shadow: 0 0 0 100vmax var(--shop-print-surface); clip-path: inset(0 -100vmax); }
    /* Keep the group heading inside the clipped print surface, with no white divider. */
    body.shop-ui #gruppenfotos { margin-top: 0; }
    body.shop-ui #gruppenfotos > .section-label { position: static; display: block; margin-bottom: 16px; padding: 0; background: transparent; white-space: normal; }
    :is(#einzelprodukte, #gruppenfotos) :is(#Individual-product-catalog, #Group-product-catalog) { background: var(--bs-white); }
    body.shop-ui :is(#einzelprodukte, #gruppenfotos) > .card-product { border: 1px solid var(--bs-border-color); border-radius: 10px; box-shadow: none; background: linear-gradient(to right, transparent 50%, var(--bs-white) 50%); margin: 0; padding: 20px 12px; }
    :is(#einzelprodukte, #gruppenfotos) .individual-preview-column, :is(#einzelprodukte, #gruppenfotos) .individual-products-column { padding-inline: 16px; min-width: 0; }
    :is(#einzelprodukte, #gruppenfotos) .individual-products-column { border-left: 0; background: var(--bs-white); }
    :is(#einzelprodukte, #gruppenfotos) .individual-desktop-step { display: none !important; }
    :is(#einzelprodukte, #gruppenfotos) .individual-desktop-step h3 { margin: 0 !important; font-size: 22px !important; font-weight: 600 !important; }
    :is(#einzelprodukte, #gruppenfotos) .individual-desktop-position { font-size: 14px; color: var(--bs-secondary-color); white-space: nowrap; }
    :is(#einzelprodukte, #gruppenfotos) .print-desktop-heading > svg { display: none; }
    :is(#einzelprodukte, #gruppenfotos) .print-photo-count { background: transparent !important; color: var(--bs-secondary-color); padding: 0; }
    :is(#einzelprodukte, #gruppenfotos) :is(#Individual-product-catalog, #Group-product-catalog) { border: 0 !important; padding: 16px !important; }
    :is(#einzelprodukte, #gruppenfotos) .individual-preview-column { display: flex; flex-direction: column; }
    :is(#einzelprodukte, #gruppenfotos) .individual-photo-strip { margin: auto 0 0 !important; width: 100%; padding: 12px 0 0; }
    :is(#einzelprodukte, #gruppenfotos) :is(#Individual-toggle-gallery, #Group-toggle-gallery) { display: none; }
    :is(#einzelprodukte, #gruppenfotos) :is(#Individual-collapse-gallery, #Group-collapse-gallery) { display: block !important; height: auto !important; }
    :is(#einzelprodukte, #gruppenfotos) :is(#Individual-collapse-gallery, #Group-collapse-gallery) > .card { border: 0; box-shadow: none; background: transparent; padding: 0 !important; margin: 0 !important; }
    :is(#einzelprodukte, #gruppenfotos) :is(#Individual-gallery, #Group-gallery) { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; margin: 0; padding: 3px 2px 8px; scrollbar-width: thin; scrollbar-color: #c1c1c1 transparent; }
    :is(#einzelprodukte, #gruppenfotos) :is(#Individual-gallery, #Group-gallery) { mask-image: linear-gradient(to right, transparent, black 8px, black calc(100% - 16px), transparent); }
    :is(#einzelprodukte, #gruppenfotos) :is(#Individual-gallery, #Group-gallery)::-webkit-scrollbar { height: 6px; }
    :is(#einzelprodukte, #gruppenfotos) :is(#Individual-gallery, #Group-gallery)::-webkit-scrollbar-track { background: transparent; }
    :is(#einzelprodukte, #gruppenfotos) :is(#Individual-gallery, #Group-gallery)::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 4px; }
    :is(#einzelprodukte, #gruppenfotos) :is(#Individual-gallery, #Group-gallery)::-webkit-scrollbar-thumb:hover { background: #a8a8a8; }
    :is(#einzelprodukte, #gruppenfotos) :is(#Individual-gallery, #Group-gallery)::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
    :is(#einzelprodukte, #gruppenfotos) :is(#Individual-gallery, #Group-gallery) .gallery-item { --individual-thumbnail-content-height: 88px; flex: 0 0 auto; width: auto; height: calc(var(--individual-thumbnail-content-height) + 4px); margin: 0 !important; padding: 0; border: 2px solid transparent; border-radius: 5px; overflow: hidden; }
    :is(#einzelprodukte, #gruppenfotos) :is(#Individual-gallery, #Group-gallery) .gallery-item.selected-image { border-color: var(--tenant-primary-color); box-shadow: none; }
    :is(#einzelprodukte, #gruppenfotos) :is(#Individual-product-catalog, #Group-product-catalog) .product-item.selected { background: rgba(var(--bs-primary-rgb), 0.08); box-shadow: none; }
    :is(#einzelprodukte, #gruppenfotos) :is(#Individual-product-catalog, #Group-product-catalog) .tab-pane { padding-right: 12px; scrollbar-width: thin; scrollbar-color: #c1c1c1 transparent; }
    :is(#einzelprodukte, #gruppenfotos) :is(#Individual-product-catalog, #Group-product-catalog) .bl-prod-table td { border-bottom-color: rgba(0, 0, 0, 0.055); padding-block: 10px; }
    :is(#einzelprodukte, #gruppenfotos) :is(#Individual-product-catalog, #Group-product-catalog) td.price-cell { padding-right: 16px; width: 90px; min-width: 90px; }
    :is(#einzelprodukte, #gruppenfotos) :is(#Individual-product-catalog, #Group-product-catalog) .price { color: var(--bs-dark) !important; font-size: 15px !important; font-weight: 600 !important; font-variant-numeric: tabular-nums; }
    :is(#einzelprodukte, #gruppenfotos) :is(#Individual-product-catalog, #Group-product-catalog) td.badge-cell { width: 100px; min-width: 100px; max-width: 100px; }
    :is(#einzelprodukte, #gruppenfotos) :is(#Individual-product-catalog, #Group-product-catalog) .surface-badge { border-color: transparent !important; background: var(--bs-tertiary-bg) !important; border-radius: 5px; padding-block: 4px; }
    :is(#einzelprodukte, #gruppenfotos) :is(#Individual-product-catalog, #Group-product-catalog) .surface-badge.active { background: rgba(var(--bs-primary-rgb), 0.08) !important; }
    :is(#einzelprodukte, #gruppenfotos) :is(#Individual-product-catalog, #Group-product-catalog) .nav-tabs { border-bottom-width: 1px; }
    :is(#einzelprodukte, #gruppenfotos) :is(#Individual-gallery, #Group-gallery) .individual-photo-select img { width: auto; max-width: none; height: 100%; object-fit: contain; }
    :is(#einzelprodukte, #gruppenfotos) :is(#Individual-gallery, #Group-gallery) .gallery-fav-btn { display: none; }
    .shop-overview .print-desktop-heading { align-items: center; gap: 16px; margin-bottom: 20px; }
    .shop-overview .print-desktop-heading svg { width: 60px; height: auto; flex-shrink: 0; color: var(--tenant-primary-color); }
    .shop-overview .print-desktop-heading h2 { margin: 0; font-size: 32px; font-weight: 700; line-height: 1.2; color: var(--bs-dark); }
    .shop-overview .print-desktop-heading p { margin: 4px 0 0; font-size: 14px; color: var(--bs-secondary-color, #59616b); }
    .shop-overview .print-desktop-title-row { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; }
    .shop-overview .print-photo-count { font-size: 14px; font-weight: 400; }
    :is(#einzelprodukte, #gruppenfotos) .individual-preview-heading { display: none; }
    :is(#einzelprodukte, #gruppenfotos) .individual-products-column { margin-top: 0 !important; min-height: 0 !important; }
    :is(#einzelprodukte, #gruppenfotos) .individual-products-column > br { display: none; }
    :is(#einzelprodukte, #gruppenfotos) .individual-products-column > .fixed-bottom-section { margin: auto 16px 0; padding: 16px 0 0 !important; border-top: 0; border-radius: 0; }
    :is(#einzelprodukte, #gruppenfotos) .fixed-bottom-section > .row { margin-inline: 0; --bs-gutter-x: 0; }
    :is(#einzelprodukte, #gruppenfotos) .fixed-bottom-section > .row > * { padding-inline: 0; }
    :is(#einzelprodukte, #gruppenfotos) .fixed-bottom-section > .row:has(.input-group) { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
    :is(#einzelprodukte, #gruppenfotos) .fixed-bottom-section > .row > .col-3 { flex: 0 0 132px; width: 132px; }
    :is(#einzelprodukte, #gruppenfotos) .fixed-bottom-section > .row > .col-9 { flex: 1 1 280px; width: auto; }
    :is(#einzelprodukte, #gruppenfotos) .individual-price-summary { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 4px 12px; }
    :is(#einzelprodukte, #gruppenfotos) .individual-price-note { color: var(--bs-secondary-color); font-size: 12px; }
    :is(#einzelprodukte, #gruppenfotos) .individual-price-summary > div { white-space: nowrap; }
    @media (max-width: 1399.98px) {
        :is(#einzelprodukte, #gruppenfotos) .individual-price-summary { flex-direction: column; align-items: flex-end; }
        :is(#einzelprodukte, #gruppenfotos) .individual-price-note { order: 1; }
    }
    :is(#einzelprodukte, #gruppenfotos) .fixed-bottom-section .input-group { border: 1px solid var(--bs-border-color); border-radius: 6px; overflow: hidden; height: 38px; }
    :is(#einzelprodukte, #gruppenfotos) .fixed-bottom-section .input-group > .btn { width: 38px; height: 36px !important; background: var(--bs-tertiary-bg); }
    :is(#einzelprodukte, #gruppenfotos) .fixed-bottom-section .input-group > input { height: 36px !important; border-block: 0 !important; }
    :is(#einzelprodukte, #gruppenfotos) .fixed-bottom-section > .btn { min-height: 44px; display: flex; align-items: center; justify-content: center; }
    :is(#einzelprodukte, #gruppenfotos) .fixed-bottom-section > small { display: none !important; }
    :is(#einzelprodukte, #gruppenfotos) .fixed-bottom-section > .d-flex:first-child { display: none !important; }
    :is(#einzelprodukte, #gruppenfotos) :is(#Individual-product-catalog, #Group-product-catalog) .tab-pane { height: clamp(160px, calc(100vh - 515px), 320px); max-height: clamp(160px, calc(100vh - 515px), 320px) !important; }
    :is(#einzelprodukte, #gruppenfotos) .carousel-inner {
        padding: 0 48px !important;
        margin-bottom: 0 !important;
        /* Allow paper shadows vertically while keeping adjacent slides clipped horizontally. */
        overflow: visible;
        clip-path: inset(-28px 0 -52px);
    }
    :is(#einzelprodukte, #gruppenfotos) .square-container { height: clamp(260px, calc(100vh - 390px), 400px); aspect-ratio: auto; }
    /* Paper treatment belongs to the desktop preview, not the delivered print or viewer. */
    :is(#einzelprodukte, #gruppenfotos) .carousel .square-container {
        background: radial-gradient(ellipse at 50% 58%, rgba(154, 137, 108, .055), transparent 72%);
        overflow: visible;
    }
    :is(#einzelprodukte, #gruppenfotos) .carousel [photo-product]:has(> .product-grid) {
        max-width: 100%;
        max-height: 100%;
        transform: perspective(1100px) rotateX(5deg) rotateY(-5deg) rotateZ(-1.5deg);
        transform-origin: center;
    }
    :is(#einzelprodukte, #gruppenfotos) .carousel [photo-product] > .product-grid {
        border-radius: 1px;
        outline: 1px solid rgba(255, 255, 255, .95);
        box-shadow: 0 1px 0 #fff, 1px 3px 0 #e3dfd7,
            2px 4px 1px rgba(66, 55, 39, .28),
            4px 9px 8px -3px rgba(54, 44, 30, .24),
            10px 22px 19px -8px rgba(54, 44, 30, .24),
            17px 32px 32px -14px rgba(54, 44, 30, .15);
    }
    :is(#einzelprodukte, #gruppenfotos) .carousel > .magnifier-button { top: 50%; left: 50%; right: auto !important; bottom: auto !important; transform: translate(-50%, -50%); width: 44px; height: 44px; border-radius: 50%; background: var(--bs-white); color: var(--bs-dark); opacity: 0; pointer-events: none; transition: opacity 150ms ease; }
    :is(#einzelprodukte, #gruppenfotos) .carousel:has(.carousel-item.active [photo-product]:hover) > .magnifier-button,
    :is(#einzelprodukte, #gruppenfotos) .carousel > .magnifier-button:hover,
    :is(#einzelprodukte, #gruppenfotos) .carousel > .magnifier-button:focus-visible { opacity: 1; pointer-events: auto; }
    :is(#einzelprodukte, #gruppenfotos) .carousel > .magnifier-button:focus-visible { outline: 2px solid var(--tenant-primary-color); outline-offset: 3px; }
    :is(#einzelprodukte, #gruppenfotos) .carousel-control-prev,
    :is(#einzelprodukte, #gruppenfotos) .carousel-control-next { top: 50%; bottom: auto; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--bs-border-color); background: var(--bs-white); color: var(--bs-secondary-color, #59616b); opacity: 1; }
    :is(#einzelprodukte, #gruppenfotos) .carousel-control-prev:hover,
    :is(#einzelprodukte, #gruppenfotos) .carousel-control-next:hover { background: var(--bs-tertiary-bg, #f8f9fa); }
    :is(#einzelprodukte, #gruppenfotos) .carousel-control-prev:focus-visible,
    :is(#einzelprodukte, #gruppenfotos) .carousel-control-next:focus-visible { outline: 2px solid var(--tenant-primary-color); outline-offset: 3px; }
    :is(#einzelprodukte, #gruppenfotos) .carousel-control-prev-icon,
    :is(#einzelprodukte, #gruppenfotos) .carousel-control-next-icon { background: none !important; width: 11px; height: 11px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; }
    :is(#einzelprodukte, #gruppenfotos) .carousel-control-prev-icon { transform: rotate(-135deg); margin-left: 4px; }
    :is(#einzelprodukte, #gruppenfotos) .carousel-control-next-icon { transform: rotate(45deg); margin-right: 4px; }
}

/* Mobile package composition: one shared surface, with real product previews.
   Sheet grids remain inside each preview; this grid only arranges package items. */
@media (max-width: 767px) {
    .shop-overview #fotopakete .package-composition {
        --package-stage-height: clamp(160px, 42vw, 220px);
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        align-items: start;
        gap: 2px 8px;
        margin: 0;
        padding: 10px;
        border: 1px solid var(--bs-border-color);
        border-radius: 14px;
        background: linear-gradient(145deg, var(--bs-tertiary-bg, #f8f9fa), var(--bs-body-bg, #fff));
    }
    .shop-overview #fotopakete .package-composition > .package-composition-item {
        grid-column: span 3;
        position: relative;
        width: auto;
        min-width: 0;
        padding: 0;
    }
    .shop-overview #fotopakete .package-composition > .package-composition-item:nth-last-child(1 of .package-composition-item):nth-child(odd) {
        grid-column: 2 / 6;
    }
    .shop-overview #fotopakete .package-product-stage {
        width: min(100%, var(--package-stage-height));
        height: auto;
        aspect-ratio: 1;
        margin-inline: auto;
        margin-bottom: 0;
    }
    .shop-overview #fotopakete .package-product-stage::before { display: none; }
    .shop-overview #fotopakete .package-product-visual {
        padding: 6px 3px 8px !important;
        isolation: isolate;
    }
    .shop-overview #fotopakete .package-product-copy--front,
    .shop-overview #fotopakete .package-product-copy--back {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        min-width: 0;
    }
    .shop-overview #fotopakete .package-product-copy--front { position: relative; z-index: 1; }
    .shop-overview #fotopakete .package-composition-item[data-product-size="Small"] { --package-preview-size: 80%; }
    .shop-overview #fotopakete .package-composition-item[data-product-size="Medium"] { --package-preview-size: 90%; }
    .shop-overview #fotopakete .package-composition-item[data-product-size="Large"] { --package-preview-size: 100%; }
    /* Crop previews and legacy mockups must obey the same configured size tier. */
    .shop-overview #fotopakete .package-product-copy > :is([photo-product], .print-crop-preview-host) {
        max-width: var(--package-preview-size, 90%);
        max-height: var(--package-preview-size, 90%);
    }
    .shop-overview #fotopakete .package-composition-item--print .package-product-visual:not(.package-product-visual--protected) .package-product-copy--front {
        transform: perspective(650px) rotateX(4deg) rotateY(-5deg) rotateZ(-2deg);
        filter: drop-shadow(1px 3px 2px rgba(0, 0, 0, .15)) drop-shadow(3px 8px 5px rgba(0, 0, 0, .12));
    }
    .shop-overview #fotopakete .package-composition-item--print:nth-child(even) .package-product-visual:not(.package-product-visual--protected) .package-product-copy--front {
        transform: perspective(650px) rotateX(4deg) rotateY(5deg) rotateZ(2deg);
    }
    .shop-overview #fotopakete .package-product-copy--back {
        position: absolute;
        inset: 6px 3px 8px;
        width: auto;
        height: auto;
        transform: perspective(650px) translate(5px, -3px) rotateX(4deg) rotate(7deg) scale(.98);
        filter: drop-shadow(2px 5px 3px rgba(0, 0, 0, .16));
        pointer-events: none;
    }
    .shop-overview #fotopakete .package-product-visual:has(.package-product-copy--back) .package-product-copy--front {
        transform: perspective(650px) translate(-4px, 2px) rotateX(4deg) rotateY(-5deg) rotate(-3deg);
    }
    .shop-overview #fotopakete .package-composition-item--object .package-product-copy--back {
        transform: translate(9px, -3px) scale(.85);
    }
    .shop-overview #fotopakete .package-composition-item--object .package-product-visual:has(.package-product-copy--back) .package-product-copy--front {
        transform: translate(-8px, 4px) scale(.85);
    }
    .shop-overview #fotopakete .package-product-copy .product-grid {
        box-shadow: 0 1px 0 rgba(255, 255, 255, .9), 1px 2px 0 rgba(90, 80, 65, .15);
    }
    .shop-overview #fotopakete .package-product-copy .product-grid div { box-shadow: none; }
    .shop-overview #fotopakete .package-product-copy [photo-product] > div:hover { transform: none; }
    .shop-overview #fotopakete .package-product-group { z-index: 2; top: auto; bottom: 26px !important; left: 50%; right: auto !important; transform: translateX(-50%); }
    .shop-overview #fotopakete .package-product-group .badge {
        margin: 0 !important;
        border-radius: 5px !important;
        padding: 3px 5px !important;
        background: var(--bs-body-bg) !important;
        color: var(--bs-body-color) !important;
        border: 1px solid var(--bs-border-color) !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, .08) !important;
        white-space: nowrap;
    }
    .shop-overview #fotopakete .package-product-caption { overflow-wrap: anywhere; hyphens: auto; }
    .shop-overview #fotopakete .package-composition-item > .package-product-caption {
        position: relative;
        z-index: 3;
        width: fit-content;
        max-width: 100%;
        margin: -23px auto 0;
        padding: 4px 8px;
        border: 1px solid rgba(var(--bs-primary-rgb), .22);
        border-radius: 9px;
        background: var(--bs-body-bg);
        background: color-mix(in srgb, var(--bs-body-bg) 92%, var(--tenant-primary-color, var(--bs-primary)));
        color: var(--bs-body-color);
        box-shadow: 0 2px 5px rgba(0, 0, 0, .07);
    }
    .shop-overview #fotopakete .package-product-note { margin-top: 2px; margin-bottom: 0 !important; }
    .shop-overview #fotopakete .package-composition-item > .package-product-note { display: none; }
    .shop-overview #fotopakete .package-download-tile {
        grid-column: 1 / -1;
        width: auto;
        margin-top: 6px;
        padding: 14px 4px 4px;
        border: 0;
        border-top: 1px dashed var(--bs-border-color);
        border-radius: 0;
        background: transparent;
        color: var(--bs-body-color);
        display: grid;
        grid-template-columns: 64px minmax(0, 1fr);
        column-gap: 12px;
        align-items: center;
    }
    .shop-overview #fotopakete .package-download-card {
        grid-row: span 2;
        width: 64px;
        aspect-ratio: 1;
        margin: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
        transform: rotate(-6deg);
    }
    .shop-overview #fotopakete .package-download-tile .package-download-art { color: var(--tenant-primary-color, var(--bs-primary)); }
    .shop-overview #fotopakete .package-download-tile .package-download-art rect { fill: var(--bs-body-bg, white); }
    .shop-overview #fotopakete .package-download-tile > .package-product-caption { color: inherit !important; }
    .shop-overview #fotopakete .package-download-tile > .package-product-note { color: var(--tenant-primary-color, var(--bs-primary)) !important; }
    .shop-overview #fotopakete .package-download-art svg { width: 100%; }
    .shop-overview #fotopakete .package-download-script { display: none; }
    .shop-overview #fotopakete .package-download-tile > .package-product-caption,
    .shop-overview #fotopakete .package-download-tile > .package-product-note { text-align: left !important; }
}

/* Offer a clear next step after the customer reaches the end of the catalog. */
.shop-footer-cart { display: none; }
@media (max-width: 767px) {
    body:has(#shop-footer-cart) .shop-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)) !important; }
    .shop-footer-cart {
        display: block;
        position: fixed;
        inset: auto 0 0;
        z-index: 1035;
        padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
        background: var(--bs-body-bg);
        box-shadow: 0 -4px 20px rgba(0, 0, 0, .08);
        transform: translateY(110%);
        visibility: hidden;
        transition: transform 200ms ease-out, visibility 200ms;
    }
    .shop-footer-cart.is-visible { transform: translateY(0); visibility: visible; }
    body.shop-ui main .shop-footer-cart > a { display: flex; width: 100%; min-height: 48px; justify-content: center; gap: 10px; border-radius: 8px; }
    .shop-footer-cart > a:focus-visible { outline: 2px solid var(--bs-primary); outline-offset: 3px; }
}
@media (prefers-reduced-motion: reduce) {
    .shop-footer-cart { transition: none; }
}

/* Pending checkout actions remain visible until navigation completes. */
body.shop-ui #packageSubmitButton[aria-busy="true"],
body.shop-ui #cart-checkout-form button[type="submit"][aria-busy="true"] {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible !important;
    opacity: 1 !important;
    background-color: var(--tenant-primary-color, var(--bs-primary)) !important;
    border-color: var(--tenant-primary-color, var(--bs-primary)) !important;
    color: var(--bs-white) !important;
    cursor: wait;
}
body.shop-ui #packageSubmitButton[aria-busy="true"] .spinner-border,
body.shop-ui #cart-checkout-form button[aria-busy="true"] .cart-submit-spinner {
    display: inline-block !important;
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
}


/* Keep loading feedback inside compact action buttons without removing their labels. */
body.shop-ui button[data-shop-action-busy] > :is(i, svg) { display: none; }
body.shop-ui :is(.btn-icon, .gallery-fav-btn)[data-shop-action-busy] > .spinner-border { margin-inline: 0 !important; flex-shrink: 0; }

/* Acquisition prompts respect an explicit refusal or dismissal. */
body.shop-ui #discountBanner[hidden] { display: none !important; }
body.shop-ui #discountBannerClose { min-width: 44px; min-height: 44px; }
@media (min-width: 768px) {
    body.shop-ui .gallery-group-thumbnails { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

.gallery-group-order { width: max-content; position: absolute; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 99999; max-width: calc(100% - 128px); text-align: center; min-height: 44px; }
#downloads, #fotopakete, #einzelprodukte, #gruppenfotos { scroll-margin-top: calc(var(--shop-header-height, 90px) + 16px); }
@media (max-width: 767px) {
    .gallery-group-order { bottom: max(20px, env(safe-area-inset-bottom)); max-width: calc(100% - 32px); }
    .glightbox-container:has(.gallery-group-order) .gprev,
    .glightbox-container:has(.gallery-group-order) .gnext { top: auto !important; bottom: 92px !important; transform: none !important; }
}

/* Gallery actions also render outside the backend button stylesheet. */
body.shop-ui .gallery-order-button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    background: var(--bs-gray-100);
    color: var(--bs-body-color);
    font: inherit;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: box-shadow .15s ease, background-color .15s ease;
}
body.shop-ui .gallery-order-button.btn-text-primary {
    background: var(--tenant-primary-color, var(--bs-primary));
    color: var(--bs-white, white);
    box-shadow: 0 3px 10px rgba(0, 0, 0, .12);
}
body.shop-ui .gallery-order-button:hover:not(:disabled) { background: var(--bs-gray-200); }
body.shop-ui .gallery-order-button.btn-text-primary:hover:not(:disabled) { background: var(--tenant-primary-color, var(--bs-primary)); box-shadow: 0 4px 14px rgba(0,0,0,.18); }
body.shop-ui .gallery-order-button:focus-visible { outline: 2px solid var(--tenant-primary-color, var(--bs-primary)); outline-offset: 3px; }
body.shop-ui .gallery-order-button:disabled { opacity: .65; cursor: wait; }
body.shop-ui .gallery-order-button > :is(i, svg) { flex-shrink: 0; }

/* Make the shared-photo section discoverable before scrolling through portraits. */
#gallery-group-photos { scroll-margin-top: calc(var(--shop-header-height, 90px) + 16px); }
.shop-gallery-embedded #gallery-group-photos { scroll-margin-top: 12px; }

/* Floating section switch shared by the full-page and embedded galleries. */
body.shop-ui .gallery-floating-nav { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); z-index: 1040; display: flex; gap: 4px; padding: 5px; width: max-content; max-width: calc(100% - 24px); border: 1px solid var(--bs-border-color); border-radius: 12px; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); box-shadow: 0 8px 28px rgba(0,0,0,.18); }
body.shop-ui .gallery-floating-nav a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 12px; color: var(--bs-body-color); font-size: 14px; font-weight: 600; text-decoration: none; }
body.shop-ui .gallery-floating-nav a[aria-current] { background: var(--tenant-primary-color, var(--bs-primary)); color: var(--bs-white, white); }
body.shop-ui .gallery-floating-nav a:focus-visible { outline: 2px solid var(--tenant-primary-color, var(--bs-primary)); outline-offset: 2px; }
body.shop-ui:has(.glightbox-container) .gallery-floating-nav { display: none; }
.shop-gallery:has(.gallery-floating-nav) .gallery-photo-scroll { padding-bottom: 96px; }
#galleryGrid { scroll-margin-top: calc(var(--shop-header-height, 90px) + 16px); }
.shop-gallery-embedded #galleryGrid { scroll-margin-top: 0; }
@media (max-width: 767px) {
    body.shop-ui .gallery-floating-nav a { padding-inline: 12px; font-size: 13px; }
}

/* Responsive group-photo card. */
body.shop-ui .gallery-group-strip { margin: 24px 0; padding: 24px; border: 1px solid var(--bs-border-color); border-radius: 12px; background: var(--bs-white, white); box-shadow: 0 4px 18px rgba(0,0,0,.04); }
body.shop-ui .gallery-group-strip-heading h2 { display: flex; align-items: center; gap: 12px; font-size: 24px !important; }
body.shop-ui .gallery-group-count { display: inline-flex; align-items: center; justify-content: center; min-width: 32px; min-height: 32px; padding: 4px 8px; border-radius: 8px; background: var(--bs-gray-100); color: var(--bs-secondary-color); font-size: 15px; font-weight: 600; }
body.shop-ui .gallery-group-thumbnails { gap: 16px; }
body.shop-ui .gallery-group-thumbnails a { width: 100%; max-width: 360px; }
body.shop-ui .gallery-order-button.btn-text-secondary { border-color: rgba(var(--bs-primary-rgb), .22); background: rgba(var(--bs-primary-rgb), .08); color: var(--bs-body-color); box-shadow: none; font-weight: 400; }
body.shop-ui .gallery-order-button.btn-text-secondary:hover:not(:disabled) { background: rgba(var(--bs-primary-rgb), .12); }
@media (min-width: 992px) {
    body.shop-ui .gallery-group-thumbnails { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
}
@media (max-width: 575.98px) {
    body.shop-ui .gallery-group-strip { padding: 16px; }
    body.shop-ui .gallery-group-strip-heading h2 { font-size: 20px !important; }
    body.shop-ui .gallery-group-thumbnails { gap: 10px; }
}

body.shop-ui .gallery-group-thumbnails a,
body.shop-ui .gallery-group-thumbnails img { border-radius: 0; }
body.shop-ui .gallery-group-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
body.shop-ui .gallery-group-footer .gallery-group-note { margin: 0; font-size: 13px; }
body.shop-ui .gallery-group-footer .gallery-order-button { flex-shrink: 0; }
@media (max-width: 575.98px) {
    body.shop-ui .gallery-group-footer { flex-direction: column; align-items: stretch; gap: 12px; }
}

body.shop-ui .gallery-group-strip-heading { margin-bottom: 20px; }

/* White product action remains legible on the dark enlarged-photo viewer. */
body.shop-ui .gallery-order-button.gallery-group-order { background: var(--bs-white, white); color: var(--bs-dark); border-color: var(--bs-gray-300); box-shadow: none; }
body.shop-ui .gallery-order-button.gallery-group-order:hover:not(:disabled) { background: var(--bs-gray-100); }

/* Without an offer, keep the email controls together instead of stretching empty rows. */
@media (min-width: 992px) {
    body.shop-ui main.shop-email-entry--no-offer .collect-email-card {
        min-height: 0;
        grid-template-rows: 1fr auto auto auto 1fr;
        padding-block: 40px;
    }
    .shop-email-entry--no-offer .collect-email-visual {
        grid-row: 1 / 6;
        padding-block: 0;
    }
    .shop-email-entry--no-offer .collect-email-welcome { display: none; }
    .shop-email-entry--no-offer .collect-email-add-code { margin-top: 8px !important; }
    .shop-email-entry--no-offer .collect-email-actions { margin-top: 24px; }
    .shop-email-entry--no-offer .collect-email-visual .tenant-logo { margin-bottom: 16px; }
    .shop-email-entry--no-offer .collect-email-visual .preview-gallery { margin-bottom: 12px; }
}

/* Center email entry cards above the footer; tall content still grows and scrolls. */
@media (min-width: 992px) {
    body.shop-ui main.shop-email-entry.shop-entry-frame {
        display: flex;
        flex-direction: column;
    }
    body.shop-ui main.shop-email-entry.shop-entry-frame > .container {
        margin-block: auto;
    }
    body.shop-ui main.shop-email-entry.shop-entry-frame .collect-email-page {
        margin-block: 32px !important;
    }
}

body.shop-ui main.shop-email-entry .collect-email-purpose-title {
    font-size: 22px !important;
    font-weight: 600 !important;
    line-height: 1.3;
    text-align: left;
    margin: 0 0 8px;
}
body.shop-ui main.shop-email-entry .collect-email-purpose-body {
    font-size: 14px !important;
    line-height: 1.5;
    text-align: left;
    color: var(--bs-secondary-color);
    margin: 0 0 20px;
}

body.shop-ui main.shop-email-entry .collect-email-skip-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: fit-content;
    min-height: 44px;
    margin: 4px auto 0;
    padding: 8px 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--bs-secondary-color);
    font: inherit;
    font-size: 13px;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}
body.shop-ui main.shop-email-entry .collect-email-skip-link:hover:not(:disabled) {
    background: transparent;
    color: var(--bs-body-color);
    box-shadow: none;
}
body.shop-ui main.shop-email-entry .collect-email-skip-link:focus-visible {
    outline: 2px solid var(--tenant-primary-color);
    outline-offset: 2px;
}
body.shop-ui main.shop-email-entry .collect-email-skip-link:disabled {
    opacity: .6;
    cursor: wait;
}

/* Separate the email label and input from the introductory copy. */
body.shop-ui main.shop-email-entry #emailForm .collect-email-purpose-body {
    margin-bottom: 28px !important;
}

/* Separate mobile shop categories without adding another sticky heading. */
@media (max-width: 767px) {
    body.shop-ui main.shop-overview [data-shop-section] ~ [data-shop-section] {
        border-top: 1px solid var(--bs-border-color) !important;
        border-radius: 0;
        margin-top: 40px !important;
        padding-top: 24px !important;
    }
}

/* Group previews participate in the same collage as individual photos. */
body.shop-ui .gallery-group-card { position: relative; align-self: flex-start; }
body.shop-ui .gallery-group-card .gallery-group-badge { position: absolute; right: 8px; bottom: 8px; z-index: 1; margin: 0; padding: 3px 8px; border-radius: 12px; background: var(--tenant-primary-color); color: var(--bs-white, white); font-size: 12px !important; line-height: 1.3; pointer-events: none; }
body.shop-ui .gallery-group-card:has(.gallery-order-button) .gallery-group-badge { bottom: 56px; }
body.shop-ui .gallery-group-card > a { display: block; width: 100%; height: 100%; }
body.shop-ui .gallery-group-card img { display: block; width: 100%; height: 100%; object-fit: contain; }
body.shop-ui .gallery-group-card .gallery-order-button { position: absolute; inset: auto 8px 8px auto; z-index: 1; width: auto; max-width: calc(100% - 16px); min-height: 40px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--bs-gray-400); background: rgba(255,255,255,.95); color: var(--bs-dark); box-shadow: 0 2px 6px rgba(0,0,0,.12); font-size: 14px; font-weight: 600; line-height: 1.3; white-space: normal; text-align: center; justify-content: center; }
@media (max-width: 575.98px) {
    body.shop-ui .gallery-group-card:has(.gallery-order-button) .gallery-group-badge { bottom: 76px; }
}
/* Soft, scattered shapes soften empty gallery space without changing its layout. */
body.shop-ui .shop-gallery .gallery-photo-scroll {
    background-image:
        radial-gradient(ellipse 38% 46% at 100% 100%, rgba(var(--bs-primary-rgb), .10) 0%, rgba(var(--bs-primary-rgb), .06) 48%, transparent 78%),
        radial-gradient(ellipse 25% 32% at 66% 76%, rgba(var(--bs-primary-rgb), .055) 0%, rgba(var(--bs-primary-rgb), .025) 52%, transparent 80%),
        radial-gradient(ellipse 30% 38% at 0% 62%, rgba(var(--bs-primary-rgb), .065) 0%, rgba(var(--bs-primary-rgb), .025) 50%, transparent 80%);
    background-repeat: no-repeat;
}
body.shop-ui .gallery-group-card .gallery-order-button.btn-text-primary:hover:not(:disabled) { background: var(--bs-gray-100); color: var(--bs-dark); border-color: var(--bs-gray-500); box-shadow: 0 2px 6px rgba(0,0,0,.12); transform: none; }
