.ct-header .menu-item-language {
    display: none;
}

.intervals-market-switcher {
    position: relative;
    --ims-text-color: var(--theme-text-color, #253858);
    --ims-border-color: color-mix(in srgb, var(--ims-text-color) 14%, #d9dee5);
    --ims-surface-color: var(--theme-palette-color-8, #fff);
    --ims-muted-surface: color-mix(in srgb, var(--ims-text-color) 3%, #fff);
    --ims-hover-surface: color-mix(in srgb, var(--ims-text-color) 5%, #fff);
    --ims-menu-font-size: var(--theme-button-font-size, 12px);
    --ims-menu-font-weight: var(--theme-button-font-weight, 500);
    --ims-menu-letter-spacing: 0;
    --ims-menu-text-transform: none;
    --ims-chip-font-size: var(--theme-font-size, 15px);
}

.intervals-market-switcher__toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 1.75rem;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ims-text-color);
    font-size: var(--ims-menu-font-size);
    font-weight: var(--ims-menu-font-weight);
    letter-spacing: var(--ims-menu-letter-spacing);
    line-height: 1.15;
    text-transform: var(--ims-menu-text-transform);
}

.intervals-market-switcher--menu .intervals-market-switcher__toggle {
    font-family: inherit;
    font-size: var(--ims-menu-font-size);
    font-style: normal;
    font-weight: var(--ims-menu-font-weight);
}

.intervals-market-switcher__toggle:hover,
.intervals-market-switcher__toggle:focus-visible {
    color: var(--ims-text-color);
    opacity: 0.82;
    outline: none;
}

.intervals-market-switcher__toggle-text {
    font-size: inherit;
    font-weight: inherit;
    letter-spacing: inherit;
    line-height: inherit;
}

.intervals-market-switcher__toggle-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.9rem;
    height: 0.9rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.intervals-market-switcher.is-open .intervals-market-switcher__toggle-icon {
    transform: rotate(180deg);
}

.intervals-market-switcher__panel {
    position: fixed;
    top: 4rem;
    left: 1rem;
    z-index: 999999;
    width: max-content;
    max-width: min(92vw, 22rem);
    max-height: min(70vh, 34rem);
    padding: 0.9rem 1rem 1rem;
    border: 1px solid var(--ims-border-color);
    border-radius: 16px;
    background: var(--ims-surface-color);
    color: var(--ims-text-color);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
    overflow: auto;
}

.intervals-market-switcher__panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.8rem;
}

.intervals-market-switcher__panel-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: inherit;
}

.intervals-market-switcher__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    padding: 0;
    border: 1px solid var(--ims-border-color);
    border-radius: 999px;
    background: transparent;
    color: color-mix(in srgb, var(--ims-text-color) 78%, #7b8794);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.intervals-market-switcher__close:hover,
.intervals-market-switcher__close:focus-visible {
    border-color: color-mix(in srgb, var(--ims-text-color) 18%, #cfd7e3);
    background: var(--ims-muted-surface);
    color: var(--ims-text-color);
    outline: none;
}

.intervals-market-switcher__group + .intervals-market-switcher__group {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--ims-border-color);
}

.intervals-market-switcher__label {
    margin-bottom: 0.55rem;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--ims-text-color) 90%, #5f6c7b);
}

.intervals-market-switcher__chips {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.45rem;
    width: auto;
    max-width: 100%;
}

.intervals-market-switcher__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.2rem;
    padding: 0.42rem 0.7rem;
    border: 1px solid var(--ims-border-color);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: var(--ims-chip-font-size);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

.intervals-market-switcher__chip:hover,
.intervals-market-switcher__chip:focus-visible {
    border-color: color-mix(in srgb, var(--ims-text-color) 18%, #cfd7e3);
    background: var(--ims-hover-surface);
    color: inherit;
    outline: none;
}

.intervals-market-switcher__chip.is-active {
    border-color: color-mix(in srgb, var(--ims-text-color) 26%, #cfd7e3);
    background: var(--ims-muted-surface);
    font-weight: 600;
}

.intervals-market-switcher__flag {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    width: 0.95rem;
    height: 0.68rem;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 2px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

.intervals-market-switcher__flag-image {
    display: inline-block;
    flex: 0 0 auto;
    width: 0.95rem;
    height: auto;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.12);
    object-fit: cover;
}

.intervals-market-switcher__flag--lv {
    background: linear-gradient(to bottom, #9e3039 0 40%, #ffffff 40% 60%, #9e3039 60% 100%);
}

.intervals-market-switcher__flag--lt {
    background: linear-gradient(to bottom, #fdb913 0 33.33%, #006a44 33.33% 66.66%, #c1272d 66.66% 100%);
}

.intervals-market-switcher__flag--ee {
    background: linear-gradient(to bottom, #4891d9 0 33.33%, #111111 33.33% 66.66%, #ffffff 66.66% 100%);
}

.intervals-market-switcher__flag--gb {
    background:
        linear-gradient(to right, transparent 0 39%, #ffffff 39% 61%, transparent 61% 100%),
        linear-gradient(to bottom, transparent 0 39%, #ffffff 39% 61%, transparent 61% 100%),
        linear-gradient(to right, transparent 0 44%, #c8102e 44% 56%, transparent 56% 100%),
        linear-gradient(to bottom, transparent 0 44%, #c8102e 44% 56%, transparent 56% 100%),
        #012169;
}

.intervals-market-switcher__field {
    position: relative;
    width: min(100%, 16.25rem);
}

.intervals-market-switcher__select {
    width: 100%;
    border-radius: 12px;
    border: 1px solid var(--ims-border-color);
    background: var(--ims-surface-color);
    color: var(--ims-text-color);
    min-height: 2.75rem;
    padding: 0 2.5rem 0 0.9rem;
    font: inherit;
    font-size: 0.96rem;
    font-weight: 500;
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, currentColor 50%),
        linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position:
        calc(100% - 17px) calc(50% - 2px),
        calc(100% - 11px) calc(50% - 2px);
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
}

.intervals-market-switcher--menu .intervals-market-switcher__toggle-icon {
    width: 0.8rem;
    height: 0.8rem;
}

.intervals-market-switcher__select:hover,
.intervals-market-switcher__select:focus-visible {
    border-color: color-mix(in srgb, var(--ims-text-color) 20%, #cfd7e3);
    outline: none;
}

@media (max-width: 999px) {
    .intervals-market-switcher__panel {
        width: min(calc(100vw - 24px), 22rem);
        max-height: min(68vh, 32rem);
    }
}

@media (max-width: 560px) {
    .intervals-market-switcher__chips {
        flex-wrap: wrap;
    }
}
