.trainiq-booking-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    /* Brand-derived tints — used by every "info" surface (filter chip,
     * preferred-date intro, combi section, summary band). When the
     * opleider's --tiq-primary is set to a non-blue colour these
     * automatically follow. Hardcoded #E6F1FB / #185FA5 fallbacks are
     * what those used to be; color-mix needs a base + white/black to
     * derive shades. */
    --tiq-primary-tint:         color-mix(in srgb, var(--tiq-primary, #185FA5) 12%, white);
    --tiq-primary-tint-strong:  color-mix(in srgb, var(--tiq-primary, #185FA5) 18%, white);
    --tiq-primary-tint-border:  color-mix(in srgb, var(--tiq-primary, #185FA5) 26%, white);
    --tiq-primary-darker:       color-mix(in srgb, var(--tiq-primary, #185FA5) 88%, black);
}

/* Defend against hostile theme CSS that paints all body text white / accent.
   Doubled-class selector lifts specificity above the typical .content / .entry
   theme rules without resorting to !important on every child. Descendants
   with their own explicit color rule (day-state pills, prices, helper text)
   still override via the cascade. */
.trainiq-booking-widget.trainiq-booking-widget,
.trainiq-booking-widget.trainiq-booking-widget div,
.trainiq-booking-widget.trainiq-booking-widget span,
.trainiq-booking-widget.trainiq-booking-widget p,
.trainiq-booking-widget.trainiq-booking-widget label { color: #1a1a1a; }

/* min-height locks the widget to at least the calendar view's height
   (course detail with 6-row month grid + legend). Keeps the host page
   from jumping when the visitor switches between taller (course detail)
   and shorter (catalog / after-add) panes. */
/* Width strategy: full-width within the host container. The widget
   no longer claims a hard 480px ceiling — it scales to whatever
   column / sidebar / hero block it's embedded in. The host page can
   still cap the visual size by wrapping the widget mount-point in a
   constraining div (e.g. <div style="max-width: 520px"><div class="trainiq-booking-widget">...). */
.tiq-w { background: #fff; border: 0.5px solid #e0ddd6; border-radius: 16px; overflow: hidden; width: 100%; min-height: 520px; box-sizing: border-box; font-size: 15px; line-height: 1.5; }
.tiq-w-loading { text-align: center; padding: 48px; color: #888; font-size: 15px; }
.tiq-w-error { text-align: center; padding: 24px; color: #A32D2D; font-size: 14px; }

.tiq-w-header { padding: 20px 22px; border-bottom: 0.5px solid #e0ddd6; display: flex; align-items: center; justify-content: space-between; }
.tiq-w-title { font-size: 19px; font-weight: 600; color: #1a1a1a; }
.tiq-w-price { font-size: 18px; font-weight: 600; color: #185FA5; }
.tiq-w-price span { font-size: 12px; font-weight: 400; color: #888; }

.tiq-w-month-nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 22px; }
.tiq-w-month-label { font-size: 16px; font-weight: 600; }
.tiq-w-nav-btn { background: none; border: none; cursor: pointer; font-size: 18px; color: #888; padding: 6px 12px; }

.tiq-w-daygrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; padding: 0 18px; }
.tiq-w-dayname { font-size: 11px; color: #888; text-align: center; padding: 6px 0; font-weight: 500; }
/* Day cells are tinted by data-state so the whole square communicates
   availability at a glance (was: tiny colour dot next to the day
   number). Hover darkens via filter without shifting the hue. */
.tiq-w-day { height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 14px; font-weight: 500; color: #1a1a1a; user-select: none; transition: filter 0.12s ease; }
.tiq-w-day-empty { cursor: default; }
.tiq-w-day[data-state="past"]    { color: #ccc; cursor: default; font-weight: 400; }
.tiq-w-day[data-state="none"]    { background: transparent; color: #1a1a1a; font-weight: 400; }
.tiq-w-day[data-state="free"]    { background: #EAF3DE; color: #3B6D11; }
.tiq-w-day[data-state="partial"] { background: #FAEEDA; color: #854F0B; }
.tiq-w-day[data-state="full"]    { background: #FCEBEB; color: #A32D2D; }
.tiq-w-day[data-state="preferred"] { background: var(--tiq-primary-tint, #E6F1FB); color: var(--tiq-primary, #185FA5); }
.tiq-w-day[data-date]            { cursor: pointer; }
.tiq-w-day[data-date]:hover      { filter: brightness(0.92); }
.tiq-w-day-selected              { background: var(--tiq-primary, #185FA5) !important; color: #fff !important; font-weight: 700; }
.tiq-w-day-selected:hover        { filter: brightness(0.93); }

/* Legend swatches — tiny colour squares instead of the old dots so
   the legend mirrors the filled-cell treatment above. */
.tiq-w-swatch { display: inline-block; width: 11px; height: 11px; border-radius: 2px; vertical-align: middle; margin-right: 5px; }
.tiq-w-sw-green { background: #EAF3DE; border: 0.5px solid #639922; }
.tiq-w-sw-orange { background: #FAEEDA; border: 0.5px solid #EF9F27; }
.tiq-w-sw-red { background: #FCEBEB; border: 0.5px solid #E24B4A; }
.tiq-w-sw-blue { background: var(--tiq-primary-tint, #E6F1FB); border: 0.5px solid var(--tiq-primary, #185FA5); }

.tiq-w-legend { display: flex; gap: 16px; padding: 12px 22px; font-size: 12px; color: #888; }

/* Two-pane slider so the session list slides in from the right
   instead of pushing the calendar out of the way. Outer clips
   horizontal overflow; track is 200% wide with two equal panes
   side-by-side; data-view drives the translateX. */
.tiq-w-slider { overflow: hidden; position: relative; }
.tiq-w-slider-track { display: flex; width: 200%; transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1); }
.tiq-w-slider[data-view="sessions"] .tiq-w-slider-track { transform: translateX(-50%); }
.tiq-w-pane { flex: 0 0 50%; min-width: 0; }

.tiq-w-slide-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; border-bottom: 0.5px solid #e0ddd6; gap: 14px; }
.tiq-w-slide-back { background: none; border: none; padding: 6px 0; font-size: 14px; color: #185FA5; cursor: pointer; font-family: inherit; }
.tiq-w-slide-back:hover { text-decoration: underline; }
.tiq-w-slide-date { font-size: 14px; font-weight: 600; color: #1a1a1a; }

/* Preferred-date request form (shown when a cursist clicks a day on
   a course with allow_preferred_date_request=true that has no open
   session). Slides into the same sessions pane. */
.tiq-w-pref-intro { padding: 14px 16px; font-size: 14px; line-height: 1.5; background: var(--tiq-primary-tint, #E6F1FB); color: var(--tiq-primary, #185FA5); margin: 14px 18px 0; border-radius: 10px; }
.tiq-w-pref-form { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.tiq-w-pref-row { display: flex; flex-direction: column; gap: 5px; }
.tiq-w-pref-row label { font-size: 12px; color: #888; font-weight: 500; }
.tiq-w-pref-row input, .tiq-w-pref-row textarea { width: 100%; padding: 11px 13px; font-size: 15px; border: 0.5px solid #e0ddd6; border-radius: 9px; font-family: inherit; box-sizing: border-box; }
.tiq-w-pref-row input:focus, .tiq-w-pref-row textarea:focus { outline: none !important; border-color: var(--tiq-primary, #185FA5) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--tiq-primary, #185FA5) 22%, transparent) !important; }
.tiq-w-pref-submit { margin-top: 8px; padding: 13px 18px; font-size: 15px; font-weight: 600; background: var(--tiq-primary, #185FA5); color: #fff; border: none; border-radius: 9px; cursor: pointer; font-family: inherit; }
.tiq-w-pref-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.tiq-w-pref-err { font-size: 13px; color: #A32D2D; background: #FCEBEB; padding: 10px 12px; border-radius: 8px; }
.tiq-w-pref-success { padding: 32px 24px; text-align: center; }
.tiq-w-pref-success-icon { width: 56px; height: 56px; border-radius: 50%; background: #EAF3DE; color: #3B6D11; font-size: 28px; font-weight: 700; line-height: 56px; margin: 0 auto 14px; }
.tiq-w-pref-success-title { font-size: 18px; font-weight: 600; color: #1a1a1a; margin-bottom: 6px; }
.tiq-w-pref-success-msg { font-size: 14px; color: #5e5e5e; line-height: 1.5; max-width: 360px; margin: 0 auto; }

/* ─── Full-width course grid (shortcode [trainiq_cursussen]) ─────────
   Mounted on `.trainiq-booking-widget--full` containers. Bypasses the
   default .tiq-w card frame so the grid bleeds page-width. Card clicks
   open a body-level modal hosting the existing per-course widget flow. */
.trainiq-booking-widget--full { display: block; width: 100%; max-width: none; }
.trainiq-booking-widget--full .tiq-w-grid-wrap { font-size: 15px; line-height: 1.5; color: #1a1a1a; }
.tiq-w-grid-wrap { padding: 0; }
.tiq-w-grid-toolbar { display: flex; align-items: center; gap: 14px; padding: 4px 0 18px; flex-wrap: wrap; }
.tiq-w-grid-search { flex: 1; min-width: 220px; padding: 11px 14px; font-size: 15px; border: 0.5px solid #e0ddd6; border-radius: 9px; font-family: inherit; box-sizing: border-box; background: #fff; }
.tiq-w-grid-search:focus { outline: none; border-color: var(--tiq-primary, #185FA5); box-shadow: 0 0 0 3px color-mix(in srgb, var(--tiq-primary, #185FA5) 22%, transparent); }
.tiq-w-grid-filter-chip { padding: 7px 13px; background: var(--tiq-primary-tint, #E6F1FB); color: var(--tiq-primary, #185FA5); border-radius: 8px; font-size: 13px; }
.tiq-w-grid-empty { padding: 60px 20px; text-align: center; color: #888; font-size: 15px; }

.tiq-w-grid-cat { margin: 28px 0; }
.tiq-w-grid-cat-title { font-size: 20px; font-weight: 700; color: #1a1a1a; margin: 0 0 14px; padding: 0; line-height: 1.3; display: flex; align-items: center; gap: 10px; }
/* Doubled-class beats the .trainiq-booking-widget defensive span/div
   color reset at the top of this file. Without this prefix the white
   text gets pulled back to #1a1a1a. */
.trainiq-booking-widget.trainiq-booking-widget .tiq-w-grid-cat-badge { display: inline-block; padding: 3px 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: #fff; background: var(--tiq-primary, #185FA5); border-radius: 12px; }
/* Course grid: max 3 cards per row on desktop (matches the 9093 homepage),
   2 on tablet, 1 on mobile. Flex layout (not grid) so 1 or 2 cards in a row
   stay at their natural width and center within the row instead of
   stretching to fill — important for single-course-pinned widgets
   ([trainiq_cursussen cursus="..."]) where we don't want the card blown up
   to full container width. */
.tiq-w-grid-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}
.tiq-w-grid-cards > * {
    flex: 0 1 calc((100% - 32px) / 3);
    max-width: calc((100% - 32px) / 3);
    min-width: 0;
}
@media (max-width: 900px) {
    .tiq-w-grid-cards > * {
        flex-basis: calc((100% - 16px) / 2);
        max-width: calc((100% - 16px) / 2);
    }
}
@media (max-width: 600px) {
    .tiq-w-grid-cards > * {
        flex-basis: 100%;
        max-width: 100%;
    }
}
/* Combi cards — subtly tinted background + primary-color top accent so
   they read as "different from a regular course" at a glance. */
.trainiq-booking-widget.trainiq-booking-widget .tiq-w-grid-card--combi,
.trainiq-booking-widget.trainiq-booking-widget .tiq-w-grid-card--combi:hover,
.trainiq-booking-widget.trainiq-booking-widget .tiq-w-grid-card--combi:focus { background: linear-gradient(180deg, color-mix(in srgb, var(--tiq-primary, #185FA5) 5%, #fff) 0%, #fff 80%); }
.tiq-w-grid-card--combi { position: relative; border-top: 3px solid var(--tiq-primary, #185FA5) !important; padding-top: 40px !important; }
/* Badge sits absolute top-left so the price (right side of card-top
   flex row) has its own column with no overlap. Wider top padding on
   the card pushes the first content row clear of the badge. */
.tiq-w-grid-card-combi-badge { position: absolute; top: 12px; left: 18px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--tiq-primary, #185FA5); background: color-mix(in srgb, var(--tiq-primary, #185FA5) 12%, #fff); padding: 3px 9px; border-radius: 10px; }
.tiq-w-grid-card-savings { font-size: 13px; font-weight: 600; color: #3B6D11; }

/* Doubled-class prefix beats WordPress theme rules like
   `button:hover { background: ...; color: ... }` that otherwise turn
   the whole card into a solid dark-blue block on hover. Background +
   color are pinned on both states; only border-color, box-shadow and
   transform animate. */
.trainiq-booking-widget.trainiq-booking-widget .tiq-w-grid-card,
.trainiq-booking-widget.trainiq-booking-widget .tiq-w-grid-card:hover,
.trainiq-booking-widget.trainiq-booking-widget .tiq-w-grid-card:focus,
.trainiq-booking-widget.trainiq-booking-widget .tiq-w-grid-card:active { background: #fff; color: #1a1a1a; }
.trainiq-booking-widget.trainiq-booking-widget .tiq-w-grid-card { display: flex; flex-direction: column; text-align: left; border: 0.5px solid #e0ddd6; border-radius: 14px; padding: 20px 20px 18px; cursor: pointer; font-family: inherit; font-size: inherit; transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease; gap: 10px; box-shadow: none; min-height: 380px; }
.trainiq-booking-widget.trainiq-booking-widget .tiq-w-grid-card:hover { border-color: var(--tiq-primary, #185FA5); box-shadow: 0 6px 18px rgba(15, 28, 46, 0.07); transform: translateY(-1px); }
.trainiq-booking-widget.trainiq-booking-widget .tiq-w-grid-card:focus-visible { outline: 2px solid var(--tiq-primary, #185FA5); outline-offset: 2px; }
.tiq-w-grid-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.tiq-w-grid-card-name { font-size: 18px; font-weight: 600; color: #1a1a1a; line-height: 1.35; }
.tiq-w-grid-card-price { font-size: 17px; font-weight: 700; color: var(--tiq-primary, #185FA5); white-space: nowrap; }
.tiq-w-grid-card-price--request { color: #3B6D11; font-weight: 600; font-size: 14px; }
.tiq-w-grid-card-meta { font-size: 13px; color: #888; }
.tiq-w-grid-card-sessions-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; color: #888; margin-top: 4px; }
.tiq-w-grid-card-sessions { display: flex; flex-direction: column; gap: 5px; }
.tiq-w-grid-session { display: flex; align-items: center; gap: 6px; font-size: 14px; color: #1a1a1a; }
.tiq-w-grid-session-date { font-weight: 600; }
.tiq-w-grid-session-city { color: #5e5e5e; flex: 1; }
.tiq-w-grid-avail { font-size: 12px; padding: 2px 8px; border-radius: 10px; font-weight: 600; white-space: nowrap; }
.tiq-w-grid-avail--ok { background: #EAF3DE; color: #3B6D11; }
.tiq-w-grid-avail--few { background: #FAEEDA; color: #854F0B; }
.tiq-w-grid-card-none { font-size: 14px; color: #888; font-style: italic; }
.tiq-w-grid-card-more { font-size: 12px; font-weight: 600; color: var(--tiq-primary, #185FA5); margin-top: 4px; font-style: italic; }
/* Doubled-class prefix to beat the .trainiq-booking-widget defensive
   reset at the top of this file (which forces div text to #1a1a1a).
   margin-top: auto pushes the CTA to the bottom of the (stretched)
   card so all CTAs align across the grid row regardless of how many
   session previews each card carries. */
.trainiq-booking-widget.trainiq-booking-widget .tiq-w-grid-card-cta { display: block; margin-top: auto; padding: 13px 20px; font-size: 16px; font-weight: 600; color: #fff; background: var(--tiq-primary, #185FA5); border-radius: 10px; text-align: center; transition: filter 0.15s ease; }
.trainiq-booking-widget.trainiq-booking-widget .tiq-w-grid-card:hover .tiq-w-grid-card-cta { filter: brightness(0.92); }

/* Body-level modal hosting a fresh per-course widget instance. */
/* z-index 9500 sits below the existing tiq-w-modal (checkout, z=10000)
   and tiq-dp-popover (datepicker, z=10100) so nested flows layer on
   top correctly. Stays above all page chrome. */
.tiq-w-grid-modal { position: fixed; inset: 0; background: rgba(15, 28, 46, 0.55); z-index: 9500; display: flex; align-items: center; justify-content: center; padding: 24px; box-sizing: border-box; animation: tiqGridModalIn 0.18s ease-out; }
@keyframes tiqGridModalIn { from { opacity: 0; } to { opacity: 1; } }
.tiq-w-grid-modal-card { position: relative; background: #fff; border-radius: 16px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35); width: 100%; max-width: 720px; max-height: calc(100vh - 48px); overflow-y: auto; }
.tiq-w-grid-modal-close { position: absolute; top: 10px; right: 12px; width: 36px; height: 36px; border-radius: 50%; border: none; background: rgba(15, 28, 46, 0.06); color: #1a1a1a; font-size: 24px; line-height: 1; cursor: pointer; z-index: 2; display: flex; align-items: center; justify-content: center; font-family: inherit; padding: 0; }
.tiq-w-grid-modal-close:hover { background: rgba(15, 28, 46, 0.12); }
.tiq-w-grid-modal-host { width: 100%; }
/* padding-top clears the absolutely-positioned .tiq-w-grid-modal-close
   (36px tall at top:10px, bottom at y=46). 40px on .tiq-w pushes the
   header's own 20px top padding to y=60, leaving a 14px gap so the
   title can't run into the × button. */
.tiq-w-grid-modal-host .tiq-w { border: none; border-radius: 16px; min-height: 0; padding-top: 40px; }

@media (max-width: 640px) {
    .tiq-w-grid-cards { grid-template-columns: 1fr; }
    .tiq-w-grid-modal { padding: 0; align-items: stretch; }
    .tiq-w-grid-modal-card { max-width: none; max-height: 100vh; border-radius: 0; }
}

/* Every rendered .tiq-w slides/fades in so step transitions (catalog
   → courseDetail → afterAdd → checkout) feel connected instead of
   abrupt DOM swaps. 220ms matches the calendar slider timing above. */
.tiq-w { animation: tiq-w-slidein 0.22s cubic-bezier(0.4, 0, 0.2, 1); }
@keyframes tiq-w-slidein {
    from { transform: translateX(16px); opacity: 0; }
    to   { transform: translateX(0); opacity: 1; }
}

/* Persistent cart chip shown on every browse screen when the cart
   has items. Click = jump to afterAdd review. The back-link row now
   flexes so the chip sits on the right. */
.tiq-w-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tiq-w-back-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.tiq-w-cart-chip {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 13px; border-radius: 999px;
    background: var(--tiq-primary, #185FA5); color: #fff; border: none; cursor: pointer; font-family: inherit;
    font-size: 13px; font-weight: 600; line-height: 1;
    transition: filter 0.12s ease;
}
.tiq-w-cart-chip:hover { filter: brightness(0.92); }
.tiq-w-cart-chip-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 7px; border-radius: 10px;
    background: #fff; color: #185FA5; font-size: 12px; font-weight: 700;
}

/* Same cap as .tiq-w-list — the calendar's per-day session slider can
 * pile up if a date has many concurrent sessions across locations. */
.tiq-w-sessions { padding: 14px 18px 18px; max-height: 480px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #c9c4b8 transparent; }
.tiq-w-sessions::-webkit-scrollbar { width: 6px; }
.tiq-w-sessions::-webkit-scrollbar-thumb { background: #c9c4b8; border-radius: 3px; }
.tiq-w-sessions::-webkit-scrollbar-track { background: transparent; }
.tiq-w-sessions-title { font-size: 14px; font-weight: 600; margin-bottom: 10px; padding-top: 10px; border-top: 0.5px solid #e0ddd6; }

.tiq-w-session { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 0.5px solid #e0ddd6; border-radius: 10px; margin-bottom: 8px; font-size: 14px; }
.tiq-w-session-time { font-weight: 600; white-space: nowrap; }
.tiq-w-session-loc { flex: 1; color: #888; }

/* Multi-day sessions: badge + collapsed per-day schedule. */
.tiq-w-multiday-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: #E6F1FB; color: #185FA5; vertical-align: middle; }

/* Delivery-mode badge — flags the online component in the widget funnel so a
   cursist sees it before booking, not only afterwards in the portal. */
.tiq-w-delivery { display: inline-block; font-size: 10px; font-weight: 600; line-height: 1.5; padding: 2px 7px; border-radius: 999px; vertical-align: middle; white-space: nowrap; letter-spacing: 0.2px; }
.tiq-w-delivery--elearning { background: #E8F1FB; color: #185FA5; border: 0.5px solid #B5D4F4; }
.tiq-w-delivery--hybrid { background: #FBF3E3; color: #8A5A12; border: 0.5px solid #EBD5A8; }
.tiq-w-delivery-note { display: flex; gap: 10px; align-items: flex-start; margin: 14px 18px 0; padding: 12px 14px; background: #FBF3E3; border: 0.5px solid #EBD5A8; border-radius: 10px; font-size: 13px; line-height: 1.5; color: #6B4A10; }
.tiq-w-delivery-note strong { display: block; margin-bottom: 2px; color: #8A5A12; }
.tiq-w-days { margin-top: 6px; font-size: 13px; }
.tiq-w-days > summary { cursor: pointer; color: #185FA5; font-weight: 500; list-style: none; }
.tiq-w-days > summary::-webkit-details-marker { display: none; }
.tiq-w-days > summary::before { content: '▸ '; }
.tiq-w-days[open] > summary::before { content: '▾ '; }
.tiq-w-dayrow { color: #5F5E5A; padding: 3px 0 0 14px; }
.tiq-w-session-slots { font-size: 12px; color: #888; white-space: nowrap; }
.tiq-w-book-btn { padding: 9px 18px; font-size: 14px; font-weight: 600; color: #fff; background: var(--tiq-primary, #185FA5); border: none; border-radius: 9px; cursor: pointer; white-space: nowrap; font-family: inherit; }
.tiq-w-book-btn:hover { background: var(--tiq-primary-darker, #0f4a80); }
.tiq-w-add-combi-btn { margin-top: 4px; padding: 11px 14px; font-size: 14px; font-weight: 600; color: #fff; background: var(--tiq-primary, #185FA5); border: none; border-radius: 9px; cursor: pointer; font-family: inherit; }
.tiq-w-add-combi-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* After-add prompt — shown once a session is added to the cart */
.tiq-w-after-add { padding: 32px 26px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.tiq-w-after-add-icon { width: 56px; height: 56px; border-radius: 50%; background: #EAF3DE; color: #3B6D11; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 700; }
.tiq-w-after-add-title { font-size: 17px; font-weight: 600; color: #1a1a1a; margin-top: 6px; }
.tiq-w-after-add-sub { font-size: 14px; color: #888; margin-bottom: 12px; }
.tiq-w-after-add-btns { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 360px; }

/* Cart panel — appears under the calendar / catalog once items are in the cart */
.tiq-w-cart-panel { padding: 16px 18px; border-top: 0.5px solid #e0ddd6; background: #FCFBF7; display: flex; flex-direction: column; gap: 12px; }
.tiq-w-cart-title { font-size: 12px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.5px; }
.tiq-w-cart-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: #fff; border: 0.5px solid #e0ddd6; border-radius: 10px; }
.tiq-w-cart-info { flex: 1; min-width: 0; }
.tiq-w-cart-name { font-size: 14px; font-weight: 600; color: #1a1a1a; line-height: 1.3; }
.tiq-w-cart-meta { font-size: 12px; color: #888; margin-top: 3px; }
.tiq-w-cart-price { font-size: 14px; font-weight: 600; color: #185FA5; white-space: nowrap; }
.tiq-w-cart-rm { width: 28px; height: 28px; border-radius: 50%; background: transparent; color: #bbb; border: 0.5px solid #e0ddd6; cursor: pointer; font-size: 16px; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0; font-family: inherit; flex-shrink: 0; }
.tiq-w-cart-rm:hover { background: #FCEBEB; color: #A32D2D; border-color: #A32D2D; }
.tiq-w-cart-total-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 0; font-size: 16px; font-weight: 600; color: #1a1a1a; border-top: 0.5px solid #e0ddd6; margin-top: 4px; }
.tiq-w-checkout-btn { width: 100%; padding: 14px; font-size: 15px; font-weight: 600; color: #fff; background: var(--tiq-primary, #185FA5); border: none; border-radius: 10px; cursor: pointer; font-family: inherit; margin-top: 4px; }
.tiq-w-checkout-btn:hover { background: var(--tiq-primary-darker, #0f4a80); }
.tiq-w-combi-badge { display: inline-block; font-size: 11px; font-weight: 600; color: #854F0B; background: #FAEEDA; padding: 2px 9px; border-radius: 9999px; margin-left: 6px; vertical-align: middle; }

/* Checkout summary — the cart readout above the contact form */
.tiq-w-summary { padding: 16px 22px; background: var(--tiq-primary-tint, #E6F1FB); font-size: 14px; color: var(--tiq-primary, #185FA5); border-bottom: 0.5px solid #e0ddd6; display: flex; flex-direction: column; gap: 8px; }
.tiq-w-sum-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; font-size: 14px; line-height: 1.4; }
.tiq-w-sum-row > div:first-child { flex: 1; min-width: 0; }
.tiq-w-sum-row > div:last-child { font-weight: 600; white-space: nowrap; }
.tiq-w-sum-total { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding-top: 10px; margin-top: 6px; border-top: 0.5px solid rgba(24, 95, 165, 0.25); font-size: 16px; }

/* Checkout form */
.tiq-w-form { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.tiq-w-form-row label { display: block; font-size: 13px; color: #888; margin-bottom: 6px; font-weight: 500; }
.tiq-w-form-row input,
.tiq-w-form-row textarea { width: 100%; padding: 12px 14px; font-size: 16px; border: 0.5px solid #e0ddd6; border-radius: 9px; font-family: inherit; box-sizing: border-box; background: #fff; }
.tiq-w-form-row textarea { resize: vertical; min-height: 72px; line-height: 1.45; }
.tiq-w-form-row input:focus,
.tiq-w-form-row textarea:focus { outline: none !important; border-color: var(--tiq-primary, #185FA5) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--tiq-primary, #185FA5) 22%, transparent) !important; }
.tiq-w-form-row-split { display: grid; grid-template-columns: 2fr 1fr; gap: 12px; }
.tiq-w-form-row-split label { display: block; font-size: 13px; color: #888; margin-bottom: 6px; font-weight: 500; }
.tiq-w-form-row-split input { width: 100%; padding: 12px 14px; font-size: 16px; border: 0.5px solid #e0ddd6; border-radius: 9px; font-family: inherit; box-sizing: border-box; }
.tiq-w-form-row-split input:focus { outline: none !important; border-color: var(--tiq-primary, #185FA5) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--tiq-primary, #185FA5) 22%, transparent) !important; }
.tiq-w-section-label { font-size: 12px; font-weight: 600; color: #888; text-transform: uppercase; letter-spacing: 0.5px; margin: 10px 0 -4px; }
.tiq-w-submit { width: 100%; padding: 15px; font-size: 16px; font-weight: 600; color: #fff; background: var(--tiq-primary, #185FA5); border: none; border-radius: 10px; cursor: pointer; font-family: inherit; }
.tiq-w-submit:hover { background: var(--tiq-primary-darker, #0f4a80); }
.tiq-w-back { width: 100%; padding: 12px; font-size: 14px; color: #888; background: transparent; border: 0.5px solid #e0ddd6; border-radius: 10px; cursor: pointer; font-family: inherit; }
.tiq-w-back-link { font-size: 15px; font-weight: 500; color: #185FA5; cursor: pointer; padding: 4px 0; }
.tiq-w-back-link:hover { text-decoration: underline; }

/* Done */
.tiq-w-done { padding: 48px 22px; text-align: center; }
.tiq-w-done-icon { width: 64px; height: 64px; border-radius: 50%; background: #EAF3DE; color: #3B6D11; display: inline-flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 14px; }
.tiq-w-done-title { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.tiq-w-done-text { font-size: 14px; color: #888; margin-bottom: 18px; }
.tiq-w-pay-btn { display: inline-block; padding: 15px 36px; font-size: 16px; font-weight: 600; color: #fff; background: var(--tiq-primary, #185FA5); border-radius: 10px; text-decoration: none; }
.tiq-w-pay-btn:hover { background: var(--tiq-primary-darker, #0f4a80); }
.tiq-w-done-ref { font-size: 12px; color: #bbb; margin-top: 14px; font-family: monospace; }

/* Custom datepicker (tiq-dp-*) — matches the admin pattern */
.tiq-datepicker { position: relative; }
.tiq-dp-display { width: 100%; padding: 12px 14px; font-size: 15px; border: 0.5px solid #e0ddd6; border-radius: 9px; font-family: inherit; box-sizing: border-box; background: #fff; cursor: pointer; color: #1a1a1a; }
.tiq-dp-display:focus { outline: none !important; border-color: var(--tiq-primary, #185FA5) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--tiq-primary, #185FA5) 22%, transparent) !important; }
.tiq-dp-popover { width: 280px; padding: 16px; background: #fff; border: 0.5px solid #e0ddd6; border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 28, 46, 0.18); z-index: 10100; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; }
.tiq-dp-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.tiq-dp-header button { background: none; border: none; cursor: pointer; font-size: 17px; color: #888; padding: 5px 10px; font-family: inherit; line-height: 1; }
.tiq-dp-header button:hover { color: #1a1a1a; }
.tiq-dp-month-label { font-size: 14px; font-weight: 600; cursor: pointer; padding: 4px 8px; border-radius: 6px; color: #1a1a1a; }
.tiq-dp-month-label:hover { background: #F1EFE8; }
.tiq-dp-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; margin-bottom: 5px; }
.tiq-dp-weekday { font-size: 11px; color: #888; padding: 5px 0; font-weight: 500; }
.tiq-dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.tiq-dp-day { height: 34px; display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 13px; cursor: pointer; color: #1a1a1a; user-select: none; }
.tiq-dp-day:hover { background: #F1EFE8; }
.tiq-dp-day.selected { background: var(--tiq-primary, #185FA5); color: #fff; font-weight: 700; }
.tiq-dp-day.today { font-weight: 700; color: #185FA5; }
.tiq-dp-day.today.selected { color: #fff; }
.tiq-dp-day.empty { cursor: default; }
.tiq-dp-day.empty:hover { background: transparent; }
.tiq-dp-years { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; max-height: 240px; overflow-y: auto; }
.tiq-dp-year { font-size: 13px; padding: 9px 0; text-align: center; border-radius: 6px; cursor: pointer; color: #1a1a1a; }
.tiq-dp-year:hover { background: #F1EFE8; }
.tiq-dp-year.selected { background: var(--tiq-primary, #185FA5); color: #fff; font-weight: 700; }
.tiq-dp-months { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.tiq-dp-month { font-size: 13px; padding: 11px 0; text-align: center; border-radius: 6px; cursor: pointer; color: #1a1a1a; text-transform: capitalize; }
.tiq-dp-month:hover { background: #F1EFE8; }
.tiq-dp-month.selected { background: var(--tiq-primary, #185FA5); color: #fff; font-weight: 700; }

/* Checkout modal — overlays the page when the visitor is filling in
   their details. The cart panel stays visible behind it. */
.tiq-w-modal { position: fixed; inset: 0; z-index: 10000; background: rgba(15, 28, 46, 0.55); display: flex; align-items: center; justify-content: center; padding: 22px; overflow-y: auto; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; font-size: 16px; }
.tiq-w-modal-card { background: #fff; border-radius: 16px; width: 100%; max-width: 640px; max-height: calc(100vh - 44px); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); font-size: 16px; }
.tiq-w-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 0.5px solid #e0ddd6; flex-shrink: 0; }
.tiq-w-modal-title { font-size: 20px; font-weight: 600; color: #1a1a1a; }
.tiq-w-modal-close { width: 36px; height: 36px; border-radius: 50%; background: transparent; color: #888; border: 0.5px solid #e0ddd6; cursor: pointer; font-size: 20px; line-height: 1; display: flex; align-items: center; justify-content: center; padding: 0; font-family: inherit; }
.tiq-w-modal-close:hover { background: #f0ede8; color: #1a1a1a; }
.tiq-w-modal-body { overflow-y: auto; flex: 1; }
.tiq-w-modal-body .tiq-w-summary { border-bottom: 0.5px solid #e0ddd6; }

/* ─── List view (default course-detail layout) ──────────────────────
   Replaces the calendar-first UX. Sessions grouped by date with a
   sticky header per day, single "Toevoegen" button per row. */
/* Cap the session list height so a course with 30+ upcoming dates
 * doesn't push the "Andere datum" / "Als bedrijf aanvragen" CTAs
 * off-screen on a tall page. The list itself scrolls, the CTAs stay
 * anchored below. 480px = roughly 6 date-groups visible at once. */
.tiq-w-list { padding: 10px 18px 18px; display: flex; flex-direction: column; gap: 16px; max-height: 480px; overflow-y: auto; }
/* Slim, theme-neutral scrollbar (Firefox + webkit). Without this WP
 * themes paint native scrollbars in their own accent. */
.tiq-w-list { scrollbar-width: thin; scrollbar-color: #c9c4b8 transparent; }
.tiq-w-list::-webkit-scrollbar { width: 6px; }
.tiq-w-list::-webkit-scrollbar-thumb { background: #c9c4b8; border-radius: 3px; }
.tiq-w-list::-webkit-scrollbar-track { background: transparent; }
.tiq-w-list-day { display: flex; flex-direction: column; gap: 8px; }
.tiq-w-list-day-head { font-size: 13px; font-weight: 600; color: #5f5e5a; padding: 5px 5px 3px; text-transform: capitalize; letter-spacing: 0.2px; }
.tiq-w-list-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: #fff; border: 0.5px solid #e0ddd6; border-radius: 10px; }
.tiq-w-list-row-main { flex: 1; min-width: 0; }
.tiq-w-list-row-time { font-size: 16px; font-weight: 600; color: #1a1a1a; }
.tiq-w-list-row-meta { font-size: 13px; color: #5f5e5a; margin-top: 4px; }
.tiq-w-list-row-btn { padding: 11px 18px; font-size: 14px; font-weight: 600; color: #fff; background: var(--tiq-primary, #185FA5); border: none; border-radius: 9px; cursor: pointer; font-family: inherit; flex-shrink: 0; }
.tiq-w-list-row-btn:hover { background: #134f8a; }
.tiq-w-list-row-btn-disabled { background: #EAF3DE; color: #3B6D11; cursor: default; }
.tiq-w-list-row-btn-disabled:hover { background: #EAF3DE; }

/* Empty state when no upcoming sessions exist for the course. */
.tiq-w-empty { padding: 48px 26px; text-align: center; }
.tiq-w-empty-title { font-size: 16px; font-weight: 600; color: #1a1a1a; margin-bottom: 8px; }
.tiq-w-empty-sub { font-size: 14px; color: #888; }

/* "Andere datum aanvragen" CTA — shown at the bottom of the list when
   the course has allow_preferred_date_request enabled. */
.tiq-w-list-altdate { padding: 18px; margin: 0 18px 18px; background: #f9f7f0; border: 0.5px dashed #e0ddd6; border-radius: 10px; text-align: center; }
.tiq-w-list-altdate-q { font-size: 14px; font-weight: 500; color: #1a1a1a; margin-bottom: 12px; }
.tiq-w-list-altdate-btn { padding: 12px 22px; font-size: 14px; font-weight: 600; color: #185FA5; background: #fff; border: 0.5px solid #185FA5; border-radius: 9px; cursor: pointer; font-family: inherit; }
.tiq-w-list-altdate-btn:hover { background: #E6F1FB; }
.tiq-w-list-altdate-hint { font-size: 12px; color: #888; margin-top: 10px; }

/* "Incompany aanvragen" CTA — onafhankelijk van price_on_request, voor
   bedrijven die een sessie op eigen locatie willen. Visueel net iets
   nadrukkelijker dan de altdate-CTA omdat het een new-customer entry
   point is. */
.tiq-w-list-incompany { padding: 18px; margin: 0 18px 18px; background: #E6F1FB; border: 0.5px dashed #185FA5; border-radius: 10px; text-align: center; }
.tiq-w-list-incompany-q { font-size: 14px; font-weight: 500; color: #0f1c2e; margin-bottom: 12px; }
.tiq-w-list-incompany-btn { padding: 12px 22px; font-size: 14px; font-weight: 600; color: #fff; background: var(--tiq-primary, #185FA5); border: none; border-radius: 9px; cursor: pointer; font-family: inherit; }
.tiq-w-list-incompany-btn:hover { background: #144a82; }
.tiq-w-list-incompany-hint { font-size: 12px; color: #5f5e5a; margin-top: 10px; }

/* Custom dropdown — self-contained, gebruikt door de combi-picker (en
   uitbreidbaar naar andere widget-views). Position absolute binnen de
   eigen card; widget-cards hebben geen overflow:hidden op formulier-
   secties dus de pop knipt niet. z-index hoog genoeg om boven andere
   widget-elementen (bv. cart-chip) te zweven. */
.tiq-w-sel { position: relative; display: block; width: 100%; }
.tiq-w-sel-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 9px 11px;
    font: inherit;
    font-size: 13px;
    line-height: 1.3;
    color: #1a1a1a;
    background: #fff;
    border: 0.5px solid #e0ddd6;
    border-radius: 8px;
    cursor: pointer;
    text-align: left;
}
.tiq-w-sel-btn:hover { border-color: #c0bdb4; }
.tiq-w-sel[data-open="true"] .tiq-w-sel-btn {
    border-color: #185FA5;
    box-shadow: 0 0 0 3px rgba(24, 95, 165, 0.12);
}
.tiq-w-sel-label {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
}
.tiq-w-sel:not([data-value]) .tiq-w-sel-label,
.tiq-w-sel[data-value=""] .tiq-w-sel-label { color: #888; }
.tiq-w-sel-caret {
    font-size: 10px;
    color: #888;
    margin-left: 8px;
    transition: transform 0.15s ease;
}
.tiq-w-sel[data-open="true"] .tiq-w-sel-caret { transform: rotate(180deg); }
.tiq-w-sel-pop {
    /* Geportaald naar <body> bij open + position: fixed zodat de
       overflow:hidden van .tiq-w 'm niet kan knippen. JS zet top/left
       via getBoundingClientRect. z-index hoog genoeg om boven andere
       widget-content + de meeste host-site overlays te zweven. */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2147483000;
    max-height: 280px;
    overflow-y: auto;
    background: #fff;
    border: 0.5px solid #e0ddd6;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(15, 28, 46, 0.12), 0 2px 6px rgba(15, 28, 46, 0.05);
    padding: 4px;
    box-sizing: border-box;
}
.tiq-w-sel-pop[hidden] { display: none; }
/* `!important` is load-bearing here, not lazy: .tiq-w-sel-pop is portaled
   to <body> so it escapes the .trainiq-booking-widget scope where our
   defensive theme overrides live. Host themes routinely paint
   `button:hover { color:#fff }`, which would render dropdown options
   invisible-on-hover without these locks. */
.tiq-w-sel-opt {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    font: inherit;
    font-size: 13px;
    line-height: 1.3;
    color: #1a1a1a !important;
    background: transparent !important;
    border: none !important;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none !important;
    text-shadow: none !important;
    box-shadow: none !important;
}
.tiq-w-sel-opt:hover:not(:disabled),
.tiq-w-sel-opt:focus:not(:disabled),
.tiq-w-sel-opt:focus-visible:not(:disabled) {
    background: #F1EFE8 !important;
    color: #1a1a1a !important;
    outline: none !important;
}
.tiq-w-sel-opt:active:not(:disabled) {
    background: #E6E3D8 !important;
    color: #1a1a1a !important;
}
.tiq-w-sel-opt:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    color: #888 !important;
}
.tiq-w-sel-opt--selected,
.tiq-w-sel-opt--selected:hover,
.tiq-w-sel-opt--selected:focus {
    background: #E6F1FB !important;
    color: #185FA5 !important;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 500px) {
    .tiq-w { border-radius: 0; border-left: none; border-right: none; }
    .tiq-w-session { flex-wrap: wrap; }
    .tiq-w-list-row { flex-direction: column; align-items: stretch; gap: 10px; }
    .tiq-w-list-row-btn { width: 100%; }
    .tiq-w-modal { padding: 0; }
    .tiq-w-modal-card { max-height: 100vh; border-radius: 0; height: 100%; }
}

/* ──────────────────────────────────────────────────────────────────────
 * WP-theme defensive overrides
 *
 * Many WordPress themes inject aggressive `input:focus`, `button:hover`
 * and ::selection rules — frequently with !important — that paint the
 * widget's focus ring + hover states in the theme's own brand colour
 * instead of the opleider's. The selectors below scope everything to
 * `.trainiq-booking-widget` (block-editor root) AND carry !important so
 * they win the cascade even against `theme button:focus !important`.
 *
 * Anything inside the widget that benefits from the brand colour should
 * route through `var(--tiq-primary, #185FA5)` — that variable is set on
 * the widget root by the WP block / Joomla module based on the opleider's
 * SiteSettings.primaryColor.
 * ────────────────────────────────────────────────────────────────────── */
.trainiq-booking-widget input:focus,
.trainiq-booking-widget input:focus-visible,
.trainiq-booking-widget select:focus,
.trainiq-booking-widget select:focus-visible,
.trainiq-booking-widget textarea:focus,
.trainiq-booking-widget textarea:focus-visible,
.trainiq-booking-widget button:focus,
.trainiq-booking-widget button:focus-visible,
.trainiq-booking-widget .tiq-dp-display:focus,
.trainiq-booking-widget .tiq-w-form-row input:focus,
.trainiq-booking-widget .tiq-w-form-row textarea:focus,
.trainiq-booking-widget .tiq-w-form-row-split input:focus,
.trainiq-booking-widget .tiq-w-pref-row input:focus,
.trainiq-booking-widget .tiq-w-pref-row textarea:focus,
.trainiq-booking-widget .tiq-w-combi-sel:focus,
.trainiq-booking-widget .tiq-w-addon-sel:focus {
    outline: none !important;
    border-color: var(--tiq-primary, #185FA5) !important;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--tiq-primary, #185FA5) 22%, transparent) !important;
}

/* Native <select> baseline — WP themes routinely paint these in their
 * own accent (filled background, custom arrow, broken padding). Force
 * a clean look that matches our other inputs. The browser arrow stays
 * native (we don't try to render a custom caret across all platforms). */
.trainiq-booking-widget select,
.trainiq-booking-widget .tiq-w-combi-sel,
.trainiq-booking-widget .tiq-w-addon-sel {
    width: 100% !important;
    padding: 11px 12px !important;
    font-size: 15px !important;
    font-family: inherit !important;
    color: #1a1a1a !important;
    background: #fff !important;
    border: 0.5px solid #e0ddd6 !important;
    border-radius: 9px !important;
    box-sizing: border-box !important;
    appearance: auto !important;
    /* WP themes sometimes injection `select { display: none }` for custom
     * dropdowns — force it back. */
    display: inline-block !important;
}

/* Force white input background across every widget input/textarea —
 * WP themes commonly paint form fields in a light-gray "form" tint
 * (Astra, Kadence, GeneratePress all do this) that clashes with the
 * widget card. !important is the only way to win against theme rules
 * that also use !important on `input { background: … }`. */
.trainiq-booking-widget input[type="text"],
.trainiq-booking-widget input[type="email"],
.trainiq-booking-widget input[type="tel"],
.trainiq-booking-widget input[type="number"],
.trainiq-booking-widget input[type="search"],
.trainiq-booking-widget input[type="date"],
.trainiq-booking-widget input:not([type]),
.trainiq-booking-widget textarea,
.trainiq-booking-widget .tiq-dp-display {
    background: #fff !important;
    background-color: #fff !important;
    color: #1a1a1a !important;
    /* Some themes use box-shadow inset to fake a tinted background that
     * survives even when `background` is overridden. Cancel it. */
    box-shadow: none;
}

/* Form-row inputs as grid items default to `min-width: auto` (which
 * resolves to the content's intrinsic size). When the widget renders
 * inside a narrow sidebar / column block, a long placeholder ("jan@
 * voorbeeld.nl") + the input's intrinsic width pushes it past the
 * column's right edge. Setting min-width: 0 lets the grid item shrink
 * to the column's actual width. */
.trainiq-booking-widget .tiq-w-form-row,
.trainiq-booking-widget .tiq-w-form-row-split,
.trainiq-booking-widget .tiq-w-form-row > *,
.trainiq-booking-widget .tiq-w-form-row-split > * {
    min-width: 0;
}

/* Narrow-viewport collapse — when the embed container is under ~440px
 * (sidebar, mobile, narrow column block), every two-column split row
 * stacks. Without this the email field overflows the widget card. */
@media (max-width: 440px) {
    .trainiq-booking-widget .tiq-w-form-row-split {
        grid-template-columns: 1fr !important;
    }
}

/* Selected day / year on the date popover + selected day on the calendar
 * grid — force brand colour. WP themes sometimes target `.selected`
 * generically and clobber this. */
.trainiq-booking-widget .tiq-w-day-selected,
.trainiq-booking-widget .tiq-dp-day.selected,
.trainiq-booking-widget .tiq-dp-year.selected,
.trainiq-booking-widget .tiq-dp-month.selected {
    background: var(--tiq-primary, #185FA5) !important;
    color: #fff !important;
}

/* Primary action buttons — submit, checkout, book, pay. Hover used
 * to hardcode #0f4a80 which doesn't respect the opleider's custom
 * primary colour; switching to filter+brightness keeps the brand. */
.trainiq-booking-widget .tiq-w-submit,
.trainiq-booking-widget .tiq-w-checkout-btn,
.trainiq-booking-widget .tiq-w-book-btn,
.trainiq-booking-widget .tiq-w-pay-btn,
.trainiq-booking-widget .tiq-w-add-combi-btn,
.trainiq-booking-widget .tiq-w-pref-submit {
    background: var(--tiq-primary, #185FA5) !important;
    color: #fff !important;
}
.trainiq-booking-widget .tiq-w-submit:hover,
.trainiq-booking-widget .tiq-w-checkout-btn:hover,
.trainiq-booking-widget .tiq-w-book-btn:hover,
.trainiq-booking-widget .tiq-w-pay-btn:hover,
.trainiq-booking-widget .tiq-w-add-combi-btn:hover,
.trainiq-booking-widget .tiq-w-pref-submit:hover {
    filter: brightness(0.88) !important;
}

/* Text-selection highlight inside the widget. Themes default this to
 * their own accent; we want the brand tint. */
.trainiq-booking-widget ::selection {
    background: color-mix(in srgb, var(--tiq-primary, #185FA5) 24%, transparent);
    color: inherit;
}
