/* =====================================================
   WP Restaurant Booking - Frontend Form Styles
   ===================================================== */

.wrb-booking-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.wrb-title {
    margin: 0 0 24px;
    font-size: 1.8em;
    color: #1a1a1a;
    text-align: center;
}

/* Notifiche */
.wrb-notice {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.95em;
}
.wrb-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.wrb-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Layout righe */
.wrb-row {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}
.wrb-row-1 { grid-template-columns: 1fr; }
.wrb-row-2 { grid-template-columns: 1fr 1fr; }
.wrb-row-3 { grid-template-columns: 1fr 1fr 1fr; }

@media (max-width: 600px) {
    .wrb-row-2,
    .wrb-row-3 {
        grid-template-columns: 1fr;
    }
    .wrb-booking-wrap {
        padding: 20px 16px;
    }
}

/* Campi */
.wrb-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.wrb-field label {
    font-size: 0.875em;
    font-weight: 600;
    color: #444;
}
.wrb-req {
    color: #e53e3e;
}
.wrb-field input[type="text"],
.wrb-field input[type="email"],
.wrb-field input[type="tel"],
.wrb-field input[type="date"],
.wrb-field select,
.wrb-field textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 0.95em;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.wrb-field input:focus,
.wrb-field select:focus,
.wrb-field textarea:focus {
    outline: none;
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192,57,43,0.12);
    background: #fff;
}
.wrb-field select:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.wrb-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Bottone */
.wrb-btn {
    width: 100%;
    padding: 14px;
    background: #c0392b;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    letter-spacing: 0.02em;
}
.wrb-btn:hover  { background: #a93226; }
.wrb-btn:active { transform: scale(0.99); }
.wrb-btn:disabled {
    background: #aaa;
    cursor: not-allowed;
}

/* Hint campo */
.wrb-field-hint {
    font-size: 0.78em;
    color: #999;
    margin: 2px 0 0;
}

/* Checkbox field (seggiolone) */
.wrb-field-check {
    justify-content: center;
}
.wrb-check-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px 18px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    background: #fafafa;
    transition: border-color 0.2s, background 0.2s;
    width: 100%;
    box-sizing: border-box;
}
.wrb-check-label:hover {
    border-color: #c0392b;
    background: #fff8f8;
}
.wrb-check-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    accent-color: #c0392b;
    cursor: pointer;
}
.wrb-check-text {
    font-size: 0.95em;
    font-weight: 600;
    color: #444;
}

/* Privacy */
.wrb-privacy-note {
    text-align: center;
    font-size: 0.78em;
    color: #999;
    margin-top: 10px;
}

/* =====================================================
   WP Restaurant Booking - Manage Booking Page Styles
   ===================================================== */

.wrb-manage-wrap { max-width: 640px; }

.wrb-manage-subtitle {
    text-align: center;
    color: #666;
    margin: -16px 0 24px;
    font-size: 0.95em;
}

/* Riepilogo prenotazione */
.wrb-booking-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 20px 24px;
    margin-bottom: 24px;
    border: 1px solid #e9ecef;
}
.wrb-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    gap: 12px;
}
.wrb-summary-row:last-child { border-bottom: none; }
.wrb-summary-label {
    font-size: 0.85em;
    font-weight: 600;
    color: #666;
    white-space: nowrap;
    min-width: 120px;
}
.wrb-summary-value {
    font-size: 0.95em;
    color: #222;
    text-align: right;
}

/* Badge stato */
.wrb-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.82em;
    font-weight: 600;
}
.wrb-status-pending   { background: #fff3cd; color: #856404; }
.wrb-status-confirmed { background: #d4edda; color: #155724; }
.wrb-status-cancelled { background: #f8d7da; color: #721c24; }

/* Pulsanti azione */
.wrb-manage-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}
.wrb-btn-outline {
    background: transparent;
    color: #c0392b;
    border: 2px solid #c0392b;
}
.wrb-btn-outline:hover { background: #fdf2f2; }
.wrb-btn-danger {
    background: #c0392b;
}
.wrb-btn-danger:hover { background: #a93226; }

/* Sezione modifica */
.wrb-section-title {
    margin: 0 0 16px;
    font-size: 1.1em;
    color: #333;
    padding-top: 8px;
}

/* Conferma annullamento */
.wrb-cancel-confirm-box {
    background: #fff8f8;
    border: 2px solid #f5c6cb;
    border-radius: 10px;
    padding: 24px;
    margin-top: 8px;
}
.wrb-cancel-confirm-box h3 { margin-top: 0; color: #721c24; }
.wrb-cancel-warning {
    color: #856404;
    background: #fff3cd;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.88em;
}

/* Warning notice */
.wrb-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 14px 18px;
    border-radius: 8px;
}

/* =====================================================
   Lista d'Attesa - Sezione Pubblica
   ===================================================== */

#wrb-waitlist-section {
    margin-top: 24px;
}

/* =====================================================
   Chatbot AI — Widget flottante
   ===================================================== */

.wrb-chatbot {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Pulsante flottante */
.wrb-chatbot-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(29,78,216,0.35);
    transition: transform 0.2s, box-shadow 0.2s;
}
.wrb-chatbot-toggle:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(29,78,216,0.45);
}
.wrb-cb-icon-open { font-size: 1.2em; }
.wrb-cb-icon-close { display: none; font-size: 1em; font-weight: 700; }
.wrb-chatbot-toggle.wrb-cb-open .wrb-cb-icon-open { display: none; }
.wrb-chatbot-toggle.wrb-cb-open .wrb-cb-icon-close { display: inline; }
.wrb-cb-label { letter-spacing: 0.01em; }

/* Finestra chat */
.wrb-chatbot-win {
    position: absolute;
    bottom: calc(100% + 12px);
    right: 0;
    width: 340px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

/* Header */
.wrb-cb-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    background: linear-gradient(135deg, #1d4ed8, #2563eb);
    color: #fff;
}
.wrb-cb-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}
.wrb-cb-avatar {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1em;
}
.wrb-cb-name {
    font-weight: 600;
    font-size: 0.92em;
}
.wrb-cb-status {
    font-size: 0.78em;
    opacity: 0.85;
}
.wrb-cb-close-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1em;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    opacity: 0.8;
    transition: opacity 0.15s;
    line-height: 1;
}
.wrb-cb-close-btn:hover { opacity: 1; background: rgba(255,255,255,0.15); }

/* Messaggi */
.wrb-cb-messages {
    height: 300px;
    overflow-y: auto;
    padding: 14px;
    background: #f9fafb;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.wrb-cb-msg {
    display: flex;
    gap: 8px;
    align-items: flex-end;
    max-width: 90%;
}
.wrb-cb-user {
    align-self: flex-end;
    flex-direction: row-reverse;
}
.wrb-cb-bubble {
    padding: 9px 13px;
    border-radius: 14px;
    font-size: 0.88em;
    line-height: 1.5;
    word-wrap: break-word;
}
.wrb-cb-bot .wrb-cb-bubble {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-bottom-left-radius: 4px;
    color: #1f2937;
}
.wrb-cb-user .wrb-cb-bubble {
    background: #1d4ed8;
    color: #fff;
    border-bottom-right-radius: 4px;
}

/* Typing */
.wrb-cb-typing {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 10px 14px;
}
.wrb-cb-typing span {
    width: 6px;
    height: 6px;
    background: #9ca3af;
    border-radius: 50%;
    animation: wrbCbBounce 1.2s ease-in-out infinite;
}
.wrb-cb-typing span:nth-child(2) { animation-delay: 0.2s; }
.wrb-cb-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes wrbCbBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-5px); }
}

/* Input */
.wrb-cb-input-row {
    display: flex;
    gap: 0;
    border-top: 1px solid #e5e7eb;
}
.wrb-cb-input {
    flex: 1;
    padding: 12px 14px;
    border: none;
    outline: none;
    font-size: 0.9em;
    font-family: inherit;
    background: #fff;
}
.wrb-cb-send-btn {
    padding: 12px 16px;
    background: #1d4ed8;
    color: #fff;
    border: none;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.15s;
}
.wrb-cb-send-btn:hover { background: #1e40af; }
.wrb-cb-send-btn:disabled { background: #93c5fd; cursor: default; }

/* Responsive */
@media (max-width: 480px) {
    .wrb-chatbot { bottom: 16px; right: 16px; }
    .wrb-chatbot-win { width: calc(100vw - 32px); right: 0; }
    .wrb-cb-label { display: none; }
    .wrb-chatbot-toggle { padding: 14px; border-radius: 50%; }
}

/* =====================================================
   Modal "Locale pieno"
   ===================================================== */

.wrb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 999999;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.wrb-overlay.is-open {
    display: flex;
}

.wrb-full-modal {
    background: #fff;
    border-radius: 14px;
    padding: 36px 28px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
    animation: wrbModalIn 0.2s ease;
}
@keyframes wrbModalIn {
    from { opacity: 0; transform: translateY(-16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)     scale(1);    }
}

.wrb-full-modal-icon {
    font-size: 2.8em;
    margin-bottom: 10px;
    line-height: 1;
}
.wrb-full-modal h3 {
    margin: 0 0 12px;
    font-size: 1.25em;
    color: #c0392b;
}
.wrb-full-modal p {
    color: #555;
    font-size: 0.92em;
    line-height: 1.55;
    margin: 0 0 10px;
}

.wrb-full-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 22px;
}

.wrb-btn-outline {
    background: #fff;
    border: 2px solid #c0392b;
    color: #c0392b;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: background 0.18s;
    line-height: 1.4;
}
.wrb-btn-outline:hover {
    background: #fdecea;
}

.wrb-btn-waitlist-modal {
    background: #c0392b;
    border: 2px solid #c0392b;
    color: #fff;
    padding: 10px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: opacity 0.18s;
    line-height: 1.4;
}
.wrb-btn-waitlist-modal:hover {
    opacity: 0.88;
}

/* =====================================================
   Modal lista d'attesa (Turno pieno)
   ===================================================== */

.wrb-wl-modal {
    background: #fff;
    border-radius: 16px;
    padding: 32px 28px 28px;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 12px 48px rgba(0,0,0,0.22);
    animation: wrbModalIn 0.22s ease;
}

.wrb-wl-modal-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.wrb-wl-modal-icon {
    font-size: 1.8em;
    line-height: 1;
}
.wrb-wl-modal-header h3 {
    margin: 0;
    font-size: 1.25em;
    color: #1a1a1a;
}

.wrb-wl-modal-desc {
    color: #555;
    font-size: 0.92em;
    line-height: 1.55;
    margin: 0 0 20px;
}

.wrb-wl-modal-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 20px;
}
.wrb-wl-modal-actions .wrb-btn-waitlist-modal {
    flex: 1;
    min-width: 180px;
    text-align: center;
}
.wrb-wl-modal-actions .wrb-btn-outline {
    flex: 0 0 auto;
}

/* Bottone iscrizione dentro il modale (stile principale) */
.wrb-btn-waitlist-modal {
    display: inline-block;
    background: #c0392b;
    border: 2px solid #c0392b;
    color: #fff;
    padding: 12px 22px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95em;
    font-weight: 700;
    transition: opacity 0.18s;
    line-height: 1.4;
    width: 100%;
}
.wrb-btn-waitlist-modal:hover { opacity: 0.88; }
.wrb-btn-waitlist-modal:disabled { opacity: 0.55; cursor: default; }

/* =====================================================
   Flatpickr — override colori per abbinare il tema
   ===================================================== */

.flatpickr-calendar {
    border-radius: 10px !important;
    box-shadow: 0 8px 32px rgba(0,0,0,0.14) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange,
.flatpickr-day.endRange {
    background: #c0392b !important;
    border-color: #c0392b !important;
}
.flatpickr-day:hover {
    background: #fdecea !important;
}
.flatpickr-day.today {
    border-color: #c0392b !important;
}
.flatpickr-day.today:hover {
    background: #c0392b !important;
    color: #fff !important;
}
.flatpickr-day.disabled,
.flatpickr-day.disabled:hover {
    color: #ccc !important;
    text-decoration: line-through !important;
    cursor: not-allowed !important;
    background: transparent !important;
}
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
    fill: #c0392b !important;
}

/* Input data con stile coerente (gestito da Flatpickr) */
#wrb-date {
    cursor: pointer;
    background: #fafafa url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat right 12px center !important;
}

/* =====================================================
   WRB Chat Booking Modal
   ===================================================== */

/* Trigger button — nascosto: il modale si apre automaticamente */
.wrb-chat-trigger-wrap { display: none; }
.wrb-chat-trigger-btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 16px 36px; background: #c0392b; color: #fff;
    border: none; border-radius: 50px; font-size: 1.1em; font-weight: 700;
    cursor: pointer; box-shadow: 0 4px 20px rgba(192,57,43,0.35);
    transition: transform 0.18s, box-shadow 0.18s;
}
.wrb-chat-trigger-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(192,57,43,0.45); }
.wrb-trigger-icon { font-size: 1.2em; }

/* Overlay */
.wrb-chat-overlay {
    display: none; position: fixed; inset: 0;
    background: rgba(0,0,0,0.55); z-index: 999999;
    align-items: center; justify-content: center;
    padding: 16px; box-sizing: border-box;
}
.wrb-chat-overlay.is-open { display: flex; }

/* Modal box — mobile e desktop: sempre centrato */
.wrb-chat-modal {
    background: #fff; border-radius: 20px;
    width: 100%; max-width: 420px;
    height: auto; max-height: 82vh;
    display: flex; flex-direction: column; overflow: hidden;
    box-shadow: 0 8px 40px rgba(0,0,0,0.22);
    animation: wrbChatIn 0.28s cubic-bezier(.32,1.2,.54,1);
}
@keyframes wrbChatIn {
    from { transform: translateY(20px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

/* Header */
.wrb-chat-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; background: #c0392b; color: #fff; flex-shrink: 0;
}
.wrb-chat-header-info { display: flex; align-items: center; gap: 12px; }
.wrb-chat-avatar {
    width: 42px; height: 42px; background: rgba(255,255,255,0.2);
    border-radius: 50%; display: flex; align-items: center;
    justify-content: center; font-size: 1.3em; flex-shrink: 0;
}
.wrb-chat-bot-name   { font-weight: 700; font-size: 0.95em; }
.wrb-chat-bot-status { font-size: 0.75em; opacity: 0.85; margin-top: 1px; }
.wrb-chat-close-btn  {
    background: rgba(255,255,255,0.15); border: none; color: #fff;
    width: 32px; height: 32px; border-radius: 50%; cursor: pointer;
    font-size: 1em; display: flex; align-items: center; justify-content: center;
    transition: background 0.15s;
}
.wrb-chat-close-btn:hover { background: rgba(255,255,255,0.3); }

/* Messages area */
.wrb-chat-messages {
    flex: 1; overflow-y: auto; padding: 20px 16px;
    display: flex; flex-direction: column; gap: 14px;
    background: #f8f9fa; scroll-behavior: smooth;
}

/* Bot bubble */
.wrb-msg-bot { display: flex; align-items: flex-end; gap: 8px; max-width: 85%; }
.wrb-msg-bot-avatar {
    width: 30px; height: 30px; background: #c0392b; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.85em; flex-shrink: 0; color: #fff;
}
.wrb-msg-bot-bubble {
    background: #fff; border: 1px solid #e5e7eb;
    border-radius: 18px 18px 18px 4px;
    padding: 10px 14px; font-size: 0.92em; line-height: 1.5; color: #1f2937;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* Typing indicator */
.wrb-typing { display: flex; gap: 4px; align-items: center; padding: 4px 2px; }
.wrb-typing span {
    width: 7px; height: 7px; background: #94a3b8; border-radius: 50%;
    animation: wrbTyping 1.1s ease-in-out infinite;
}
.wrb-typing span:nth-child(2) { animation-delay: 0.18s; }
.wrb-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes wrbTyping {
    0%,60%,100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-5px); opacity: 1; }
}

/* User bubble */
.wrb-msg-user {
    align-self: flex-end; max-width: 75%;
    background: #c0392b; color: #fff;
    border-radius: 18px 18px 4px 18px;
    padding: 10px 14px; font-size: 0.92em; line-height: 1.5;
    box-shadow: 0 1px 3px rgba(0,0,0,0.12);
}

/* Input area */
.wrb-chat-input-area {
    padding: 14px 16px; background: #fff;
    border-top: 1px solid #e5e7eb; flex-shrink: 0;
}

/* Pill buttons (guests, highchair, etc.) */
.wrb-chat-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.wrb-chat-pill {
    padding: 10px 18px; border: 2px solid #e5e7eb; border-radius: 24px;
    background: #fff; font-size: 0.92em; font-weight: 600; color: #374151;
    cursor: pointer; transition: all 0.15s;
}
.wrb-chat-pill:hover { border-color: #c0392b; color: #c0392b; background: #fef2f2; }
.wrb-chat-pill.slot-available { border-color: #059669; color: #059669; }
.wrb-chat-pill.slot-available:hover { background: #f0fdf4; }
.wrb-chat-pill.slot-full { border-color: #dc2626; color: #dc2626; opacity: 0.75; }
.wrb-chat-pill.slot-full:hover { background: #fef2f2; opacity: 1; }
.wrb-chat-pill.wrb-pill-yes { border-color: #059669; color: #059669; }
.wrb-chat-pill.wrb-pill-yes:hover { background: #f0fdf4; }

/* Text input row */
.wrb-chat-text-row { display: flex; gap: 8px; }
.wrb-chat-text-input {
    flex: 1; padding: 11px 14px; border: 2px solid #e5e7eb; border-radius: 12px;
    font-size: 0.95em; color: #1f2937; background: #f9fafb;
    transition: border-color 0.15s, box-shadow 0.15s; outline: none;
    font-family: inherit;
}
.wrb-chat-text-input:focus { border-color: #c0392b; background: #fff; box-shadow: 0 0 0 3px rgba(192,57,43,0.1); }
.wrb-chat-text-input.wrb-input-error { border-color: #dc2626; background: #fef2f2; }
.wrb-chat-send-btn {
    padding: 11px 18px; background: #c0392b; color: #fff; border: none;
    border-radius: 12px; cursor: pointer; font-weight: 700; font-size: 0.92em;
    transition: background 0.15s; white-space: nowrap;
}
.wrb-chat-send-btn:hover { background: #a93226; }
.wrb-chat-send-btn:disabled { background: #ccc; cursor: default; }

/* Textarea row */
.wrb-chat-textarea-wrap { display: flex; flex-direction: column; gap: 8px; }
.wrb-chat-textarea {
    width: 100%; padding: 11px 14px; border: 2px solid #e5e7eb; border-radius: 12px;
    font-size: 0.92em; color: #1f2937; background: #f9fafb; resize: vertical;
    min-height: 80px; font-family: inherit; outline: none; box-sizing: border-box;
    transition: border-color 0.15s;
}
.wrb-chat-textarea:focus { border-color: #c0392b; background: #fff; }
.wrb-chat-textarea-btns { display: flex; gap: 8px; }
.wrb-chat-btn-skip {
    padding: 10px 20px; background: transparent; border: 2px solid #e5e7eb;
    border-radius: 12px; color: #6b7280; font-size: 0.9em; cursor: pointer;
    transition: border-color 0.15s;
}
.wrb-chat-btn-skip:hover { border-color: #94a3b8; color: #374151; }
.wrb-chat-btn-continue {
    flex: 1; padding: 10px 20px; background: #c0392b; color: #fff; border: none;
    border-radius: 12px; font-size: 0.9em; font-weight: 700; cursor: pointer;
    transition: background 0.15s;
}
.wrb-chat-btn-continue:hover { background: #a93226; }

/* Error hint */
.wrb-chat-error-hint { color: #dc2626; font-size: 0.82em; margin-top: 4px; }

/* Flatpickr inline nel chat */
.wrb-chat-calendar-wrap .flatpickr-calendar.inline {
    width: 100% !important; box-shadow: none !important;
    border: 2px solid #e5e7eb !important; border-radius: 12px !important;
}

/* Summary box */
.wrb-chat-summary {
    background: #f8f9fa; border: 2px solid #e5e7eb; border-radius: 14px;
    padding: 14px 16px; font-size: 0.9em; line-height: 1.7; color: #374151;
}
.wrb-chat-summary-row { display: flex; gap: 8px; align-items: baseline; }
.wrb-chat-summary-label { font-weight: 600; color: #6b7280; min-width: 90px; font-size: 0.85em; }
.wrb-chat-summary-value { color: #111827; }
.wrb-chat-confirm-btn {
    width: 100%; margin-top: 12px; padding: 14px; background: #c0392b; color: #fff;
    border: none; border-radius: 12px; font-size: 1em; font-weight: 700;
    cursor: pointer; transition: background 0.15s;
}
.wrb-chat-confirm-btn:hover { background: #a93226; }
.wrb-chat-confirm-btn:disabled { background: #ccc; cursor: default; }
.wrb-chat-restart-btn {
    width: 100%; margin-top: 8px; padding: 10px; background: transparent;
    color: #6b7280; border: 2px solid #e5e7eb; border-radius: 12px;
    font-size: 0.88em; cursor: pointer; transition: all 0.15s;
}
.wrb-chat-restart-btn:hover { border-color: #c0392b; color: #c0392b; }

/* Back wrap */
.wrb-chat-back-wrap { padding: 8px 16px 0; background: #fff; }
.wrb-chat-back-btn {
    background: none; border: none; color: #94a3b8; font-size: 0.82em;
    cursor: pointer; padding: 4px 0; transition: color 0.15s;
}
.wrb-chat-back-btn:hover { color: #374151; }

/* Success message */
.wrb-chat-success-box {
    text-align: center; padding: 12px 4px;
}
.wrb-chat-success-icon { font-size: 2.5em; margin-bottom: 8px; }
.wrb-chat-success-title { font-weight: 700; color: #059669; font-size: 1em; margin-bottom: 6px; }
.wrb-chat-success-text { color: #374151; font-size: 0.88em; line-height: 1.5; }
.wrb-chat-close-after-success {
    margin-top: 16px; padding: 10px 24px; background: #059669; color: #fff;
    border: none; border-radius: 12px; cursor: pointer; font-weight: 600;
    transition: background 0.15s;
}
.wrb-chat-close-after-success:hover { background: #047857; }

/* Phone prefix selector */
.wrb-chat-phone-row {
    display: flex;
    gap: 8px;
    align-items: center;
    width: 100%;
}
.wrb-phone-prefix-sel {
    flex-shrink: 0;
    width: 108px;
    height: 44px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 6px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
    color: #374151;
    appearance: auto;
}
.wrb-phone-prefix-sel:focus {
    outline: none;
    border-color: #c0392b;
}
.wrb-phone-num-inp {
    flex: 1;
    min-width: 0;
}
