/* Verplaatst uit widget.php (10-11-2026), zodat de browser het kan bewaren. */
:root {
    --rw-teal-bg: #96b8b3;
    --rw-radius-lg: 18px;
    --rw-radius-sm: 10px;
}

.rw-reservation-fab {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    background: var(--rw-teal-bg);
    color: #111827;
    border: none;
    padding: 10px 18px;
    border-radius: 999px;
    box-shadow: 0 12px 25px rgba(15, 23, 42, 0.25);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}
.rw-reservation-fab span.rw-icon { font-size: 18px; line-height: 1; }
@media (max-width: 768px) {
    .rw-reservation-fab {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        bottom: 16px;
        white-space: nowrap;
        width: auto;
        max-width: calc(100% - 32px);
    }
}

.rw-reservation-popup-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    display: none;
    justify-content: flex-end;
    align-items: flex-end;
    z-index: 9998;
}
.rw-reservation-popup-backdrop.rw-open { display: flex; }

.rw-reservation-popup {
    background: var(--rw-teal-bg);
    color: #111827;
    width: 360px;
    max-height: 90vh;
    border-radius: var(--rw-radius-lg);
    box-shadow: 0 -20px 40px rgba(15, 23, 42, 0.5);
    transform: translateY(100%);
    transition: transform 0.3s ease-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-right: 24px;
    margin-bottom: 24px;
}
.rw-reservation-popup.rw-open { transform: translateY(0); }
@media (max-width: 768px) {
    .rw-reservation-popup-backdrop { justify-content: center; }
    .rw-reservation-popup {
        width: 100%;
        max-width: 480px;
        margin: 0;
        border-radius: var(--rw-radius-lg);
    }
}

.rw-popup-header {
    padding: 12px 18px 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.rw-popup-header-logo {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
}
.rw-popup-header-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.rw-popup-close {
    border: none;
    background: transparent;
    font-size: 18px;
    cursor: pointer;
    margin-left: auto;
}

.rw-popup-hero { padding: 8px 18px 0; }
.rw-popup-hero img {
    width: 100%;
    border-radius: var(--rw-radius-sm);
    object-fit: cover;
    max-height: 160px;
}

.rw-popup-intro { padding: 8px 18px 8px; font-size: 13px; line-height: 1.4; }

.rw-popup-body {
    background: rgba(255, 255, 255, 0.12);
    padding: 10px 18px 16px;
    border-top-left-radius: var(--rw-radius-lg);
    border-top-right-radius: var(--rw-radius-lg);
    backdrop-filter: blur(10px);
    flex: 1;
    overflow-y: auto;
}

.rw-popup-footer {
    padding: 12px 18px 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.15);
    background: rgba(255, 255, 255, 0.15);
}

.rw-step { display: none; }
.rw-step.rw-active { display: block; }

.rw-accordion {
    border-radius: var(--rw-radius-sm);
    overflow: hidden;
    margin-bottom: 8px;
    background: rgba(255, 255, 255, 0.9);
}
.rw-accordion-header {
    padding: 8px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}
.rw-accordion-header span.rw-label { display: inline-flex; gap: 6px; align-items: center; }
.rw-accordion-header span.rw-summary { font-size: 12px; font-weight: 400; opacity: 0.8; }
.rw-accordion-body {
    padding: 8px 10px 10px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    display: none;
}
.rw-accordion-body.rw-open { display: block; }

.rw-type-list { display: flex; flex-direction: column; gap: 6px; }
.rw-type-option {
    border-radius: var(--rw-radius-sm);
    padding: 7px 8px;
    border: 1px solid rgba(15, 23, 42, 0.12);
    cursor: pointer;
    font-size: 13px;
    background: #f9fafb;
}
.rw-type-option.rw-active { background: #111827; color: #f9fafb; }

.rw-guest-buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}
.rw-guest-btn {
    border-radius: var(--rw-radius-sm);
    border: 1px solid rgba(15, 23, 42, 0.1);
    padding: 8px 0;
    background: #f9fafb;
    font-size: 13px;
    cursor: pointer;
    color: #000;
}
.rw-guest-btn.rw-active { background: #111827; color: #f9fafb; }
.rw-guest-custom {
    display: none;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    font-size: 11px;
}
.rw-guest-custom input {
    width: 60px;
    padding: 4px 6px;
    border-radius: var(--rw-radius-sm);
    border: 1px solid rgba(15, 23, 42, 0.2);
    font-size: 13px;
}

.rw-date-input input[type="date"] {
    width: 100%;
    max-width: 220px;
    padding: 6px 8px;
    border-radius: var(--rw-radius-sm);
    border: 1px solid rgba(15, 23, 42, 0.2);
    font-size: 13px;
}
.rw-info-message {
    font-size: 11px;
    opacity: 0.85;
    padding: 6px 8px;
    border-radius: var(--rw-radius-sm);
    background: rgba(255, 255, 255, 0.7);
    margin-top: 4px;
}

/* "Let op"-vakje (keuken-melding e.d.) — staat tussen
   datum- en tijd-accordion */
.rw-notice {
    margin: 0 0 8px 0;
    padding: 10px 12px;
    border-radius: var(--rw-radius-sm);
    background: rgba(245, 158, 11, 0.18);
    color: #78350f;
    font-size: 12px;
    line-height: 1.4;
    border: 1px solid rgba(245, 158, 11, 0.45);
    display: none;
}
.rw-notice strong { display: block; margin-bottom: 3px; font-size: 13px; }

.rw-slots-list { display: flex; flex-wrap: wrap; gap: 6px; }
.rw-slot-btn {
    border-radius: var(--rw-radius-sm);
    border: 1px solid rgba(15, 23, 42, 0.1);
    padding: 6px 9px;
    background: #f9fafb;
    font-size: 13px;
    cursor: pointer;
    color: #000;
}
.rw-slot-btn.rw-active { background: #111827; color: #f9fafb; }

.rw-custom-time-toggle {
    display: none;
    margin-top: 8px;
    background: transparent;
    border: 1px dashed rgba(15, 23, 42, 0.35);
    border-radius: var(--rw-radius-sm);
    padding: 6px 9px;
    font-size: 12px;
    color: #111827;
    cursor: pointer;
    width: 100%;
}
.rw-custom-time-toggle:hover { background: rgba(15, 23, 42, 0.04); }
.rw-custom-time-form {
    display: none;
    margin-top: 8px;
    padding: 8px;
    border-radius: var(--rw-radius-sm);
    background: rgba(255, 255, 255, 0.85);
}
.rw-custom-time-form input[type="time"] {
    width: 100%;
    padding: 6px 8px;
    border-radius: var(--rw-radius-sm);
    border: 1px solid rgba(15, 23, 42, 0.2);
    font-size: 13px;
    box-sizing: border-box;
    margin-bottom: 6px;
}
.rw-custom-time-form .rw-custom-time-actions { display: flex; gap: 6px; }
.rw-custom-time-form .rw-custom-time-msg {
    margin-top: 6px;
    font-size: 11px;
    padding: 6px 8px;
    border-radius: var(--rw-radius-sm);
    background: rgba(220, 38, 38, 0.08);
    color: #991b1b;
    display: none;
}
.rw-custom-time-form .rw-custom-time-msg.rw-ok {
    background: rgba(22, 163, 74, 0.1);
    color: #166534;
}

.rw-messages { font-size: 12px; margin-bottom: 10px; }
.rw-messages .rw-error {
    background: rgba(220, 38, 38, 0.1);
    color: #991b1b;
    padding: 6px 8px;
    border-radius: var(--rw-radius-sm);
    margin-bottom: 4px;
}

.rw-input-row { margin-bottom: 8px; }
.rw-input-row input,
.rw-input-row textarea {
    width: 100%;
    padding: 8px 10px;
    border-radius: var(--rw-radius-sm);
    border: 1px solid rgba(15, 23, 42, 0.15);
    box-sizing: border-box;
    font-size: 13px;
}
.rw-input-row textarea { resize: vertical; min-height: 60px; }
.rw-checkbox-row {
    font-size: 12px;
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 6px;
}
.rw-checkbox-row input { margin-top: 2px; }

.rw-summary-box {
    font-size: 12px;
    padding: 8px 10px;
    border-radius: var(--rw-radius-sm);
    background: rgba(255, 255, 255, 0.75);
    margin-bottom: 10px;
}
.rw-summary-box div { display: flex; justify-content: space-between; margin-bottom: 3px; }
.rw-summary-box div:last-child { margin-bottom: 0; }

.rw-thankyou-box {
    background: rgba(22, 163, 74, 0.08);
    border-radius: var(--rw-radius-sm);
    padding: 10px 12px;
    font-size: 13px;
    margin-bottom: 12px;
}
.rw-thankyou-summary {
    font-size: 12px;
    padding: 8px 10px;
    border-radius: var(--rw-radius-sm);
    background: rgba(255, 255, 255, 0.9);
}
.rw-thankyou-summary div { display: flex; justify-content: space-between; margin-bottom: 3px; }
.rw-thankyou-summary div:last-child { margin-bottom: 0; }

.rw-primary-btn {
    background: #111827;
    color: #f9fafb;
    border: none;
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
}
.rw-primary-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.rw-secondary-btn {
    background: transparent;
    color: #111827;
    border: 1px solid rgba(15, 23, 42, 0.25);
    border-radius: 999px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
}
