.ryzels-pricing-comparison {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #0b0b0e;
    color: #fff;
    padding: 30px;
    border-radius: 10px;
    box-sizing: border-box;
}

.ryzels-pricing-comparison *, .ryzels-pricing-comparison *::before, .ryzels-pricing-comparison *::after {
    box-sizing: border-box;
}

.ryzels-pricing-table {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Horizontal Scrolling on Mobile */
@media (max-width: 767px) {
    .ryzels-pricing-comparison {
        padding: 15px;
    }
}

.ryzels-pricing-row,
.ryzels-pricing-header-row {
    display: grid;
    /* Use dynamic columns variable and width variables */
    grid-template-columns: var(--feature-col-width, 1.5fr) repeat(var(--ryzels-cols, 3), var(--plan-col-width, 1fr));
    border-bottom: 1px solid #1a1a22;
    align-items: stretch;
    /* Dynamically set min-width based on number of columns so it doesn't scroll to empty space, but prevents squashing */
    min-width: max(100%, calc(150px + (var(--ryzels-cols, 3) * 150px))); 
}

.ryzels-pricing-header-row {
    border-bottom: none;
    margin-bottom: 0;
}

.ryzels-pricing-cell {
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    min-width: 0; /* Prevents grid columns from expanding beyond their fr ratio */
    word-wrap: break-word;
}

.ryzels-feature-title-col {
    justify-content: flex-start;
}

/* Header Cells */
.ryzels-header-feature-text {
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 1px;
    color: #6c6c7d;
    text-transform: uppercase;
    width: 100%;
    display: block;
}

.ryzels-plan-inner {
    text-align: center; /* This can be overridden by Elementor text-align */
    display: flex;
    flex-direction: column;
    align-items: center; /* Overridden if needed, but text-align handles children if they are full width */
    width: 100%;
}

.ryzels-plan-title {
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 5px 0;
    color: #fff;
    width: 100%;
}

.ryzels-plan-price {
    font-size: 32px;
    font-weight: 800;
    color: #fff;
    line-height: 1;
    margin-top: 10px;
    width: 100%;
}

.ryzels-plan-subtitle {
    font-size: 12px;
    color: #6c6c7d;
    margin-top: 5px;
    width: 100%;
}

/* Highlighted Column Styles */
.ryzels-plan-highlighted {
    background-color: rgba(144, 216, 67, 0.05); /* Very faint green background */
    border-left: 1px solid rgba(144, 216, 67, 0.2);
    border-right: 1px solid rgba(144, 216, 67, 0.2);
}

.ryzels-pricing-header-row .ryzels-plan-highlighted {
    border-top: 1px solid rgba(144, 216, 67, 0.2);
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.ryzels-pricing-body .ryzels-pricing-row:last-child .ryzels-plan-highlighted {
    border-bottom: 1px solid rgba(144, 216, 67, 0.2);
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* In case a section row is the last one (rare but possible), fix the border */
.ryzels-pricing-body .ryzels-section-row:last-child .ryzels-plan-highlighted {
    border-bottom: none;
}

.ryzels-badge-wrapper {
    margin-top: 15px;
}

.ryzels-popular-badge {
    background-color: transparent;
    color: #90d843;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid rgba(144, 216, 67, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
}

/* Sections */
.ryzels-section-row {
    background-color: #131318;
    box-shadow: inset 3px 0 0 0 #90d843;
    cursor: pointer;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #1a1a22;
}

.ryzels-section-row:hover {
    background-color: #17171d;
}

.ryzels-section-title {
    font-size: 12px;
    font-weight: 800;
    margin: 0;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.ryzels-section-toggle {
    transition: transform 0.3s ease;
    font-size: 10px;
    color: #90d843;
}
.ryzels-section-row.collapsed .ryzels-section-toggle {
    transform: rotate(-90deg);
}

/* Features */
.ryzels-feature-name {
    font-size: 14px;
    font-weight: 600;
    color: #a8a8b3;
    width: 100%;
    display: block;
}

.ryzels-feature-value {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    text-align: center;
    width: 100%;
    display: block;
}

/* Ensure checkmarks look good */
.ryzels-feature-value i,
.ryzels-feature-value svg {
    color: #90d843;
    font-size: 16px;
}

.ryzels-row-hidden {
    display: none !important;
}
