/*
 * FoodSync reserveringswidget en beheerpagina
 *
 * Eigen, kleine stylesheet: het widget draait los van de website-layout.
 * Merkkleur, radius en lettertype komen als variabelen uit shell.blade.php.
 */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --rw-ink: #1d2227;
    --rw-muted: #5f6b73;
    --rw-line: #dde2e6;
    --rw-soft: #f4f6f7;
    --rw-ok: #1f9d55;
    --rw-danger: #b42318;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

.rw-body {
    font-family: var(--rw-font, Inter, system-ui, sans-serif);
    color: var(--rw-ink);
    background: #eef1f4;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

[hidden] {
    display: none !important;
}

.rw-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.rw-backdrop {
    position: fixed;
    inset: 0;
    background: #eef1f4;
    background-size: cover;
    background-position: center;
    z-index: 0;
}

.rw-backdrop::after {
    content: none;
}

.rw-stage {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
}

.rw-card {
    width: 100%;
    max-width: 560px;
    background: #fff;
    border-radius: var(--rw-card-radius, 18px);
    border: 1px solid #dde2e6;
    box-shadow: 0 4px 16px rgba(15, 29, 38, .05);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: max-width .25s ease;
}

.rw-wide .rw-card,
.rw-card.rw-card-wide {
    max-width: 1180px;
}

/* Kop: logo midden, taal en sluiten rechts. */
.rw-top {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 16px 20px 4px;
}

.rw-logo {
    display: flex;
    justify-content: center;
    min-height: 44px;
    align-items: center;
}

.rw-logo img {
    display: block;
    max-height: 56px;
    max-width: 160px;
    object-fit: contain;
}

.rw-logo strong {
    font-size: 18px;
}

.rw-top-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
}

.rw-lang,
.rw-close {
    color: var(--rw-ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 36px;
    border-radius: 8px;
}

.rw-lang:hover,
.rw-close:hover {
    background: var(--rw-soft);
}

/* Taalkeuze als knop herkenbaar: dunne rand. */
.rw-lang {
    padding: 0 10px;
    border: 1px solid var(--rw-line);
    font-size: 14px;
}

.rw-lang:hover {
    border-color: #b9c2c9;
}

.rw-close[data-embed-only] {
    display: none;
}

.rw-embedded .rw-lang {
    display: none;
}

.rw-embedded .rw-close[data-embed-only] {
    display: inline-flex;
}

.rw-close svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

.rw-app {
    flex: 1;
}

.rw-heading {
    margin: 18px 24px 4px;
    text-align: center;
    color: var(--rw-ink);
    font-size: 19px;
    font-weight: 800;
    line-height: 1.3;
}

.rw-intro {
    margin: 4px 24px 16px;
    text-align: center;
    color: var(--rw-muted);
    font-size: 15px;
    line-height: 1.6;
    white-space: pre-line;
}

.rw-intro.is-highlighted {
    color: var(--rw-ink);
    font-weight: 600;
}

.rw-intro a {
    color: inherit;
}

.rw-editing {
    margin: 0 24px 14px;
    padding: 10px 14px;
    border-radius: var(--rw-radius);
    background: var(--rw-soft);
    font-size: 14px;
    text-align: center;
}

/* Accordeon */
.rw-accordion {
    border-top: 1px solid var(--rw-line);
}

.rw-acc {
    border-bottom: 1px solid var(--rw-line);
}

.rw-acc.is-open {
    background: var(--rw-soft);
}

.rw-acc-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    color: var(--rw-ink);
    cursor: pointer;
    text-align: left;
    min-height: 60px;
}

.rw-acc:not(.is-set) .rw-acc-head .rw-acc-value {
    color: var(--rw-muted);
    font-weight: 600;
}

.rw-acc-icon svg,
.rw-summary svg,
.rw-privacy svg,
.rw-back svg,
.rw-tile-other svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex: 0 0 auto;
}

.rw-acc-icon {
    display: inline-flex;
}

.rw-acc-value {
    flex: 1;
}

.rw-acc-chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform .2s ease;
    margin-right: 4px;
}

.rw-acc.is-open .rw-acc-chevron {
    transform: rotate(-135deg) translate(-2px, -2px);
}

.rw-acc-body {
    padding: 4px 24px 22px;
}

/* Tegels: gasten en datums */
.rw-guest-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.rw-tile {
    appearance: none;
    border: 1px solid #8f979d;
    background: var(--rw-soft);
    color: var(--rw-ink);
    border-radius: var(--rw-radius);
    min-height: 64px;
    font: inherit;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 6px;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}

.rw-tile:hover:not(:disabled) {
    border-color: var(--rw-ink);
    background: #fff;
}

.rw-tile[aria-pressed="true"],
.rw-cal-day[aria-pressed="true"],
.rw-slot[aria-pressed="true"],
/* Gekozen blijft gekozen, ook met de muis erop; anders wint de witte hover-regel. */
.rw-tile[aria-pressed="true"]:hover:not(:disabled),
.rw-cal-day[aria-pressed="true"]:hover:not(:disabled),
.rw-slot[aria-pressed="true"]:hover:not(:disabled) {
    background: var(--rw-accent);
    border-color: var(--rw-accent);
    color: var(--rw-accent-text);
}

.rw-tile:disabled {
    opacity: .35;
    cursor: not-allowed;
}

.rw-tile-more {
    font-size: 26px;
    font-weight: 300;
}

.rw-guest-more {
    margin-top: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.rw-guest-more label {
    font-weight: 600;
}

.rw-stepper {
    display: flex;
    align-items: stretch;
    border: 1px solid #8f979d;
    border-radius: var(--rw-radius);
    overflow: hidden;
    background: #fff;
}

.rw-stepper button {
    width: 48px;
    border: 0;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
}

.rw-stepper input {
    width: 64px;
    border: 0;
    border-left: 1px solid var(--rw-line);
    border-right: 1px solid var(--rw-line);
    text-align: center;
    font: inherit;
    font-size: 18px;
    min-height: 48px;
}

.rw-chip-label {
    display: table;
    margin: 4px auto 14px;
    padding: 4px 14px;
    border-radius: 999px;
    background: #d9dde0;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .02em;
}

.rw-date-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.rw-tile-date {
    min-height: 96px;
    font-size: 16px;
    line-height: 1.3;
}

.rw-tile-date strong {
    font-size: 18px;
}

.rw-tile-date span {
    font-size: 14px;
}

.rw-loading,
.rw-empty {
    grid-column: 1 / -1;
    display: block;
    color: var(--rw-muted);
    font-size: 15px;
    text-align: center;
    padding: 12px 0;
    margin: 0;
}

/* Kalender */
.rw-calendar {
    margin-top: 16px;
    background: #fff;
    border: 1px solid var(--rw-line);
    border-radius: var(--rw-radius);
    padding: 12px;
}

.rw-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    text-transform: capitalize;
}

.rw-cal-head button {
    width: 40px;
    height: 40px;
    border: 0;
    background: var(--rw-soft);
    border-radius: 8px;
    font-size: 22px;
    cursor: pointer;
}

.rw-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    text-align: center;
}

.rw-cal-dow {
    font-size: 12px;
    color: var(--rw-muted);
    text-transform: uppercase;
    padding: 4px 0;
}

.rw-cal-day {
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--rw-soft);
    font: inherit;
    cursor: pointer;
}

.rw-cal-day:disabled {
    background: transparent;
    color: #b6bdc2;
    cursor: default;
    text-decoration: line-through;
}

.rw-cal-day:hover:not(:disabled) {
    border-color: var(--rw-ink);
}

/* Tijdsloten */
.rw-slots {
    max-height: 420px;
    overflow-y: auto;
    margin: 0 -4px;
    padding: 0 4px;
}

.rw-slot-label {
    font-weight: 700;
    margin: 6px 0 10px;
}

/*
| Tijden naast elkaar in plaats van één lange lijst: vier op desktop, twee op
| een telefoon. Scheelt scrollen, en je ziet een hele avond in één oogopslag.
*/
.rw-slot-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.rw-slot {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 0 10px;
    border: 1px solid #8f979d;
    border-radius: var(--rw-radius);
    background: var(--rw-soft);
    font: inherit;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    color: var(--rw-ink);
    cursor: pointer;
    text-align: center;
}

.rw-slot:hover:not(:disabled) {
    background: #fff;
    border-color: var(--rw-ink);
}

.rw-slot .rw-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--rw-ok);
    flex: 0 0 auto;
}

.rw-slot[aria-pressed="true"] .rw-dot {
    display: none;
}

.rw-slot[aria-pressed="true"] span {
    font-weight: 700;
}

.rw-slot:disabled {
    color: #9aa3a9;
    cursor: not-allowed;
    border-color: var(--rw-line);
}

.rw-slot:disabled .rw-dot {
    background: #c3c9cd;
}

.rw-slot small {
    margin-left: auto;
    font-size: 13px;
}

/* Knoppen */
.rw-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 22px 24px 24px;
}

.rw-actions-center {
    align-items: flex-start;
    padding: 12px 0 0;
}

/* Promo-kaartje onder de knop: afbeelding, titel en subtitel. Rustig, geen schaduw. */
.rw-promo {
    /* Dezelfde zijmarge als de knop erboven, met een dun streepje als scheiding. */
    margin: 0 24px;
    padding: 20px 0 24px;
    border-top: 1px solid var(--rw-line);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Met kopje is het kopje zelf de scheiding. */
.rw-promo.has-heading {
    border-top: 0;
    padding-top: 12px;
}

.rw-promo-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    color: var(--rw-muted);
    font-size: 14px;
}

.rw-promo-heading::before,
.rw-promo-heading::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--rw-line);
}

/* Kleiner scherm en de modal: de knop heeft hier 18px zijmarge. */
@media (max-width: 960px) {
    .rw-promo {
        margin: 0 18px;
    }
}

.rw-promo-card {
    appearance: none;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0 0 16px;
    border: 1px solid var(--rw-line);
    border-radius: var(--rw-radius);
    background: #fff;
    color: var(--rw-ink);
    font: inherit;
    text-align: center;
    text-decoration: none;
    overflow: hidden;
}

button.rw-promo-card,
a.rw-promo-card {
    cursor: pointer;
    transition: border-color .15s ease;
}

button.rw-promo-card:hover,
a.rw-promo-card:hover {
    border-color: var(--rw-accent);
}

.rw-promo-card:focus-visible {
    outline: 2px solid var(--rw-accent);
    outline-offset: 2px;
}

.rw-promo-card img {
    display: block;
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
}

.rw-promo-title {
    display: block;
    margin: 14px 16px 0;
    font-size: 18px;
    font-weight: 700;
}

.rw-promo-sub {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 6px 16px 0;
    font-size: 15px;
    line-height: 1.4;
    color: var(--rw-muted);
    /* Verdeelt de regels gelijk, zodat er geen los woord op de tweede regel staat. */
    text-wrap: balance;
}

/* Uitgeklapte promo */
.rw-promo-head {
    padding: 8px 16px 0;
}

.rw-promo-hero {
    display: block;
    width: calc(100% - 48px);
    margin: 8px 24px 0;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: var(--rw-radius);
}

.rw-promo-detail {
    padding: 20px 24px 8px;
}

.rw-promo-detail-title {
    margin: 0 0 12px;
    font-size: 24px;
    font-weight: 700;
    text-align: center;
}

.rw-promo-detail-lead {
    margin: 0 0 16px;
    font-weight: 700;
    line-height: 1.45;
}

.rw-promo-line {
    margin: 0 0 12px;
    line-height: 1.5;
}

.rw-promo-line.is-bullet {
    position: relative;
    padding-left: 18px;
}

.rw-promo-line.is-bullet::before {
    content: "•";
    position: absolute;
    left: 4px;
}

.rw-btn {
    appearance: none;
    border: 0;
    border-radius: var(--rw-radius);
    min-height: 56px;
    padding: 0 28px;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    transition: opacity .15s ease, transform .15s ease;
}

.rw-btn-primary {
    background: var(--rw-accent);
    color: var(--rw-accent-text);
}

.rw-btn-primary:hover:not(:disabled) {
    opacity: .92;
}

.rw-btn-primary:disabled {
    background: #eef0f2;
    color: #8f979d;
    cursor: not-allowed;
}

.rw-btn-secondary {
    background: #fff;
    color: var(--rw-ink);
    border: 1px solid #8f979d;
}

.rw-btn-auto {
    min-width: 200px;
}

.rw-btn.is-busy {
    opacity: .6;
    pointer-events: none;
}

.rw-btn svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rw-link {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: var(--rw-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    text-align: center;
}

.rw-error {
    margin: 12px 24px 0;
    padding: 12px 14px;
    border-radius: var(--rw-radius);
    background: #fdecea;
    color: var(--rw-danger);
    font-size: 15px;
    line-height: 1.5;
}

.rw-form .rw-error {
    margin: 16px 0 0;
}

/* Gegevens */
.rw-pane-contact {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 380px;
    gap: 40px;
    padding: 12px 48px 32px;
}

.rw-pane-contact[hidden] {
    display: none;
}

.rw-form-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 6px 0 18px -44px;
}

.rw-form-head h2 {
    margin: 0;
    font-size: 30px;
    font-weight: 700;
}

.rw-back {
    width: 36px;
    height: 36px;
    border: 0;
    background: transparent;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--rw-ink);
}

.rw-back:hover {
    background: var(--rw-soft);
}

.rw-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0 0 18px;
    border: 0;
    padding: 0;
    min-width: 0;
}

.rw-field label,
.rw-field legend {
    font-weight: 700;
    font-size: 16px;
    padding: 0;
}

.rw-muted {
    color: var(--rw-muted);
    font-weight: 400;
}

.rw-field input,
.rw-field textarea {
    width: 100%;
    border: 1px solid #aeb5ba;
    border-radius: var(--rw-radius);
    min-height: 54px;
    padding: 12px 16px;
    font: inherit;
    font-size: 16px;
    color: var(--rw-ink);
    background: #fff;
}

.rw-field textarea {
    min-height: 78px;
    resize: vertical;
}

.rw-field input:focus,
.rw-field textarea:focus,
.rw-check input:focus-visible,
.rw-radio input:focus-visible,
.rw-btn:focus-visible,
.rw-tile:focus-visible,
.rw-slot:focus-visible,
.rw-acc-head:focus-visible {
    outline: 3px solid #e3e7eb;
    outline-offset: 2px;
    border-color: var(--rw-ink);
}

.rw-field.has-error input,
.rw-field.has-error textarea {
    border-color: var(--rw-danger);
}

.rw-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 24px;
}

.rw-radios {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
}

.rw-radio,
.rw-check {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 16px;
    line-height: 1.45;
    cursor: pointer;
}

.rw-field .rw-radio,
.rw-radio {
    align-items: center;
    font-weight: 400;
    min-height: 40px;
}

.rw-radio input,
.rw-check input {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--rw-accent);
    flex: 0 0 auto;
}

.rw-check input {
    accent-color: #1f9d55;
}

.rw-check {
    margin: 0 0 16px;
}

.rw-check a {
    color: inherit;
}

.rw-required {
    color: var(--rw-danger);
    font-style: normal;
    margin-left: 4px;
}

.rw-divider {
    height: 1px;
    background: var(--rw-line);
    margin: 6px 0 20px;
}

.rw-hp {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.rw-side {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.rw-summary {
    background: var(--rw-soft);
    border: 1px solid var(--rw-line);
    border-radius: var(--rw-card-radius, 18px);
    padding: 24px 26px;
}

.rw-summary-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.rw-summary h3 {
    margin: 0;
    font-size: 26px;
}

.rw-summary ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.rw-summary li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
}

.rw-summary li > span {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rw-summary li a,
.rw-summary li span span {
    font-weight: 400;
    font-size: 16px;
    color: var(--rw-ink);
}

.rw-privacy summary {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 0;
}

.rw-privacy summary::-webkit-details-marker {
    display: none;
}

.rw-privacy summary::after {
    content: "";
    margin-left: auto;
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    margin-right: 6px;
}

.rw-privacy[open] summary::after {
    transform: rotate(-135deg);
}

.rw-privacy p {
    color: var(--rw-muted);
    font-size: 14px;
    line-height: 1.65;
    margin: 12px 0 0;
}

.rw-privacy a {
    color: inherit;
}

.rw-foot {
    border-top: 1px solid var(--rw-line);
    padding: 14px 24px;
    color: var(--rw-muted);
    font-size: 13px;
    text-align: center;
}

/* Bevestiging en beheer */
.rw-confirm {
    padding: 12px 24px 28px;
    text-align: center;
    max-width: 820px;
    margin: 0 auto;
    width: 100%;
}

.rw-confirm-icon {
    width: 88px;
    height: 88px;
    margin: 4px auto 12px;
    border-radius: 50%;
    border: 8px solid var(--rw-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px var(--rw-line);
}

.rw-confirm-icon svg {
    width: 36px;
    height: 36px;
    fill: none;
    stroke: var(--rw-ink);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rw-confirm-icon.is-pending svg {
    stroke: #b7791f;
}

.rw-confirm-icon.is-cancelled svg {
    stroke: var(--rw-danger);
}

.rw-kicker {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.rw-sentence {
    display: inline-block;
    margin: 0 0 12px;
    padding: 10px 18px;
    border: 1px solid var(--rw-line);
    border-radius: var(--rw-radius);
    font-size: 18px;
    line-height: 1.5;
}

.rw-sentence.is-cancelled {
    text-decoration: line-through;
    color: var(--rw-muted);
}

.rw-note {
    margin: 0 auto 16px;
    max-width: 620px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--rw-muted);
}

.rw-flash {
    margin: 0 auto 18px;
    max-width: 620px;
    padding: 12px 16px;
    border-radius: var(--rw-radius);
    background: #e8f6ee;
    color: #146c3c;
    font-size: 15px;
}

.rw-details {
    margin: 0 auto 16px;
    max-width: 620px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--rw-line);
    border: 1px solid var(--rw-line);
    border-radius: var(--rw-radius);
    overflow: hidden;
    text-align: left;
}

.rw-details div {
    background: #fff;
    padding: 12px 16px;
    min-width: 0;
}

.rw-details dt {
    font-size: 13px;
    color: var(--rw-muted);
}

.rw-details dd {
    margin: 2px 0 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.rw-button-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
}

.rw-btn-cancel {
    color: var(--rw-danger);
    border-color: #e7b4ae;
}

.rw-button-row form {
    margin: 0;
}

.rw-account {
    margin: 0 auto;
    max-width: 620px;
    background: var(--rw-soft);
    border: 1px solid var(--rw-line);
    border-radius: var(--rw-card-radius, 18px);
    padding: 22px 24px;
    text-align: left;
}

.rw-account h2 {
    margin: 0 0 6px;
    font-size: 20px;
}

.rw-account p {
    margin: 0 0 16px;
    color: var(--rw-muted);
    line-height: 1.6;
}

.rw-account form {
    margin: 0;
}

.rw-danger-zone {
    margin: 22px auto 0;
    max-width: 620px;
}

.rw-danger-zone .rw-btn {
    color: var(--rw-danger);
    border-color: #e7b4ae;
    min-height: 48px;
    font-size: 16px;
}

/* Filiaalkeuze */
.rw-store-list {
    display: grid;
    gap: 10px;
    padding: 8px 24px 26px;
}

.rw-store {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    border: 1px solid #aeb5ba;
    border-radius: var(--rw-radius);
    color: var(--rw-ink);
    text-decoration: none;
    background: var(--rw-soft);
    min-height: 64px;
}

.rw-store:hover {
    background: #fff;
    border-color: var(--rw-ink);
}

.rw-store strong {
    display: block;
    font-size: 17px;
}

.rw-store span {
    color: var(--rw-muted);
    font-size: 14px;
}

/* Tablet en kleiner */
@media (max-width: 960px) {
    .rw-pane-contact {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 8px 24px 28px;
    }

    .rw-side {
        order: -1;
    }

    .rw-form-head {
        margin-left: -6px;
    }

    .rw-wide .rw-card {
        max-width: 720px;
    }
}

/* Telefoon */
@media (max-width: 560px) {
    .rw-stage {
        padding: max(20px, calc(env(safe-area-inset-top, 0px) + 12px)) 12px max(20px, calc(env(safe-area-inset-bottom, 0px) + 12px));
        align-items: stretch;
    }

    /* Losse pagina: kaart met lucht eromheen. In de modal (.rw-embedded) vult hij het venster. */
    .rw-card {
        border-radius: 16px;
        min-height: calc(100dvh - 40px);
        box-shadow: none;
    }

    .rw-top {
        padding: 12px 14px 0;
        padding-top: max(12px, env(safe-area-inset-top));
    }

    .rw-intro {
        margin: 6px 18px 14px;
        font-size: 14px;
    }

    .rw-acc-head {
        padding: 16px 18px;
        font-size: 17px;
    }

    .rw-acc-body {
        padding: 2px 18px 18px;
    }

    .rw-tile {
        min-height: 56px;
    }

    .rw-tile-date {
        min-height: 88px;
        font-size: 14px;
    }

    .rw-tile-date strong {
        font-size: 16px;
    }

    .rw-slots {
        max-height: none;
    }

    .rw-actions {
        position: sticky;
        bottom: 0;
        background: #fff;
        padding: 14px 18px;
        padding-bottom: max(14px, env(safe-area-inset-bottom));
        box-shadow: 0 -8px 20px rgba(0, 0, 0, .06);
    }

    .rw-actions-center {
        position: static;
        box-shadow: none;
        padding: 12px 0 0;
    }

    .rw-actions-center .rw-btn {
        width: 100%;
    }

    .rw-pane-contact {
        padding: 4px 18px 24px;
    }

    .rw-form-head h2 {
        font-size: 24px;
    }

    .rw-grid-2 {
        grid-template-columns: 1fr;
    }

    .rw-radios {
        gap: 24px;
    }

    .rw-summary {
        padding: 18px;
    }

    .rw-summary h3 {
        font-size: 20px;
    }

    .rw-summary li {
        font-size: 16px;
    }

    .rw-confirm {
        padding: 8px 18px 24px;
    }

    .rw-sentence {
        font-size: 17px;
        padding: 12px 14px;
    }

    .rw-details {
        grid-template-columns: 1fr;
    }

    .rw-button-row .rw-btn,
    .rw-button-row form,
    .rw-button-row form .rw-btn {
        width: 100%;
    }
}

@media (max-width: 380px) {
    .rw-guest-grid {
        gap: 6px;
    }

    .rw-tile {
        font-size: 16px;
    }

    .rw-date-grid {
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
.rw-details dd a { color: inherit; }

/* In de modal op de website (iframe): het venster is de kaart. */
.rw-embedded .rw-body {
    background: #fff;
}

.rw-embedded .rw-backdrop {
    display: none;
}

.rw-embedded .rw-stage {
    padding: 0;
    align-items: stretch;
}

.rw-embedded .rw-card,
.rw-embedded .rw-wide .rw-card,
.rw-embedded .rw-card.rw-card-wide {
    /* rw-confirm mag in de modal iets breder, zodat de knoppen op één regel passen. */
    max-width: none;
    /* Geen volle schermhoogte meer: de modal krijgt de hoogte van de inhoud
       aangereikt, anders bleef er onder de knop een leeg wit vlak staan. */
    min-height: 0;
    border-radius: 0;
    box-shadow: none;
}

/* Details in drie kolommen als er ruimte is: de bevestiging past dan zonder scrollen. */
@media (min-width: 761px) {
    .rw-card-wide .rw-details {
        max-width: 820px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .rw-card-wide .rw-account {
        max-width: 820px;
        padding: 16px 20px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 20px;
        align-items: center;
    }

    .rw-card-wide .rw-account h2 {
        font-size: 17px;
        grid-column: 1;
    }

    .rw-card-wide .rw-account p {
        grid-column: 1;
        margin: 0;
        font-size: 14px;
        line-height: 1.5;
    }

    .rw-card-wide .rw-account > .rw-btn,
    .rw-card-wide .rw-account > form {
        grid-column: 2;
        grid-row: 1 / span 2;
    }

    .rw-card-wide .rw-button-row .rw-btn,
    .rw-card-wide .rw-account .rw-btn {
        min-height: 44px;
        padding: 0 16px;
        font-size: 15px;
        white-space: nowrap;
    }

    .rw-card-wide .rw-btn svg {
        width: 18px;
        height: 18px;
    }
}

.rw-embedded,
.rw-embedded body {
    scrollbar-width: thin;
    scrollbar-color: var(--rw-line) transparent;
}

.rw-embedded .rw-card-wide .rw-confirm {
    max-width: 880px;
}

/* In de modal is het venster precies zo hoog als de kaart: geen lucht eromheen. */
.rw-embedded .rw-stage {
    min-height: 0;
    padding: 0;
    align-items: stretch;
}

.rw-embedded .rw-card {
    min-height: 0;
    box-shadow: none;
    border-radius: 0;
}

@media (max-width: 640px) {
    .rw-embedded .rw-card,
    .rw-embedded .rw-wide .rw-card,
    .rw-embedded .rw-card.rw-card-wide {
        min-height: 0;
    }

    /* In de modal geen extra lucht onder de kaart. */
    .rw-embedded .rw-stage {
        padding: 0;
        align-items: stretch;
    }
}

/* Tijden: minder kolommen naarmate het scherm smaller wordt. */
@media (max-width: 720px) {
    .rw-slot-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
    .rw-slot-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Afbeelding met label linksboven (bijvoorbeeld de prijs). */
.rw-promo-media {
    position: relative;
    display: block;
}

.rw-promo-badge {
    position: absolute;
    left: 10px;
    top: 10px;
    padding: 4px 10px;
    border-radius: var(--rw-radius);
    background: var(--rw-accent);
    color: var(--rw-accent-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
}

.rw-promo-hero-wrap {
    margin: 8px 24px 0;
}

.rw-promo-hero-wrap .rw-promo-hero {
    width: 100%;
    margin: 0;
}
