/* =============================================================================
   POPsCOOL — Rates table styles
   Shortcode: [popscool_rates_table]
   Uses CSS custom properties with fallbacks to brand colors.
   ============================================================================= */

.pc-rates-table {
    display: flex;
    flex-direction: column;
    gap: 36px;
    font-family: 'PT Sans', sans-serif;
}

.pc-rates-group__title {
    margin: 0 0 2px;
    padding: 0;
    font-size: 1em;
    font-family: 'PT Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--ps-donkerblauw, #223A89);
    border: none;
}

.pc-rates-group__subtitle {
    margin: 0 0 10px;
    font-size: .85em;
    color: rgba(0, 0, 0, .45);
}

.pc-rates-group__wrap {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    border: 2px solid #36A9E1;
    border-radius: 12px;
}

.pc-rates-group__table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    min-width: 360px;
}

/* Fixed column widths — consistent across all groups */
.pc-rates-group__table thead th:first-child  { width: 46%; }
.pc-rates-group__table thead th:nth-child(2) { width: 27%; }
.pc-rates-group__table thead th:last-child   { width: 27%; }

.pc-rates-group__table thead tr {
    background: rgba(54, 169, 225, .12);
    border-bottom: 1px solid rgba(54, 169, 225, .3);
}

.pc-rates-group__table thead th {
    padding: 11px 16px;
    font-family: 'PT Sans', sans-serif;
    font-size: .78em;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(0, 0, 0, .4);
    vertical-align: bottom;
}

.pc-rates-group__table thead th small {
    display: block;
    font-size: 1.15em;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ps-donkerblauw, #223A89);
    margin-top: 2px;
}

.pc-rates-group__table thead th:not(:first-child) {
    text-align: right;
}

/* "21 jaar en ouder" column header — paars accent op de tekst */
.pc-rates-group__table thead th:last-child small {
    color: var(--ps-paars, #7C216C);
}

.pc-rates-group__table tbody tr:nth-child(even) {
    background: rgba(54, 169, 225, .05);
}

.pc-rates-group__table tbody tr:hover {
    background: rgba(54, 169, 225, .12);
}

.pc-rates-group__table tbody td {
    padding: 10px 16px;
    font-size: .95em;
    color: rgba(0, 0, 0, .8);
    border-bottom: 1px solid rgba(54, 169, 225, .15);
}

.pc-rates-group__table tbody tr:last-child td {
    border-bottom: none;
}

.pc-rates-group__table tbody td:not(:first-child) {
    text-align: right;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

/* Price in the "21+" column — paars accent */
.pc-rates-group__table tbody td:last-child {
    color: var(--ps-paars, #7C216C);
    font-weight: 600;
}

/* Kortingen section */
.pc-rates-group--discounts .pc-rates-group__title {
    color: var(--ps-paars, #7C216C);
}

.pc-rates-discounts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pc-rates-discounts__item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    border-radius: 10px;
    background: rgba(124, 33, 108, .06);
    font-size: .95em;
}

.pc-rates-discounts__name {
    color: rgba(0, 0, 0, .75);
}

.pc-rates-discounts__pct {
    font-weight: 700;
    color: var(--ps-paars, #7C216C);
    white-space: nowrap;
}

/* Footer note */
.pc-rates-table__note {
    margin: 0;
    font-size: .8em;
    color: rgba(0, 0, 0, .4);
    font-family: 'PT Sans', sans-serif;
}
