/* ==========================================================================
   CodingCafe – Pricing Table Widget
   ========================================================================== */

/* ── Card wrapper ─────────────────────────────────────────────────────── */
.cc-pricing-table {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 2rem;
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    height: 100%;
    box-sizing: border-box;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.cc-pricing-table:hover {
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}

/* ── Header icon box ─────────────────────────────────────────────────── */
.cc-header-icon-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--e-global-color-accent, #E9E9E9);
    border-radius: 0.75rem;
    flex-shrink: 0;
}

.cc-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: var(--e-global-color-primary, #5B2969);
    line-height: 1;
}

.cc-header-icon svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* ── Pricing display ─────────────────────────────────────────────────── */
.cc-pricing-price {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.cc-price-prefix {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--e-global-color-text, #6C6C6C);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.cc-price-wrap {
    display: flex;
    align-items: flex-start;
    line-height: 1;
    gap: 0.125rem;
}

.cc-price-currency {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--e-global-color-secondary, #3D2C5F);
    align-self: flex-start;
    margin-top: 0.25rem;
}

.cc-price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--e-global-color-primary, #5B2969);
    line-height: 1;
}

.cc-price-period {
    font-size: 0.8125rem;
    color: #9ca3af;
    font-weight: 500;
}

/* ── Badge ─────────────────────────────────────────────────────────────── */
.cc-pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.85rem;
    background-color: var(--e-global-color-accent, #E9E9E9);
    color: var(--e-global-color-primary, #5B2969);
    border-radius: 999px;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    width: fit-content;
}

/* ── Header ────────────────────────────────────────────────────────────── */
.cc-pricing-header {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.cc-pricing-title {
    margin: 0;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--e-global-color-secondary, #3D2C5F);
    line-height: 1.3;
}

.cc-pricing-description {
    margin: 0;
    font-size: 0.9375rem;
    color: #6b7280;
    line-height: 1.6;
}

/* ── Divider ───────────────────────────────────────────────────────────── */
.cc-pricing-divider {
    height: 1px;
    background-color: #e5e7eb;
}

/* ── Feature sections ──────────────────────────────────────────────────── */
.cc-feature-section {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.cc-feature-section-heading {
    margin: 0 0 0.4rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #9ca3af;
}

.cc-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.cc-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.9375rem;
    color: #374151;
    line-height: 1.5;
}

.cc-feature-item--inactive {
    opacity: 0.4;
    text-decoration: line-through;
}

.cc-feature-icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.15rem;
    font-size: 0.875rem;
    color: var(--e-global-color-primary, #5B2969);
}

.cc-feature-icon svg {
    width: 0.875rem;
    height: 0.875rem;
    fill: currentColor;
}

/* "Best For" section gets the secondary colour */
.cc-feature-section--best-for .cc-feature-icon {
    color: var(--e-global-color-secondary, #3D2C5F);
}

/* ── CTA Button ─────────────────────────────────────────────────────────── */
.cc-pricing-cta {
    margin-top: auto;
    /* pushes button to card bottom when cards have equal height */
}

.cc-pricing-btn {
    display: block;
    width: 100%;
    padding: 0.8rem 1.5rem;
    text-align: center;
    background-color: var(--e-global-color-primary, #5B2969);
    color: #ffffff !important;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 0.5rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.cc-pricing-btn:hover {
    background-color: var(--e-global-color-secondary, #3D2C5F);
    box-shadow: 0 4px 14px rgba(91, 41, 105, 0.4);
    color: #ffffff !important;
    text-decoration: none;
}

/* ── Elementor editor live-preview helpers ─────────────────────────────── */
.elementor-editor-active .cc-pricing-table {
    min-height: 200px;
}