/* Shared by the detail page and the print preview opened from the cart. */
@font-face {
    font-family: GothamProRegular;
    src: url('/fonts/GothamPro.woff2') format('woff2');
    font-display: swap;
}
@font-face {
    font-family: GothamProBold;
    src: url('/fonts/GothamPro-Bold.woff2') format('woff2');
    font-display: swap;
}
.screen-print {
    display: none;
    color: #1c2430;
    font: 10pt/1.38 GothamProRegular, Arial, sans-serif;
    overflow-wrap: anywhere;
}

@media print {
    @page {
        size: A4 portrait;
        margin: 13mm;
    }

    body > :not(#wrapper),
    #wrapper > :not(.content-container),
    #wrapper > .content-container > :not([data-screen-print-sheet]),
    .screen-print [hidden] {
        display: none !important;
    }

    html, body, #wrapper, #wrapper > .content-container {
        position: static !important;
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: visible !important;
        background: #fff !important;
    }

    .screen-print {
        display: block;
    }
}

.screen-print a[href]::after {
    content: none !important;
}
.screen-print .sp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 6mm;
    padding-bottom: 3.5mm;
    border-bottom: 1px solid #cdd6dc;
    break-after: avoid;
}
.screen-print .sp-header img {
    width: 46mm;
    max-width: 48%;
    height: auto;
}
.screen-print .sp-header span {
    text-align: right;
    font-size: 9pt;
}
.screen-print .sp-title {
    margin: 5mm 0;
    font: 18pt/1.25 GothamProBold, Arial, sans-serif;
    text-transform: none;
    break-after: avoid;
}
.screen-print .sp-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    align-items: start;
    gap: 3mm;
    margin: 0 0 5mm;
    break-inside: avoid;
}
.screen-print .sp-photos--1 {
    grid-template-columns: minmax(0,1fr);
}
.screen-print .sp-photos--3 {
    grid-template-columns: minmax(0,2fr) minmax(0,1fr);
}
.screen-print .sp-photos--3 img:first-child {
    grid-row: span 2;
}
.screen-print .sp-photos img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 84mm;
    object-fit: contain;
    object-position: left top;
}
.screen-print .sp-photos--3 img:not(:first-child) {
    max-height: 40.5mm;
}
.screen-print .sp-muted {
    margin: 0 0 5mm;
}
.screen-print .sp-details {
    display: grid;
    grid-template-columns: minmax(0,1.35fr) minmax(0,1fr);
    align-items: start;
    gap: 5mm;
    padding: 4mm 0;
    border-block: 1px solid #cdd6dc;
    break-inside: avoid;
}
.screen-print .sp-facts {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 2.5mm 5mm;
    margin: 0;
}
.screen-print .sp-facts dt,
.screen-print .sp-rate p {
    margin: 0;
    font-size: 9pt;
    font-weight: 400;
}
.screen-print .sp-facts dd {
    margin: 0.5mm 0 0;
    font-weight: 700;
}
.screen-print .sp-rate {
    min-width: 0;
    padding-left: 5mm;
    border-left: 1px solid #cdd6dc;
}
.screen-print .sp-rate strong {
    display: block;
    margin-bottom: 1mm;
    font: 17pt/1.25 GothamProBold, Arial, sans-serif;
}
.screen-print .sp-period {
    display: grid;
    gap: 0.75mm;
    margin-top: 3mm;
    padding-top: 3mm;
    border-top: 1px solid #cdd6dc;
}
.screen-print .sp-package {
    margin-top: 4mm;
    break-inside: avoid;
}
.screen-print .sp-package h2 {
    margin: 0 0 1mm;
    font-size: 11pt;
    text-transform: none;
}
.screen-print .sp-package ul {
    margin: 0;
    padding-left: 4mm;
}
.screen-print .sp-footer {
    margin-top: 4mm;
    font-size: 9pt;
    break-inside: avoid;
}

.sp-selection-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}
.sp-selection-address { width: 52%; }
.sp-selection-period { width: 27%; }
.sp-selection-cost { width: 21%; }
.sp-selection-table th,
.sp-selection-table td {
    padding: 2.5mm 2.5mm 2.5mm 0;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #cdd6dc;
}
.sp-selection-table th { font-weight: 400; }
.sp-selection-table thead { color: #526171; }
.sp-selection-table td:last-child,
.sp-selection-table th:last-child { padding-right: 0; }
.sp-selection-table .sp-selection-number {
    text-align: right;
    font-variant-numeric: tabular-nums;
}
.sp-selection-detail {
    color: #526171;
    font-size: 9pt;
}
.sp-selection-members {
    margin: 0;
    padding: 0;
    list-style: none;
}
.sp-selection-bundle {
    margin-top: 1.5mm;
    padding-left: 4mm;
    list-style: disc;
}
.sp-selection-bundle li + li { margin-top: 1mm; }
.sp-selection-members span { display: block; }
.sp-selection-mobile-label { display: none; }
.sp-selection-total {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: flex-end;
    gap: 2mm 4mm;
    padding-top: 4mm;
    break-before: avoid;
    break-inside: avoid;
    font-variant-numeric: tabular-nums;
}
.sp-selection-total strong {
    font: 15pt/1.25 GothamProBold, Arial, sans-serif;
}

@media print {
    .sp-selection-table thead { display: table-header-group; }
    .sp-selection-table tr { break-inside: avoid; }
}

@media screen {
    .screen-print-preview {
        margin: 0;
        padding: 20px clamp(12px, 4vw, 32px) 32px;
        background: #f3f6f8;
    }
    .screen-print-preview .content-container {
        max-width: 210mm;
        margin-inline: auto;
    }
    .screen-print-preview .screen-print {
        display: block;
        padding: clamp(16px, 4vw, 13mm);
        background: #fff;
        border: 1px solid #cdd6dc;
        border-radius: 6px;
    }
    .screen-print-preview .sp-toolbar {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 12px;
    }
    .screen-print-preview [data-screen-cart-print] {
        min-height: 44px;
        padding: 8px 16px;
        border: 0;
        border-radius: 6px;
        color: #1c2430;
        background: #ffd322;
        font: 14px GothamProBold, Arial, sans-serif;
        cursor: pointer;
    }
    .screen-print-preview [data-screen-cart-print]:hover {
        background: #f7ca10;
    }
    .screen-print-preview [data-screen-cart-print]:focus-visible {
        outline: 2px solid #005a8e;
        outline-offset: 2px;
    }
    .screen-print-preview [data-screen-cart-print]:disabled {
        opacity: .65;
        cursor: wait;
    }
    .sp-selection-recovery a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
        color: #005a8e;
        text-underline-offset: 3px;
    }
}

@media screen and (max-width: 540px) {
    .screen-print-preview .sp-title {
        font-size: 16pt;
    }
    .screen-print-preview .sp-details {
        grid-template-columns: minmax(0, 1fr);
        gap: 3mm;
    }
    .screen-print-preview .sp-rate {
        padding: 3mm 0 0;
        border: 0;
        border-top: 1px solid #cdd6dc;
    }
    .sp-selection-table,
    .sp-selection-table tbody { display: block; }
    .sp-selection-table colgroup { display: none; }
    .sp-selection-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
    .sp-selection-table tbody tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, .7fr);
        gap: 2mm 3mm;
        padding: 3mm 0;
        border-bottom: 1px solid #cdd6dc;
    }
    .sp-selection-table tbody tr:first-child { border-top: 1px solid #cdd6dc; }
    .sp-selection-table tbody th,
    .sp-selection-table tbody td {
        min-width: 0;
        padding: 0;
        border: 0;
    }
    .sp-selection-surface { grid-column: 1 / -1; }
    .sp-selection-mobile-label {
        display: block;
        color: #526171;
        font-size: 9pt;
    }
}
