/* =====================================================
   Pricing Plans Plugin — Scoped Public Styles
   All rules prefixed with .pp-section to avoid
   conflicts with theme CSS.
===================================================== */

.pp-section *,
.pp-section *::before,
.pp-section *::after {
    box-sizing: border-box;
}

.pp-section {
    --pp-accent: #e05a2b;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: #111;
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
    background: transparent;
}

/* ---- Header ---- */
.pp-section .pp-header {
    text-align: center;
    margin-bottom: 40px;
}

.pp-section .pp-eyebrow {
    color: var(--pp-accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin: 0 0 10px;
    padding: 0;
}

.pp-section .pp-title {
    font-size: 34px;
    font-weight: 700;
    margin: 0 0 12px;
    padding: 0;
    color: #111;
    line-height: 1.2;
    border: none;
    background: none;
}

.pp-section .pp-subtitle {
    font-size: 15px;
    color: #666;
    margin: 0 0 28px;
    padding: 0;
}

/* ---- Toggle ---- */
.pp-section .pp-toggle-wrap {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.pp-section .pp-toggle-label {
    font-size: 14px;
    font-weight: 500;
    color: #999;
    transition: color .2s;
    line-height: 1;
}

.pp-section .pp-toggle-label.pp-active {
    color: #111;
}

.pp-section .pp-toggle-track {
    display: inline-block;
    width: 52px;
    height: 28px;
    border-radius: 14px;
    background: var(--pp-accent);
    border: none;
    cursor: pointer;
    position: relative;
    outline: none;
    flex-shrink: 0;
    padding: 0;
    margin: 0;
    vertical-align: middle;
    -webkit-appearance: none;
    appearance: none;
}

.pp-section .pp-toggle-track:focus-visible {
    box-shadow: 0 0 0 3px rgba(224,90,43,.35);
}

.pp-section .pp-thumb {
    display: block;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    position: absolute;
    top: 3px;
    left: 3px;
    transition: transform .25s cubic-bezier(.4,0,.2,1);
    pointer-events: none;
}

.pp-section .pp-toggle-track[data-state="annual"] .pp-thumb {
    transform: translateX(24px);
}

.pp-section .pp-save-badge {
    display: inline-block;
    background: #fef3ee;
    color: #b84520;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    line-height: 1.4;
}

/* ---- Cards grid ---- */
.pp-section .pp-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    align-items: start;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* ---- Single card ---- */
.pp-section .pp-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 14px;
    padding: 28px 24px 24px;
    position: relative;
    transition: box-shadow .2s;
    margin: 0;
}

.pp-section .pp-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,.09);
}

.pp-section .pp-card.pp-featured {
    border: 2.5px solid var(--pp-accent);
    padding-top: 36px;
}

/* ---- Popular badge ---- */
.pp-section .pp-popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--pp-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: .07em;
    text-transform: uppercase;
    line-height: 1.6;
}

/* ---- Plan info ---- */
.pp-section .pp-plan-name {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 6px;
    padding: 0;
    color: #111;
    border: none;
    background: none;
    line-height: 1.3;
}

.pp-section .pp-plan-desc {
    font-size: 13px;
    color: #777;
    margin: 0 0 18px;
    padding: 0;
    min-height: 36px;
    line-height: 1.5;
}

/* ---- Price ---- */
.pp-section .pp-price-row {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 4px;
    padding: 0;
    line-height: 1;
}

.pp-section .pp-currency {
    font-size: 20px;
    font-weight: 700;
    color: var(--pp-accent);
    line-height: 1;
}

.pp-section .pp-amount {
    font-size: 38px;
    font-weight: 800;
    color: var(--pp-accent);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.pp-section .pp-period {
    font-size: 14px;
    color: #999;
    margin-left: 2px;
}

.pp-section .pp-custom-price {
    font-size: 30px;
    font-weight: 700;
    color: #111;
    line-height: 1;
}

.pp-section .pp-price-note {
    font-size: 12px;
    color: #aaa;
    margin: 4px 0 6px;
    padding: 0;
    line-height: 1.4;
}

.pp-section .pp-annual-saving {
    font-size: 12px;
    color: #b84520;
    font-weight: 600;
    margin: 0 0 14px;
    padding: 0;
    min-height: 18px;
    line-height: 1.4;
}

/* ---- Divider ---- */
.pp-section .pp-divider {
    border: none;
    border-top: 1px solid #f2f2f2;
    margin: 14px 0 16px;
    padding: 0;
    background: none;
    height: 0;
}

/* ---- Features ---- */
.pp-section .pp-features {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.pp-section .pp-feat-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13.5px;
    color: #333;
    line-height: 1.45;
    margin: 0;
    padding: 0;
}

.pp-section .pp-feat-item.pp-feat-disabled {
    color: #c0c0c0;
    text-decoration: line-through;
}

.pp-section .pp-check {
    color: var(--pp-accent);
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 2px;
    font-style: normal;
}

.pp-section .pp-cross {
    color: #d0d0d0;
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 2px;
    font-style: normal;
}

/* ---- CTA button ---- */
.pp-section .pp-cta {
    display: block;
    width: 100%;
    padding: 11px 16px;
    border: 2px solid #111;
    border-radius: 8px;
    background: transparent;
    color: #111;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background .15s, color .15s, border-color .15s;
    line-height: 1.4;
    -webkit-appearance: none;
    appearance: none;
    font-family: inherit;
    text-decoration: none;
}

.pp-section .pp-cta:hover {
    background: #111;
    color: #fff;
    border-color: #111;
    text-decoration: none;
}

.pp-section .pp-cta.pp-cta-featured {
    background: #111;
    color: #fff;
    border-color: #111;
}

.pp-section .pp-cta.pp-cta-featured:hover {
    background: #333;
    border-color: #333;
}

/* ---- Responsive ---- */
@media (max-width: 860px) {
    .pp-section .pp-cards-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
    .pp-section .pp-title { font-size: 26px; }
}

@media (max-width: 480px) {
    .pp-section { padding: 40px 14px; }
    .pp-section .pp-title { font-size: 22px; }
    .pp-section .pp-amount { font-size: 30px; }
}
