/* ============================================================================
   PUBLIC WINE LIST VIEWERS — static styles for the standalone public list
   documents (full list, by-the-glass, packages, empty state).
   Tenant-specific design CSS is generated separately (design/utils/) and
   injected as a <style> tag; only view-structure styles live here.
   ============================================================================ */

/* --- Full list (embedded in an iframe, non-paged) --- */

body.wineList.is-embed {
    margin: 0;
    padding: 0;
    height: 100%;
}

html:has(> body.is-embed) {
    height: 100%;
}

/* --- By the glass --- */

.price {
    font-weight: bold;
    color: var(--success-dark, #2c5a2c);
}

.glass-price {
    font-size: 1.1em;
    color: var(--success-color, #4a7c59);
}

/* --- Pairing packages --- */

.package {
    margin-bottom: 40px;
    page-break-inside: avoid;
}

.package h2 {
    margin-bottom: 10px;
}

.package table {
    width: 100%;
    margin-top: 15px;
}

/* --- Empty-state placeholder — shown when a list "page" (Glass / Packages)
       has nothing to render. --- */

.winelist-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 60vh;
    padding: 40px 24px;
    box-sizing: border-box;
}

.winelist-empty-state__title {
    font-size: 1.25em;
    margin: 0 0 8px;
}

.winelist-empty-state__message {
    max-width: 32em;
    margin: 0 0 16px;
    opacity: 0.8;
    line-height: 1.5;
}

.winelist-empty-state__link {
    font-weight: 600;
    text-decoration: underline;
}

/* --- Print --- */

@media print {
    .package {
        break-inside: avoid;
    }

    @viewport {
        width: device-width;
    }
}
