/* =============================================================================
   Foto-Bestellung — Lightbox-Button + Modal
   ========================================================================== */

/* Bestellbutton in der Lightbox: Button links, Meta-Infos (Aufrufe + Ext-Link) rechts */
.lightbox-order-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 0.875rem auto 0.25rem;
    max-width: 90vw;
}
.lightbox-order-bar .lb-aufrufe,
.lightbox-order-bar .lb-ext-link {
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
}
.lightbox-order-bar .lb-ext-link { color: #fff; }
.btn-bestellen {
    background: var(--accent, #1f4f9e);
    color: #fff;
    border: 0;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font: 600 1rem/1.2 var(--font-body, 'Inter Tight'), system-ui, sans-serif;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(31, 79, 158, 0.35);
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn-bestellen:hover {
    background: var(--accent-bright, #3a76d4);
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(31, 79, 158, 0.4);
}
.btn-bestellen:disabled {
    background: #94a0b2;
    box-shadow: none;
    cursor: progress;
}

/* Bestellmodal */
.wo-overlay {
    position: fixed; inset: 0;
    display: none;
    align-items: flex-start;
    justify-content: center;
    background: rgba(14, 26, 43, 0.78);
    z-index: 10000;
    overflow-y: auto;
    padding: 2rem 1rem;
}
.wo-modal {
    background: #fff;
    border-radius: 10px;
    max-width: 880px;
    width: 100%;
    padding: 1.75rem 2rem 2rem;
    position: relative;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
    font-family: var(--font-body, 'Inter Tight'), system-ui, sans-serif;
    color: var(--ink, #0e1a2b);
}
.wo-close {
    position: absolute; top: 0.5rem; right: 0.75rem;
    background: transparent; border: 0;
    font-size: 1.75rem; line-height: 1;
    color: #5e6573;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
}
.wo-close:hover { color: var(--accent, #1f4f9e); }
.wo-modal h2 {
    margin: 0 0 1.25rem;
    font: 600 1.5rem/1.2 var(--font-display, 'Fraunces', Georgia, serif);
    letter-spacing: -0.01em;
}
.wo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}
.wo-preview-wrap {
    background: var(--paper, #f3f5f8);
    border-radius: 6px;
    padding: 0.75rem;
}
.wo-preview-wrap img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    max-height: 480px;
    object-fit: contain;
}
.wo-caption-text {
    margin: 0.75rem 0 0;
    font-size: 0.875rem;
    color: #5e6573;
    text-align: center;
}

.wo-form fieldset {
    border: 0; padding: 0; margin: 0 0 1rem;
}
.wo-form legend {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
    color: #5e6573;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.wo-radios { display: grid; gap: 0.5rem; }
.wo-radios label {
    display: flex;
    gap: 0.625rem;
    align-items: flex-start;
    padding: 0.625rem 0.875rem;
    border: 1.5px solid #e3e1d9;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
}
.wo-radios label:has(input:checked) {
    border-color: var(--accent, #1f4f9e);
    background: rgba(31, 79, 158, 0.06);
}
.wo-radios label:hover { border-color: var(--accent-bright, #3a76d4); }
.wo-radios input[type=radio] { margin-top: 0.25rem; }
.wo-radios span {
    display: flex;
    flex-direction: column;
    line-height: 1.4;
}
.wo-radios strong { font-weight: 600; font-size: 0.95rem; }
.wo-radios em { font-style: normal; font-size: 0.8125rem; color: #5e6573; }

.wo-qty { display: flex; gap: 0.5rem; align-items: center; }
.wo-qty button {
    width: 36px; height: 36px;
    background: var(--paper, #f3f5f8);
    border: 1px solid #c9c6bb;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.125rem;
}
.wo-qty input {
    width: 64px;
    text-align: center;
    padding: 0.5rem;
    border: 1px solid #c9c6bb;
    border-radius: 4px;
    font: inherit;
}

.wo-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0.875rem 0;
    margin: 0.5rem 0 1rem;
    border-top: 1px solid #e3e1d9;
    border-bottom: 1px solid #e3e1d9;
}
.wo-total-label { color: #5e6573; font-size: 0.95rem; }
.wo-total strong {
    font-family: var(--font-display, 'Fraunces', Georgia, serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent, #1f4f9e);
}
.wo-form .btn-bestellen { width: 100%; padding: 0.875rem 1.25rem; }
.wo-status { margin: 0.625rem 0 0; font-size: 0.875rem; min-height: 1.2em; }
.wo-status-err { color: #c62828; }
.wo-hint { font-size: 0.8125rem; color: #5e6573; margin: 0.5rem 0 0; }
.wo-loading { padding: 1.5rem; text-align: center; color: #5e6573; }

@media (max-width: 720px) {
    .wo-grid { grid-template-columns: 1fr; }
    .wo-preview-wrap img { max-height: 280px; }
    .wo-modal { padding: 1.25rem 1rem 1.5rem; }
}
