[data-component-scope="brand-custom"].header {
    position: relative;
    z-index: 1040;

    background-color: var(--color-primary);

    font-size: 1.4rem;
    color: var(--color-secondary);
}

[data-component-scope="brand-custom"].header::after {
    content: '';

    position: absolute;
    inset: 0;
    z-index: -1;

    background-color: inherit;
    box-shadow: var(--box-shadow-y);
}

[data-component-scope="brand-custom"] :is(.header__upper, .header__lower) {
    position: relative;
}

[data-component-scope="brand-custom"] .header__upper {
    padding: .75rem 4.5rem;

    font-family: "Roboto", sans-serif;
    font-weight: 300;
    font-size: 1.2rem;

    background-color: hsl(0, 0%, 0%, .3);
}

[data-component-scope="brand-custom"] .header__lower {
    --_columns: 3;

    padding: 1.5rem 4rem;

    display: grid;
    grid-template-columns: repeat(var(--_columns), 1fr);
    align-items: center;
}

@media (max-width: 1023px) {
    [data-component-scope="brand-custom"] .header__lower {
        --_columns: 2;
    }
}

@media (max-width: 639px) {
    [data-component-scope="brand-custom"] :is(.header__upper, .header__lower) {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    [data-component-scope="brand-custom"] .header__lower {
        --_columns: 1;

        gap: 1rem;
        justify-items: center;
    }
}

@media (min-width: 640px) {
    [data-component-scope="brand-custom"] .primary-logo {
        justify-self: start;
    }

    [data-component-scope="brand-custom"] .offer {
        justify-self: center;
    }

    [data-component-scope="brand-custom"] .dropdown__contact {
        justify-self: end;
    }
}


[data-component-scope="brand-custom"] .offer {
    display: grid;
    gap: .5rem;

    text-align: center;
    white-space: nowrap;
    text-transform: uppercase;
}

@media (max-width: 1023px) {
    [data-component-scope="brand-custom"] .offer {
        display: none;
    }
}

[data-component-scope="brand-custom"] .offer__upper {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 1px;
}

@media (max-width: 639px) {
    [data-component-scope="brand-custom"] :is(.primary-logo) {
        justify-self: center;

        text-wrap: balance;
        text-align: center;
    }
}

[data-component-scope="brand-custom"] .primary-logo__link {
    display: block;
}

[data-component-scope="brand-custom"] .primary-logo__img {
    display: block;

    max-height: 70px;
}

@media (max-width: 639px) {
    [data-component-scope="brand-custom"] .primary-logo__img {
        max-height: 54px;
    }
}

[data-component-scope="brand-custom"] .primary-nav {
    grid-area: primary-nav;
    justify-self: end;

    display: grid;
    align-content: center;
    gap: 1rem;
}

@media (max-width: 639px) {
    [data-component-scope="brand-custom"] .primary-nav {
        display: flex;
        gap: .8rem;
        justify-content: flex-end;
    }
}

[data-component-scope="brand-custom"] .primary-nav__upper,
[data-component-scope="brand-custom"] .primary-nav__lower {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
}

[data-component-scope="brand-custom"] .primary-nav__menu {
    display: flex;
    align-items: center;
    gap: inherit;
}

@media (max-width: 639px) {
    [data-component-scope="brand-custom"] .primary-nav__menu {
        gap: 1.2rem;
    }
}

[data-component-scope="brand-custom"] :is(.primary-nav__menu-item, .currency_selector_button) {
    --_menu-item-background: var(--color-gray-light);
    --_menu-item-padding-block: .8rem;
    --_menu-item-padding-inline: .8rem;

    display: block;

    padding: var(--_menu-item-padding-block) var(--_menu-item-padding-inline);

    -webkit-appearance: none;
    appearance: none;
    background-color: var(--color-accent-2);
    border: none;

    text-transform: uppercase;
    line-height: 1;
    white-space: nowrap;

    transition: var(--transition-duration-color) var(--transition-timing-fn);
    transition-property: background-color, color;
}

[data-component-scope="brand-custom"] .currency_selector_button, [data-component-scope="brand-custom"] #currency_selector .primary-nav__menu-item {
    text-transform: none;
}

[data-component-scope="brand-custom"] :is(.primary-nav__menu-item, .dropdown-toggle):is(:hover, :focus-visible, [aria-expanded="true"]) {
    background-color: var(--color-accent);
}

[data-component-scope="brand-custom"] .primary-nav__links {
    order: -1;
}

@media (max-width: 639px) {
    [data-component-scope="brand-custom"] .primary-nav__links {
        --_menu-width: 280px;

        position: fixed;
        top: 0;
        right: 0;
        z-index: -2;
        transform: translateX(var(--_menu-width));

        display: none;
        align-content: center;
        gap: 1rem;

        width: min(var(--_menu-width), 100%);
        min-height: 100%;
        padding: 1.6rem;

        box-shadow: var(--box-shadow-x);
        backdrop-filter: blur(2px);

        text-align: center;

        transition: 200ms var(--transition-timing-fn);
        transition-property: display, transform;
        transition-behavior: allow-discrete;
    }

    [data-component-scope="brand-custom"] .primary-nav__links::before {
        content: '';

        position: absolute;
        inset: 0;
        z-index: -1;

        background-color: var(--color-secondary);
        opacity: .85;
    }

    [data-component-scope="brand-custom"] .primary-nav__links[data-control-expanded="true"] {
        transform: translateX(0);

        display: grid;
    }

    @starting-style {
        [data-component-scope="brand-custom"] .primary-nav__links[data-control-expanded="true"] {
            transform: translateX(var(--_menu-width));
        }
    }

    [data-component-scope="brand-custom"] .primary-nav__link {
        position: relative;

        background-color: transparent;

        color: var(--color-secondary);
    }

    [data-component-scope="brand-custom"] .primary-nav__link:is(:hover, :focus-visible) {
        background-color: var(--color-accent);
    }

    [data-component-scope="brand-custom"] .primary-nav__link::before {
        content: '';

        position: absolute;
        inset: 0;
        z-index: -1;

        background-color: var(--color-primary);
        border-radius: inherit;
        opacity: .75;

        transition: var(--transition-duration-color) var(--transition-timing-fn);
        transition-property: background-color, opacity;
    }

    [data-component-scope="brand-custom"] .primary-nav__link:is(:hover, :focus-visible)::before {
        background-color: var(--color-accent);
        opacity: .85;
    }
}

[data-component-scope="brand-custom"] .dropdown {
    --_dropdown-transition-duration: 150ms;

    position: relative;
}

@media (max-width: 639px) {
    [data-component-scope="brand-custom"] .dropdown {
        position: static;
    }
}

[data-component-scope="brand-custom"] .dropdown-toggle {
    position: relative;

    display: flex;
    gap: .6em;
    align-items: center;
    justify-content: center;

    height: 3.6rem;
    min-width: 3.6rem;
    padding: .8rem;
    border-radius: 999px;
}

@media (max-width: 1023px) {
    [data-component-scope="brand-custom"] .dropdown-toggle [data-alt-value]::after {
        content: attr(data-alt-value);
    }

    [data-component-scope="brand-custom"] .dropdown-toggle [data-alt-value] span {
        display: none;
    }
}

[data-component-scope="brand-custom"] .dropdown-toggle-icon {
    width: max-content;
    height: 1em;

    line-height: 1;
}

[data-component-scope="brand-custom"] .dropdown-toggle-icon :is(img, svg) {
    height: 1em;
}

[data-component-scope="brand-custom"] .dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    z-index: 999999;
    transform: translateX(-50%);

    display: none;

    min-width: 100%;
    margin: .5em 0 0;
    padding: .5rem;
    float: none;
    overflow: visible !important;

    background-color: hsl(0, 0%, 100%, .1);
    box-shadow: var(--box-shadow-y);
    opacity: 0;
    border-radius: 2.4rem !important;
    border: none !important;
    backdrop-filter: blur(3px);

    color: currentColor;
    font: inherit;
    font-size: 1.4rem;
    line-height: 1;
    text-align: inherit;
    white-space: nowrap;

    transition-property: display, opacity;
    transition-behavior: allow-discrete;
    transition-duration: var(--_dropdown-transition-duration);
    transition-timing-function: var(--transition-timing-fn);
}

@media (max-width: 639px) {
    [data-component-scope="brand-custom"] .dropdown-menu {
        min-width: auto;
        width: calc(100% - 2rem);
        max-width: 320px;
    }
}

[data-component-scope="brand-custom"] .dropdown-menu:is([data-anchor-mobile="left"], .dropdown-menu-left) {
    right: auto;
    left: 0;
    transform: none;
}

[data-component-scope="brand-custom"] .dropdown-menu:is([data-anchor-mobile="right"], .dropdown-menu-right) {
    right: 0;
    left: auto;
    transform: none;
}

@media (min-width: 640px) {
    [data-component-scope="brand-custom"] .dropdown-menu[data-anchor-tablet="left"] {
        left: 0;
        transform: none;
    }

    [data-component-scope="brand-custom"] .dropdown-menu[data-anchor-tablet="right"] {
        right: 0;
        left: auto;
        transform: none;
    }
}

@media (min-width: 1024px) {
    [data-component-scope="brand-custom"] .dropdown-menu[data-anchor-desktop="left"] {
        left: 0;
        transform: none;
    }

    [data-component-scope="brand-custom"] .dropdown-menu[data-anchor-desktop="right"] {
        right: 0;
        left: auto;
        transform: none;
    }
}

@media (max-width: 639px) {
    [data-component-scope="brand-custom"] .header__upper .dropdown-menu {
        right: 1rem !important;
        left: auto !important;
        transform: none !important;
    }
}

[data-component-scope="brand-custom"] .dropdown-menu:is([data-control-expanded="true"], .show) {
    display: block;

    opacity: 1;
}

@starting-style {
    [data-component-scope="brand-custom"] .dropdown-menu:is([data-control-expanded="true"], .show) {
        opacity: 0;
    }
}

[data-component-scope="brand-custom"] .dropdown-menu.dropdown-currency {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

[data-component-scope="brand-custom"] .dropdown-menu ul {
    margin: 0;
    padding: 0;

    border: none;
}

[data-component-scope="brand-custom"] .dropdown-menu ul li {
    position: initial;

    border: none;
}

[data-component-scope="brand-custom"] .dropdown-menu ul li :is(a, button) {
    height: auto;

    background: initial;

    font: inherit;
    color: inherit;
    vertical-align: initial;
}

[data-component-scope="brand-custom"] :is(.dropdown-options, .currency-options-container) > ul {
    --_dropdown-options-column-count: 1;
    --_dropdown-options-gap: .5rem;

    display: grid;
    grid-template-columns: repeat(var(--_dropdown-options-column-count), 1fr);
    gap: var(--_dropdown-options-gap);
}

[data-component-scope="brand-custom"] :is(.dropdown-options, .currency-options-container) > ul > li > :is(a, button),
[data-component-scope="brand-custom"] .currency-options-container .currency_selector_view_more_options {
    display: grid;
    align-items: center;

    min-width: max-content;
    width: 100%;
    min-height: 3.6rem;
    padding: .8rem 1.2rem;

    -webkit-appearance: none;
    appearance: none;
    background-color: var(--color-accent-2);
    border: none;
    border-radius: 999px;

    text-align: center !important;
    color: var(--color-secondary);

    transition: var(--transition-duration-color) var(--transition-timing-fn);
    transition-property: background-color, color;
}

@media (max-width: 639px) {
    [data-component-scope="brand-custom"] :is(.dropdown-options, .currency-options-container) > ul > li > :is(a, button),
    [data-component-scope="brand-custom"] .currency-options-container .currency_selector_view_more_options {
        padding: .8rem 1.2rem;
    }
}

[data-component-scope="brand-custom"] :is(.dropdown-options, .currency-options-container) > ul > li > :is(a, button):is(:hover, :focus-visible, .active-element),
[data-component-scope="brand-custom"] :is(.dropdown-options, .currency-options-container) > ul > li.selected_currency > :is(a, button),
[data-component-scope="brand-custom"] .currency-options-container .currency_selector_view_more_options:is(:hover, :focus-visible) {
    background-color: var(--color-accent);
}

[data-component-scope="brand-custom"] .currency-options-container ul > li > button > .element-symbol {
    font-size: .9em;
}

[data-component-scope="brand-custom"] .currency-options-container .container-bottom-links {
    margin-top: .8rem;
}

[data-component-scope="brand-custom"] .dropdown-options .contact__country {
    font-size: .9em;
}

[data-component-scope="brand-custom"] .dropdown__contact .dropdown-toggle {
    padding: 1rem 2rem;
    height: auto;

    background-color: transparent;
    border: 1px solid var(--color-secondary);

    font-weight: 500;
    font-size: 1.6rem;
    line-height: 1.5;
    text-transform: none;
    letter-spacing: .05rem;
}

[data-component-scope="brand-custom"] .dropdown__contact .dropdown-toggle:where(:hover, :focus-visible, [aria-expanded="true"]) {
    background-color: var(--color-secondary);
    color: var(--color-primary);
}

@media (max-width: 639px) {
    [data-component-scope="brand-custom"] .dropdown__contact .dropdown-toggle {
        padding: .5rem 1rem;
    }
}

/* Include Loyalty and Atol specific styles at the end */
/* Loyalty */

[data-component-scope="brand-custom"] #loyalty button {
    --_loyalty-size: 3.6rem;
    --_loyalty-padding: 0;

    display: grid;
    align-content: center;
    justify-content: center;

    min-width: var(--_loyalty-size);
    height: var(--_loyalty-size);
    padding: var(--_loyalty-padding);

    background-color: transparent;
    border: none;
    border-radius: .6rem;

    color: var(--color-primary);

    transition: background-color var(--transition-duration-color) var(--transition-timing-fn);
}

[data-component-scope="brand-custom"] #loyalty button :is(img, svg) {
    display: block;

    min-width: calc(var(--_loyalty-size) - (var(--_loyalty-padding) * 2));
    height: auto;
    max-height: calc(var(--_loyalty-size) - (var(--_loyalty-padding) * 2));
}

/* Atol */

[data-component-scope="brand-custom"].header #atol-protected {
    padding: 0;
    margin: 0;

    color: currentColor;

    transition: color var(--transition-duration-color) var(--transition-timing-fn);
}

[data-component-scope="brand-custom"].header #atol-protected .logo {
    width: 3.6rem;
    border-radius: 50%;

    transition: background-color var(--transition-duration-color) var(--transition-timing-fn);
}

[data-component-scope="brand-custom"].header #atol-protected:is(:hover, :focus-visible) .logo {
    background-color: var(--color-accent);
}

[data-component-scope="brand-custom"].header #atol-protected a {
    gap: .6rem;
}

[data-component-scope="brand-custom"].header #atol-protected .title {
    order: -1;

    margin: 0;

    color: currentColor;
    font-weight: 600;
    font-size: .85em;
}

@media (min-width: 640px) {
    [data-component-scope="brand-custom"].header #atol-protected .title {
        display: block;
    }
}

[data-component-scope="brand-custom"].header #atol-protected svg .icon-text-color {
    fill: var(--color-secondary);
}

[data-component-scope="brand-custom"].header #atol-protected svg .icon-background-color {
    fill: var(--color-primary);

    transition: fill var(--transition-duration-color) var(--transition-timing-fn);
}

[data-component-scope="brand-custom"].header #atol-protected:is(:hover, :focus-visible) svg .icon-background-color {
    fill: var(--color-accent);
}

/* Currency */

[data-component-scope="brand-custom"] :is(.currentCurrencySymbol, #currentCurrencySymbol) {
    margin: 0 !important;

    font: inherit;
}

[data-component-scope="brand-custom"] .currency_selector_button .icon-ui-chevron-down,
[data-component-scope="brand-custom"] .dropdown-currency .dropdown-top-header,
[data-component-scope="brand-custom"] .currency-options-container ul button::after {
    display: none !important;
}

[data-component-scope="brand-custom"] .currency-options-container {
    overflow: visible !important;
}

[data-component-scope="brand-custom"] .currency-options-container .element-symbol {
    font: inherit;
    color: inherit;
}
