/* Shared WCAG 2.2 AA overrides. Loaded after the legacy theme styles. */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    top: 0.5rem;
    left: 0.5rem;
    z-index: 100000;
    padding: 0.75rem 1rem;
    color: #fff;
    background: #111;
    border-radius: 0.25rem;
    transform: translateY(-200%);
}

.skip-link:focus {
    color: #fff;
    transform: translateY(0);
}

:where(a, button, input, select, textarea, [tabindex]:not([tabindex="-1"])):focus-visible {
    outline: 3px solid #111 !important;
    outline-offset: 3px !important;
    box-shadow: 0 0 0 5px #fff !important;
}

header :where(a, button):focus-visible,
footer :where(a, button):focus-visible,
.kizilay-modal :where(a, button):focus-visible {
    outline-color: #fff !important;
    box-shadow: 0 0 0 5px #111 !important;
}

#main-content,
[id] {
    scroll-margin-top: 7rem;
}

button,
input,
select,
textarea { font: inherit; }

.header-lang > .language-trigger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 71px;
    height: 42px;
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 24px;
    background: transparent;
    border: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.header-lang > .language-trigger::before,
.header-lang > .language-trigger::after { content: ""; }

.header-lang > .language-trigger::before {
    width: 24px;
    height: 24px;
    margin-right: 2px;
    background: url("/images/icons-language.svg") center / cover no-repeat;
}

.header-lang > .language-trigger::after {
    width: 0;
    height: 0;
    margin-left: 4px;
    border-style: solid;
    border-width: 5px 5px 0;
    border-color: #fff transparent transparent;
}

.search-trigger {
    display: block;
    margin: 0;
    padding: 0;
    color: inherit;
    line-height: inherit;
    background: transparent;
    border: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.header-lang .language-dropdown[hidden],
.search-field[hidden] { display: none !important; }

nav .nav-item:focus-within > .sub-menu,
.header-lang:focus-within .language-dropdown:not([hidden]) {
    display: block;
    visibility: visible;
    opacity: 1;
}

.play-icon-wrapper,
.modal-close,
.bottle-info {
    margin: 0;
    padding: 0;
    color: inherit;
    line-height: inherit;
    border: 0;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.bottle-controls {
    position: absolute;
    bottom: 24px;
    left: 50%;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 8px;
    margin: 0;
    transform: translateX(-50%);
}

.bottle-controls button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 28px;
    line-height: 1;
    background: #c5292d;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.detail-social-share-module ul li .share-label {
    position: relative;
    z-index: 1;
    display: block;
}

.detail-social-share-module ul li .share-label .txt {
    font-family: "Nunito Bold", Helvetica, Arial, sans-serif;
    font-size: 20px;
}

.nutrition .detail-social-share-module .share-label .txt { color: #cd004b; }
.health .detail-social-share-module .share-label .txt { color: #00978e; }
.beauty .detail-social-share-module .share-label .txt { color: #807fa9; }
.sport .detail-social-share-module .share-label .txt { color: #007ab7; }

@media screen and (max-width: 767px) {
    .detail-social-share-module ul li .share-label .txt { font-size: 12px; }
}

img,
svg,
video,
iframe,
canvas { max-width: 100%; }

.grid-content,
.content-text,
.modal-content { overflow-wrap: break-word; }

#searchText,
#searchQuery {
    appearance: none;
    -webkit-appearance: none;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .skip-link {
        transition: none;
    }
}
