/* =============================================================
   billing-cycle-buttons.css — 3Life Cart: billing cycle toggle
   ============================================================= */

.billing-cycle-section .form-group {
    margin-bottom: 0;
}

/* ── Button group wrapper ────────────────────────────────────── */

.billing-cycle-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

/* ── Individual cycle button ─────────────────────────────────── */

.pricing-cycle-btn {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    background: var(--dominant-700);
    border: 1.5px solid var(--border);
    border-radius: 10px;
    color: var(--dominant-100);
    cursor: pointer;
    padding: 14px 24px 12px;
    min-width: 180px;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
    text-align: center;
}

.pricing-cycle-btn:hover {
    border-color: var(--accent-300);
    background: var(--dominant-600);
    box-shadow: 0 4px 16px rgba(205, 97, 65, 0.1);
}

.pricing-cycle-btn:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(205, 97, 65, 0.25);
}

/* ── Active / selected state ─────────────────────────────────── */

.pricing-cycle-btn.btn-selected {
    border-color: var(--accent-400);
    background: rgba(205, 97, 65, 0.1);
    box-shadow: 0 0 0 1px #CD6141, 0 4px 20px rgba(205, 97, 65, 0.15);
}

.pricing-cycle-btn.btn-selected .cycle-name {
    color: var(--dominant-50);
}

.pricing-cycle-btn.btn-selected .cycle-price {
    color: var(--dominant-50);
}

/* ── Cycle header (name + save badge inline) ─────────────────── */

.cycle-header {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 4px;
}

/* ── Cycle name (Monthly, Quarterly, etc.) ───────────────────── */

.cycle-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dominant-200);
    line-height: 1;
}

/* ── Save badge (inline with name) ──────────────────────────── */

.save-text {
    display: inline-block;
    background: var(--success);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 6px;
    border-radius: 3px;
    line-height: 1.4;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ── Price row (price + period label) ───────────────────────── */

.cycle-price-row {
    display: flex;
    align-items: baseline;
    gap: 2px;
    justify-content: center;
}

.cycle-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-300);
    line-height: 1.2;
}

.cycle-period {
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--dominant-300);
    line-height: 1.2;
}

/* ── Original price (strikethrough, shown when promo active) ── */

.cycle-original {
    font-size: 0.8rem;
    color: var(--dominant-400);
    text-decoration: line-through;
    line-height: 1;
    min-height: 1em;
}

.cycle-original:empty {
    display: none;
}

/* ── Responsive: stack on small screens ──────────────────────── */

@media (max-width: 480px) {
    .billing-cycle-buttons {
        flex-direction: column;
    }

    .pricing-cycle-btn {
        min-width: 0;
        width: 100%;
        padding: 12px 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; transform: none !important; animation: none !important; }
}
