/* =========================================
   PRICING PAGE — [yw_pricing] shortcode
   ========================================= */

.yw-pricing {
    max-width: 100%;
}

/* --- Intro --- */
.yw-pricing__intro {
    text-align: center;
    margin-bottom: var(--sp-space-lg);
}

.yw-pricing__title {
    font-family: var(--sp-font-heading);
    font-size: var(--sp-text-2xl);
    color: var(--sp-color-text);
    margin-bottom: var(--sp-space-sm);
}

.yw-pricing__sub {
    color: var(--sp-color-text-muted);
    font-size: var(--sp-text-base);
}

/* --- Toggle --- */
.yw-pricing__toggle {
    display: inline-flex;
    margin: 0 auto var(--sp-space-lg);
    background: var(--sp-color-white);
    border: 1px solid var(--sp-color-border);
    border-radius: var(--sp-radius-full);
    padding: 4px;
    gap: 4px;
}

.yw-pricing__intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.yw-pricing__toggle {
    display: flex;
    justify-content: center;
    width: 100%;
}

.yw-pricing-cycle-btn {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 8px 22px;
    border-radius: var(--sp-radius-full);
    font-family: var(--sp-font-body);
    font-size: var(--sp-text-sm);
    font-weight: var(--sp-font-weight-semibold);
    color: var(--sp-color-text-muted);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.yw-pricing-cycle-btn.is-active {
    background: var(--sp-color-primary);
    color: #fff;
}

/* --- Cards grid --- */
.yw-pricing__cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--sp-space-md);
    align-items: stretch;
}

.yw-pricing-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--sp-color-white);
    border: 1px solid var(--sp-color-border);
    border-radius: var(--sp-radius-lg);
    padding: var(--sp-space-lg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.yw-pricing-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--sp-shadow-md);
}

.yw-pricing-card--gold {
    border-color: var(--sp-color-warning);
    box-shadow: 0 0 0 1px var(--sp-color-warning);
}

.yw-pricing-card--gold .yw-pricing-card__title {
    color: var(--sp-color-warning);
}

.yw-pricing-card__title {
    font-family: var(--sp-font-heading);
    font-size: var(--sp-text-lg);
    color: var(--sp-color-text);
    margin-bottom: var(--sp-space-sm);
}

/* --- Current plan badge --- */
.yw-sub-badge {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    padding: 2px 10px;
    border-radius: var(--sp-radius-full);
    font-size: var(--sp-text-xs);
    font-weight: var(--sp-font-weight-bold);
    margin-bottom: var(--sp-space-sm);
}

.yw-sub-badge--current {
    background: var(--sp-color-success-bg);
    color: var(--sp-color-success);
}

/* --- Price options (monthly/yearly, toggled by root class) --- */
.yw-pricing-card__price-option {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: var(--sp-space-md);
}

.yw-pricing-card__amount {
    font-size: var(--sp-text-3xl);
    font-weight: var(--sp-font-weight-bold);
    font-family: var(--sp-font-heading);
    color: var(--sp-color-text);
}

.yw-pricing-card__currency {
    font-size: var(--sp-text-sm);
    font-weight: var(--sp-font-weight-semibold);
    color: var(--sp-color-text-muted);
}

.yw-pricing-card__cycle {
    font-size: var(--sp-text-sm);
    color: var(--sp-color-text-muted);
}

.yw-cycle--monthly .yw-pricing-card__price-option[data-yw-cycle="monthly"],
.yw-cycle--yearly .yw-pricing-card__price-option[data-yw-cycle="yearly"] {
    display: flex;
}

.yw-cycle--monthly .yw-pricing-card__price-option[data-yw-cycle="yearly"],
.yw-cycle--yearly .yw-pricing-card__price-option[data-yw-cycle="monthly"] {
    display: none;
}

/* --- Features --- */
.yw-pricing-card__features {
    list-style: none;
    margin: 0 0 var(--sp-space-lg);
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.yw-pricing-card__features li {
    position: relative;
    padding-inline-start: 26px;
    font-size: var(--sp-text-sm);
    color: var(--sp-color-text);
}

.yw-pricing-card__features li::before {
    content: "✓";
    position: absolute;
    inset-inline-start: 0;
    top: 0;
    font-weight: var(--sp-font-weight-bold);
    color: var(--sp-color-success);
}

/* --- Limits --- */
.yw-pricing-card__limits {
    background: var(--sp-color-bg-alt);
    border-radius: var(--sp-radius-md);
    padding: var(--sp-space-sm) var(--sp-space-sm);
    margin-bottom: var(--sp-space-md);
}

.yw-pricing-card__limit {
    margin: 0;
    font-size: var(--sp-text-xs);
    color: var(--sp-color-text-muted);
}

/* --- CTA --- */
.yw-pricing-card__cta {
    margin-top: auto;
}

.yw-pricing-card__current {
    display: inline-block;
    font-size: var(--sp-text-sm);
    font-weight: var(--sp-font-weight-semibold);
    color: var(--sp-color-success);
}

.yw-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 20px;
    border-radius: var(--sp-radius-md);
    background: var(--sp-color-primary);
    color: #fff;
    font-family: var(--sp-font-body);
    font-size: var(--sp-text-sm);
    font-weight: var(--sp-font-weight-semibold);
    text-decoration: none;
    transition: background 0.2s ease;
}

.yw-btn:hover {
    background: var(--sp-color-primary-dark);
    color: #fff;
}

.yw-btn--small {
    width: auto;
}

.yw-pricing-card--free .yw-btn {
    background: var(--sp-color-text);
}

.yw-pricing-card--free .yw-btn:hover {
    background: var(--sp-color-text);
}

/* --- Note --- */
.yw-pricing__note {
    margin-top: var(--sp-space-lg);
    text-align: center;
    font-size: var(--sp-text-sm);
    color: var(--sp-color-text-muted);
}