@font-face {
    font-family: "HCA Lao";
    src: url("/assets/hca-i18n/fonts/hca-lao.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    unicode-range: U+0E80-0EFF;
}

.hca-language-picker {
    position: relative;
    flex: 0 0 auto;
    margin: 0;
    padding: 0;
    color: #183846;
    font-family: Arial, "HCA Lao", sans-serif;
    box-sizing: border-box;
}

.hca-language-picker *,
.hca-language-picker *::before,
.hca-language-picker *::after {
    box-sizing: border-box;
}

.hca-language-picker > .hca-language-picker__summary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: #fff;
    color: #183846;
    font: 400 13px/1.4 Arial, "HCA Lao", sans-serif;
    white-space: nowrap;
    list-style: none;
    cursor: pointer;
}

.hca-language-picker__summary::-webkit-details-marker {
    display: none;
}

.hca-language-picker__summary::marker {
    content: "";
}

.hca-language-picker__icon {
    display: block;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.hca-language-picker > .hca-language-picker__summary:hover,
.hca-language-picker[open] > .hca-language-picker__summary {
    background: #edf6f7;
    color: #087c89;
}

.hca-language-picker > .hca-language-picker__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 1100;
    width: 220px;
    max-width: calc(100vw - 24px);
    margin: 0;
    padding: 6px;
    border: 1px solid #dce7eb;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(24, 56, 70, .14);
    list-style: none;
    text-align: left;
}

.hca-language-picker:not([open]) > .hca-language-picker__menu {
    display: none;
}

.hca-language-picker__menu > li {
    display: block;
    float: none;
    margin: 0;
    padding: 0;
    border: 0;
    list-style: none;
}

.hca-language-picker .hca-language-picker__menu a,
#hca-shared-header .hca-language-picker .hca-language-picker__menu a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 5px;
    background: #fff;
    color: #183846 !important;
    font-family: Arial, "HCA Lao", sans-serif !important;
    font-size: 15px !important;
    font-weight: 400;
    line-height: 1.75;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-decoration: none !important;
    white-space: normal;
    word-break: normal;
    overflow-wrap: normal;
}

.hca-language-picker .hca-language-picker__menu a[lang="lo"],
#hca-shared-header .hca-language-picker .hca-language-picker__menu a[lang="lo"] {
    font-family: Arial, "HCA Lao", sans-serif !important;
    line-height: 1.8;
}

.hca-language-picker .hca-language-picker__menu a:hover,
.hca-language-picker .hca-language-picker__menu a[aria-current="true"],
#hca-shared-header .hca-language-picker .hca-language-picker__menu a:hover,
#hca-shared-header .hca-language-picker .hca-language-picker__menu a[aria-current="true"] {
    background: #edf6f7;
    color: #087c89 !important;
}

.hca-language-picker .hca-language-picker__menu a[aria-current="true"],
#hca-shared-header .hca-language-picker .hca-language-picker__menu a[aria-current="true"] {
    font-weight: 700;
}

.hca-language-picker > .hca-language-picker__summary:focus,
.hca-language-picker .hca-language-picker__menu a:focus {
    outline: 2px solid #087c89 !important;
    outline-offset: 2px;
}

.hca-language-picker__check {
    flex: 0 0 auto;
    color: #087c89;
}

.hca-language-picker__sr-only {
    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;
    clip-path: inset(50%);
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 1280px) {
    .hca-language-picker__label {
        display: none;
    }

    .hca-language-picker > .hca-language-picker__summary {
        width: 44px;
        padding: 8px;
    }
}

/* Align the small-screen popup to the utility group, so its first control
   cannot push a 220px menu beyond the left edge of a narrow viewport. */
@media (max-width: 1100px) {
    #hca-shared-header .hc-nav-utilities {
        position: relative;
    }

    #hca-shared-header .hc-nav-utilities .hca-language-picker {
        position: static;
    }
}
