/* --- Modern Default Pricing Table Styles v4.2.2 --- */
.expandable-pricing-table {
    background: #1e293b;
    color: #cbd5e1;
    border-radius: 12px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

/* --- Ribbon Styling --- */
.pricing-table-ribbon-wrapper {
    position: absolute;
    top: 0;
    width: 150px;
    height: 150px;
    overflow: hidden;
    z-index: 1;
}
.pricing-table-ribbon-wrapper.position-left { left: 0; }
.pricing-table-ribbon-wrapper.position-right { right: 0; }
.pricing-table-ribbon-inner {
    position: absolute;
    top: 35px;
    background: #38bdf8;
    color: #0f172a;
    padding: 8px 0;
    width: 200px;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}
.pricing-table-ribbon-wrapper.position-left .pricing-table-ribbon-inner {
    left: -45px;
    transform: rotate(-45deg);
}
.pricing-table-ribbon-wrapper.position-right .pricing-table-ribbon-inner {
    right: -45px;
    transform: rotate(45deg);
}


/* Header (with Header Icon) */
.pricing-table-header {
    background-color: transparent;
    padding: 32px 32px 16px 32px;
    text-align: left;
}
.header-icon {
    font-size: 40px; /* Default size */
    color: #38bdf8; /* Default color */
    margin-bottom: 16px; /* Default spacing */
    line-height: 1; /* Ensure icon aligns properly */
}
.header-icon i, .header-icon svg {
    /* Respect the font-size/width control */
}
.pricing-table-header .header-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #ffffff;
}
.pricing-table-header .header-description {
    font-size: 14px;
    color: #94a3b8;
    margin-bottom: 0;
}
.pricing-table-header .header-description p { margin: 0; }


/* Price */
.pricing-table-price {
    background: transparent;
    margin-bottom: 0;
    padding: 16px 32px 24px 32px;
    line-height: 1;
    text-align: left;
}
.pricing-table-price .price-currency {
    font-size: 28px;
    font-weight: 600;
    color: #38bdf8;
    vertical-align: top;
    margin-right: 2px;
}
.pricing-table-price .price-amount {
    font-size: 52px;
    font-weight: 700;
    color: #38bdf8;
    line-height: 1;
}
.pricing-table-price .original-price {
    font-size: 24px;
    color: #94a3b8;
    text-decoration: line-through;
    margin-right: 8px;
}
.pricing-table-price .price-period {
    font-size: 16px;
    color: #94a3b8;
    margin-left: 8px;
}

/* Features (with Unavailable Style) */
.pricing-table-features {
    list-style: none;
    padding: 24px 32px;
    margin: 0;
    flex-grow: 1;
}
.expandable-pricing-table.has-feature-divider .pricing-table-features {
     border-top: 1px solid #334155;
}

/* ✅ FIX: Prevent icon size jumping during animation */
.feature-item {
    padding: 0;
    margin-bottom: 16px;
    font-size: 16px;
    color: #cbd5e1;
    display: flex !important; /* Force flex always */
    align-items: center;
    position: relative;
    text-align: left;
    opacity: 1;
    transition: opacity 0.3s ease; /* Smooth fade instead of size change */
}
.feature-item:last-child { margin-bottom: 0; }

.feature-icon {
    margin-right: 12px;
    font-size: 20px; /* Default size */
    flex-shrink: 0;
    width: 24px;
    height: 24px; /* ✅ FIX: Fixed height prevents jumping */
    text-align: center;
    color: #38bdf8; /* Global Default Color */
    display: inline-flex; /* ✅ FIX: Better alignment */
    align-items: center;
    justify-content: center;
}
.feature-icon i,
.feature-icon svg { 
    vertical-align: middle;
    max-width: 100%; /* ✅ FIX: Prevent overflow */
    max-height: 100%; /* ✅ FIX: Prevent overflow */
}
.feature-text {
    flex-grow: 1;
    line-height: 1.5; /* ✅ FIX: Consistent line height */
}

/* --- Unavailable Feature Style --- */
.feature-item.feature-unavailable {
    color: #64748b; /* Default gray color */
    text-decoration: line-through;
    opacity: 0.7; /* Make it slightly faded */
}
.feature-item.feature-unavailable .feature-icon {
    color: #64748b; /* Match text color */
    fill: #64748b;
}
/* --- End --- */


/* --- Tooltip Style --- */
.feature-tooltip-icon {
    margin-left: 8px;
    color: #94a3b8;
    font-size: 14px;
    cursor: help;
    flex-shrink: 0; /* ✅ FIX: Prevent icon from shrinking */
}
.feature-item[data-tooltip] {
    cursor: help;
}
.feature-item[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 10px;
    background: #0f172a;
    color: #cbd5e1;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.4;
    width: 200px;
    text-align: center;
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none; /* ✅ FIX: Prevent tooltip from blocking clicks */
}
.feature-item[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}


/* Expand/Collapse Logic */
.feature-item.hidden-feature { 
    display: none !important; /* ✅ FIX: Force hide */
}
.expand-button-wrapper { 
    padding: 0 32px;
    margin-top: 16px; 
    text-align: left;
}
.expand-toggle-button {
    background: none; 
    border: none;
    color: #38bdf8;
    padding: 8px 0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
}
.expand-toggle-button:hover { 
    color: #7dd3fc; 
}
.expand-toggle-button:focus {
    outline: 2px solid #38bdf8; /* ✅ Accessibility: Focus state */
    outline-offset: 2px;
}

/* Footer */
.pricing-table-footer {
    padding: 24px 32px 32px 32px;
    background-color: transparent;
    margin-top: 0;
}
.pricing-table-button {
    display: block; 
    width: 100%;
    padding: 14px 30px;
    background-color: #38bdf8;
    color: #0f172a;
    text-decoration: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.3s ease;
}
.pricing-table-button:hover { 
    background-color: #7dd3fc; 
}
.pricing-table-button:focus {
    outline: 2px solid #38bdf8; /* ✅ Accessibility: Focus state */
    outline-offset: 2px;
}

.footer-additional-info {
    font-size: 13px;
    color: #94a3b8;
    margin-top: 16px;
    text-align: center;
}
.footer-additional-info p { 
    margin: 0; 
    padding: 0; 
}