#sibi-chat {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 9999;
    font-family: 'Philosopher', sans-serif;
}

#sibi-toggle {
    border: none;
    border-radius: 999px;
    padding: 12px 18px;
    background: #b85b63;
    color: #fff;
    font-size: 14px;
    letter-spacing: 0.4px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}

#sibi-toggle:hover {
    background: #a55058;
}

#sibi-panel {
    position: absolute;
    right: 0;
    bottom: 56px;
    width: 340px;
    max-height: 520px;
    background: #fff9f6;
    border: 1px solid #ead7d2;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

#sibi-panel.is-closed {
    display: none;
}

.sibi-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    background: #f3d9d2;
    color: #4b2c20;
    font-weight: 700;
}

.sibi-close {
    border: none;
    background: transparent;
    font-size: 20px;
    line-height: 1;
    color: #4b2c20;
}

.sibi-messages {
    padding: 14px;
    overflow-y: auto;
    flex: 1;
}

.sibi-message {
    margin-bottom: 10px;
    display: flex;
}

.sibi-message.bot {
    justify-content: flex-start;
}

.sibi-message.user {
    justify-content: flex-end;
}

.sibi-bubble {
    max-width: 80%;
    padding: 10px 12px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.4;
    background: #fff;
    border: 1px solid #ead7d2;
}

.sibi-message.user .sibi-bubble {
    background: #b85b63;
    border-color: #b85b63;
    color: #fff;
}

.sibi-quick {
    padding: 0 14px 10px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.sibi-quick button,
.sibi-quick a {
    background: #ffffff;
    border: 1px solid #e0c4bd;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 12px;
    color: #5b3326;
    text-decoration: none;
}

.sibi-form {
    display: flex;
    gap: 6px;
    padding: 10px 12px 12px 12px;
    border-top: 1px solid #ead7d2;
    background: #fff;
}

.sibi-input {
    flex: 1;
    border: 1px solid #e0c4bd;
    border-radius: 999px;
    padding: 8px 12px;
    font-size: 13px;
}

.sibi-send {
    border: none;
    border-radius: 999px;
    padding: 8px 14px;
    background: #4b2c20;
    color: #fff;
    font-size: 13px;
}

/* Inline inquiry form */
.sibi-inquiry-form {
    margin: 8px 0;
    padding: 12px;
    background: #fff3f0;
    border: 1px solid #e8c4bb;
    border-radius: 12px;
}

.sibi-inquiry-title {
    font-weight: 700;
    color: #4b2c20;
    margin: 0 0 10px 0;
    font-size: 13px;
}

.sibi-inq-input {
    display: block;
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #e0c4bd;
    border-radius: 8px;
    padding: 7px 10px;
    font-size: 12px;
    margin-bottom: 7px;
    background: #fff;
    color: #333;
    font-family: inherit;
}

.sibi-inq-input:focus {
    outline: none;
    border-color: #b85b63;
}

textarea.sibi-inq-input {
    resize: vertical;
    min-height: 56px;
}

.sibi-inq-actions {
    display: flex;
    gap: 6px;
    margin-top: 4px;
}

.sibi-inq-btn-send {
    flex: 1;
    border: none;
    border-radius: 999px;
    padding: 8px 12px;
    background: #b85b63;
    color: #fff;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
}

.sibi-inq-btn-send:hover { background: #a55058; }
.sibi-inq-btn-send:disabled { opacity: 0.6; cursor: not-allowed; }

.sibi-inq-btn-cancel {
    border: 1px solid #e0c4bd;
    border-radius: 999px;
    padding: 8px 12px;
    background: #fff;
    color: #5b3326;
    font-size: 12px;
    font-family: inherit;
    cursor: pointer;
}

.sibi-inq-note {
    font-size: 10px;
    color: #999;
    margin: 6px 0 0 0;
}

.sibi-bubble-success {
    background: #e8f5e9;
    border-color: #a5d6a7;
    color: #2e7d32;
}

/* Typing indicator animation */
.sibi-typing .sibi-bubble {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 16px;
}

.sibi-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #b85b63;
    animation: sibi-bounce 1.2s infinite ease-in-out;
}

.sibi-dot:nth-child(1) { animation-delay: 0s; }
.sibi-dot:nth-child(2) { animation-delay: 0.2s; }
.sibi-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes sibi-bounce {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
    30% { transform: translateY(-6px); opacity: 1; }
}

.sibi-input:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    #sibi-chat {
        right: 12px;
        bottom: 12px;
    }
    #sibi-panel {
        width: 92vw;
        max-height: 70vh;
    }
}

/* Photo upload in inquiry form */
.sibi-photo-upload {
    margin: 8px 0;
}

.sibi-inq-photo-label {
    display: inline-block;
    padding: 7px 14px;
    background: #f5ece8;
    color: #b85b63;
    border: 1px dashed #b85b63;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s;
}

.sibi-inq-photo-label:hover {
    background: #ffe8e0;
}

.sibi-photos-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.sibi-photos-preview img {
    width: 54px;
    height: 54px;
    object-fit: cover;
    border-radius: 5px;
    border: 1px solid #ddd;
}
