/* rates-table.css — WordPress shortcode output (core/wp_rates_shortcode.php)
   [transfer …] rates tables, [route-map …] embeds, [our-vehicles] table.
   Load after blog.css: these rules override the generic .x99d0 table styles. */

.ep-rates {margin:24px 0;}
.ep-rates-block {margin:0 0 24px;}
.ep-rates-block:last-child {margin-bottom:0;}

.ep-rates-title {
    font-family:"Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    letter-spacing:-0.015em;
    font-size:17px;
    font-weight:700;
    line-height:1.3;
    color:var(--navy);
    margin:0 0 10px;
    display:flex;
    align-items:center;
    gap:10px;
}
.ep-rates-title::before {content:""; width:4px; height:18px; border-radius:4px; background:var(--brand); flex:none;}

/* scroll container keeps wide tables inside the card on mobile */
.ep-rates-scroll {
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    border:1px solid var(--border);
    border-radius:16px;
    background:oklch(1 0 0);
    box-shadow:var(--shadow-card);
}

.x99d0 .ep-rates-table,
.ep-rates-table {
    display:table;
    width:100%;
    min-width:520px;
    margin:0;
    border:0;
    border-collapse:collapse;
    border-radius:0;
    overflow:visible;
    font-family:"DM Sans", ui-sans-serif, system-ui, sans-serif;
    font-size:15px;
}

.x99d0 .ep-rates-table th,
.x99d0 .ep-rates-table td {
    min-width:0;
    padding:12px 14px;
    border:0;
    border-bottom:1px solid var(--border);
    text-align:center;
    white-space:nowrap;
    color:oklch(0.51 0.026 256);
    background:transparent;
}

/* header row */
.x99d0 .ep-rates-table thead th {
    background:var(--navy);
    color:var(--navy-foreground);
    font-family:"Space Grotesk", ui-sans-serif, system-ui, sans-serif;
    font-size:12px;
    font-weight:600;
    letter-spacing:0.06em;
    text-transform:uppercase;
}

/* row labels (first column) */
.x99d0 .ep-rates-table tbody th {
    text-align:left;
    font-weight:600;
    color:var(--navy);
    background:oklch(0.965 0.008 250);
    position:sticky;
    left:0;
}
.x99d0 .ep-rates-table thead th:first-child {text-align:left; position:sticky; left:0; z-index:1;}

.x99d0 .ep-rates-table tbody tr:nth-child(even) td {background:oklch(0.965 0.008 250 / 0.5);}
.x99d0 .ep-rates-table tbody tr:last-child th,
.x99d0 .ep-rates-table tbody tr:last-child td {border-bottom:0;}
.x99d0 .ep-rates-table tbody tr:hover td {background:oklch(0.965 0.03 25 / 0.6);}

/* prices */
.ep-rates .ep-rates-table td {font-weight:600; color:var(--navy);}
.ep-rates .ep-rates-table tbody tr:first-child td {color:var(--brand);}
.ep-rates-empty {color:oklch(0.51 0.026 256); font-weight:400;}

/* "not found" / invalid shortcode notice */
.ep-rates-note {
    margin:16px 0;
    padding:12px 16px;
    border:1px dashed var(--border);
    border-radius:12px;
    background:oklch(0.965 0.008 250);
    color:oklch(0.51 0.026 256);
    font-size:14px;
}
.ep-rates-note strong {color:var(--navy);}

/* [route-map] */
.ep-route-map {
    margin:24px 0;
    border:1px solid var(--border);
    border-radius:16px;
    overflow:hidden;
    box-shadow:var(--shadow-card);
    line-height:0;
}
.ep-route-map iframe {display:block; width:100%; height:480px; border:0;}

/* [our-vehicles] */
.ep-vehicles {margin:28px 0;}
.x99d0 .ep-vehicles h2 {margin:0 0 14px;}
.x99d0 .ep-vehicles-table {min-width:680px;}
.x99d0 .ep-vehicles-table td,
.x99d0 .ep-vehicles-table th {white-space:normal; text-align:left; vertical-align:top;}
.x99d0 .ep-vehicles-table td {color:oklch(0.21 0.038 258);}

@media screen and (max-width:640px) {
    .x99d0 .ep-rates-table th,
    .x99d0 .ep-rates-table td {padding:10px 12px; font-size:14px;}
    .ep-route-map iframe {height:360px;}
}
