/* ==========================================================================
   pricing-toggle.css
   Monthly/annual toggle on /pricing/. The toggle script and prices come
   from the Global Variables plugin.
   ========================================================================== */

.pricing-toggle-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.pricing-toggle {
    position: relative;
    display: inline-flex;
    border-radius: 999px;
    background-color: white;
    border: 1px solid #141413;
    overflow: hidden;
    width: 192px;
    height: 48px;
    font-family: var(--typography-font-primary);
}

.toggle-btn {
    position: relative;
    z-index: 2;
    flex: 1;
    padding: 10px 0;
    border: none;
    background: transparent;
    color: #141413;
    font-weight: 400; /* Default (inactive) state */
    font-size: 14px;
    cursor: pointer;
    transition:
        color 0.3s ease,
        font-weight 0.3s ease;
    font-family: var(--typography-font-primary);
}

.toggle-btn.active {
    color: white;
    font-weight: 500; /* Active state */
}

/* Override the parent Hello Elementor theme, which sets a pink (#c36)
   background on button hover and focus */
.pricing-toggle .toggle-btn:hover,
.pricing-toggle .toggle-btn:focus {
    background: transparent;
    color: rgba(0, 0, 0, 0.6);
    text-decoration: none;
}

.pricing-toggle .toggle-btn.active:hover,
.pricing-toggle .toggle-btn.active:focus {
    background: transparent;
    color: white;
}

.toggle-slider {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 8px);
    height: calc(100% - 8px);
    background-color: #141413;
    border-radius: 999px;
    transition: left 0.3s ease;
    z-index: 1;
}
