.gvch-root,
.gvch-root *,
.gvch-switcher-trigger,
.gvch-switcher-trigger * {
    box-sizing: border-box;
}

.gvch-root {
    --gvch-ui-accent: var(--gvch-accent, #111111);
    --gvch-ui-bg: var(--gvch-bg, #ffffff);
    --gvch-ui-text: var(--gvch-text, #111111);
    --gvch-ui-surface: #ffffff;
    --gvch-ui-soft: #f7f7f7;
    --gvch-ui-muted: #6a6a6a;
    --gvch-ui-line: #dddddd;
    --gvch-ui-line-strong: #c8c8c8;
    --gvch-ui-shadow: 0 18px 55px rgba(0, 0, 0, 0.13);
    position: relative;
    z-index: 2147482000;
    color: var(--gvch-ui-text);
    font-family: inherit;
}

.gvch-banner[hidden],
.gvch-dialog[hidden] {
    display: none !important;
}

/* Clean classic banner: centered, restrained and intentionally neutral. */
.gvch-banner {
    position: fixed;
    left: 50%;
    display: grid;
    grid-template-columns: 46px minmax(220px, 1fr) auto;
    align-items: center;
    gap: 16px;
    width: calc(100% - 40px);
    max-width: 720px;
    padding: 20px 50px 20px 20px;
    overflow: hidden;
    border: 1px solid var(--gvch-ui-line);
    border-radius: 8px;
    background: var(--gvch-ui-surface);
    color: var(--gvch-ui-text);
    box-shadow: var(--gvch-ui-shadow);
    opacity: 0;
    transition: opacity 180ms ease, transform 180ms ease;
    z-index: 2147483000;
}

.gvch-root[data-banner-position="top"] .gvch-banner {
    top: max(22px, env(safe-area-inset-top));
    transform: translate(-50%, -12px);
}

.admin-bar .gvch-root[data-banner-position="top"] .gvch-banner {
    top: 58px;
}

.gvch-root[data-banner-position="center"] .gvch-banner {
    top: 50%;
    transform: translate(-50%, calc(-50% + 12px));
}

.gvch-root[data-banner-position="bottom"] .gvch-banner {
    bottom: max(22px, env(safe-area-inset-bottom));
    transform: translate(-50%, 12px);
}

.gvch-root[data-banner-position="top"] .gvch-banner.is-visible,
.gvch-root[data-banner-position="bottom"] .gvch-banner.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

.gvch-root[data-banner-position="center"] .gvch-banner.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%);
}

.gvch-banner__ornament {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--gvch-ui-line);
    border-radius: 7px;
    background: var(--gvch-ui-soft);
    color: var(--gvch-ui-text);
    font-size: 21px;
    line-height: 1;
}

.gvch-banner__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    line-height: 1.42;
}

.gvch-banner__eyebrow {
    color: #777777 !important;
    font-size: 9px !important;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.gvch-banner__content strong {
    color: var(--gvch-ui-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(18px, 1.7vw, 22px);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.25;
}

.gvch-banner__content > span:last-child {
    color: var(--gvch-ui-muted);
    font-size: 12.5px;
}

.gvch-banner__actions {
    display: flex;
    align-items: center;
}

.gvch-primary-button,
.gvch-switcher-trigger,
.gvch-close {
    appearance: none;
    font: inherit;
}

.gvch-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 11px 18px;
    border: 1px solid #111111;
    border-radius: 5px;
    background: #111111;
    color: #ffffff !important;
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.08em;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.gvch-primary-button:hover,
.gvch-primary-button:focus-visible {
    border-color: #2f2f2f;
    background: #2f2f2f;
    color: #ffffff !important;
    transform: translateY(-1px);
}

.gvch-close {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #555555;
    font-family: Arial, sans-serif;
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    transition: background 130ms ease, color 130ms ease;
}

.gvch-close:hover,
.gvch-close:focus-visible {
    background: #f1f1f1;
    color: #111111;
}

.gvch-banner > .gvch-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 1;
}

/* Compact classic language switcher. */
.gvch-switcher-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 9px 13px;
    border: 1px solid var(--gvch-ui-line);
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.97);
    color: #111111;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.09);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: border-color 130ms ease, box-shadow 130ms ease, background 130ms ease;
}

.gvch-switcher-trigger:hover,
.gvch-switcher-trigger:focus-visible {
    border-color: #a9a9a9;
    background: #ffffff;
    color: #111111;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
}

.gvch-switcher-trigger--floating {
    position: fixed;
    z-index: 2147482500;
    transition: opacity 130ms ease, border-color 130ms ease, box-shadow 130ms ease, background 130ms ease;
}

.gvch-banner.is-visible ~ .gvch-switcher-trigger--floating {
    opacity: 0;
    pointer-events: none;
}

.gvch-root[data-switcher-position="top_left"] .gvch-switcher-trigger--floating {
    top: 22px;
    left: 22px;
}

.gvch-root[data-switcher-position="top_center"] .gvch-switcher-trigger--floating {
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
}

.gvch-root[data-switcher-position="top_right"] .gvch-switcher-trigger--floating {
    top: 22px;
    right: 22px;
}

.admin-bar .gvch-root[data-switcher-position^="top_"] .gvch-switcher-trigger--floating {
    top: 54px;
}

.gvch-root[data-switcher-position="middle_left"] .gvch-switcher-trigger--floating {
    top: 50%;
    left: 22px;
    transform: translateY(-50%);
}

.gvch-root[data-switcher-position="middle_center"] .gvch-switcher-trigger--floating {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.gvch-root[data-switcher-position="middle_right"] .gvch-switcher-trigger--floating {
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
}

.gvch-root[data-switcher-position="bottom_left"] .gvch-switcher-trigger--floating {
    bottom: max(22px, env(safe-area-inset-bottom));
    left: 22px;
}

.gvch-root[data-switcher-position="bottom_center"] .gvch-switcher-trigger--floating {
    bottom: max(22px, env(safe-area-inset-bottom));
    left: 50%;
    transform: translateX(-50%);
}

.gvch-root[data-switcher-position="bottom_right"] .gvch-switcher-trigger--floating {
    right: 22px;
    bottom: max(22px, env(safe-area-inset-bottom));
}

.gvch-switcher-trigger--inline {
    box-shadow: none;
}

.gvch-flag {
    font-size: 17px;
    line-height: 1;
}

.gvch-chevron {
    margin-top: -2px;
    color: #777777;
    font-size: 13px;
}

/* Minimal country/language dialog. */
.gvch-dialog {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 20px;
    z-index: 2147483600;
}

.gvch-dialog__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.36);
    opacity: 0;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    transition: opacity 180ms ease;
}

.gvch-dialog__panel {
    position: relative;
    width: min(100%, 560px);
    padding: 36px 36px 32px;
    overflow: hidden;
    border: 1px solid var(--gvch-ui-line);
    border-radius: 10px;
    background: #ffffff;
    color: #111111;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
    opacity: 0;
    transform: translateY(10px) scale(0.99);
    transition: opacity 180ms ease, transform 180ms ease;
}

.gvch-dialog.is-visible .gvch-dialog__backdrop,
.gvch-dialog.is-visible .gvch-dialog__panel {
    opacity: 1;
}

.gvch-dialog.is-visible .gvch-dialog__panel {
    transform: translateY(0) scale(1);
}

.gvch-dialog__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 1;
}

.gvch-dialog__eyebrow {
    margin: 0 0 9px;
    color: #777777;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.gvch-dialog h2 {
    margin: 0 0 10px;
    color: #111111;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.15;
}

.gvch-dialog h2 + p {
    max-width: 470px;
    margin: 0 0 24px;
    color: var(--gvch-ui-muted);
    font-size: 13.5px;
    line-height: 1.6;
}

.gvch-dialog__fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.gvch-country-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #333333;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.gvch-country-field select {
    width: 100%;
    min-height: 48px;
    padding: 9px 38px 9px 12px;
    border: 1px solid var(--gvch-ui-line);
    border-radius: 6px;
    background-color: #ffffff;
    color: #111111;
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.gvch-country-field select:hover {
    border-color: var(--gvch-ui-line-strong);
}

.gvch-country-field select:focus {
    border-color: #111111;
    outline: 2px solid rgba(17, 17, 17, 0.12);
    outline-offset: 1px;
}

.gvch-country-field select:disabled {
    background: #f5f5f5;
    opacity: 0.65;
    cursor: not-allowed;
}

.gvch-dialog__hint {
    min-height: 20px;
    margin: 13px 0 19px;
    color: var(--gvch-ui-muted);
    font-size: 12px;
    line-height: 1.5;
}

.gvch-dialog__actions {
    display: flex;
    justify-content: flex-end;
}

.gvch-dialog__actions .gvch-primary-button {
    min-width: 145px;
}

.gvch-dialog-open {
    overflow: hidden;
}

@media (max-width: 820px) {
    .gvch-banner {
        grid-template-columns: 44px minmax(0, 1fr);
        gap: 13px 14px;
        width: calc(100% - 24px);
        padding: 18px 42px 18px 18px;
    }

    .gvch-banner__ornament {
        width: 44px;
        height: 44px;
    }

    .gvch-banner__actions {
        grid-column: 1 / -1;
        padding-left: 58px;
    }

    .gvch-banner__actions .gvch-primary-button {
        width: 100%;
    }

    .gvch-dialog__panel {
        padding: 34px 26px 27px;
    }
}

@media (max-width: 600px) {
    .gvch-root[data-switcher-position$="_left"] .gvch-switcher-trigger--floating {
        left: 14px;
    }

    .gvch-root[data-switcher-position$="_right"] .gvch-switcher-trigger--floating {
        right: 14px;
    }

    .gvch-root[data-switcher-position^="top_"] .gvch-switcher-trigger--floating {
        top: 14px;
    }

    .admin-bar .gvch-root[data-switcher-position^="top_"] .gvch-switcher-trigger--floating {
        top: 60px;
    }

    .gvch-root[data-switcher-position^="bottom_"] .gvch-switcher-trigger--floating {
        bottom: max(14px, env(safe-area-inset-bottom));
    }

    .gvch-dialog__fields {
        grid-template-columns: 1fr;
    }

    .gvch-dialog__actions .gvch-primary-button {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .gvch-banner {
        display: block;
        padding: 22px 40px 20px 18px;
    }

    .gvch-banner__ornament {
        margin-bottom: 12px;
    }

    .gvch-banner__actions {
        margin-top: 16px;
        padding-left: 0;
    }

    .gvch-dialog {
        padding: 10px;
    }

    .gvch-dialog__panel {
        max-height: calc(100vh - 20px);
        padding: 32px 20px 22px;
        overflow-y: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gvch-banner,
    .gvch-dialog__backdrop,
    .gvch-dialog__panel,
    .gvch-primary-button,
    .gvch-switcher-trigger {
        transition: none;
    }
}


/* Footer language selector: non-floating and integrated into the real site footer. */
.gvch-footer-switcher {
    --gvch-ui-line: #dddddd;
    --gvch-ui-text: #111111;
    --gvch-ui-surface: #ffffff;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px max(14px, env(safe-area-inset-bottom));
    border-top: 1px solid rgba(127, 127, 127, 0.22);
    background: transparent;
    font-family: inherit;
}

.gvch-switcher-trigger--footer {
    min-height: 38px;
    padding: 8px 12px;
    border-color: rgba(127, 127, 127, 0.34);
    border-radius: 5px;
    background: transparent;
    box-shadow: none;
    color: inherit;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.gvch-switcher-trigger--footer:hover,
.gvch-switcher-trigger--footer:focus-visible {
    border-color: rgba(127, 127, 127, 0.62);
    background: rgba(127, 127, 127, 0.06);
    box-shadow: none;
}

.gvch-switcher-trigger--footer .gvch-flag {
    font-size: 16px;
}
