/**
 * Price/Tax Switcher shortcode.
 */
.gp-child-tax-switcher__form {
    margin: 0;
}

.menu-bar-items .menu-bar-item.gp-child-tax-switcher-item {
    display: inline-flex;
    align-items: center;
    padding-left: 6px;
    padding-right: 6px;
}

.gp-child-tax-switcher {
    position: relative;
}

.gp-child-tax-switcher__summary {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 36px;
    margin: 0;
    padding: 2px 5px;
    border: 1px solid #d7dbe1;
    border-radius: 12px;
    background: #fff;
    color: var(--contrast);
    line-height: 1;
    cursor: pointer;
}

.gp-child-tax-switcher__summary::-webkit-details-marker {
    display: none;
}

.gp-child-tax-switcher__context {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-right: 8px;
    border-right: 1px solid #e5e7eb;
    color: var(--contrast-2);
}

.gp-child-tax-switcher__context-icon,
.gp-child-tax-switcher__caret {
    display: inline-flex;
    line-height: 0;
}

.gp-child-tax-switcher__context-text {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.gp-child-tax-switcher__current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.gp-child-tax-switcher__flag {
    display: inline-flex;
    width: 20px;
    height: 14px;
    border-radius: 3px;
    overflow: hidden;
    line-height: 0;
    box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.14);
}

.gp-child-tax-switcher__flag svg {
    width: 100%;
    height: 100%;
    display: block;
}

.gp-child-tax-switcher__code {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.gp-child-tax-switcher__rate {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
}

.gp-child-tax-switcher__caret {
    color: #6b7280;
}

.gp-child-tax-switcher[open] .gp-child-tax-switcher__summary {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(30, 115, 190, 0.18);
}

.gp-child-tax-switcher__panel {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 260px;
    max-width: min(90vw, 320px);
    padding: 6px;
    border: 1px solid #d7dbe1;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 14px 32px -20px rgba(0, 0, 0, 0.55);
    z-index: 500;
    overflow: hidden;
}

.gp-child-tax-switcher__option {
    box-sizing: border-box;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--contrast);
    text-align: left;
    cursor: pointer;
}

.gp-child-tax-switcher__option:hover,
.gp-child-tax-switcher__option:focus-visible {
    background: #f2f6fb;
}

.gp-child-tax-switcher__option:hover .gp-child-tax-switcher__option-text,
.gp-child-tax-switcher__option:hover .gp-child-tax-switcher__option-meta,
.gp-child-tax-switcher__option:focus-visible .gp-child-tax-switcher__option-text,
.gp-child-tax-switcher__option:focus-visible .gp-child-tax-switcher__option-meta {
    color: var(--accent);
}

.gp-child-tax-switcher__option.is-active {
    background: #edf4fc;
}

.gp-child-tax-switcher__option-main {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.gp-child-tax-switcher__option-text {
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gp-child-tax-switcher__option-meta {
    flex: 0 0 auto;
    margin-left: auto;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--contrast-2);
}

@media (max-width: 768px) {
    .gp-child-tax-switcher__summary {
        padding-right: 8px;
        padding-left: 8px;
    }

    .gp-child-tax-switcher__context-text {
        display: none;
    }

    .gp-child-tax-switcher__context {
        padding-right: 6px;
    }

    .gp-child-tax-switcher__panel {
        right: -6px;
        min-width: 235px;
    }

    .menu-bar-items .menu-bar-item.gp-child-tax-switcher-item {
        padding-left: 0;
        padding-right: 0;
    }
}
