.sp-chat-toggle {
        position: fixed; bottom: 24px; right: 24px; z-index: 9999;
        width: 56px; height: 56px; border-radius: 50%; border: none;
        cursor: pointer; box-shadow: 0 4px 20px rgba(0,0,0,0.2);
        background: var(--color-primary, #C4623B); color: var(--on-accent, #fff); font-size: 22px;
    }
    .sp-chat-panel {
        position: fixed; bottom: 92px; right: 24px; z-index: 9999;
        width: 360px; max-width: calc(100vw - 32px); height: 480px; max-height: 70vh;
        background: #fff; border-radius: 16px; box-shadow: 0 8px 40px rgba(0,0,0,0.18);
        display: none; flex-direction: column; overflow: hidden; border: 1px solid #EDE9E1;
    }
    .sp-chat-header {
        padding: 16px 18px; background: var(--color-secondary, #2A2320); color: #fff;
        display: flex; justify-content: space-between; align-items: center;
    }
    .sp-chat-header-title { font-size: 14px; font-weight: 600; margin: 0; }
    .sp-chat-header-subtitle { font-size: 11px; opacity: 0.7; margin: 2px 0 0; }
    .sp-chat-header-actions { display: flex; align-items: center; gap: 10px; }
    .sp-chat-human {
        background: rgba(255,255,255,0.14); border: none; color: #fff;
        font-size: 11px; font-weight: 600; cursor: pointer; padding: 5px 10px; border-radius: 20px;
    }
    .sp-chat-close { background: none; border: none; color: #fff; font-size: 20px; cursor: pointer; }
    .sp-chat-messages {
        flex: 1; overflow-y: auto; padding: 16px; background: #FAFAF8;
        font-size: 14px; line-height: 1.5;
    }
    .sp-chat-form {
        display: flex; gap: 8px; padding: 12px; border-top: 1px solid #EDE9E1; background: #fff;
    }
    .sp-chat-input {
        flex: 1; border: 1px solid #EDE9E1; border-radius: 8px;
        padding: 10px 12px; font-size: 14px; outline: none;
    }
    .sp-chat-submit {
        background: var(--color-primary, #C4623B); color: var(--on-accent, #fff); border: none;
        border-radius: 8px; padding: 0 16px; font-weight: 600; cursor: pointer;
    }

.sp-chat-msg {
    margin-bottom: 12px;
    max-width: 88%;
    padding: 10px 12px;
    border-radius: 12px;
    white-space: pre-wrap;
    word-break: break-word;
}
.sp-chat-msg--user {
    margin-left: auto;
    background: var(--color-secondary, #2A2320);
    color: #fff;
    border-bottom-right-radius: 4px;
}
.sp-chat-msg--assistant {
    background: #fff;
    border: 1px solid #EDE9E1;
    color: #2A2320;
    border-bottom-left-radius: 4px;
}
.sp-chat-panel.is-open { display: flex; }


/* Booking confirmation card (book-by-chat) */
.sp-chat-booking { background: #fff; border: 1px solid #EDE9E1; border-radius: 14px; padding: 14px; margin-bottom: 12px; max-width: 94%; box-shadow: 0 10px 26px -16px rgba(0,0,0,.25); }
.sp-chat-booking__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.sp-chat-booking__badge { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--accent-ink, #C4623B); background: color-mix(in srgb, var(--accent, #C4623B) 12%, #ffffff); padding: 3px 9px; border-radius: 100px; }
.sp-chat-booking__badge.is-hold { color: #B0703B; background: rgba(196,130,42,.13); }
.sp-chat-booking__ref { font-size: 11.5px; color: #a5a5a5; font-family: ui-monospace, monospace; }
.sp-chat-booking__room { font-size: 15px; font-weight: 700; color: var(--color-secondary, #2A2320); margin-bottom: 3px; }
.sp-chat-booking__meta { font-size: 12.5px; color: #6b6b6b; margin-bottom: 10px; }
.sp-chat-booking__total { font-size: 18px; font-weight: 800; color: var(--color-secondary, #2A2320); margin-bottom: 12px; }
.sp-chat-booking__cta { display: block; text-align: center; background: var(--color-primary, #C4623B); color: var(--on-accent, #fff); font-weight: 600; font-size: 14px; padding: 11px 14px; border-radius: 10px; text-decoration: none; transition: filter .15s ease; }
.sp-chat-booking__cta:hover { filter: brightness(1.07); }
