/*
 * ==========================================================
 * VANILLA HOME V2 CLEAN
 * CANONICAL VISUAL SYSTEM V1.0
 *
 * SINGLE AUTHORITATIVE STYLESHEET
 *
 * viewport:
 * HEADER + HERO + FOOTER = 100dvh
 *
 * TEST FIRST
 * ==========================================================
 */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    width: 100%;
}

html {
    height: 100%;
}

body {
    height: 100vh;
    height: 100dvh;

    display: grid;
    grid-template-rows:
        64px
        minmax(0, 1fr);

    overflow-x: hidden;

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    color: #5b4b47;
    background: #fffdfb;
}


/* ==========================================================
   HEADER
   ========================================================== */

.vh-header {
    position: relative;

    height: 64px;

    display: grid;
    grid-template-columns:
        160px
        minmax(0, 1fr)
        160px;

    align-items: center;

    padding: 0 28px;

    background: #fffdfb;

    border-bottom:
        1px solid rgba(119,102,98,.10);

    z-index: 10;
}

.vh-header button {
    appearance: none;
    -webkit-appearance: none;

    border: 0;
    background: transparent;

    color: #776662;

    box-shadow: none;

    cursor: pointer;
}

.vh-header__menu {
    width: 40px;
    height: 40px;

    padding: 10px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    gap: 5px;
}

.vh-header__menu span {
    display: block;

    width: 20px;
    height: 1.5px;

    background: currentColor;
}

.vh-header__brand {
    position: absolute;

    left: 50%;
    top: 50%;

    transform: translate(-50%, -50%);

    display: flex;
    align-items: center;
    justify-content: center;
}

.vh-header__brand img {
    display: block;

    width: auto;
    height: 43px;
}

.vh-header__actions {
    grid-column: 3;

    justify-self: end;

    display: flex;
    align-items: center;

    gap: 4px;
}

.vh-header__actions button {
    width: 40px;
    height: 40px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 9px;
}

.vh-header__actions svg {
    width: 20px;
    height: 20px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.6;
}

.vh-header__language {
    font-size: 12px;
    font-weight: 600;
}


/* ==========================================================
   MAIN
   ========================================================== */

.vh-main {
    width: 100%;
    height: 100%;
    min-height: 0;

    display: grid;

    overflow: hidden;

    grid-template-rows:
        minmax(0, 1fr)
        62px;
}


/* ==========================================================
   HERO
   ========================================================== */

.vh-hero {
    position: relative;

    min-width: 0;
    min-height: 0;

    overflow: hidden;

    background:
        #f8eee6
        url(
            "/pageHTML/vanilla-v2/assets/hero/vanilla_home_hero_christmas_desktop_v1.png?v=christmas-v2"
        )
        center center / cover
        no-repeat;
}

.vh-hero__content {
    width:
        min(
            1180px,
            calc(100% - 64px)
        );

    margin: 0 auto;

    padding-top:
        clamp(48px, 7vh, 82px);
}


/* ==========================================================
   INTRO
   ========================================================== */

.vh-intro {
    width: 570px;
    max-width: 100%;
}

.vh-intro h1 {
    margin: 0;

    font-size:
        clamp(36px, 4vw, 58px);

    line-height: 1.02;

    font-weight: 500;

    letter-spacing: -.035em;

    color: #5b4b47;
}

.vh-intro p {
    margin: 14px 0 0;

    font-size: 17px;
    line-height: 1.45;

    color: #776662;
}


/* ==========================================================
   DELIVERY
   ========================================================== */

.vh-delivery {
    width: 570px;
    max-width: 100%;

    margin-top: 28px;

    display: grid;

    grid-template-columns:
        140px
        minmax(0, 1fr)
        160px;

    gap: 10px;
}

.vh-delivery label {
    min-width: 0;

    display: flex;
    flex-direction: column;

    gap: 6px;
}

.vh-delivery label > span,
.vh-intent > label {
    font-size: 12px;
    font-weight: 600;

    color: #776662;
}

.vh-delivery input,
.vh-delivery select,
.vh-intent__field {
    width: 100%;

    height: 48px;

    border:
        1px solid rgba(119,102,98,.20);

    border-radius: 12px;

    background:
        rgba(255,255,255,.95);

    box-shadow:
        0 7px 22px
        rgba(67,51,45,.07);
}

.vh-delivery input,
.vh-delivery select {
    min-width: 0;

    padding: 0 13px;

    font: inherit;
    font-size: 14px;

    color: #554945;
}

.vh-delivery input[type="date"] {
    appearance: none;
    -webkit-appearance: none;

    min-width: 0;

    overflow: hidden;
}


/* ==========================================================
   NATURAL INTENT
   ========================================================== */

.vh-intent {
    width: 570px;
    max-width: 100%;

    margin-top: 20px;
}

.vh-intent__field {
    margin-top: 6px;

    display: flex;
    align-items: center;

    overflow: hidden;
}

.vh-intent__field input {
    min-width: 0;
    flex: 1;

    height: 46px;

    padding: 0 14px;

    border: 0;
    outline: 0;

    background: transparent;

    color: #554945;

    font: inherit;
    font-size: 14px;
}

.vh-intent__field button {
    width: 44px;
    height: 44px;

    flex: 0 0 44px;

    margin-right: 2px;

    border: 0;
    border-radius: 10px;

    background: transparent;

    color: #776662;

    font-size: 22px;

    cursor: pointer;
}


/* ==========================================================
   FOOTER
   ========================================================== */

.vh-footer {
    height: 62px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    padding: 7px 20px;

    text-align: center;

    color: #776662;
    background: #fffdfb;

    border-top:
        1px solid rgba(119,102,98,.10);
}

.vh-footer nav {
    display: flex;
    flex-wrap: wrap;

    align-items: center;
    justify-content: center;

    gap: 4px 20px;
}

.vh-footer a {
    color: inherit;

    font-size: 12px;

    text-decoration: none;
}

.vh-footer small {
    display: block;

    margin-top: 5px;

    font-size: 10px;

    opacity: .72;
}


/* ==========================================================
   MOBILE
   ========================================================== */

@media (max-width: 620px) {

    body {
        grid-template-rows:
            60px
            minmax(0, 1fr);
    }

    .vh-header {
        height: 60px;

        grid-template-columns:
            42px
            minmax(0, 1fr)
            108px;

        padding: 0 8px;
    }

    .vh-header__menu {
        width: 38px;
        height: 38px;

        padding: 9px;
    }

    .vh-header__brand img {
        height: 36px;
        max-width: 132px;
    }

    .vh-header__actions {
        gap: 0;
    }

    .vh-header__actions button {
        width: 34px;
        height: 38px;

        padding: 7px;
    }

    .vh-header__actions svg {
        width: 19px;
        height: 19px;
    }

    .vh-main {
        grid-template-rows:
            minmax(0, 1fr)
            76px;
    }

    .vh-hero {
        background-position:
            59% center;
    }

    .vh-hero__content {
        width: calc(100% - 32px);

        padding-top: 25px;
    }

    .vh-intro h1 {
        font-size: 32px;
        line-height: 1.05;
    }

    .vh-intro p {
        margin-top: 8px;

        max-width: 330px;

        font-size: 15px;
    }

    .vh-delivery {
        width: 100%;

        margin-top: 18px;

        grid-template-columns:
            minmax(0, 1fr);

        gap: 9px;
    }

    .vh-delivery label {
        width: 100%;
        min-width: 0;
    }

    .vh-delivery input,
    .vh-delivery select {
        display: block;

        width: 100%;
        max-width: 100%;
        min-width: 0;

        height: 48px;
    }

    .vh-delivery input[type="date"] {
        box-sizing: border-box;

        width: 100%;
        max-width: 100%;
        min-width: 0;

        padding: 0 12px;

        overflow: hidden;
    }

    .vh-delivery
    input[type="date"]::-webkit-datetime-edit {
        min-width: 0;

        padding: 0;
    }

    .vh-delivery
    input[type="date"]::-webkit-datetime-edit-fields-wrapper {
        min-width: 0;
    }

    .vh-delivery
    input[type="date"]::-webkit-calendar-picker-indicator {
        width: 18px;
        height: 18px;

        margin: 0;
        padding: 0;
    }

    .vh-intent {
        width: 100%;

        margin-top: 14px;
    }

    .vh-footer {
        height: 76px;

        padding:
            8px
            10px
            max(
                8px,
                env(safe-area-inset-bottom)
            );
    }

    .vh-footer nav {
        gap: 4px 12px;
    }

    .vh-footer a {
        font-size: 11px;
    }

    .vh-footer small {
        margin-top: 5px;

        font-size: 9px;
    }

}


/* ==========================================================
   SHORT VIEWPORT FALLBACK
   Only here is vertical scrolling allowed.
   ========================================================== */

/* VANILLA_DESTINATION_SEARCH_V0.1_BEGIN */

.vanilla-destination-search {
    position: relative;
}

.vanilla-destination-search__input {
    width: 100%;
}

.vanilla-destination-native {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: -1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.vanilla-destination-search__results {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    display: none;
    max-height: 320px;
    margin: 0;
    padding: 6px;
    overflow-y: auto;
    list-style: none;
    background: #fff;
    border: 1px solid rgba(50, 41, 35, 0.16);
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(50, 41, 35, 0.14);
}

.vanilla-destination-search__results.is-open {
    display: block;
}

.vanilla-destination-search__option {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.vanilla-destination-search__option:hover,
.vanilla-destination-search__option.is-active {
    background: rgba(125, 94, 69, 0.08);
}

.vanilla-destination-search__name {
    display: block;
    font-weight: 600;
    line-height: 1.35;
}

.vanilla-destination-search__context {
    display: block;
    margin-top: 2px;
    font-size: 0.84em;
    line-height: 1.35;
    opacity: 0.68;
}

.vanilla-destination-search__empty {
    padding: 11px 12px;
    font-size: 0.9em;
    opacity: 0.72;
}

/* VANILLA_DESTINATION_SEARCH_V0.1_END */


/* ==========================================================
   VANILLA_HOME_CLEAN_DELIVERY_CALENDAR_V0_1
   Presentation only.
   ========================================================== */

#vanillaRequestedDate {
    cursor: pointer;
}

#vanillaRequestedDate[readonly] {
    cursor: pointer;
}

.vh-delivery-calendar {
    position: absolute;
    z-index: 1200;
    margin-top: 8px;
    width: min(340px, calc(100vw - 32px));
    max-height: min(430px, 70vh);
    overflow: auto;
    background: #fff;
    border: 1px solid rgba(119, 102, 98, 0.18);
    border-radius: 16px;
    box-shadow:
        0 18px 50px rgba(50, 40, 38, 0.16);
    padding: 12px;
}

.vh-delivery-calendar[hidden] {
    display: none !important;
}

.vh-calendar-loading,
.vh-calendar-error {
    padding: 18px;
    text-align: center;
    font-size: 14px;
}

@media (max-width: 640px) {
    .vh-delivery-calendar {
        left: 16px;
        right: 16px;
        width: auto;
        max-height: 58vh;
    }
}
