.oa-esw {
    --oa-esw-height: 94px;
    --oa-esw-radius: 29px;
    --oa-esw-background: #ffffff;
    --oa-esw-border: #b7d2ea;
    --oa-esw-border-width: 1px;
    --oa-esw-active-background: #056aa8;
    --oa-esw-inactive-text: #0b1320;
    --oa-esw-active-text: #ffffff;
    --oa-esw-border-hover-resolved: var(--oa-esw-border-hover, var(--oa-esw-border));
    --oa-esw-background-hover-resolved: var(--oa-esw-background-hover, var(--oa-esw-background));
    --oa-esw-active-background-hover-resolved: var(--oa-esw-active-background-hover, var(--oa-esw-active-background));
    --oa-esw-inactive-hover-text-resolved: var(--oa-esw-inactive-hover-text, var(--oa-esw-inactive-text));
    --oa-esw-active-hover-text-resolved: var(--oa-esw-active-hover-text, var(--oa-esw-active-text));
    --oa-esw-focus: var(--oa-esw-border-hover-resolved);

    position: relative;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    width: 520px;
    min-height: var(--oa-esw-height);
    background: var(--oa-esw-background);
    border: var(--oa-esw-border-width) solid var(--oa-esw-border);
    border-radius: var(--oa-esw-radius);
    overflow: hidden;
    isolation: isolate;
    transition: background-color 0.22s ease, border-color 0.22s ease;
}

.oa-esw:hover,
.oa-esw:focus-within {
    border-color: var(--oa-esw-border-hover-resolved);
}

.oa-esw__pill {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 50%;
    border-radius: calc(var(--oa-esw-radius) - var(--oa-esw-border-width));
    background: var(--oa-esw-active-background);
    transition: transform 0.28s ease, background-color 0.22s ease;
    z-index: 0;
}

.oa-esw[data-active="right"] .oa-esw__pill {
    transform: translateX(100%);
}

.oa-esw[data-active="left"][data-hover-side="left"] .oa-esw__pill,
.oa-esw[data-active="right"][data-hover-side="right"] .oa-esw__pill,
.oa-esw[data-active="left"] .oa-esw__button--left:focus-visible ~ .oa-esw__pill,
.oa-esw[data-active="right"] .oa-esw__button--right:focus-visible ~ .oa-esw__pill {
    background: var(--oa-esw-active-background-hover-resolved);
}

.oa-esw__button {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    z-index: 1;
    border: 0;
    margin: 0;
    padding: 14px 22px;
    min-height: calc(var(--oa-esw-height) - (var(--oa-esw-border-width) * 2));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    text-align: center;
    color: var(--oa-esw-inactive-text);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0;
    cursor: pointer;
    transition: color 0.22s ease, background-color 0.22s ease;
}

.oa-esw__button--left {
    border-radius: calc(var(--oa-esw-radius) - var(--oa-esw-border-width)) 0 0 calc(var(--oa-esw-radius) - var(--oa-esw-border-width));
}

.oa-esw__button--right {
    border-radius: 0 calc(var(--oa-esw-radius) - var(--oa-esw-border-width)) calc(var(--oa-esw-radius) - var(--oa-esw-border-width)) 0;
}

.oa-esw[data-active="left"] .oa-esw__button--right:hover,
.oa-esw[data-active="left"][data-hover-side="right"] .oa-esw__button--right,
.oa-esw[data-active="right"] .oa-esw__button--left:hover,
.oa-esw[data-active="right"][data-hover-side="left"] .oa-esw__button--left,
.oa-esw[data-active="left"] .oa-esw__button--right:focus-visible,
.oa-esw[data-active="right"] .oa-esw__button--left:focus-visible {
    background: var(--oa-esw-background-hover-resolved);
}

.oa-esw__button:hover {
    color: var(--oa-esw-inactive-hover-text-resolved);
}

.oa-esw__button:focus-visible {
    outline: 2px solid var(--oa-esw-focus);
    outline-offset: -2px;
}

.oa-esw[data-active="left"] .oa-esw__button--left,
.oa-esw[data-active="right"] .oa-esw__button--right {
    color: var(--oa-esw-active-text);
}

.oa-esw[data-active="left"] .oa-esw__button--left:hover,
.oa-esw[data-active="right"] .oa-esw__button--right:hover,
.oa-esw[data-active="left"][data-hover-side="left"] .oa-esw__button--left,
.oa-esw[data-active="right"][data-hover-side="right"] .oa-esw__button--right,
.oa-esw[data-active="left"] .oa-esw__button--left:focus-visible,
.oa-esw[data-active="right"] .oa-esw__button--right:focus-visible {
    color: var(--oa-esw-active-hover-text-resolved);
}

.oa-esw__label {
    display: inline-block;
}

.oa-esw-target-hidden {
    display: none !important;
}

@media (max-width: 767px) {
    .oa-esw {
        width: 100%;
        min-height: 72px;
    }

    .oa-esw__button {
        font-size: 18px;
        padding: 10px 12px;
    }
}
