.wp-block-cct-currency-toggle.cct-toggle,
.wp-block-cct-currency-toggle.cct-toggle-editor {
    --cct-track: #e5e5ea;
    --cct-active: #55c463;
    --cct-active-text: #fff;
    --cct-inactive-text: #111;
    --cct-border: #c7c7cc;
    --cct-radius: 999px;
    --cct-max-width: 440px;
}

.cct-switch {
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: min(100%, var(--cct-max-width));
    margin-inline: auto;
    padding: 5px;
    overflow: visible;
    background: var(--cct-track);
    border: 1px solid var(--cct-border);
    border-radius: var(--cct-radius);
    box-shadow:
        inset 0 1px 2px rgb(0 0 0 / 12%),
        0 1px 1px rgb(255 255 255 / 65%);
}

.cct-switch__button,
.cct-switch .components-button.cct-switch__button {
    box-sizing: border-box;
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 48px;
    padding: 9px 14px;
    color: var(--cct-inactive-text);
    font: inherit;
    font-weight: 500;
    line-height: 1.15;
    text-align: center;
    white-space: nowrap;
    background: transparent;
    border: 0;
    border-radius: calc(var(--cct-radius) - 5px);
    box-shadow: none;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.cct-switch__button.is-active,
.cct-switch .components-button.cct-switch__button.is-active {
    color: var(--cct-active-text);
    background: var(--cct-active);
    box-shadow:
        0 2px 5px rgb(0 0 0 / 22%),
        0 1px 1px rgb(0 0 0 / 12%),
        inset 0 1px 0 rgb(255 255 255 / 24%);
}

.cct-switch__button:hover:not(.is-active) {
    background: rgb(255 255 255 / 22%);
}

.cct-switch__button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.cct-panels {
    margin-top: 1rem;
}

.cct-panel[hidden] {
    display: none !important;
}

.cct-panel__content > :first-child { margin-top: 0; }
.cct-panel__content > :last-child { margin-bottom: 0; }

@media (max-width: 480px) {
    .cct-switch {
        gap: 2px;
        padding: 4px;
    }

    .cct-switch__button,
    .cct-switch .components-button.cct-switch__button {
        min-height: 42px;
        padding-inline: 7px;
        font-size: 0.88em;
    }
}
