﻿/****************************/
/*          VARIABLES          */
/****************************/

:root {
    --color-background: #f5f5f5;
    --color-content-background: #f5f5f5;
    --color-body-background: #F1F3F6; /* behind everything: the body, the page and its content area */
    --color-topbar: var(--color-text); /* the top bar: the language caret and the basket icon */
    --color-topbar-background: var(--color-body-background); /* the top bar: as the page by default */
    --topbar-banner-height: 80px; /* the top bar's banner (the webshop's logo, as on bookingv2): its height, at least 80px – scaled to fit, never cropped */
    --divider-inset: 0.8rem; /* the dividing lines in the cards: how far they stop short of the card's sides */
    --topbar-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.08); /* the line and soft shadow between the top bar and the page; none: without */
    --color-primary: #ffffff;
    --color-primary-background: #005795; /* rgb(0, 87, 149): primary buttons, checkboxes, links, the option cards' border, … */
    --color-primary-btn-border: #005795;
    --color-card-background: #ffffff; /* every card (.bordered-card / .bordered-card-muted) and the info panels */
    --color-icon-primary: var(--color-primary-background); /* the coloured icons (not the grey placeholder icons, --color-icon) */
    --color-price: var(--color-primary-background); /* every price */
    --color-title: #003459; /* rgb(0, 52, 89): product names on the product cards and in the product details (as the booking widget) */
    --color-subtext: #5c636a; /* rgb(92, 99, 106): descriptions and small print next to them (as the booking widget) */
    --color-primary-btn-hover: var(--color-primary-background); /* hover / pressed: the primary colour (a tapped button on the kiosk keeps its hover colour) */
    --color-text: #111111; /* plain dark text and icons (the map's back link in the grey box) */
    --color-secondary: #aaaaaa; /* secondary buttons ("Annullér", "Nej" in the dialogs): the text; a theme's Tertiary */
    --color-secondary-btn: transparent; /* secondary buttons: the background */
    --color-secondary-btn-border: transparent; /* secondary buttons: the border */
    --color-back-btn: var(--color-border-muted); /* back buttons (the arrow next to "Næste" / under the page, "Afbryd" at the terminal): the background */
    --color-back-btn-border: var(--color-border-muted); /* back buttons: the border */
    --color-back-btn-text: #ffffff; /* back buttons: the arrow / the text */
    --color-breadcrumb-done: var(--color-back-btn); /* the breadcrumb under the top bar: its colour, also the grey box's icons; a theme: its breadcrumb colour, else Secondary */
    --color-breadcrumb-done-icon: var(--color-back-btn-text); /* the breadcrumb: the colour on it; a theme: its breadcrumb icon colour, else the text on Secondary */
    --color-breadcrumb-todo: var(--color-breadcrumb-done-icon); /* the steps ahead: the background; these have the handled steps' two colours inverted */
    --color-breadcrumb-todo-border: var(--color-breadcrumb-done); /* the steps ahead: the border, and the line to them */
    --color-breadcrumb-todo-icon: var(--color-breadcrumb-done); /* the steps ahead: the icon */
    --color-calendar-range: var(--color-primary-background); /* the departure calendar on booking step 2: the stay's band */
    --color-calendar-range-text: #ffffff; /* the departure calendar: the days in the band */
    --color-calendar-disabled: var(--color-input-placeholder); /* the departure calendar: the days that can not be the departure */
    /* --color-secondary-btn-hover: #a58b5e; */ /* hover colors disabled, see the no-hover rule below */
    --color-icon: #888888;
    --color-background: #f5f5f5;
    --color-secondary-background: #ffffff;
    --color-booking-card-background: #f2f2f2;
    --color-table-header-background: #dddddd;
    --color-table-body-background: #f2f2f2;
    --color-border-muted: #d1d1d1;
    --color-success: #18a957; /* check-in finished */
    --color-input-placeholder: #7d7d7d; /* input placeholders and field icons: lighter than text, darker than the back buttons */
    --bs-border-radius: var(--global-border-radius);
    font-size: 16px;
    --global-border-radius: 0.5rem;
    --footer-width: 25rem; /* StepFooter and Cancel share this width, so the back buttons line up */
    --input-height: 2rem; /* InputTextbox / SelectInput / input-action-button */
}

@media (min-height: 800px) and (max-width: 900px) {
    :root {
        font-size: 22px;
        /*font-size: clamp(16px, 6.59px + 2.35vw, 22px);*/
    }
}

/****************************/
/*          GLOBAL          */
/****************************/

body {
    background-color: var(--color-body-background);
}

.page {
    height: 100vh;
    background-color: var(--color-body-background);
    display: flex;
    flex-direction: column;
}

.press:active {
    transform: scale(0.95);
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.page-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.btn-primary {
    color: var(--color-primary) !important;
    background-color: var(--color-primary-background) !important;
    border-color: var(--color-primary-btn-border) !important;
    box-shadow: none !important;
    /* Bootstrap's own button colours (its blue otherwise) follow the primary colour too */
    --bs-btn-bg: var(--color-primary-background);
    --bs-btn-border-color: var(--color-primary-btn-border);
    --bs-btn-hover-bg: var(--color-primary-btn-hover);
    --bs-btn-hover-border-color: var(--color-primary-btn-hover);
    --bs-btn-active-bg: var(--color-primary-btn-hover);
    --bs-btn-active-border-color: var(--color-primary-btn-hover);
    --bs-btn-disabled-bg: var(--color-primary-background);
    --bs-btn-disabled-border-color: var(--color-primary-btn-border);
}

    /* Hover, pressed and keyboard focus: the hover colour (= the primary colour). The disabled plus/minus / send buttons stay grey (.btn-add:disabled). */
    .btn-primary:hover,
    .btn-primary:active,
    .btn-primary:focus-visible,
    .btn-primary.active {
        background-color: var(--color-primary-btn-hover) !important;
        border-color: var(--color-primary-btn-hover) !important;
    }

.btn-secondary {
    color: var(--color-secondary) !important;
    background-color: var(--color-secondary-btn) !important;
    border-color: var(--color-secondary-btn-border) !important;
    min-height: 44px;
    box-shadow: none !important;
    font-size: 16px !important;
}

/* Kiosk / touch screens: no hover colors anywhere (a tapped element otherwise keeps its hover color).
   Bootstrap's hover colors come from these variables, so pointing them at the normal colors disables them. */
:root {
    --bs-link-hover-color: var(--bs-link-color);
    --bs-link-hover-color-rgb: var(--bs-link-color-rgb);
}

.btn {
    --bs-btn-hover-color: var(--bs-btn-color);
    --bs-btn-hover-bg: var(--bs-btn-bg);
    --bs-btn-hover-border-color: var(--bs-btn-border-color);
}

/* The company theme's button radius and heading font; Bootstrap's own without a theme */
.btn {
    border-radius: var(--radius-button, var(--bs-btn-border-radius));
}

h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading, inherit);
}

.form-control {
    font-size: 0.9rem;
}

/* All checkboxes and radio buttons use the primary (next button) color instead of the browser / Bootstrap blue */
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--color-primary-background);
}

/* Our own radio buttons (not Bootstrap's .form-check-input): the browser picks a black or white dot by the accent colour's contrast,
   so a theme's primary could turn it black. Drawn here instead: a ring on the card's background, filled with the primary colour when chosen */
input[type="radio"]:not(.form-check-input) {
    appearance: none;
    position: relative;
    flex-shrink: 0;
    margin: 0;
    border: 0.1rem solid var(--color-subtext);
    border-radius: 50%;
    background-color: var(--color-card-background);
    cursor: pointer;
}

    input[type="radio"]:not(.form-check-input)::before {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 50%;
        background-color: var(--color-primary-background);
        transform: scale(0);
        transition: transform 0.1s ease-in-out;
    }

    input[type="radio"]:not(.form-check-input):checked {
        border-color: var(--color-primary-background);
    }

        input[type="radio"]:not(.form-check-input):checked::before {
            transform: scale(1);
        }

    input[type="radio"]:not(.form-check-input):disabled {
        opacity: 0.5;
        cursor: default;
    }

.form-check-input:checked {
    background-color: var(--color-primary-background);
    border-color: var(--color-primary-background);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--color-focus, #258cfb);
}

.modal-header {
    background-color: var(--color-primary-background);
    color: var(--color-primary);
}

.bordered-card {
    border-radius: var(--global-border-radius);
    border: solid 0.3rem var(--color-primary-background);
}

.bordered-card-muted {
    border-radius: var(--global-border-radius);
    border: solid 0.1rem var(--color-border-muted);
}

/* Every card is white (the selections box, .booking-summary-card, is on the page's background) */
.bordered-card,
.bordered-card-muted {
    background-color: var(--color-card-background);
}

.selector-card-icon-slot {
    width: 2.5rem;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .selector-card-icon-slot i {
        font-size: 2.5rem;
        color: var(--color-icon-primary);
    }

.selector-card {
    padding: 1rem 1.5rem;
    width: 100%;
    max-width: 25rem;
}



.header-text {
    font-size: 3rem;
}

.content-wrapper {
    background-color: var(--color-body-background);
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

/* The page while its first load is not done (PageReadiness): laid out but not shown, so nothing moves when it appears */
.content-wrapper {
    position: relative;
}

    .content-wrapper.page-loading > :not(.page-loading-spinner) {
        visibility: hidden;
    }

/* Only when the wait is noticeable */
.page-loading-spinner {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    animation: page-loading-spinner-in 0.2s ease 0.4s forwards;
}

    .page-loading-spinner .spinner-border {
        color: var(--color-primary-background);
    }

@keyframes page-loading-spinner-in {
    to {
        opacity: 1;
    }
}

.drop-shadow {
    box-shadow: 3px 3px 10px 0px rgba(150, 150, 150, 0.4);
}

.pointer {
    cursor: pointer;
}

/* The plus / minus (add-ons, nights, persons): as the booking widget's – a white square with rounded corners, a grey border
   and a thin dark icon; disabled: a paler border and icon. !important to win over the global .btn-primary rule. */
.btn.btn-add {
    aspect-ratio: 1/1;
    height: 1.8rem;
    width: 1.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    line-height: 1;
    border-radius: 0.4rem;
    border: 1px solid var(--color-border-muted) !important;
    background-color: var(--color-card-background) !important;
    color: var(--color-text) !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

    .btn.btn-add:hover,
    .btn.btn-add:active,
    .btn.btn-add:focus-visible {
        background-color: color-mix(in srgb, var(--color-text) 5%, var(--color-card-background)) !important;
        border-color: color-mix(in srgb, var(--color-text) 35%, var(--color-card-background)) !important;
    }

    /* The plus / minus: a thin icon, centred in the square (the "+" / "-" characters sit off the middle of their line) */
    .btn.btn-add > i {
        width: auto;
        margin: 0;
        font-size: 0.85rem;
        --fa-style: 300; /* Font Awesome Pro's light weight, whichever style class the icon has */
        font-weight: 300;
        color: inherit;
    }

    .btn.btn-add:disabled {
        background-color: var(--color-card-background) !important;
        border-color: color-mix(in srgb, var(--color-border-muted) 50%, var(--color-card-background)) !important;
        box-shadow: none !important;
        opacity: 1;
    }

        .btn.btn-add:disabled,
        .btn.btn-add:disabled > i {
            color: color-mix(in srgb, var(--color-text) 25%, var(--color-card-background)) !important;
        }

/* Disabled send buttons: the same colours as the back button (a theme's Secondary)
   (!important to win over the global .btn-primary rule, opacity 1 so the grey is not faded) */
.btn.input-action-button:disabled {
    background-color: var(--color-back-btn) !important;
    border-color: var(--color-back-btn-border) !important;
    color: var(--color-back-btn-text) !important;
    opacity: 1;
}

/* Quantity fields (steppers): on the card's background (the grey box sets its own, see .stay-edit-stepper) */
.quantity {
    border: none;
    width: 2rem;
    background-color: var(--color-card-background);
}

    .quantity::-webkit-inner-spin-button,
    .quantity::-webkit-outer-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

.quantity {
    -moz-appearance: textfield;
}

/*REMOVE SCROLBAR*/
.addons-container,
.products-container {
    scrollbar-width: none; /* Firefox */
}

    .addons-container::-webkit-scrollbar,
    .products-container::-webkit-scrollbar {
        display: none; /* Chrome/Safari/Edge */
    }

/****************************/
/*          Topbar          */
/****************************/

.top-bar {
    width: 100%;
    min-height: 40px;
    /* No padding: the banner reaches the bar's top and bottom */
    padding: 0;
    background-color: var(--color-topbar-background);
    color: var(--color-topbar);
    /* Above the page, so the shadow falls on it */
    position: relative;
    z-index: 10;
    box-shadow: var(--topbar-shadow);
}

/* The banner in the middle column of the bar (the webshop's logo): scaled to fit, centred */
.top-bar-banner {
    display: block;
    max-width: 100%;
    height: var(--topbar-banner-height);
    margin: 0 auto;
    object-fit: contain;
}

/* The breadcrumb under the bar, centred; takes no room before a flow is started (FlowBreadcrumb renders nothing) */
.breadcrumb-bar {
    display: flex;
    justify-content: center;
    padding: 0 1rem;
}

    .breadcrumb-bar .breadcrumb-trail {
        margin-top: 0.75rem;
        padding: 0.3rem;
    }


    .top-bar .container {
        max-width: 900px;
        margin: 0 auto;
    }

/* The breadcrumb (Components/FlowBreadcrumb.razor): the steps of the flow as circles joined by a line */
.breadcrumb-trail {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

    .breadcrumb-checkpoint {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 1.6rem;
        height: 1.6rem;
        border-radius: 50%;
        box-sizing: border-box; /* the border of a step ahead stays inside the circle */
        font-size: 0.8rem;
        color: var(--color-breadcrumb-done-icon);
        background-color: var(--color-breadcrumb-done);
    }

        .breadcrumb-checkpoint.ahead {
            color: var(--color-breadcrumb-todo-icon);
            background-color: var(--color-breadcrumb-todo);
            border: 1px solid var(--color-breadcrumb-todo-border);
        }

        /* A handled step that can be tapped (FlowPath): the whole circle */
        .breadcrumb-checkpoint .breadcrumb-button {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 100%;
            height: 100%;
            padding: 0;
            border: none;
            border-radius: 50%;
            background: none;
            color: inherit;
            font-size: inherit;
            cursor: pointer;
        }

            .breadcrumb-checkpoint .breadcrumb-button:disabled {
                cursor: default;
            }

    /* The line between two steps: coloured as the step it leads to */
    .breadcrumb-line {
        flex: 0 0 auto;
        width: 0.6rem;
        height: 0.15rem;
        background-color: var(--color-breadcrumb-done);
    }

        .breadcrumb-line.ahead {
            background-color: var(--color-breadcrumb-todo-border);
        }

    /* The phone and basket icons: coloured as the other icons on the page (the theme's too) */
    .top-bar .cart-icon,
    .top-bar .top-bar-icon {
        font-size: 1.5rem;
        color: var(--color-icon-primary);
    }

/* The phone and basket icons, right in the bar */
.top-bar-icons {
    gap: 1.25rem;
}



.custom-dropdown-container {
    position: relative;
    z-index: 1000;
}

    .custom-dropdown-container .display-item {
        white-space: nowrap;
        display: block;
    }

    .custom-dropdown-container ul.custom-dropdown {
        display: none;
        position: absolute;
        top: 100%;
        padding-left: 0px;
        z-index: 1001;
        box-shadow: 0px 3px 3px 0px rgba(0,0,0,0.6);
        background-color: var(--color-card-background);
    }

    .custom-dropdown-container .custom-dropdown .custom-dropdown-item {
        white-space: nowrap;
    }

    .custom-dropdown-container .custom-dropdown .custom-dropdown-item {
        list-style-type: none;
        cursor: pointer;
    }

    .custom-dropdown-container:hover .custom-dropdown {
        display: block;
    }

        .custom-dropdown-container:hover .custom-dropdown .custom-dropdown-item a {
            display: block;
        }

.language-selector-flag {
    max-width: 2rem;
    margin: 8px;
    height: 1.5rem;
    border-radius: 15%;
    cursor: pointer;
}

/****************************/
/*          StepFooter      */
/****************************/

.step-footer {
    width: 100%;
    max-width: var(--footer-width);
    margin: 0 auto;
    margin-bottom: 10px;
    margin-top: 10px;
    gap: 0.3rem;
}

.btn-next {
    width: 100%;
    font-weight: bold;
}

.btn-back,
.btn-back:focus,
.btn-back:active,
.btn-back.active,
.btn-back:hover,
.btn-back:not(:disabled):not(.disabled):active {
    color: var(--color-back-btn-text) !important;
    background-color: var(--color-back-btn) !important;
    border-color: var(--color-back-btn-border) !important;
    box-shadow: none !important;
}

    .btn-back i {
        color: var(--color-back-btn-text);
        font-weight: bolder;
        font-size: 1.2rem;
    }


/****************************/
/*      Kiosk dialog        */
/****************************/

/* KioskDialog: the inactivity warning ("Er du der stadig?") and "Annullér" – on top of everything */
.kiosk-dialog-backdrop {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background-color: color-mix(in srgb, var(--color-border-muted) 92%, transparent); /* the breadcrumb's grey at 0.92 */
}

.kiosk-dialog {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 25rem;
    padding: 1.5rem 1rem 0.5rem 1rem;
    text-align: center;
}

.kiosk-dialog-icon {
    font-size: 3rem;
    color: var(--color-icon-primary);
}

.kiosk-dialog-text {
    font-size: 1.1rem;
}

/* The inactivity warning: the seconds left large, the two choices side by side ("Start forfra" as a back button, "Jeg er her") */
.kiosk-dialog.idle-warning {
    gap: 0.25rem;
    padding: 1.25rem;
}

    .kiosk-dialog.idle-warning .guest-title {
        margin-bottom: 0.25rem;
    }

    .kiosk-dialog.idle-warning .kiosk-dialog-text {
        color: var(--color-subtext);
    }

.idle-warning-seconds {
    font-size: 3.25rem;
    font-weight: bold;
    line-height: 1.1;
    color: var(--color-icon-primary);
    margin-bottom: 0.5rem;
}

.idle-warning-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    width: 100%;
}

    .idle-warning-actions .btn {
        min-height: 3rem;
        font-weight: bold;
    }

/****************************/
/*          Cancel          */
/****************************/

/* Back button on the left edge (as in StepFooter), "Annullér" centred: 1fr auto 1fr keeps the middle column centred */
.cancel-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    min-height: 40px;
    width: 100%;
    max-width: var(--footer-width);
    margin: 0 auto;
}

    .cancel-back-slot {
        justify-self: start;
    }

/* The secondary button ("Annullér", "Nej" in the dialogs). The padding is the space the margins gave, and the border is drawn inside,
   so a background or a border set for secondary buttons does not change the size. */
.cancel-text {
    color: var(--color-secondary);
    background-color: var(--color-secondary-btn);
    box-shadow: inset 0 0 0 0.1rem var(--color-secondary-btn-border);
    border-radius: var(--global-border-radius);
    margin: 0;
    padding: 0.5rem 1rem;
    font-weight: bold;
}

/* E.g. while a terminal payment is pending: kept in place (no layout jump), but faded and not clickable */
.cancel-disabled {
    opacity: 0.35;
    pointer-events: none;
}


/****************************/
/*          Home            */
/****************************/

.home-container {
    gap: 4rem;
}

/* The theme's image behind the language selection: the whole page, under the top bar's shadow */
.language-background {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

/* The part of the image picked in admin: a box with that part's shape, covering the page */
.language-background-area {
    position: absolute;
    left: 50%;
    top: 50%;
    width: max(100vw, calc(100vh * var(--area-ratio)));
    height: max(100vh, calc(100vw / var(--area-ratio)));
    transform: translate(-50%, -50%);
    background-repeat: no-repeat;
}

.on-background-image {
    position: relative;
    z-index: 1;
}

    .home-container.on-background-image,
    .home-container.on-background-image .language-select-label,
    .home-container.on-background-image .page-intro-subtext,
    .home-container.on-background-image .page-note,
    .home-container.on-background-image h1,
    .home-container.on-background-image h3,
    .home-container.on-background-image h5 {
        color: #ffffff;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.7);
    }

/* A theme's texts on a page (PageIntro, PageNote): no wider than the page's content (.product-card, .guest-container), they wrap */
.page-intro-header,
.page-intro-subtext,
.page-note {
    width: 100%;
    max-width: 25rem;
    margin-left: auto;
    margin-right: auto;
}

/* A header with a text under it: the two kept together */
h3:has(+ .page-intro-subtext),
.guest-title:has(+ .page-intro-subtext) {
    margin-bottom: 0.25rem;
}

.page-intro-subtext {
    margin-top: 0;
    margin-bottom: 0.75rem;
    color: var(--color-subtext);
    text-align: center;
}

.page-intro-header {
    text-align: center;
}

.page-note {
    margin-top: 0.5rem;
    margin-bottom: 0;
    font-size: 0.75rem;
    color: var(--color-subtext);
    text-align: center;
}

/* Admin's preview of a theme: the elements under each other; the cards as wide as on their own pages */
.theme-preview {
    gap: 1.5rem;
}

    .theme-preview .product-card {
        width: 100%;
    }

    .theme-preview .stay-fit-warning {
        max-width: 25rem;
    }

.theme-preview-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.theme-preview-image {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-subtext);
    background-color: var(--color-body-background);
}

.language-select-row {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding-left: 2rem;
    padding-right: 2rem;
}

.welcome-language-flag {
    /*width: 100px;*/
    /*height: 75px;*/
    width: 6rem;
    height: 4.8rem;
    object-fit: cover;
    border-radius: min(var(--global-border-radius), 0.5rem); /* a flag is a picture: a theme can make it squarer, never rounder */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

    .welcome-language-flag:active {
        transform: scale(0.95);
    }



/****************************/
/*      SELECT OPTIONS      */
/****************************/
.option-card:active {
    transform: scale(0.95);
}

.option-card-list {
    gap: 1.2rem;
    width: 80%;
    max-width: 30rem;
    margin: 0 auto;
}

.card-text {
    font-weight: bold;
}

.option-card-icon {
    font-size: 3rem;
    padding: 0.5rem;
    color: var(--color-icon-primary);
}

.option-card-text {
    text-align: left;
}

.option-card-title {
    font-weight: bold;
    font-size: 1.4rem;
}

.option-card-subtitle {
    font-size: 0.8rem;
}

/* Optional amount at the right of an option card (as .product-price on the product cards) */
.option-card-price {
    font-weight: bold;
    font-size: 1.1rem;
    white-space: nowrap;
    padding-right: 1rem;
    color: var(--color-price);
}

/* A short tag at the right of an option card (e.g. "Tjek ud" / "Tjek ind" on the check-in booking choice) – not a price */
.option-card-tag {
    font-weight: bold;
    white-space: nowrap;
    padding-right: 1rem;
    color: var(--color-icon-primary);
}

.resource-type-card {
    width: 9rem;
    height: 7rem;
}

    .resource-type-card i {
        font-size: 3.5rem;
        color: var(--color-icon-primary);
    }

    .resource-type-card:active {
        transform: scale(0.95)
    }

/* The quick booking links under the resource types: "Eller", then a card per link (photo, what it chooses, price) */
.quick-booking-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 25rem;
    margin-top: 2rem;
}

.quick-booking-or {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--color-text);
}

    .quick-booking-or::before,
    .quick-booking-or::after {
        content: "";
        flex: 1 1 auto;
        height: 1px;
        background-color: var(--color-border-muted);
    }

.quick-booking-card {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 5rem;
    padding: 0;
    overflow: hidden;
    text-align: left;
    color: var(--color-text);
}

.quick-booking-image {
    flex: 0 0 6rem;
    display: block;
}

    /* The photo fills the card, however many lines the text takes; the dots (how many images) on it */
    .quick-booking-image .image-component-wrapper {
        position: relative;
        width: 100%;
        height: 100%;
    }

    .quick-booking-image img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.quick-booking-text {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 0.75rem;
}

.quick-booking-name {
    font-weight: bold;
    color: var(--color-title);
}

.quick-booking-stay {
    font-size: 0.85rem;
    color: var(--color-subtext);
}

/* The product's tags (their icons) under the stay, as on the product step's cards */
.quick-booking-tags {
    margin-top: 0.35rem;
}

/* The price box down the right side, as on the product cards: the theme's Prisfelt (the card's own colour when it is
   left empty, and without a theme), the same width on every link for a four-digit price */
.quick-booking-price {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    box-sizing: border-box;
    min-width: 5.5rem;
    padding: 0.5rem 0.75rem;
    background-color: var(--color-price-panel, var(--color-card-background));
    font-weight: bold;
    color: var(--color-price);
    white-space: nowrap;
}

/****************************/
/*       BookingSummary     */
/****************************/

.booking-summary-card {
    display: flex;
    justify-content: start;
    width: 100%;
    max-width: 25rem;
    background-color: var(--color-body-background);
    margin: 0 auto;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0.5rem 0.5rem 0.5rem;
    /*font-weight: bold;*/
    font-size: 0.9rem;
}

    .booking-summary-card .col-12 {
        padding: 0 0 0 0;
    }

    .booking-summary-card i {
        font-size: 1rem;
        width: 1.5rem;
    }

        .booking-summary-card i.inline {
            font-size: 0.9rem;
            color: var(--color-text);
            margin-right: 0;
        }

    .booking-summary-card .row {
        padding: 0px 1rem 0px 1rem;
    }

    .booking-summary-card.bordered-card-muted {
        border-radius: var(--global-border-radius);
    }

    .booking-summary-card i {
        color: var(--color-icon-primary);
        margin-right: 0.5rem;
    }

        /* The selections' icons (not the pencil, the arrow between the dates, nor the open edit box's): grey as the breadcrumb's */
        .booking-summary-card > .row i:not(.inline) {
            color: var(--color-breadcrumb-done);
        }

/* Pencil: edit the stay (StayEditPanel) */
.booking-summary-card {
    position: relative;
}

    /* The pencil: 10px from the box's right and bottom border (the glyph itself, without the box's icon width and margin) */
    .booking-summary-card .booking-summary-edit {
        position: absolute;
        right: 10px;
        bottom: 10px;
        border: none;
        background: none;
        padding: 0;
        line-height: 1;
    }

        .booking-summary-card .booking-summary-edit i {
            display: block;
            width: auto;
            margin: 0;
        }

    /* The open edit panel takes the whole box */
    .booking-summary-card.editing {
        flex-direction: column;
        padding: 0;
    }

/* Folds out once it is loaded (pushes the step down) */
.stay-edit-panel:not(.loading) {
    animation: stay-edit-fold-out 250ms ease-out;
    overflow: hidden;
}

@keyframes stay-edit-fold-out {
    from {
        max-height: 3rem;
    }

    to {
        max-height: 60rem;
    }
}

/* Step 8: the box in the stay's card, under its header and inset from the card's border; the dividing line under it (not under the header) */
.stay-card-editor {
    padding: 0 0.6rem 0.6rem 0.6rem;
    --divider-color: var(--color-border-muted);
    cursor: default;
}

    /* No border in the card, but rounded as the box elsewhere */
    .stay-card-editor .booking-summary-card.editing {
        max-width: none;
        margin: 0;
        border-radius: var(--global-border-radius);
    }

.stay-card.expanded.editing .stay-card-header { /* wins over the dividing lines' rule further down */
    background-image: none;
}

.stay-edit-panel {
    width: 100%;
}

    /* Hidden until everything in it is loaded (StayEditPanel.IsReady) */
    .stay-edit-panel.loading {
        display: none;
    }

.stay-edit-loading {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 1rem;
}

.stay-edit-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    --divider-color: var(--color-border-muted); /* the box's border grey: visible on the box's page-coloured background */
}

.stay-edit-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stay-edit-text {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
    font-weight: bold;
}

/* Minus, quantity, plus: 1.8rem + 0.4rem + 2rem + 0.4rem + 1.8rem – the product / pitch buttons under them are as wide (.stay-edit-actions) */
.stay-edit-stepper {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

    .stay-edit-stepper .quantity {
        text-align: center;
        background: none;
    }

    /* The addon cards in the box look as on step 7: their own padding, not the box's rows' (.booking-summary-card .row) – the photos are placed by it */
    .stay-edit-panel .addon-card {
        padding: var(--addon-card-padding-y) var(--addon-card-padding-x);
    }

    /* The addon quantities in the box (step 8): on the box's own background, as nights / persons */
    .stay-edit-panel .addon-card .quantity {
        background: none;
    }

/* As wide as the steppers above, so the buttons line up with them */
.stay-edit-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 0 0 auto;
    width: 6.4rem;
}

    .stay-edit-actions .btn {
        width: 100%;
        font-size: 0.8rem;
        padding: 0.2rem 0.25rem;
    }

.stay-edit-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 0 1rem 0.2rem 1rem;
}

    /* No divider between the last section (e.g. the price) and the close chevron */
    .stay-edit-section:has(+ .stay-edit-footer) {
        background-image: none;
    }

    .stay-edit-footer .stay-edit-save {
        min-width: 6rem;
    }

    .stay-edit-footer .stay-edit-close {
        border: none;
        background: none;
        font-size: 1.4rem;
        line-height: 1;
        padding: 0.1rem 1rem;
    }

        .stay-edit-footer .stay-edit-close i {
            margin-right: 0;
        }

/****************************/
/*         Step 2           */
/****************************/

.selector-card .dates-text-row {
    text-align: start;
}

    .selector-card .dates-text-row .dates {
        font-weight: bold;
        font-size: 1rem;
    }

    .selector-card .dates-text-row .day-count {
        font-size: 1rem;
    }

/****************************/
/*         Step 3           */
/****************************/

.persontypes-container {
    gap: 1.2rem !important;
}

/* The product or pitch chosen before does not fit the new period / guests (StayFitWarning, steps 2 and 3) */
.stay-fit-warning {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--bs-danger);
    border-radius: var(--global-border-radius);
    background-color: color-mix(in srgb, var(--bs-danger) 8%, var(--color-card-background));
    color: var(--bs-danger);
    font-size: 0.9rem;
    text-align: left;
}

    .stay-fit-warning i {
        margin-top: 0.15rem;
    }

.selector-card .pt-text-row {
    text-align: start;
}

.selector-card .pt-name {
    font-size: 1rem;
    font-weight: bold;
}

/****************************/
/*         Step 4           */
/****************************/

.products-container {
    gap: 0.5rem !important;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    justify-content: center;
    justify-content: safe center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.product-card {
    width: 100%;
    max-width: 25rem;
    min-height: 6.5rem;
    overflow: hidden;
    background-color: var(--color-card-background);
}

.product-card-image-slot {
    width: 8rem;
    flex-shrink: 0;
    align-self: stretch;
    position: relative;
}

    .product-card-image-slot img,
    .product-card-image-slot .image-placeholder-icon {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        border-right: thin solid var(--color-border-muted);
    }

        .product-card-image-slot .image-placeholder-icon i {
            font-size: 2.5rem;
        }

    /* No image: the image box is the card's own background */
    .product-card-image-slot .image-placeholder-icon {
        background-color: var(--color-card-background);
    }

.product-card-content {
    min-width: 0;
}

    .product-card-content .product-name,
    .product-card-content .product-description {
        padding-left: 0.5rem;
    }

    /* The price box down the right side: the theme's Prisfelt (the card's own colour when it is left empty, and
       without a theme) */
    .product-card > .product-price {
        flex-shrink: 0;
        align-self: stretch;
        /* The same width on every card: room for a four-digit price ("8888 kr." is 3.72rem) and the padding; a longer
           price makes its box wider */
        box-sizing: border-box;
        min-width: 5.5rem;
        padding: 0.5rem 1rem 0.5rem 0.75rem;
        background-color: var(--color-price-panel, var(--color-card-background));
    }

        .product-card > .product-price .from {
            font-size: 0.7rem;
            color: var(--color-subtext);
        }

.product-card .product-text-row {
    text-align: start;
    /* Room above the name; the text below is 3 lines to make up for it */
    padding-top: 0.6rem;
}

.product-card .product-name {
    font-size: 0.7rem;
    font-weight: bold;
    color: var(--color-title);
}

.product-card .product-description {
    font-size: 0.6rem;
    color: var(--color-subtext);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* "Inkluderet i prisen" on the card, instead of the description: a list with small square dots (as the booking widget), at most 3 items of one line each
   (a longer item ends in "…"; the details show it all) */
.product-card .product-included {
    list-style: none;
    margin: 0.2rem 0 0;
    padding: 0 0 0 0.5rem;
    font-size: 0.6rem;
    line-height: 1.5;
    color: var(--color-subtext);
}

    .product-card .product-included li {
        display: flex;
        align-items: baseline;
        gap: 0.35rem;
    }

            .product-card .product-included li > span {
                min-width: 0;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

        .product-card .product-included li:nth-child(n+4) {
            display: none;
        }

        /* The dot: a text square (■), not a box – a box of 0.2rem at a fractional position was rounded to 2 or 3 pixels high.
           The theme's bullet (Tekster: --bullet-*, ThemeHelper) replaces it. */
        .product-card .product-included li::before {
            content: var(--bullet-content, "\25A0");
            flex: 0 0 auto;
            position: relative;
            top: var(--bullet-offset, -0.15em);
            font-family: var(--bullet-font, inherit);
            font-weight: var(--bullet-weight, inherit);
            font-size: var(--bullet-size, 0.6em);
            line-height: 1;
            color: var(--bullet-color, color-mix(in srgb, var(--color-subtext) 60%, transparent));
        }

.product-card .product-price {
    white-space: nowrap;
    color: var(--color-price);
}

.image-placeholder-icon {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--color-background);
}

    .image-placeholder-icon i {
        font-size: 1.8rem;
        color: var(--color-icon);
    }

.image-component-wrapper {
    position: relative;
}

.product-card-image-slot .image-component-wrapper {
    position: absolute;
    inset: 0;
}

/* How many images (one dot each) when the image opens a details view (ImageComponent.OnImageClick) – as the carousel's indicators */
.image-count-dots {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.4rem;
    display: flex;
    justify-content: center;
    gap: 0.25rem;
    pointer-events: none;
}

    .image-count-dots .image-count-dot {
        width: 0.35rem;
        height: 0.35rem;
        border-radius: 50%;
        background-color: rgba(255, 255, 255, 0.6);
        box-shadow: 0 0 2px rgba(0, 0, 0, 0.5);
    }

        .image-count-dots .image-count-dot.active {
            width: 0.9rem;
            border-radius: 0.2rem;
            background-color: #ffffff;
        }

/* The arrow at the bottom of a product card: opens the product's details */
.product-card-details-toggle {
    align-self: center;
    border: none;
    background: none;
    padding: 0 1rem 0.2rem 1rem;
    line-height: 1;
    color: var(--color-icon-primary);
    font-size: 0.9rem;
}

/* A product's / a pitch's tags (Ikon on the tag in admin) as a row of icons (TagIcons.razor, the map's popup): under the
   name on the product card, in the product's details and on the map's cards */
/* Each icon as wide as itself, close together */
.product-tag-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

    .product-tag-icons .product-tag-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        height: 1.3rem;
        color: var(--color-icon-primary);
        font-size: 0.65rem;
    }

/* Under the name, level with it */
.product-card-tags {
    padding-left: 0.5rem;
    margin-top: 0.15rem;
}

.product-details-tags {
    margin-bottom: 0.5rem;
}

/* In a pitch's popup: close under the name and over the description (the popup's body has a 0.4rem gap between its
   parts; the icons have no box of their own above and below) */
.resource-popup-tags {
    margin: -0.25rem 0 -0.1rem 0;
}

    .resource-popup-tags .product-tag-icon {
        height: auto;
        line-height: 1;
    }

/* The product's details (ProductDetailsDialog): images on top, name + description, the price with "Vælg" */
/* No border: the white card stands on the dimmed screen by itself */
.product-details {
    position: relative;
    border-radius: var(--global-border-radius);
    background-color: var(--color-card-background);
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 30rem;
    max-height: calc(100vh - 2rem);
    overflow: hidden auto;
}

/* A fixed 16:10 box: every image is cropped to it, so browsing images of other sizes never changes the popup's size */
.product-details-images {
    position: relative;
    flex-shrink: 0;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--color-background);
}

    .product-details-images > img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        user-select: none;
        animation: product-details-image-in 0.2s ease-out;
    }

@keyframes product-details-image-in {
    from {
        opacity: 0.4;
    }
}

/* Previous / next image: a white chevron on the photo (as the booking widget) */
.product-details-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: none;
    background: none;
    color: #ffffff;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.6));
    translate: 0 -50%;
}

    .product-details-nav svg {
        width: 1.5rem;
        height: 1.5rem;
    }

    .product-details-nav.prev {
        left: 0.25rem;
    }

    .product-details-nav.next {
        right: 0.25rem;
    }

    /* The dots sit above the photo, below the arrows */
    .product-details-images .image-count-dots {
        z-index: 3;
        bottom: 0.75rem;
    }

.product-details-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    z-index: 5;
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: none;
    border-radius: 999px;
    background-color: #ffffff;
    color: var(--bs-body-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

    /* As the booking widget's: an 18px X in a 36px circle */
    .product-details-close svg {
        width: 1.125rem;
        height: 1.125rem;
    }

.product-details-body {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    text-align: left;
}

    /* No images: room for the X above the text and the price */
    .product-details.no-images .product-details-body {
        padding-top: 3.2rem;
    }

.product-details-text {
    flex: 1 1 auto;
    min-width: 0;
}

.product-details-name {
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: var(--color-title);
}

/* "Inkluderet i prisen" in the details, above the description: check marks in the primary colour (as the booking widget) */
.product-details-included {
    list-style: none;
    margin: 0 0 0.8rem;
    padding: 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: var(--color-text);
}

    .product-details-included li {
        display: flex;
        align-items: baseline;
        gap: 0.6rem;
        padding: 0.15rem 0;
    }

        /* A check mark in the primary colour; the theme's bullet (Tekster: --bullet-*, ThemeHelper) replaces it */
        .product-details-included li::before {
            content: var(--bullet-content, "\f00c");
            flex: 0 0 auto;
            position: relative;
            top: var(--bullet-offset, 0);
            font-family: var(--bullet-font, "Font Awesome 7 Pro");
            font-weight: var(--bullet-weight, 400);
            font-size: var(--bullet-size, 0.9em);
            line-height: 1;
            color: var(--bullet-color, var(--color-icon-primary));
        }

.product-details-description {
    font-size: 0.75rem;
    color: var(--color-subtext);
}

.product-details-price {
    flex: 0 0 auto;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    align-items: end;
    gap: 0.25rem;
    width: 9rem;
    padding: 0.75rem;
}

    .product-details-price .from {
        font-size: 0.7rem;
        color: var(--color-subtext);
    }

    .product-details-price .product-details-amount {
        font-size: 1.3rem;
        font-weight: bold;
        color: var(--color-price);
    }

    .product-details-price .btn {
        margin-top: 0.5rem;
    }

.image-multi-badge {
    position: absolute;
    right: 0%;
    bottom: 0%;
    width: 1.6rem;
    height: 1.5rem;
    background-color: rgba(0, 0, 0, 0.6);
    border-top-left-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .image-multi-badge i {
        font-size: 0.9rem;
        color: white;
    }

/****************************/
/*         Step 5           */
/****************************/

/*.resource-selection-card {
    padding: 1rem 1.5rem;
    width: 100%;
    max-width: 25rem;
    min-height: 6.5rem;
    overflow: hidden;
}*/

.selector-card .resource-selection-text-row {
    text-align: start
}

.selector-card .resource-selection-price {
    white-space: nowrap;
    text-align: end;
    color: var(--color-price);
}
/****************************/
/*         Step 6           */
/****************************/
.map-container {
    width: 100%;
    max-width: 25rem;
    max-height: 30rem;
    margin: auto;
    flex: 1 1 auto;
    min-height: 0;
}

/* Step 6 (ResourceMap FillWidth): the page as wide as the screen, the map and its tags almost to its sides, the map
   most of the screen's height (the campsite map covers it, danplanner.map.js). The other steps keep .content-wrapper's
   width. */
.content-wrapper:has(.map-step) {
    max-width: none;
}

/* One white card (the card's border, its rounded corners) with a little room inside: the tags on top, under them the map
   set in from the card's edges, with its own rounded corners */
.map-container.map-step {
    width: calc(100% - 2rem);
    max-width: none;
    max-height: none;
    flex: 0 1 auto;
    padding: 0.75rem;
    background-color: var(--color-card-background);
    border: solid 0.1rem var(--color-border-muted);
    border-radius: var(--global-border-radius);
}

    .map-container.map-step .resource-map {
        height: 45vh;
    }

    /* The tags in four even columns (as col-3s), each name free to wrap, above the map */
    .map-container.map-step .map-resource-tags {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0.25rem 0.75rem;
        padding: 0 0 0.75rem 0;
    }

        /* Each tag fills its column; wrapped between words only, a word longer than the column breaks rather than spilling over */
        .map-container.map-step .map-resource-tags .map-resource-tag {
            width: 100%;
            text-align: left;
            white-space: normal;
            overflow-wrap: break-word;
            line-height: 1.25;
            font-size: 0.68rem;
            /* Room for two lines of the name always, so the buttons keep their height when the shown tags change */
            min-height: calc(2 * 1.25em + 0.4rem + 2px);
        }

            .map-container.map-step .map-resource-tags .map-resource-tag-name {
                flex: 1 1 auto;
                min-width: 0;
            }

            /* The count stays whole, after the name's last word */
            .map-container.map-step .map-resource-tags .map-resource-tag-count {
                white-space: nowrap;
            }

            .map-container.map-step .map-resource-tags .map-resource-tag .map-resource-tag-icon {
                flex-shrink: 0;
            }

.map-resource-tags {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.4rem;
    padding-bottom: 0.5rem;
}

/* A tag as a button, as the breadcrumb's steps but long (a pill, not a circle): a thin border and the text in the
   primary colour on the card's white; ticked, filled with the primary colour */
.map-resource-tag {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    min-height: 1.6rem;
    padding: 0.2rem 0.65rem;
    border-radius: 0.8rem;
    border: 1px solid var(--color-primary-btn-border);
    box-sizing: border-box;
    color: var(--color-primary-background);
    background-color: var(--color-card-background);
    font-size: 0.75rem;
    cursor: pointer;
}

    .map-resource-tag.selected {
        color: var(--color-primary);
        background-color: var(--color-primary-background);
    }

    /* The tag's icon (only with "Avanceret online booking") before its name, how many pitches have it after: in the
       button's own colour */
    .map-resource-tag .map-resource-tag-icon {
        color: inherit;
    }

    .map-resource-tag .map-resource-tag-count {
        color: inherit;
        opacity: 0.8;
    }

/****************************/
/*         Step 7           */
/****************************/

.addons-container {
    gap: 1rem !important;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    justify-content: center;
    justify-content: safe center;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.addon-card {
    --addon-card-padding-y: 0.1rem;
    --addon-card-padding-x: 0.7rem;
    min-height: 3rem;
    overflow: hidden;
    padding: var(--addon-card-padding-y) var(--addon-card-padding-x);
}

.addon-card-title-row {
    display: flex;
    flex-direction: column;
    align-items: start;
    min-width: 0;
    text-align: left;
}

/* The add-on's photo, left of its name (the group's "Vis billede", as the booking widget): small – a rounded tile inside the
   card, as the booking widget's – or large, filling the card's left edge; without a photo a gift icon on a tint of the primary colour */
.addon-photo {
    display: grid;
    place-items: center;
    width: 3.4rem;
    height: 3.4rem;
    /* 0.3rem from the card's left, top and bottom borders (the card's own padding pulled back) */
    margin: calc(0.3rem - var(--addon-card-padding-y)) 0.8rem calc(0.3rem - var(--addon-card-padding-y)) calc(0.3rem - var(--addon-card-padding-x));
    padding: 0;
    border: none;
    border-radius: 0.4rem;
    overflow: hidden;
    background-color: color-mix(in srgb, var(--color-primary-background) 10%, var(--color-card-background));
    color: var(--color-icon-primary);
}

    .addon-photo.large {
        width: 4.4rem;
        height: 4.4rem;
    }

    .addon-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* Centred in its tile (not the box's icon width and margin, .booking-summary-card i) */
    .addon-card .addon-photo i {
        font-size: 1rem;
        width: auto;
        margin: 0;
    }

    /* A large photo reaches the card's left, top and bottom edges: its slot spans the row's full height with the card's padding cancelled,
       and the photo fills the slot (the card's corners clip it) */
    .addon-card > .col-auto:has(> .addon-photo.large.has-image) {
        position: relative;
        align-self: stretch;
        width: 4.4rem;
        min-height: 4.4rem;
        margin: calc(-1 * var(--addon-card-padding-y)) 0.6rem calc(-1 * var(--addon-card-padding-y)) calc(-1 * var(--addon-card-padding-x));
    }

    .addon-photo.large.has-image {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        border-radius: 0;
    }

/* The group's card clips its rows' photos at its corners */
.addon-group-items {
    overflow: hidden;
}

    .addon-card .addon-photo.large i {
        font-size: 1.6rem;
    }

/* The name and price as the booking widget's: the name larger, thin and in the primary colour, the price bold in the text colour */
.addon-name {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.25;
    color: var(--color-primary-background);
}

.addon-price {
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 0.15rem;
    color: var(--color-text);
}

    /* "pr. stk." after the price: not bold, grey */
    .addon-price-unit {
        font-weight: 400;
        color: color-mix(in srgb, var(--color-text) 55%, var(--color-card-background));
    }

/* "Læs mere ⌄" under the price: opens the add-on's description (as the booking widget's) */
/* The price, and "Læs mere" on its own line under it: the link 3rem in from the column's right end – about the middle of the
   add-on box (a 25rem box: its middle is ~3rem left of the column's end, which is the same in every row, see .addon-controls) */
.addon-price-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    column-gap: 0.75rem;
    width: 100%;
    margin-top: 0.15rem;
}

    /* The whole line: the link always goes under it */
    .addon-price-row .addon-price {
        flex: 0 0 100%;
        margin-top: 0;
    }

.addon-read-more {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
    margin-right: 3rem;
    padding: 0;
    border: 0;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-primary-background);
    text-decoration: none;
}

    /* Only the text is underlined, not the arrow */
    .addon-read-more-text {
        text-decoration: underline;
        text-underline-offset: 0.15em;
    }

    /* The arrow: no underline, centred on the text's height */
    .addon-read-more i {
        display: inline-flex;
        align-items: center;
        align-self: center;
        width: auto;
        margin: 0 0 0 0.25rem;
        font-size: 0.6rem;
        line-height: 1;
        text-decoration: none;
        color: inherit;
    }

/* A line between the add-ons of a group, as the booking widget's */
.addon-group-items > .addon-card ~ .addon-card {
    border-top: 1px solid var(--color-border-muted);
}

/* The add-on's quantity: bold, between its minus and plus; a fixed width (not the digits'), so every row's controls are as wide */
.addon-card .quantity {
    display: inline-block;
    width: 2rem;
    font-weight: 700;
    text-align: center;
}

/* The minus / quantity / plus (or the radio) column: the same width in every row (1.8 + 0.5 + 2 + 0.5 + 1.8rem), so the name / price
   column – and its "Læs mere" – ends at the same place in every add-on box */
.addon-card .addon-controls {
    width: 6.6rem;
    flex: 0 0 6.6rem;
}

.addon-group {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    width: 100%;
    max-width: 25rem;
}

.addon-group-items {
}

.addon-group .bordered-card-muted {
    border-radius: var(--global-border-radius);
}

.addon-radio {
    width: 1.5rem;
    height: 1.5rem;
}

.addon-group-items {
    display: flex;
    flex-direction: column;
}

.addon-group-title {
    display: flex;
    align-items: start;
    flex-direction: column;
    font-weight: 600;
}

    .addon-group-title p {
        margin-bottom: 0;
    }

/****************************/
/*         Step 8           */
/****************************/

/* Gift card / credit code / rebate code row: one line, input (placeholder "Tilgodebevis · gavekort · rabat") + apply button */
.credit-voucher-code {
    width: 100%;
    max-width: 25rem; /* same width as the stay cards */    
}

/* The input fills the row (flex: 1 from .input-action-row), the button keeps its own width */
.credit-voucher-code .credit-voucher-code-input {
    width: 100%;
    margin-bottom: 0;
}

/* Applied code: one line replacing the input, styled like the total rows, with a trash can on the right */
.credit-voucher-applied {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: var(--input-height);
    font-weight: bold;
}

    /* Text with the trash can right after it; takes the free space so the amount stays on the right */
    .credit-voucher-applied .credit-voucher-applied-text {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 0.25rem;
        font-size: 0.9rem;
        text-align: left;
        overflow-wrap: anywhere; /* long codes */
    }

    .credit-voucher-applied .credit-voucher-applied-amount {
        color: var(--color-price);
        white-space: nowrap;
    }

    .credit-voucher-applied .credit-voucher-remove {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        width: 1.75rem;
        height: 1.75rem;
        padding: 0;
        border: none;
        background: none;
        color: var(--bs-secondary-color);
        font-size: 1rem;
    }

/* Applied rebate code does not cover this stay */
.stay-rebate-error {
    padding: 0 1rem 0.5rem 1rem;
    font-size: 0.85rem;
    color: var(--bs-danger);
    text-align: left;
}

.basket-container {
    gap: 0.5rem !important;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    justify-content: flex-start;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

    /* Takes the free space and centers the stays in it, pushing .basket-bottom down; does not shrink, so long baskets scroll */
    .basket-content,
    .basket-bottom {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
    }

    .basket-content {
        flex: 1 0 auto;
        justify-content: center;
        justify-content: safe center;
    }

    .basket-container h3 {
        margin-bottom: 0;
    }

.stay-card {
    width: 100%;
    max-width: 25rem;
}

    .stay-card.expanded .stay-card-header {
        --divider-color: var(--color-border-muted);
    }

.stay-card-header {
    display: flex;
    padding: 0.4rem 0.6rem 0.5rem 0.8rem;
}

    .stay-card-header .stay-card-title {
        display: flex;
        flex-direction: column;
        align-items: start;
        flex: 1 1 auto;
        min-width: 0; /* lets the title column wrap instead of running under the price */
    }

.stay-card-title .stay-name {
    text-align: start;
    font-weight: bold;
    font-size: 0.9rem;
}

.stay-card-title .stay-subline {
    font-size: 0.6rem;
    text-align: start; /* dates on the first line, person types underneath */
}

/* Pencil on the unfolded stay: opens the same edit box as on steps 3-7 */
.stay-card-edit {
    border: none;
    background: none;
    padding: 0 0.25rem;
    color: var(--color-icon-primary);
    font-size: 0.9rem;
    line-height: 1;
}

/* Addons in the edit box (step 8) */
.stay-edit-addons.disabled {
    opacity: 0.5;
}

/* The rows' icons (calendar, person types, product, addons): grey as the closed box's (not the − / + nor the buttons) */
.booking-summary-card .stay-edit-row > i {
    color: var(--color-breadcrumb-done);
}

/* "Vælg ny plads" / "Vælg på kort": the map in the box (ResourceMap) */
.stay-edit-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 1rem 0 0.5rem;
}

    .stay-edit-map-header .stay-edit-map-back {
        color: var(--color-text);
        text-decoration: none;
        padding-left: 0;
    }

.map-container.stay-edit-map {
    display: flex;
    flex-direction: column;
    height: 28rem;
    max-height: none;
    padding: 0.5rem 1rem 1rem 1rem;
}

    .map-container.stay-edit-map .resource-map {
        flex: 1 1 auto;
        min-height: 0;
    }

/* The product or pitch no longer fits the stay: why, in the product / pitch section under its buttons */
.stay-edit-problem {
    font-size: 0.75rem;
    color: var(--bs-danger);
    text-align: left;
    margin-top: -0.2rem; /* closer to the row than the section gap */
}

/* The system chose another pitch */
.stay-edit-info {
    padding: 0.5rem 1rem;
    --divider-color: var(--color-border-muted);
    font-size: 0.85rem;
    text-align: left;
}

.stay-card-header .stay-price {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: end;
    flex: 0 0 auto; /* never shrinks, so the price cannot overlap the title */
    min-width: 6.5rem;
    padding-left: 0.5rem;
    color: var(--color-price);
    font-weight: bold;
}

/* The fold arrow, in front of the title, level with the stay's name */
.stay-card-header .stay-card-chev {
    display: flex;
    align-items: flex-start;
    flex: 0 0 auto;
    width: 1rem;
    margin-right: 0.8rem;
    padding-top: 0.2rem;
}

.stay-lines {
    padding: 0.3rem 0.8rem 0 0.8rem;
    display: flex;
    flex-direction: column;
}

.stay-lines-header {
    margin-bottom: 0.2rem;
    font-size: 0.8rem;
    font-weight: bold;
    text-transform: uppercase; /* NAVN · STK · PRIS: the labels are written normally */
    display: flex;
}

.stay-lines-content {
    font-size: 0.7rem;
    padding-bottom: 0.3rem;
    display: flex;
}

.stay-lines-name {
    text-align: start;
    width: 60%;
}

.stay-lines-included {
    color: var(--color-icon);
}

.stay-lines-pcs {
    text-align: end;
    width: 10%;
}

.stay-lines-price {
    text-align: end;
    width: 30%;
}

.add-stay {
    width: 100%;
    max-width: 25rem;
    padding: 0.5rem;
    font-weight: 500;
    font-size: 0.8rem;
}

    /* While the open edit box holds the basket */
    .add-stay.disabled {
        opacity: 0.5;
        pointer-events: none;
    }

.booking-total {
    display: flex;
    width: 100%;
    max-width: 25rem;
    justify-content: space-between; 
    font-weight: bold;
    /* The theme's Prisfelt behind the total, as bookingv2's price panel; without a theme no panel */
    background-color: var(--color-price-panel, transparent);
    padding: var(--price-panel-padding-y, 0) var(--price-panel-padding-x, 0);
    border-radius: var(--radius-control, 0);
}

.booking-total-text {
    font-size: 0.9rem;
   
}

.booking-total-price {
    color: var(--color-price);
}

/* Company details | payment options | contact + terms (as the bookingv2 footer) */
.company-info {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 0.5rem;
    align-items: center;
    width: 100%;
    max-width: 25rem; /* same width as the stay cards */
    padding: 0.5rem 0.75rem;
    border-radius: var(--global-border-radius);
    background-color: var(--color-card-background);
    font-size: 0.6rem;
    line-height: 1.35;
}

.company-info-address {
    text-align: left;
}

.company-info-payment-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    max-width: 7rem;
}

    .company-info-payment-options img {
        height: 1.1rem;
    }

.company-info-contact {
    text-align: right;
}

    .company-info-contact a {
        color: var(--color-primary-background);
    }


/****************************/
/*       InputTextbox       */
/****************************/

.dp-input-group {
    width: 100%;
    margin-bottom: 0.75rem;
    text-align: left;
}

.dp-input-label {
    display: block;
    margin-bottom: 0.25rem;
    text-align: left;
}

.dp-input {
    position: relative;
}

    .dp-input .form-control,
    .dp-input .form-select {
        min-height: var(--input-height);
        border-color: var(--color-border-muted);
        border-radius: var(--radius-control, var(--global-border-radius));
        background-color: var(--color-card-background);
    }

    /* Fixed height without vertical padding, otherwise Bootstrap's padding makes them ~2.4rem (textarea excluded) */
    .dp-input input.form-control,
    .dp-input .form-select {
        height: var(--input-height);
        padding-top: 0;
        padding-bottom: 0;
    }

    /* No blue focus ring/border while typing (overrides Bootstrap and the global .form-control:focus rule) */
    .dp-input .form-control:focus,
    .dp-input .form-select:focus {
        outline: none;
        box-shadow: none;
        border-color: var(--color-border-muted);
    }

    /* Browser autofill (e.g. a suggested email): keep the field's normal background instead of Chrome's light blue.
       Browsers ignore background-color here, so an inset shadow covers it. Kept as separate rules:
       an unknown pseudo-class in a selector list would drop the whole rule. */
    .dp-input .form-control:-webkit-autofill,
    .dp-input .form-control:-webkit-autofill:hover,
    .dp-input .form-control:-webkit-autofill:focus {
        -webkit-box-shadow: 0 0 0 1000px var(--color-card-background) inset;
        box-shadow: 0 0 0 1000px var(--color-card-background) inset;
        -webkit-text-fill-color: var(--bs-body-color);
        caret-color: var(--bs-body-color);
        transition: background-color 9999s ease-out 0s;
    }

    .dp-input .form-control:autofill {
        box-shadow: 0 0 0 1000px var(--color-card-background) inset;
        filter: none;
    }

    .dp-input.has-icon .form-control,
    .dp-input.has-icon .form-select {
        padding-left: 2.25rem;
    }

    .dp-input .dp-input-icon {
        position: absolute;
        left: 0.75rem;
        top: calc(var(--input-height) / 2); /* centered on the input, also when a textarea grows */
        transform: translateY(-50%);
        width: 1.1rem;
        max-height: 1.1rem;
        object-fit: contain;
        text-align: center;
        color: var(--color-input-placeholder); /* same grey as the placeholders */
        font-size: 0.95rem;
        pointer-events: none;
        z-index: 1;
    }

    .dp-input.is-invalid .form-control,
    .dp-input.is-invalid .form-select {
        border-color: var(--bs-danger);
    }

    .dp-input.disabled .form-control,
    .dp-input.disabled .form-select {
        background-color: var(--color-booking-card-background);
        color: var(--color-icon);
    }

    /* Placeholders (also used for the field icons) */
    .dp-input .form-control::placeholder {
        color: var(--color-input-placeholder);
        opacity: 1; /* Firefox fades placeholders by default */
    }

    /* Nothing selected: the placeholder option gets the same grey as input placeholders; the open list keeps normal text */
    .dp-input .form-select.is-placeholder {
        color: var(--color-input-placeholder);
    }

        .dp-input .form-select.is-placeholder option {
            color: var(--bs-body-color);
        }

    .dp-input textarea.form-control {
        min-height: 60px;
        max-height: 120px;
    }

/* An input with a button next to it, e.g. email + "Send". The button is not part of InputTextbox. */
.input-action-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

    .input-action-row > .dp-input-group {
        flex: 1;
        min-width: 0;
        margin-bottom: 0;
    }

.input-action-button {
    min-width: 4.5rem;
    height: var(--input-height);
    padding-top: 0;
    padding-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    /* Find booking (check-in): the two "Send" buttons equally wide, also with the spinner in one */
    .input-action-button.checkin-lookup-button {
        flex: 0 0 auto;
        min-width: 6rem;
    }


.dp-input-error {
    margin-top: 0.25rem;
    font-size: 0.85rem;
    color: var(--bs-danger);
}

/****************************/
/*         Step 9           */
/****************************/

.guest-container {
    /*justify-content: flex-start;*/
    padding: 2rem 1rem 0 1rem;
}

    .guest-container > div {
        width: 100%;
        max-width: 25rem;
    }

.guest-title {  
    margin-bottom: 1.5rem;
}

.guest-error {
    text-align: center;
}

.guest-info {
    margin-bottom: 1rem;
    padding: 0.5rem 0.75rem;
    border-radius: var(--global-border-radius);
    background-color: var(--color-card-background);
    text-align: left;
}

.divider-text {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

    .divider-text::before,
    .divider-text::after {
        content: "";
        flex: 1;
        border-top: solid 1px var(--color-border-muted);
    }


.acsi-help-toggle {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--color-primary-background);
    text-align: left;
}

.acsi-help-close {
    margin-left: 0.25rem;
    text-decoration: underline;
}

.acsi-help-images {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

    .acsi-help-images img {
        width: 50%;
        border-radius: var(--global-border-radius);
    }

.guest-verify-text {
    margin-bottom: 1rem;
}

.otp-resend {
    margin-top: 3rem;
}

.otp-resend-options {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-top: 0.5rem;
}

.otp-resend-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    border: none;
    background: none;
    padding: 0;
}

    .otp-resend-option:disabled {
        opacity: 0.5;
    }

.otp-resend-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: var(--color-icon-primary);
    color: var(--color-primary);
    font-size: 1.3rem;
}

.guest-required-note {
    font-size: 0.8rem;
    text-align: left;
    margin-bottom: 0.5rem;
}

.guest-form-row {
    display: flex;
    gap: 0.75rem;
}

    .guest-form-row > .dp-input-group {
        flex: 1;
        min-width: 0;
    }

    .guest-form-row > .guest-phone-prefix {
        flex: 0 0 7rem;
    }

.guest-checks {
    margin-top: 1rem;
    text-align: left;
}

.guest-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

    .guest-check .form-check-input {
        width: 1.4rem;
        height: 1.4rem;
        margin-top: 0;
        flex-shrink: 0;
    }

    .guest-check.is-invalid .form-check-input {
        border-color: var(--bs-danger);
    }

.guest-read-more {
    color: var(--color-primary-background);
    font-weight: bold;
}

.guest-modal-text {
    white-space: pre-wrap;
}


/****************************/
/*       Step 10 / 11       */
/****************************/

/* Spinner / status / error in the middle of step 10 */
.step10-status {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Option cards as wide as on the other steps (.option-card-list), not the 25rem of the guest forms */
.guest-container > .payment-amount-choice,
.guest-container > .payment-method-choice {
    max-width: none;
}

.payment-amount-choice {
    width: 100%;
}

/* Terminal payment (10-3) */
.terminal-payment {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 25rem;
}

.terminal-payment-amount {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--color-price);
}

.terminal-payment-status {
    color: var(--bs-secondary-color);
}

.terminal-payment-spinner {
    width: 3rem;
    height: 3rem;
    color: var(--color-icon-primary);
}

.terminal-payment-countdown {
    font-size: 0.9rem;
    color: var(--bs-secondary-color);
}

.terminal-payment-cancel {
    width: 100%;
    margin-top: 1rem;
}

.terminal-payment-icon {
    font-size: 3.5rem;
}

    .terminal-payment-icon.failed {
        color: var(--bs-danger);
    }

/* Failed: back + retry, like the step footer */
.terminal-payment-actions {
    display: flex;
    gap: 0.3rem;
    width: 100%;
    margin-top: 1rem;
}

    .terminal-payment-actions .btn-primary {
        flex: 1;
    }

.finish-container {
    gap: 0.75rem;
    padding: 0 1rem;
}

.finish-icon {
    font-size: 4rem;
    color: var(--color-icon-primary);
}

.finish-booking-number {
    font-size: 1.1rem;
}

.finish-text {
    max-width: 25rem;
    white-space: pre-line; /* the webshop's payment link text can have line breaks */
}

/* Payment method choice without a terminal (10-3) */
.payment-method-choice {
    width: 100%;
}

.payment-method-description {
    margin-bottom: 1rem;
    white-space: pre-line;
}

.finish-button {
    max-width: var(--footer-width);
    margin-top: 1.5rem;
}


/****************************/
/*         Check-in         */
/****************************/

/* Nothing to check in now (starts later, pitch not ready, …) */
.checkin-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    text-align: center;
}

/* Step 2: the booking – "Tjek ud" / "Eller" / "Tjek ind", a card with a checkbox per stay */
.checkin-booking {
    gap: 0.75rem;
}

.checkinout-section-title {
    margin-bottom: 0;
}

.checkinout-divider {
    margin: 1rem 0;
}

.checkinout-stay-text {
    min-width: 0;
    text-align: left;
    padding: 0.75rem 0 0.75rem 0.5rem;
}

/* The card is the button: the checkbox only shows the state */
.checkinout-checkbox {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
    margin-right: 1rem;
    pointer-events: none;
}

.checkinout-stay-card {
    position: relative;
}

/* The section's title; "check all" sits on its right, its checkbox right above the cards' (the card's border + the checkbox's margin) */
.checkinout-section-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

    .checkinout-section-header .checkinout-section-title {
        margin: 0;
        padding: 0 3rem;
    }

.checkinout-select-all {
    position: absolute;
    top: 50%;
    right: 0.1rem;
    transform: translateY(-50%);
    display: flex;
    padding: 0.5rem 0 0.5rem 0.5rem;
}

    .checkinout-select-all .checkinout-checkbox {
        margin: 0 1rem 0 0;
    }

    /* Dimmed – except the tag with the reason */
    .checkinout-stay-card.disabled > :not(.checkinout-stay-tag) {
        opacity: 0.6;
    }

/* Why a stay can not be checked in now ("Starter 24. okt."), in the top right corner */
.checkinout-stay-tag {
    position: absolute;
    top: 0;
    right: 0;
    padding: 0.2rem 0.6rem;
    border-bottom-left-radius: 0.5rem;
    font-size: 0.6rem;
    font-weight: bold;
    white-space: nowrap;
    color: var(--color-primary);
    background-color: var(--color-primary-background);
}

/* Same text as the product cards in the booking flow (.product-name / .product-description) */
.checkin-stay-name {
    font-weight: bold;
    font-size: 0.7rem;
    color: var(--color-title);
}

.checkin-stay-dates,
.checkin-stay-note {
    font-size: 0.6rem;
    color: var(--color-subtext);
}

/* Check-out: what remains to be paid, the meter usage and the codes to return (as admin's group check-out) */
.checkout-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkout-subtitle {
    margin: -0.25rem 0 0.5rem;
    text-align: center;
    font-size: 0.75rem;
    color: inherit; /* as the page title above it */
}

/* One card for everything: a row per stay, meter and codes, divided by a line; the sums at the bottom */
.checkout-box {
    width: 100%;
    padding: 0.25rem 1.25rem;
    text-align: left;
}

.checkout-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
}

    .checkout-row + .checkout-row,
    .checkout-lines + .checkout-row {
        border-top: 1px solid var(--color-border-muted);
    }

/* The meter and codes rows: the icon at the title, the lines under it */
.checkout-row-top {
    align-items: flex-start;
}

.checkout-row-icon {
    width: 2.25rem;
    flex-shrink: 0;
    text-align: center;
    font-size: 1.75rem;
    color: var(--color-icon-primary);
}

.checkout-row-text {
    min-width: 0;
}

.checkout-row-title {
    font-weight: bold;
    font-size: 0.85rem;
    color: var(--color-title);
}

/* The fold arrow, in front of the title (as on every card that folds) */
.checkout-row-chevron {
    width: 0.75rem;
    margin-right: 0.6rem;
    font-size: 0.6rem;
    color: var(--color-icon-primary);
}

.checkout-row-sub {
    font-size: 0.65rem;
    color: var(--color-subtext);
}

.checkout-row-amount {
    flex-shrink: 0;
    text-align: right;
    font-weight: bold;
    font-size: 0.9rem;
    color: var(--color-price);
    white-space: nowrap;
}

/* Several stays folded out of "Restbeløb": a line per stay (tap: its lines, under it) */
.checkout-subrow {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.35rem 0;
}

    .checkout-subrow > span:last-child {
        flex-shrink: 0;
        font-size: 0.75rem;
        color: var(--color-price);
        white-space: nowrap;
    }

.checkout-subrow-title {
    font-size: 0.75rem;
    color: var(--color-title);
}

.checkout-sublines {
    padding: 0 0 0.5rem 1rem;
}

/* The codes row's title line: "Koder der lukkes" with "Retur" over the values */
.checkout-line-head {
    align-items: baseline;
}

.checkout-line-caption {
    font-size: 0.6rem;
    color: var(--color-subtext);
}

/* What the guest pays, under the card (as the booking's basket total) */
.checkout-total {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    margin-top: 0.75rem;
    padding: var(--price-panel-padding-y, 0) 1.25rem;
    font-size: 0.9rem;
    font-weight: bold;
    color: var(--color-title);
    /* Prisfelt, as .booking-total */
    background-color: var(--color-price-panel, transparent);
    border-radius: var(--radius-control, 0);
}

.checkout-total-price {
    color: var(--color-price);
    white-space: nowrap;
}

/* A stay's lines, folded out under it; also the sums and the codes */
.checkout-lines {
    padding: 0 0 0.75rem 3.25rem;
}

.checkout-line {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.15rem 0;
    font-size: 0.65rem;
    color: var(--color-subtext);
}

    .checkout-line > span:last-child {
        flex-shrink: 0;
        white-space: nowrap;
    }

.checkout-line-text {
    min-width: 0;
}

/* In the overview card every price and usage to the right is in the price colour */
.checkout-box .checkout-line > span:last-child:not(.checkout-line-text):not(.checkout-line-caption):not(.checkout-row-title) {
    color: var(--color-price);
}

/* The usages and the value left on the codes: bold, as the stays' prices */
.checkout-line-value {
    font-weight: bold;
}

.checkout-line-sum {
    margin-top: 0.25rem;
    border-top: 1px solid var(--color-border-muted);
    padding-top: 0.35rem;
}

/* What the button does, above the footer */
.checkout-declaration {
    margin-top: 0.5rem;
    font-size: 0.65rem;
    color: var(--color-subtext);
    text-align: center;
}

/* Check-out payment: the amount the server says remains, above the payment */
.checkout-pay-amount {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    width: 100%;
    max-width: 25rem;
    margin: 0 auto 1rem;
    font-size: 0.8rem;
    color: var(--color-title);
    /* Prisfelt, as .booking-total */
    background-color: var(--color-price-panel, transparent);
    padding: var(--price-panel-padding-y, 0) var(--price-panel-padding-x, 0);
    border-radius: var(--radius-control, 0);
}

    .checkout-pay-amount > strong {
        font-size: 1rem;
        color: var(--color-price);
        white-space: nowrap;
    }

/* Check-out finished: money to come, a stay the reception must finish */
.checkout-finish-note {
    font-size: 0.7rem;
    color: var(--color-subtext);
}

/* Step 4: finished */
.checkin-finish-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 25rem;
    padding: 1.25rem 1rem;
    text-align: center;
}

.checkin-finish-icon {
    font-size: 3rem;
    color: var(--color-success);
}

.checkin-finish-stay {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.checkin-pitch {
    font-size: 1.5rem;
    font-weight: bold;
}

.checkin-key {
    font-size: 1.1rem;
}

    .checkin-key strong {
        font-size: 1.5rem;
    }



/****************************/
/*          MAP             */
/****************************/


@media (max-width: 800px) {
    #mapModal .modal-dialog.modal-xl {
        max-width: 90% !important;
    }
}

.resource-map {
    width: 100%;
    height: 100%;
    border-radius: var(--global-border-radius);
}

    .resource-map .text-marker {
        color: #4b99d0;
        width: 24px;
        height: 40px;
        position: absolute;
        bottom: 0px;
        left: -6px;
    }

        .resource-map .text-marker.not-available {
            filter: hue-rotate(140deg);
        }

/* A pitch's popup on the map (danplanner.map.js createResourcePopup): a white card – its photo on top when it has one,
   our own X, the name, the description and "Vælg · 830 kr." – instead of Leaflet's frame */
.resource-popup-leaflet .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 1rem;
    overflow: hidden;
    background-color: var(--color-card-background);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.resource-popup-leaflet .leaflet-popup-content {
    margin: 0;
    width: 15rem !important; /* Leaflet sets its own width; the card is always this wide */
    font-size: inherit;
    line-height: 1.35;
}

.resource-popup-leaflet .leaflet-popup-tip {
    background-color: var(--color-card-background);
}

/* Opened below the pin (danplanner.map.js placePopup): the tip on top, pointing up; to its right / left: the tip on
   the card's left / right edge pointing at the pin (placePopup puts it level with the pin) */
.resource-popup-leaflet.popup-below .leaflet-popup-tip-container {
    top: -20px;
    transform: rotate(180deg);
}

.resource-popup-leaflet.popup-right .leaflet-popup-tip-container,
.resource-popup-leaflet.popup-left .leaflet-popup-tip-container {
    margin-left: 0;
}

.resource-popup-leaflet.popup-right .leaflet-popup-tip-container {
    transform: rotate(90deg);
}

.resource-popup-leaflet.popup-left .leaflet-popup-tip-container {
    transform: rotate(-90deg);
}

/* Taller than the map (danplanner.map.js gives it the map's height as maxHeight): the card scrolls, without Leaflet's
   borders */
.resource-popup-leaflet .leaflet-popup-scrolled {
    border: none;
    overflow-x: hidden;
    overflow-y: auto;
}

.resource-popup {
    position: relative;
    text-align: left;
}

    .resource-popup-image {
        position: relative;
        aspect-ratio: 16 / 10;
        overflow: hidden;
        background-color: var(--color-background);
    }

        .resource-popup-image[hidden],
        .resource-popup-image img[hidden] {
            display: none;
        }

        /* The photo is on its way: a spinner in the image area (it already has the photo's size) */
        .resource-popup-image .spinner-border {
            position: absolute;
            inset: 0;
            margin: auto;
            color: var(--color-icon-primary);
        }

        .resource-popup-image:not(.loading) .spinner-border {
            display: none;
        }

        .resource-popup-image img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            display: block;
        }

    /* The X as in the product details (the booking widget's) */
    .resource-popup-close {
        position: absolute;
        top: 0.5rem;
        right: 0.5rem;
        z-index: 1;
        display: grid;
        place-items: center;
        width: 1.75rem;
        height: 1.75rem;
        padding: 0;
        border: none;
        border-radius: 999px;
        background-color: #ffffff;
        color: var(--bs-body-color);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    }

        .resource-popup-close svg {
            width: 0.9rem;
            height: 0.9rem;
        }

    .resource-popup-body {
        display: flex;
        flex-direction: column;
        gap: 0.4rem;
        padding: 0.75rem 1rem 1rem 1rem;
    }

    /* Without a photo the X is next to the name: the name keeps clear of it */
    .resource-popup-image[hidden] + .resource-popup-close + .resource-popup-body .resource-popup-name {
        padding-right: 2rem;
    }

    .resource-popup-name {
        font-size: 1rem;
        color: var(--color-title);
    }

    .resource-popup-description {
        font-size: 0.65rem;
        color: var(--color-subtext);
    }

    .resource-popup-select {
        width: 100%;
        margin-top: 0.4rem;
        border-radius: 999px;
        font-weight: bold;
    }

.resource-map .text-marker .resource-identifier {
    display: none;
}

.resource-map.zoom-1 .text-marker {
}

.resource-map.zoom-2 .text-marker {
}

.resource-map.zoom-3 .text-marker {
    width: 24px;
    height: 40px;
    left: -6px;
}

.resource-map.zoom-4 .text-marker {
    width: 30px;
    height: 50px;
    left: -9px;
}

.resource-map.zoom-5 .text-marker {
    width: 36px;
    height: 60px;
    left: -12px;
}

/****************************/
/*      STAY CALENDAR       */
/****************************/

/* Booking step 2: the date card, the link under it and the calendar it folds out, one width */
/* Step 2 while the calendar is open: from the top, at the day picker's centred place (padding-top from Step2.PinnedTop),
   so the calendar under it does not push it up (a centred page would) */
.page-center.stay-dates-pinned {
    justify-content: flex-start;
}

.stay-dates {
    width: 100%;
    max-width: 25rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.stay-calendar-toggle {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.25rem 0;
    border: none;
    background: transparent;
    color: var(--color-primary-background);
    font-size: 0.9rem;
}

    .stay-calendar-toggle span {
        font-weight: bold;
        text-decoration: underline;
        text-underline-offset: 0.2em;
    }

    .stay-calendar-toggle i {
        font-size: 0.75rem;
    }

/* The departure calendar on booking step 2, as the booking widget's calendar (dp-date-range) */
.stay-calendar {
    position: relative;
    padding: 1rem;
    margin-top: 0.75rem;
}

/* The arrows sit at the ends of the month's title row (no row of their own) */
.stay-calendar-head {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    pointer-events: none;
}

    .stay-calendar-head .stay-calendar-nav {
        pointer-events: auto;
    }

.stay-calendar-nav {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 1px solid var(--color-border-muted);
    background: var(--color-card-background);
    color: var(--color-title);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

    .stay-calendar-nav:disabled {
        color: var(--color-calendar-disabled);
        opacity: 0.4;
    }

@media (pointer: coarse) {
    .stay-calendar-nav {
        width: 44px;
        height: 44px;
    }
}

.stay-calendar-months {
    display: flex;
    gap: 1.5rem;
}

.stay-calendar-month {
    flex: 1 1 0;
    min-width: 0;
}

.stay-calendar-title {
    font-weight: 700;
    text-transform: capitalize;
    text-align: center;
    color: var(--color-title);
    line-height: 40px;
    padding: 0 48px;
    margin-bottom: 0.25rem;
}

@media (pointer: coarse) {
    .stay-calendar-title {
        line-height: 44px;
        padding: 0 52px;
    }
}

.stay-calendar-grid {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
}

    .stay-calendar-grid th {
        font-size: 0.75rem;
        font-weight: 600;
        color: var(--color-subtext);
        text-transform: capitalize;
        text-align: center;
        padding-bottom: 0.25rem;
    }

    .stay-calendar-grid td {
        padding: 1px 0;
        text-align: center;
    }

.stay-calendar-day {
    position: relative;
    width: 100%;
    aspect-ratio: 1;
    max-height: 44px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--color-text);
    padding: 0;
    font-size: 0.9rem;
    font-variant-numeric: tabular-nums;
}

    .stay-calendar-day:disabled {
        color: var(--color-calendar-disabled);
        opacity: 0.5;
    }

    .stay-calendar-day.is-today {
        font-weight: 700;
    }

        .stay-calendar-day.is-today::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: 5px;
            width: 4px;
            height: 4px;
            margin-left: -2px;
            border-radius: 50%;
            background: currentColor;
        }

/* The band: square days running into each other, the ends rounded off as half circles */
.stay-calendar-grid td.in-range .stay-calendar-day,
.stay-calendar-grid td.is-start .stay-calendar-day,
.stay-calendar-grid td.is-end .stay-calendar-day {
    border-radius: 0;
    width: calc(100% + 1px);
    margin-right: -1px;
    background: var(--color-calendar-range);
    color: var(--color-calendar-range-text);
    opacity: 1;
}

.stay-calendar-grid td.is-start .stay-calendar-day {
    border-radius: 999px 0 0 999px; /* a pill end: a true half circle even when the day is wider than high */
}

.stay-calendar-grid td.is-end .stay-calendar-day {
    border-radius: 0 999px 999px 0;
}

.stay-calendar-grid td.is-start .stay-calendar-day,
.stay-calendar-grid td.is-end .stay-calendar-day {
    font-weight: 700;
}

/* The dividing lines in the cards (under a section, under an unfolded stay's header): stop short of the card's sides (--divider-inset).
   A line drawn as a background, not a border, so it can be shorter than the box */
.stay-card.expanded .stay-card-header,
.stay-card-editor,
.stay-edit-section,
.stay-edit-info {
    background-image: linear-gradient(var(--divider-color), var(--divider-color));
    background-size: calc(100% - 2 * var(--divider-inset)) var(--divider-width, 1px);
    background-position: center bottom;
    background-repeat: no-repeat;
}
