/* Annual/Monthly Toggle Pill */

.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
}

.toggle-pill {
    position: relative;
    display: inline-flex;
    background: #fff;
    border-radius: 999px;
    padding: 3px 6px 3px 6px;
    border: 1px solid var(--stroke);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
    gap: 3px;
    min-width: 220px;
}

.toggle-pill input {
    display: none;
}

.toggle-pill label {
    flex: 1;
    position: relative;
    font-size: 18px !important;
    font-weight: 600;
    text-align: center;
    padding: 0px 12px !important;
    border-radius: 999px;
    cursor: pointer;
    color: var(--muted);
    transition:
            background-color 0.15s ease,
            color 0.15s ease,
            box-shadow 0.15s ease,
            transform 0.08s ease;
    user-select: none;
    white-space: nowrap;
}

.toggle-pill label .toggle-pill__badge {
    display: inline-block;
    margin-left: 6px;
    padding: 0px 6px 0px 6px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    transform: translateY(-1px);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    background: rgba(255, 255, 255, 0.6);
    color: var(--muted);
}

/* Checked states */

#billing-monthly:checked + label[for="billing-monthly"],
#billing-annual:checked + label[for="billing-annual"] {
    background: #ffffff;
    color: #111827;
    box-shadow:
            0 1px 2px rgba(15, 23, 42, 0.16),
            0 0 0 1px rgba(255, 255, 255, 0.9);
    transform: translateY(-0.5px);
}

#billing-annual:checked + label[for="billing-annual"] {
    background: var(--btn-green-middle);
    color: var(--btn-green-text);
    box-shadow: 0 1px 2px var(--btn-green-border);
}

#billing-annual:checked + label[for="billing-annual"] .toggle-pill__badge {
    color: var(--btn-green-text);
    background: #ffffff5f;
    box-shadow: 0 1px 1px var(--btn-green-bottom-2);
    border: 1px solid var(--btn-green-bottom);
    transform: translateY(-2px);
}
