/**
 * ZSMH Foto Objednávky — frontend cart UI styles.
 * Namespace .zsmh-fo-* (per project conventions).
 */

/* ── Statický návod (pred galériou) — marketingový pozvanie + edukácia ─ */
.zsmh-fo-guide {
    width: 100%;
    margin: 24px 0;
    padding: 24px 28px;
    background: linear-gradient(135deg, #fff9ec 0%, #fff4d6 100%);
    border: 1px solid #ffe09f;
    border-radius: 12px;
    box-sizing: border-box;
    font-family: 'Trebuchet MS', sans-serif;
}
.zsmh-fo-guide-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}
.zsmh-fo-guide-icon {
    font-size: 36px;
    line-height: 1;
}
.zsmh-fo-guide-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a1d22;
}
.zsmh-fo-guide-info {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(241, 158, 0, 0.3);
    border-radius: 8px;
    margin-bottom: 18px;
    color: #5b4400;
}
.zsmh-fo-guide-info-icon { font-size: 18px; flex-shrink: 0; line-height: 1.4; }
.zsmh-fo-guide-info-text { flex: 1; font-size: 14px; line-height: 1.5; }
.zsmh-fo-guide-info-text p { margin: 0 0 8px; }
.zsmh-fo-guide-info-text p:last-child { margin-bottom: 0; }
.zsmh-fo-guide-steps {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.zsmh-fo-guide-steps li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 12px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgba(241, 158, 0, 0.2);
}
.zsmh-fo-guide-step-num {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: #f19e00;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
}
.zsmh-fo-guide-step-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.zsmh-fo-guide-step-text strong { font-size: 13px; color: #1a1d22; }
.zsmh-fo-guide-step-text span { font-size: 12px; color: #5b6068; line-height: 1.4; }
.zsmh-fo-guide-key {
    display: inline-block;
    padding: 1px 6px;
    background: #e8f7ec;
    color: #2e7d4f;
    border-radius: 3px;
    font-weight: 600;
    font-size: 11px;
}
.zsmh-fo-guide-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.zsmh-fo-guide-open-cart {
    padding: 10px 22px;
    background: #f19e00;
    color: #fff;
    border: 0;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}
.zsmh-fo-guide-open-cart:hover { background: #d68a00; }

@media (max-width: 768px) {
    .zsmh-fo-guide { padding: 20px 16px; margin: 16px 0; }
    .zsmh-fo-guide-header h2 { font-size: 17px; }
    .zsmh-fo-guide-icon { font-size: 28px; }
    .zsmh-fo-guide-steps { grid-template-columns: 1fr; gap: 10px; }
    .zsmh-fo-guide-open-cart { width: 100%; }
}

/* ── Cart section ──────────────────────────────────────────── */
/* Width: 100% — sekcia žije v article main column, ktorý už má vlastné
   ohraničenie. Predtým 80% spôsobovalo že cart bol užší ako feedback formulár.
   Margin top: 24px (tesnejšie ku feedback form), žiadny auto-center. */
.zsmh-fo-cart {
    width: 100%;
    max-width: 100%;
    margin: 24px 0 0;
    padding: 24px 28px 32px;
    background: #fff;
    border: 1px solid #e6e7ea;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04);
    font-family: 'Trebuchet MS', sans-serif;
    color: #2d2f33;
    box-sizing: border-box;
    /* scroll-margin-top — keď scrollIntoView/scrollTo cieli na túto sekciu,
       browser nechá 120px gap nad ňou (admin bar 32 + theme topbar ~70 + buffer).
       Zaručuje že nadpis "Objednávka tlače fotografií" sa neorezává sticky barom. */
    scroll-margin-top: 120px;
}

.zsmh-fo-cart[hidden] { display: none !important; }

@media (max-width: 768px) {
    .zsmh-fo-cart { padding: 20px 16px; }
}

/* ── Header ────────────────────────────────────────────────── */
.zsmh-fo-cart-header { margin-bottom: 20px; }
.zsmh-fo-cart-header h2 {
    margin: 0 0 6px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1d22;
}
.zsmh-fo-cart-summary {
    margin: 0 0 14px;
    color: #5b6068;
    font-size: 14px;
}
.zsmh-fo-cart-summary [data-rows],
.zsmh-fo-cart-summary [data-total] {
    font-weight: 700;
    color: #1a1d22;
}

/* ── Produktová galéria (vysvetlivka) ─────────────────────── */
.zsmh-fo-products-gallery {
    margin: 14px 0;
    padding: 10px 14px;
    background: #fffcf0;
    border: 1px solid #ffe6b3;
    border-radius: 8px;
    font-size: 14px;
}
.zsmh-fo-products-gallery > summary {
    cursor: pointer;
    font-weight: 600;
    color: #8a5b00;
    list-style: none;
    user-select: none;
}
.zsmh-fo-products-gallery > summary::-webkit-details-marker { display: none; }
.zsmh-fo-products-gallery > summary::before {
    content: '▶';
    display: inline-block;
    margin-right: 6px;
    font-size: 10px;
    transition: transform 0.15s ease;
}
.zsmh-fo-products-gallery[open] > summary::before { transform: rotate(90deg); }
.zsmh-fo-products-gallery-icon { margin-right: 6px; }
.zsmh-fo-products-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 14px;
}
.zsmh-fo-product-sample {
    margin: 0;
    text-align: center;
    background: #fff;
    border: 1px solid #f0e6cc;
    border-radius: 6px;
    overflow: hidden;
}
.zsmh-fo-product-sample a {
    display: block;
    position: relative;
    cursor: zoom-in;
    overflow: hidden;
}
.zsmh-fo-product-sample a:hover img { transform: scale(1.05); }
.zsmh-fo-product-sample img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}
.zsmh-fo-product-sample-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}
.zsmh-fo-product-sample a:hover .zsmh-fo-product-sample-zoom { opacity: 1; }

/* Sample modal — custom lightweight lightbox pre produktové ukážky.
   Izolovaný od PhotoSwipe (main gallery) — žiadny mark/cart button override. */
.zsmh-fo-sample-modal {
    position: fixed;
    inset: 0;
    z-index: 100100;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zsmh-fo-sample-modal[hidden] { display: none !important; }
.zsmh-fo-sample-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    cursor: zoom-out;
}
.zsmh-fo-sample-modal-content {
    position: relative;
    max-width: 92vw;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.zsmh-fo-sample-modal-body {
    display: flex;
    gap: 24px;
    align-items: stretch;
    max-width: 100%;
    max-height: 90vh;
}
.zsmh-fo-sample-modal-img {
    max-width: 60vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    flex-shrink: 0;
}
.zsmh-fo-sample-modal-text {
    flex: 1 1 320px;
    max-width: 420px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    color: #fff;
    align-self: center;
    overflow-y: auto;
    max-height: 80vh;
}
.zsmh-fo-sample-modal-caption {
    font-size: 16px;
    font-weight: 700;
    padding: 8px 16px;
    background: rgba(241, 158, 0, 0.95);
    color: #1a1d22;
    border-radius: 4px;
    text-align: center;
}
.zsmh-fo-sample-modal-description {
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(255, 255, 255, 0.06);
    padding: 14px 18px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.zsmh-fo-sample-modal-description[hidden] { display: none !important; }
.zsmh-fo-sample-modal-description p {
    margin: 0 0 10px;
}
.zsmh-fo-sample-modal-description p:last-child { margin-bottom: 0; }

/* Mobile: text pod obrázkom (stack), nie vedľa neho. */
@media (max-width: 768px) {
    .zsmh-fo-sample-modal-body {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }
    .zsmh-fo-sample-modal-img {
        max-width: 90vw;
        max-height: 50vh;
    }
    .zsmh-fo-sample-modal-text {
        flex: 1 1 auto;
        max-width: 90vw;
        max-height: 35vh;
    }
}
.zsmh-fo-sample-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    width: 32px;
    height: 32px;
    border: 0;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 50%;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zsmh-fo-sample-modal-close:hover { background: rgba(255, 255, 255, 0.2); }
.zsmh-fo-product-sample-placeholder {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f6f8;
    font-size: 32px;
    color: #c8cad0;
}
.zsmh-fo-product-sample figcaption {
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.3;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.zsmh-fo-product-sample figcaption strong { color: #1a1d22; }
.zsmh-fo-product-sample figcaption span { color: #8a5b00; font-weight: 600; }

.zsmh-fo-bulk {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 14px;
    background: #f5f6f8;
    border-radius: 8px;
    font-size: 14px;
}
.zsmh-fo-bulk label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 220px;
}
.zsmh-fo-bulk-product { flex: 1; padding: 6px 10px; }
.zsmh-fo-bulk-apply {
    padding: 6px 14px;
    background: #5b6068;
    color: #fff;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
}
.zsmh-fo-bulk-apply:hover { background: #43474e; }

/* Mobile: label NAD dropdownom (nie vedľa), inak sa nezmestí. */
@media (max-width: 600px) {
    .zsmh-fo-bulk { flex-direction: column; align-items: stretch; padding: 12px; }
    .zsmh-fo-bulk label {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        min-width: 0;
        width: 100%;
    }
    .zsmh-fo-bulk-product { width: 100%; }
    .zsmh-fo-bulk-apply { width: 100%; padding: 10px; font-size: 14px; }
}

/* ── List ──────────────────────────────────────────────────── */
.zsmh-fo-cart-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    border-top: 1px solid #ececef;
}

/* Flex layout — adaptívny pre rôzne šírky containeru (article main vs sidebar
   vs mobile). Elementy sa wrap-ujú ak sa nezmestia v jednom riadku. */
.zsmh-fo-cart-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #ececef;
    transition: background-color 0.4s ease;
}
/* Highlight nového riadku po klik "+veľkosť" — žltý flash ktorý uhasína
   za ~1.5s aby user okamžite videl kde sa pridala položka. */
.zsmh-fo-cart-row-new {
    background-color: #fff4d6;
    animation: zsmh-fo-row-flash 1.5s ease-out;
}
@keyframes zsmh-fo-row-flash {
    0%   { background-color: #ffe09f; }
    100% { background-color: transparent; }
}
.zsmh-fo-cart-row > * { min-width: 0; }

.zsmh-fo-cart-row .zsmh-fo-cart-thumb-wrap {
    position: relative;
    flex: 0 0 80px;
    width: 80px;
    height: 80px;
}
.zsmh-fo-cart-row .zsmh-fo-cart-thumb-btn {
    width: 100%;
    height: 100%;
}
.zsmh-fo-cart-row .zsmh-fo-cart-meta {
    flex: 1 1 140px;
    min-width: 0;
}
.zsmh-fo-cart-row .zsmh-fo-cart-product {
    flex: 1 1 180px;
    max-width: 240px;
}
.zsmh-fo-cart-row .zsmh-fo-cart-qty {
    flex: 0 0 64px;
    width: 64px;
}
.zsmh-fo-cart-row .zsmh-fo-cart-subtotal {
    flex: 0 0 auto;
    min-width: 60px;
    text-align: right;
}
.zsmh-fo-cart-row .zsmh-fo-cart-duplicate,
.zsmh-fo-cart-row .zsmh-fo-cart-remove {
    flex: 0 0 auto;
}

/* ── Mobile (≤ 768px) — 2-column grid ────────────────────────────────
   Ľavý stĺpec (80px): thumbnail (s × v rohu) HORE + "+veľkosť" POD ňou.
   Pravý stĺpec (1fr): filename, produkt dropdown, qty + cena.
   × je absolute positioned v thumb-wrap rohu, NEZABERA grid area. */
@media (max-width: 768px) {
    .zsmh-fo-cart-row {
        display: grid;
        grid-template-columns: 80px 1fr;
        grid-template-areas:
            "thumb  meta"
            "thumb  prod"
            "dup    price";
        column-gap: 12px;
        row-gap: 6px;
        align-items: start;
    }
    .zsmh-fo-cart-row .zsmh-fo-cart-thumb-wrap {
        grid-area: thumb;
        width: 80px;
        height: 80px;
        align-self: start;
    }
    .zsmh-fo-cart-row .zsmh-fo-cart-meta      { grid-area: meta; }
    .zsmh-fo-cart-row .zsmh-fo-cart-product   { grid-area: prod; max-width: none; width: 100%; }
    .zsmh-fo-cart-row .zsmh-fo-cart-qty       { grid-area: price; justify-self: start; align-self: center; width: 64px; }
    .zsmh-fo-cart-row .zsmh-fo-cart-subtotal  { grid-area: price; justify-self: end; align-self: center; }
    .zsmh-fo-cart-row .zsmh-fo-cart-duplicate {
        grid-area: dup;
        justify-self: stretch;
        text-align: center;
        font-size: 11px;
        padding: 8px 4px;
        line-height: 1;
    }
    /* Cart padding redukovaný na mobile aby thumb nebol odsadený od ľavého okraja. */
    .zsmh-fo-cart { padding: 16px 14px 24px; }
}

.zsmh-fo-cart-thumb-btn {
    position: relative;
    width: 80px;
    height: 80px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    display: block;
    flex-shrink: 0;
}
.zsmh-fo-cart-thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;
    background: #f0f1f3;
    display: block;
    transition: transform 0.2s ease;
}
.zsmh-fo-cart-thumb-zoom {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}
.zsmh-fo-cart-thumb-btn:hover .zsmh-fo-cart-thumb { transform: scale(1.06); }
.zsmh-fo-cart-thumb-btn:hover .zsmh-fo-cart-thumb-zoom,
.zsmh-fo-cart-thumb-btn:focus-visible .zsmh-fo-cart-thumb-zoom { opacity: 1; }
.zsmh-fo-cart-thumb-btn:focus-visible {
    outline: 2px solid #f19e00;
    outline-offset: 2px;
}
@media (max-width: 768px) {
    .zsmh-fo-cart-thumb-btn { width: 60px; height: 60px; }
}

.zsmh-fo-cart-meta { min-width: 0; overflow: hidden; }
.zsmh-fo-cart-filename {
    display: block;
    font-size: 13px;
    color: #5b6068;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.zsmh-fo-cart-product {
    padding: 6px 10px;
    border: 1px solid #d0d2d6;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
}
.zsmh-fo-cart-qty {
    width: 70px;
    padding: 6px 8px;
    border: 1px solid #d0d2d6;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

.zsmh-fo-cart-subtotal {
    font-weight: 700;
    text-align: right;
    color: #1a1d22;
    font-size: 15px;
    white-space: nowrap;
}

.zsmh-fo-cart-duplicate {
    padding: 4px 10px;
    background: transparent;
    color: #5b6068;
    border: 1px dashed #c8cad0;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
}
.zsmh-fo-cart-duplicate:hover { color: #f19e00; border-color: #f19e00; }

/* Remove × — absolute positioned v hornom pravom rohu thumb-wrap.
   Biele pozadie, šedý ×, hover červený. Vždy nad thumb (z-index). */
.zsmh-fo-cart-remove {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 26px;
    height: 26px;
    padding: 0;
    background: #fff;
    color: #5b6068;
    border: 1px solid #d0d2d6;
    border-radius: 50%;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
}
.zsmh-fo-cart-remove:hover {
    background: #e74c3c;
    color: #fff;
    border-color: #e74c3c;
    transform: scale(1.1);
}
.zsmh-fo-cart-remove:focus-visible {
    outline: 2px solid #f19e00;
    outline-offset: 2px;
}

/* ── Info notice (admin-editovateľný v ACF Options) ───────────────── */
.zsmh-fo-info-notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 16px;
    background: #e3f2fd;
    border: 1px solid #90caf9;
    border-radius: 8px;
    margin: 14px 0;
    color: #1565c0;
}
.zsmh-fo-info-icon { font-size: 20px; flex-shrink: 0; line-height: 1.4; }
.zsmh-fo-info-text { flex: 1; font-size: 14px; line-height: 1.5; }
.zsmh-fo-info-text p { margin: 0 0 8px; }
.zsmh-fo-info-text p:last-child { margin-bottom: 0; }

/* ── Empty cart — marketingový multi-step návod ───────────────────── */
.zsmh-fo-cart-empty {
    margin: 0 0 16px;
    padding: 32px 24px;
    background: linear-gradient(135deg, #fff9ec 0%, #fff4d6 100%);
    border: 1px solid #ffe09f;
    border-radius: 12px;
}
.zsmh-fo-empty-hero {
    text-align: center;
    margin-bottom: 28px;
}
.zsmh-fo-empty-icon {
    display: inline-block;
    font-size: 48px;
    line-height: 1;
    margin-bottom: 12px;
}
.zsmh-fo-empty-hero h3 {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    color: #1a1d22;
}
.zsmh-fo-empty-lead {
    margin: 0;
    font-size: 15px;
    color: #5b6068;
    line-height: 1.5;
}
.zsmh-fo-empty-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.zsmh-fo-empty-steps li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 16px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid rgba(241, 158, 0, 0.2);
}
.zsmh-fo-empty-step-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #f19e00;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
}
.zsmh-fo-empty-step-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-width: 0;
}
.zsmh-fo-empty-step-text strong {
    font-size: 14px;
    color: #1a1d22;
}
.zsmh-fo-empty-step-text span {
    font-size: 13px;
    color: #5b6068;
    line-height: 1.4;
}
.zsmh-fo-empty-key {
    display: inline-block;
    padding: 1px 8px;
    background: #e8f7ec;
    color: #2e7d4f;
    border-radius: 4px;
    font-weight: 600;
    font-size: 12px;
}

@media (max-width: 768px) {
    .zsmh-fo-cart-empty { padding: 24px 16px; }
    .zsmh-fo-empty-steps {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .zsmh-fo-empty-icon { font-size: 40px; }
    .zsmh-fo-empty-hero h3 { font-size: 19px; }
}

/* ── Checkout form ─────────────────────────────────────────── */
.zsmh-fo-checkout {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 2px solid #ececef;
}
.zsmh-fo-checkout h3 {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 700;
}

.zsmh-fo-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 16px;
    margin-bottom: 12px;
}
@media (max-width: 600px) {
    .zsmh-fo-form-grid { grid-template-columns: 1fr; }
}

.zsmh-fo-checkout label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 13px;
    color: #5b6068;
    font-weight: 600;
}
.zsmh-fo-checkout input[type="text"],
.zsmh-fo-checkout input[type="email"],
.zsmh-fo-checkout input[type="tel"],
.zsmh-fo-checkout textarea {
    padding: 9px 12px;
    border: 1px solid #d0d2d6;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    background: #fff;
    color: #1a1d22;
}
.zsmh-fo-checkout input:focus,
.zsmh-fo-checkout textarea:focus {
    outline: none;
    border-color: #f19e00;
    box-shadow: 0 0 0 3px rgba(241, 158, 0, 0.15);
}
/* Pre-fill hint — diskrétne zelené pozadie pre polia auto-vyplnené
   z prihláseného user profilu (e-mail, telefón). */
.zsmh-fo-checkout .zsmh-fo-prefilled {
    background: #f0faf3;
    border-color: #c6e8d2;
}
.zsmh-fo-checkout .zsmh-fo-prefilled:focus {
    background: #fff;
    border-color: #f19e00;
}
.zsmh-fo-checkout textarea { resize: vertical; min-height: 70px; }

.zsmh-fo-gdpr {
    flex-direction: row !important;
    align-items: flex-start;
    margin: 14px 0;
    font-size: 13px;
    font-weight: 400 !important;
    color: #2d2f33;
}
.zsmh-fo-gdpr input[type="checkbox"] {
    margin-right: 8px;
    margin-top: 3px;
    flex-shrink: 0;
}

/* Honeypot — completely hidden but accessible to bots. */
.zsmh-fo-honeypot {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
}

.zsmh-fo-checkout-btn {
    display: inline-block;
    padding: 12px 28px;
    background: #f19e00;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}
.zsmh-fo-checkout-btn:hover { background: #d68a00; }
.zsmh-fo-checkout-btn:disabled { background: #c8cad0; cursor: not-allowed; }

/* ── Result feedback ───────────────────────────────────────── */
.zsmh-fo-result {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 14px;
}
.zsmh-fo-result.is-success {
    background: #e8f7ec;
    color: #2e7d4f;
    border: 1px solid #c6e8d2;
}
.zsmh-fo-result.is-error {
    background: #fdecec;
    color: #b03f3f;
    border: 1px solid #f5c6c6;
}

/* ── Printed stamp (pečiatka „Vytlačená N×") ──────────────────────────
   Zobrazuje sa v lightbox-e na fotke ktorá bola vytlačená v rámci objednávok
   (detekcia v PHP regex `_(\d+)ks/i` na filename). Plus malý badge v rohu
   gallery thumbnailu. Iba ak album má povolené objednávanie (PHP check). */

/* Lightbox stamp — rotovaná pečiatka v ľavom hornom rohu fotky.
   z-index: 5 — pod „Označené" badge (theme JS, default z-index auto)
   ale nad slide image content. Kompaktný rozmer aby neprekrýval tváre. */
.zsmh-fo-printed-stamp {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: rgba(46, 125, 79, 0.92);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    transform: rotate(-8deg);
    pointer-events: none;
    font-family: 'Trebuchet MS', sans-serif;
    user-select: none;
    animation: zsmh-fo-stamp-in 0.3s ease-out;
}
.zsmh-fo-printed-stamp-icon {
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.zsmh-fo-printed-stamp-text {
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
@keyframes zsmh-fo-stamp-in {
    0%   { opacity: 0; transform: rotate(-8deg) scale(1.3); }
    100% { opacity: 1; transform: rotate(-8deg) scale(1); }
}

/* Mobile (≤ 600px) — ešte menšia pečiatka. */
@media (max-width: 600px) {
    .zsmh-fo-printed-stamp {
        top: 10px;
        left: 10px;
        padding: 4px 7px;
        gap: 4px;
        border-width: 1px;
        border-radius: 4px;
    }
    .zsmh-fo-printed-stamp-icon {
        font-size: 11px;
        width: 17px;
        height: 17px;
    }
    .zsmh-fo-printed-stamp-text {
        font-size: 8px;
        letter-spacing: 0.2px;
    }
}

/* Gallery thumbnail badge — biely kruh so zeleným border-om + emoji
   tlačiarne. Predtým bolo zelené pozadie ale emoji 🖨 (typicky šedo-tmavá
   farba na úrovni OS) splývala — biely background dáva lepší kontrast.
   Tlačiareň emoji ostane v default farbe (cca tmavošedá), zelený border
   nesie sémantiku "success/printed". */
.suv2-gallery-item.is-printed {
    position: relative;
}
.suv2-gallery-item.is-printed::after {
    content: '🖨';
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    height: 34px;
    line-height: 30px;
    text-align: center;
    background: #fff;
    border: 2.5px solid #2e7d4f;
    border-radius: 50%;
    font-size: 16px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    z-index: 5;
    pointer-events: none;
}
@media (max-width: 600px) {
    .suv2-gallery-item.is-printed::after {
        top: 4px;
        right: 4px;
        width: 26px;
        height: 26px;
        line-height: 22px;
        font-size: 12px;
        border-width: 2px;
    }
}

/* ── Lightbox order button (PhotoSwipe toolbar) — len ikona + count badge ──
   KRITICKÉ: overflow: visible — PhotoSwipe `.pswp__button` má default
   `overflow: hidden` čo orezáva badge. Mark/submit majú override v
   zsmh-lightbox.css; cart musí mať override priamo tu. */
.pswp__button--order-print-button {
    position: relative;
    justify-content: center;
    color: #fff;
    background: #2e7d4f;
    border-radius: 50%;
    margin-left: 4px;
    margin-right: 4px !important;
    padding: 0 !important;
    width: 40px !important;
    height: 40px !important;
    flex-shrink: 0;
    align-self: center;
    overflow: visible !important;
}
.pswp__button--order-print-button:hover { background: #246c40; }
.pswp__button--order-print-button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
/* Count badge — INSIDE button area (top:0; right:0), bez negatívnych offsetov
   ktoré by mohli prekryť close ×. */
.zsmh-fo-order-count {
    position: absolute;
    top: 0;
    right: 0;
    min-width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    color: #fff;
    background: #e74c3c;
    border-radius: 9px;
    padding: 0 4px;
    pointer-events: none;
    box-shadow: 0 0 0 1.5px #2e7d4f;
    box-sizing: border-box;
    z-index: 5;
}
