[data-component-scope="brand-custom"].header {
    --_header-height: 70px;

    position: relative;
    z-index: 1040;

    display: grid;

    padding: 1.2rem 1.6rem;
    height: var(--_header-height);

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

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

@media (max-width: 639px) {
    [data-component-scope="brand-custom"].header:has(.dropdown-menu:is([data-control-expanded="true"], .show)) {
        position: fixed;
        top: 0;
        left: 0;

        width: 100%;
    }
}

@media (max-width: 479px) {
    [data-component-scope="brand-custom"].header {
        --_header-height: 88px;
    }
}

[data-component-scope="brand-custom"] .header__content {
    display: grid;
    grid-template-areas:
        'logo travel primary-nav';
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: .6rem 1.2rem;

    width: min(100%, 1300px);
    margin: 0 auto;
}

@media (max-width: 479px) {
    [data-component-scope="brand-custom"] .header__content {
        display: grid;
        grid-template-areas:
            'logo primary-nav'
            'travel primary-nav';
        grid-template-columns: auto 1fr;
    }
}

[data-component-scope="brand-custom"] .primary-logo {
    grid-area: logo;
}

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

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

    width: 100%;
    height: auto;
    max-width: 246px;
    max-height: 60px;
}

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

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

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

[data-component-scope="brand-custom"] .travel {
    grid-area: travel;
}

@media (min-width: 480px) {
    [data-component-scope="brand-custom"] .travel {
        position: relative;
    }
}

[data-component-scope="brand-custom"] .travel__toggle {
    display: flex;
    gap: 1.2rem;
    align-items: center;

    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    border: none;

    font-size: 1.8rem;
    font-weight: var(--font-bold);
    line-height: 1;
}

@media (max-width: 759px) {
    [data-component-scope="brand-custom"] .travel__toggle {
        gap: 1rem;
        font-size: 1.6rem;
    }
}

@media (max-width: 479px) {
    [data-component-scope="brand-custom"] .travel__toggle {
        gap: .8rem;
        font-size: 1.4rem;
    }
}

[data-component-scope="brand-custom"] .travel__toggle-icon {
    display: none;
}

[data-component-scope="brand-custom"] .travel__toggle[aria-expanded="false"] .travel__toggle-icon[data-travel-show="more"] {
    display: block;
}

[data-component-scope="brand-custom"] .travel__toggle[aria-expanded="true"] .travel__toggle-icon[data-travel-show="less"] {
    display: block;
}

[data-component-scope="brand-custom"] .travel__toggle-icon :is(svg, img) {
    display: block;

    height: 2rem;
}

@media (max-width: 479px) {
    [data-component-scope="brand-custom"] .travel__toggle-icon :is(svg, img) {
        height: 1.8rem;
    }
}

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

    display: none;
    margin-left: 1.2rem;
}

[data-component-scope="brand-custom"] .travel__container[data-control-expanded="true"] {
    display: block;
}

@media (max-width: 479px) {
    [data-component-scope="brand-custom"] .travel__container {
        top: 100%;
        left: 0;
        transform: none;

        width: 100%;
        margin: 0;
        padding: 0 1.6rem 1.6rem;

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

[data-component-scope="brand-custom"] .travel__link {
    display: flex;
    align-items: center;
    justify-content: center;

    padding: .4rem 1.2rem;
    width: max-content;

    border: 1px solid #9faae2;
    border-radius: 4px;
    background-color: var(--color-primary);

    color: #475467;
    font-size: 16px;
    line-height: 30px;

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

@media (max-width: 479px) {
    [data-component-scope="brand-custom"] .travel__link {
        width: auto;
        height: 5rem;
    }
}

[data-component-scope="brand-custom"] .travel__link:is(:hover, :active, :focus-visible) {
    background-color: #eaedf9;
}

[data-component-scope="brand-custom"] .travel__link .travel__link-bold {
    font-weight: var(--font-bold);
}

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

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

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

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

@media (min-width: 640px) {
    [data-component-scope="brand-custom"] .primary-nav__menu > li {
        position: relative;
    }
}

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

    display: block;

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

    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    border: none;

    font-weight: var(--font-medium);
    line-height: 1;

    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"]) {
    color: var(--color-secondary);
}

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

    position: static !important;
}

[data-component-scope="brand-custom"] .dropdown-toggle {
    --_dropdown-toggle-padding-inline: var(--_menu-item-padding-inline, 0rem);
    --_arrow-size-inline: 1.4rem;
    --_arrow-size-block: .8rem;
    --_content-gap: .5rem;

    position: relative;

    display: flex;
    gap: var(--_content-gap);

    padding-left: var(--_dropdown-toggle-padding-inline);
    padding-right: calc(var(--_arrow-size-inline) + var(--_content-gap) + var(--_dropdown-toggle-padding-inline));
}

[data-component-scope="brand-custom"] .dropdown-toggle[data-dropdown-disabled] {
    padding-right: var(--_dropdown-toggle-padding-inline);
}

[data-component-scope="brand-custom"] .dropdown-toggle:not([data-dropdown-disabled])::after {
    content: '';

    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);

    width: var(--_arrow-size-inline);
    height: var(--_arrow-size-block);

    background-color: transparent;
    background-image: url(/headers/ssm/skin_custom/assets/magallanes_40654/images/arrow-down.svg);

    pointer-events: none;

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

[data-component-scope="brand-custom"] .dropdown-toggle[aria-expanded="true"]::after {
    transform: translateY(-50%) scale(-1);
}

@media (max-width: 639px) {
    [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 ~ .dropdown-toggle-value {
        display: none;
    }
}

[data-component-scope="brand-custom"] .dropdown-toggle-icon {
    display: grid;
    align-content: center;

    width: max-content;
    height: 1em;
}

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

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

    display: none;

    width: 100%;
    margin: 0;
    padding: 1.6rem;
    float: none;
    overflow: visible !important;

    background-color: #f5f7ff;
    box-shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03);
    opacity: 0;
    border-radius: 0 !important;
    border: none !important;

    color: var(--color-secondary);
    font: inherit;
    line-height: 1;
    text-align: inherit;

    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 {
        background-color: var(--color-primary);
    }
}

@supports selector(:has(*)) {
    @media (max-width: 639px) {
        [data-component-scope="brand-custom"] .dropdown-menu {
            position: fixed;
            top: var(--_header-height);
            bottom: 0;
            overflow: auto !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) {
    width: min(100%, 1300px) !important;
    margin: 0 auto !important;
}

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

    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: var(--_dropdown-options-gap);
    align-items: center;
}

@media (max-width: 479px) {
    [data-component-scope="brand-custom"] :is(.dropdown-options, .currency-options-container) > ul {
        --_dropdown-options-gap: 1.2rem;

        grid-template-columns: 1fr;
    }
}

@media (max-width: 639px) {
    [data-component-scope="brand-custom"] :is(.dropdown-options, .currency-options-container) > ul {
        font-size: 1.6rem;
    }
}

[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: inline-flex;
    align-items: center;

    width: max-content;
    max-width: 100%;
    min-height: 4rem;
    padding: .8rem 2.6rem .8rem .8rem;
    margin-right: .4rem;

    -webkit-appearance: none;
    appearance: none;
    background-color: transparent;
    border: none;
    border-radius: 4px;

    text-align: left !important;
    line-height: 1.2;
    color: #475467 !important;

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

@media (max-width: 479px) {
    [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 {
        width: auto;
    }
}

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

[data-component-scope="brand-custom"] :is(.dropdown-options, .currency-options-container) > ul > li > .active-element:is(a, button),
[data-component-scope="brand-custom"] :is(.dropdown-options, .currency-options-container) > ul > li.selected_currency > :is(a, button) {
    background-image: url(/headers/ssm/skin_custom/assets/magallanes_40654/images/check.png);
    background-repeat: no-repeat;
    background-position: calc(100% - .4rem) center;
}

[data-component-scope="brand-custom"] :is(.dropdown-options, .currency-options-container) > ul > li > .dropdown-option__flex {
    display: flex;
    gap: 5px;
    align-items: center;
    justify-content: center;
}

[data-component-scope="brand-custom"] .dropdown-option__icon {
    display: grid;
    justify-content: center;
    align-content: center;
}

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

[data-component-scope="brand-custom"] .currency-options-container ul > li > button::before {
    content: attr(data-currency);

    margin-right: 4px;
    font-weight: var(--font-bold);
}

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

[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"] .lang-icon {
    margin-right: .8rem;
    width: 2rem;
}

[data-component-scope="brand-custom"] .lang-icon :is(img, svg) {
    display: block;
    width: 100%;
}

[data-component-scope="brand-custom"] .lang-code {
    margin-right: .4rem;

    font-weight: var(--font-bold);
}

/* 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;

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

    background-color: transparent;
    border: none;
    border-radius: 50%;

    color: var(--color-primary);

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

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

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

    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: 2.8rem;
}

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

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

    display: none;

    margin: 0;

    color: currentColor;
    font-weight: var(--font-medium);
}

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

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

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

/* 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;
}
