.hml-trigger {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;
    background: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    line-height: 1.5;
    font-family: inherit;
    font-weight: inherit;
    text-transform: none !important;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.hml-chevron {
    width: 15px !important;
    height: 15px !important;
    min-width: 15px;
    object-fit: contain;
    transition: transform .2s;
    pointer-events: none;
}

.hml-trigger:focus-visible,
.hml-dialog button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}

#hml-overlay[hidden],
#hml-overlay [hidden] {
    display: none !important;
}

#hml-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    font-family: inherit;
    color: #111;
    isolation: isolate;
}

.hml-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 40%);
    opacity: 0;
    transition: opacity .32s ease;
}

.hml-dialog {
    position: absolute;
    inset: 0 0 0 auto;
    background: #fff;
    width: 50%;
    height: 100%;
    height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(100%);
    transition: transform .5s ease;
    box-shadow: -6px 0 20px #0000000a;
    display: flex;
    flex-direction: column;
    justify-content: safe center;
    padding: 90px clamp(36px, 6.25vw, 120px);
    box-sizing: border-box;
}

.hml-overlay.is-open .hml-dialog {
    transform: translateX(0);
}

.hml-overlay.is-open .hml-backdrop {
    opacity: 1;
}

#hml-overlay button {
    font-family: inherit;
    color: inherit;
    font-weight: 400;
    text-transform: none;
    border-radius: 0;
    background: none;
    box-shadow: none;
    cursor: pointer;
}

#hml-overlay button:disabled {
    opacity: .5;
    cursor: wait;
}

.hml-close {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 34px;
    line-height: 1;
    width: 36px;
    height: 36px;
    padding: 0 !important;
    border: 0 !important;
    color: #737373 !important;
}

.hml-content {
    width: 100%;
    margin: auto 0;
}

.hml-content #hml-title {
    font-size: 22px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0 0 22px;
    color: #111;
}

.hml-intro {
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 44px;
    font-weight: 300;
}

.hml-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(24px, 3.9vw, 75px);
}

.hml-field {
    position: relative;
    min-width: 0;
}

.hml-field-label {
    display: block;
    font-size: 16px;
    margin-bottom: 24px;
}

.hml-select {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 52px;
    border: 0 !important;
    border-bottom: 1px solid #bbb !important;
    padding: 10px 0 !important;
    text-align: left;
    font-size: 16px;
}

.hml-select[aria-expanded=true] .hml-chevron {
    transform: rotate(180deg);
}

.hml-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 8px 20px #00000012;
    z-index: 3;
    max-height: min(260px, 30vh);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.hml-option {
    display: block;
    width: 100%;
    border: 0 !important;
    text-align: left;
    padding: 12px 14px !important;
    font-size: 14px;
    line-height: 1.5;
}

.hml-option:hover,
.hml-option:focus,
.hml-option[aria-selected=true] {
    background: #f1f1f1 !important;
}

.hml-status {
    font-size: 13px;
    min-height: 20px;
    margin: 16px 0;
    color: #a32929;
}

.hml-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 56px;
}

.hml-apply {
    border: 0 !important;
    border-bottom: 1px solid #111 !important;
    padding: 10px 25px !important;
    font-size: 14px !important;
    min-width: 112px !important;
}

.hml-apply:hover{
    border: 1px solid #000 !important;
    background: #000 !important;
    color: #fff !important;
}

@media (max-width: 1024px) {
    .hml-apply,
    .hml-apply:hover{
        background: #000 !important;
        color: #fff !important;
    }
}

@media (max-width: 1024px) {
    .hml-dialog {
        width: 70%;
        padding: 80px 48px;
    }

    .hml-fields {
        gap: 32px;
    }

}

@media (max-width: 767px) {
    .hml-dialog {
        width: 100%;
        padding: 75px 26px;
    }

    .hml-fields {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .hml-field-label {
        margin-bottom: 12px;
    }

    .hml-intro {
        margin-bottom: 32px;
    }

    .hml-footer {
        margin-top: 20px;
    }

    .hml-content #hml-title {
        font-size: 20px;
    }

    .hml-options {
        max-height: 24vh;
    }

}

@media (prefers-reduced-motion: reduce) {
    .hml-dialog,
    .hml-backdrop,
    .hml-chevron {
        transition: none;
    }

}

/*================================
CUSTOM STYLE
================================*/

.hml-trigger--compact,
.hml-trigger--compact:focus
{
    color: #000 !important;
    font-size: 14px;
    font-weight: 300;
}

.hml-trigger--compact:hover{
    border-bottom: 1px solid #000 !important;
}

.page-id-14120 .hml-trigger--compact,
.page-id-14120 .hml-trigger--compact:focus,
.page-id-67651 .hml-trigger--compact,
.page-id-67651 .hml-trigger--compact:focus
{
    color: #fff !important;
}

.page-id-14120 .hml-trigger--compact:hover,
.page-id-67651 .hml-trigger--compact:hover{
    border-bottom: 1px solid #fff !important;
}

.page-id-14120 .header-container-desktop.scrolled .hml-trigger--compact,
.page-id-14120 .header-container-desktop.scrolled .hml-trigger--compact:focus,
.page-id-67651 .header-container-desktop.scrolled .hml-trigger--compact,
.page-id-67651 .header-container-desktop.scrolled .hml-trigger--compact:focus
{
    color: #000 !important;
}

.page-id-14120 .header-container-desktop.scrolled .hml-trigger--compact:hover,
.page-id-67651 .header-container-desktop.scrolled .hml-trigger--compact:hover{
    border-bottom: 1px solid #000 !important;
}

/* Keep long locale labels inside their container, including flex/grid layouts. */
.hml-trigger.hml-trigger--full,
.hml-trigger.hml-trigger--language_full,
.hml-trigger.hml-trigger--currency_full {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
}

.hml-trigger--full > [data-hml-label],
.hml-trigger--language_full > [data-hml-label],
.hml-trigger--currency_full > [data-hml-label] {
    min-width: 0;
    flex: 0 1 auto;
    white-space: normal;
    overflow-wrap: anywhere;
}

.hml-trigger--full > .hml-chevron,
.hml-trigger--full > .hml-chevron-fallback,
.hml-trigger--language_full > .hml-chevron,
.hml-trigger--language_full > .hml-chevron-fallback,
.hml-trigger--currency_full > .hml-chevron,
.hml-trigger--currency_full > .hml-chevron-fallback {
    flex-shrink: 0;
}

.hml-trigger--full,
.hml-trigger--full:focus,
.hml-trigger--full img,
.hml-trigger--full img:focus
{
    font-weight: 300 !important;
    color: #A1A1A1 !important;
    filter: brightness(0) invert(63.14%) !important;
}

.hml-trigger--full:hover,
.hml-trigger--full img:hover
{
    color: #fff !important;
    filter: brightness(0) invert(1) !important;
}

.hml-trigger--language,
.hml-trigger--language:focus,
.hml-trigger--currency,
.hml-trigger--currency:focus
{
    color: #000;
    font-size: 12px !important;
    font-weight: 300 !important;
    padding: 0 !important;
}

.hml-trigger--language:hover,
.hml-trigger--currency:hover
{
    color: #000;
    font-size: 12px !important;
    font-weight: 300 !important;
    padding: 0 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
}

@media (max-width: 1024px)
{
    .hml-trigger--language,
    .hml-trigger--language:focus,
    .hml-trigger--currency,
    .hml-trigger--currency:focus
    {
        color: #000 !important;
        font-size: 15px !important;
        font-weight: 300 !important;
        padding: 0 !important;
    }
    
    .hml-trigger--language:hover,
    .hml-trigger--currency:hover
    {
        color: #000 !important;
        font-size: 15px !important;
        font-weight: 300 !important;
        padding: 0 !important;
        text-decoration: none !important;
    }
}



/* Tablet/mobile centered choice dialog — v1.0.2. Existing custom styles above are preserved. */
.hml-picker {
    position: fixed;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.hml-picker.is-open {
    pointer-events: auto;
}

.hml-picker-backdrop {
    position: absolute;
    inset: 0;
    background: rgb(0 0 0 / 35%);
    opacity: 0;
    transition: opacity .2s ease;
}

.hml-picker-panel {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    flex-direction: column;
    width: min(560px, calc(100% - 48px));
    max-height: 78vh;
    max-height: 78dvh;
    padding: 24px;
    box-sizing: border-box;
    border-radius: 0px;
    background: #fff;
    box-shadow: 0 12px 60px rgb(0 0 0 / 20%);
    opacity: 0;
    transform: translate(-50%, -50%) scale(.96);
    transition: transform .22s ease, opacity .22s ease;
    overflow: hidden;
    color: #111;
}

.hml-picker.is-open .hml-picker-panel {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.hml-picker.is-open .hml-picker-backdrop {
    opacity: 1;
}

.hml-picker-handle {
    display: none;
    flex: 0 0 auto;
    width: 36px;
    height: 4px;
    border-radius: 4px;
    margin: 0 auto 14px;
    background: #d9d9d9;
}

.hml-picker-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex: 0 0 auto;
}

#hml-overlay #hml-picker-title {
    font-family: inherit;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    color: #111;
}

#hml-overlay .hml-picker-close {
    border: 0;
    padding: 0;
    flex: 0 0 40px;
    height: 40px;
    font-size: 30px;
    line-height: 1;
    color: #555;
}

#hml-overlay .hml-picker-search {
    display: block;
    flex: 0 0 auto;
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    border: 1px solid #ddd;
    border-radius: 0px;
    padding: 10px 14px;
    margin: 0 0 16px;
    background: #f7f7f7;
    color: #111;
    font-family: inherit;
    font-size: 16px;
    outline-offset: 2px;
}

.hml-picker-list {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

#hml-overlay .hml-picker-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 52px;
    margin: 0 0 4px;
    padding: 14px;
    border: 0;
    border-radius: 0px;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    color: #111;
    background: transparent;
}

#hml-overlay .hml-picker-option[aria-selected=true],
#hml-overlay .hml-picker-option:hover {
    background: #f2f2f2;
}

.hml-picker-check {
    flex: 0 0 20px;
    width: 20px;
    text-align: center;
    font-size: 18px;
}

#hml-overlay .hml-picker-panel button:focus-visible,
#hml-overlay .hml-picker-search:focus-visible {
    outline: 2px solid #555;
    outline-offset: -2px;
}

.hml-picker-empty {
    text-align: center;
    padding: 24px 10px;
    margin: 0;
    color: #777;
    font-size: 14px;
}

@media (max-width: 767px) {
    .hml-picker-panel {
        width: calc(100% - 32px);
        padding: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hml-picker-panel,
    .hml-picker-backdrop {
        transition: none;
    }
}

/* Full language/currency buttons: stable white appearance in every state. */
.hml-trigger:is(.hml-trigger--language_full, .hml-trigger--currency_full),
.hml-trigger:is(.hml-trigger--language_full, .hml-trigger--currency_full):is(:hover, :focus, :focus-visible, :active) {
    width: 100%;
    justify-content: space-between;
    color: #fff !important;
    font-size: 14px !important;
    background: none !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    text-decoration: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
}

.hml-trigger:is(.hml-trigger--language_full, .hml-trigger--currency_full) > [data-hml-label] {
    color: inherit !important;
    font-size: inherit !important;
    text-align: left;
}

.hml-trigger:is(.hml-trigger--language_full, .hml-trigger--currency_full) > .hml-chevron {
    margin-left: auto;
    filter: brightness(0) invert(1) !important;
    opacity: 1 !important;
    transform: none !important;
}
