/* ==========================================================================
   Homz Chat Widget — SureHomz Customer Portal
   Brand colours: primary blue  #0d95df | accent orange #f04e25
   All class names are prefixed with "homz-" to avoid conflicts.
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS custom properties (fall back gracefully in IE11 via explicit values)
   -------------------------------------------------------------------------- */
:root {
    --homz-primary:        #0d95df;
    --homz-primary-dark:   #0b7ab8;
    --homz-accent:         #f04e25;
    --homz-accent-dark:    #bf4722;
    --homz-white:          #ffffff;
    --homz-light-bg:       #f5f8fb;
    --homz-border:         #dde3ea;
    --homz-text:           #30323f;
    --homz-text-muted:     #6b7280;
    --homz-shadow:         0 8px 32px rgba(13, 149, 223, 0.18);
    --homz-radius:         16px;
    --homz-panel-w:        380px;
    --homz-panel-h:        520px;
    --homz-z:              9999;
}

/* --------------------------------------------------------------------------
   Floating trigger button
   -------------------------------------------------------------------------- */
#homz-chat-btn {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: var(--homz-z);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--homz-primary);
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(13, 149, 223, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

#homz-chat-btn:hover {
    background: var(--homz-primary-dark);
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(13, 149, 223, 0.55);
}

#homz-chat-btn:active {
    transform: scale(0.96);
}

#homz-chat-btn svg {
    width: 28px;
    height: 28px;
    fill: var(--homz-white);
    pointer-events: none;
}

/* Unread badge */
#homz-unread-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--homz-accent);
    color: var(--homz-white);
    font-size: 11px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    display: none;
    font-family: 'IBM Plex Sans', Lato, Arial, sans-serif;
    pointer-events: none;
}

#homz-unread-badge.homz-visible {
    display: block;
}

/* --------------------------------------------------------------------------
   Chat panel
   -------------------------------------------------------------------------- */
#homz-chat-panel {
    position: fixed;
    bottom: 100px;
    right: 28px;
    z-index: var(--homz-z);
    width: var(--homz-panel-w);
    height: var(--homz-panel-h);
    background: var(--homz-white);
    border-radius: var(--homz-radius);
    box-shadow: var(--homz-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    /* Slide-up animation */
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    font-family: 'IBM Plex Sans', Lato, Arial, sans-serif;
    font-size: 14px;
    color: var(--homz-text);
    box-sizing: border-box;
}

#homz-chat-panel.homz-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
.homz-header {
    background: linear-gradient(135deg, var(--homz-primary) 0%, var(--homz-primary-dark) 100%);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.homz-header-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.homz-header-avatar svg {
    width: 22px;
    height: 22px;
    fill: var(--homz-white);
}

.homz-header-info {
    flex: 1;
    min-width: 0;
}

.homz-header-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--homz-white);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.homz-header-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.3;
    margin-top: 1px;
}

.homz-header-online-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #4ade80;
    margin-right: 4px;
    vertical-align: middle;
}

.homz-header-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.homz-header-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
    outline: none;
    padding: 0;
}

.homz-header-btn:hover {
    background: rgba(255, 255, 255, 0.28);
}

.homz-header-btn svg {
    width: 16px;
    height: 16px;
    fill: var(--homz-white);
}

/* --------------------------------------------------------------------------
   Messages area
   -------------------------------------------------------------------------- */
.homz-messages {
    flex: 1;
    overflow-y: auto;
    padding: 14px 14px 8px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: var(--homz-light-bg);
    scrollbar-width: thin;
    scrollbar-color: #c9d5e0 transparent;
}

.homz-messages::-webkit-scrollbar {
    width: 6px;
}

.homz-messages::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.04);
    border-radius: 3px;
}

.homz-messages::-webkit-scrollbar-thumb {
    background: #a8bdd0;
    border-radius: 3px;
}

.homz-messages::-webkit-scrollbar-thumb:hover {
    background: #7fa3be;
}

/* Individual message rows */
.homz-msg-row {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    max-width: 100%;
}

.homz-msg-row.homz-user {
    flex-direction: row-reverse;
}

/* Avatars next to bot messages */
.homz-msg-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--homz-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.homz-msg-avatar svg {
    width: 16px;
    height: 16px;
    fill: var(--homz-white);
}

/* Bubble */
.homz-bubble {
    max-width: 78%;
    padding: 9px 13px;
    border-radius: 14px;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
    font-size: 13.5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.07);
}

.homz-msg-row.homz-bot .homz-bubble {
    background: var(--homz-white);
    color: var(--homz-text);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--homz-border);
}

.homz-msg-row.homz-user .homz-bubble {
    background: var(--homz-primary);
    color: var(--homz-white);
    border-bottom-right-radius: 4px;
}

/* Links inside chat bubbles */
.homz-bubble a {
    color: var(--homz-primary);
    text-decoration: underline;
    word-break: break-all;
}
.homz-msg-row.homz-user .homz-bubble a {
    color: var(--homz-white);
}

/* Timestamp */
.homz-msg-time {
    font-size: 10px;
    color: var(--homz-text-muted);
    margin-top: 2px;
    padding: 0 4px;
    align-self: flex-end;
}

.homz-msg-row.homz-user .homz-msg-time {
    text-align: right;
}

/* --------------------------------------------------------------------------
   Typing indicator
   -------------------------------------------------------------------------- */
#homz-typing-indicator {
    display: none;
    align-items: center;
    gap: 6px;
    padding: 0 14px 6px;
    background: var(--homz-light-bg);
}

#homz-typing-indicator.homz-visible {
    display: flex;
}

.homz-typing-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--homz-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.homz-typing-avatar svg {
    width: 16px;
    height: 16px;
    fill: var(--homz-white);
}

.homz-typing-dots {
    background: var(--homz-white);
    border: 1px solid var(--homz-border);
    border-radius: 14px;
    border-bottom-left-radius: 4px;
    padding: 9px 14px;
    display: flex;
    gap: 4px;
    align-items: center;
}

.homz-typing-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--homz-primary);
    animation: homz-bounce 1.2s infinite ease-in-out;
}

.homz-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.homz-typing-dot:nth-child(3) { animation-delay: 0.4s; }

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

/* --------------------------------------------------------------------------
   Confirmation card
   -------------------------------------------------------------------------- */
.homz-confirm-card {
    background: var(--homz-white);
    border: 1px solid var(--homz-border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* In-chat sign-in / register cards */
.homz-auth-card {
    background: var(--homz-white);
    border: 1px solid var(--homz-border);
    border-radius: 12px;
    padding: 12px 14px;
    margin-top: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.homz-auth-q { font-size: 13px; margin-bottom: 8px; color: var(--homz-text, #1f2937); }
.homz-auth-row { display: flex; gap: 8px; align-items: center; }
.homz-auth-col { display: flex; flex-direction: column; gap: 8px; }
.homz-auth-input {
    flex: 1 1 auto; width: 100%; box-sizing: border-box;
    border: 1px solid var(--homz-border); border-radius: 8px;
    padding: 9px 11px; font-size: 14px; outline: none;
}
.homz-auth-input:focus { border-color: var(--homz-accent, #0b74c4); }
.homz-auth-btn {
    flex: 0 0 auto; border: none; cursor: pointer;
    background: var(--homz-accent, #0b74c4); color: #fff;
    border-radius: 8px; padding: 9px 14px; font-size: 13px; font-weight: 600;
}
.homz-auth-btn:disabled { opacity: 0.6; cursor: default; }
.homz-auth-err { color: #dc2626; font-size: 12px; margin-top: 6px; min-height: 14px; }

.homz-confirm-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.homz-confirm-card.homz-write .homz-confirm-label  { color: #2563eb; }
.homz-confirm-card.homz-payment .homz-confirm-label { color: var(--homz-accent); }

.homz-confirm-text {
    font-size: 13px;
    color: var(--homz-text);
    margin-bottom: 10px;
    line-height: 1.5;
}

.homz-confirm-buttons {
    display: flex;
    gap: 8px;
}

.homz-confirm-btn {
    flex: 1;
    padding: 7px 10px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    transition: background 0.15s, opacity 0.15s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.homz-confirm-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* Yes button — colour depends on action type */
.homz-confirm-card.homz-write  .homz-btn-yes { background: #2563eb; color: #fff; }
.homz-confirm-card.homz-payment .homz-btn-yes { background: var(--homz-accent); color: #fff; }
.homz-confirm-card.homz-write  .homz-btn-yes:hover  { background: #1d4ed8; }
.homz-confirm-card.homz-payment .homz-btn-yes:hover  { background: var(--homz-accent-dark); }

/* No button — neutral for both */
.homz-confirm-btn.homz-btn-no {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.homz-confirm-btn.homz-btn-no:hover {
    background: #e5e7eb;
}

/* --------------------------------------------------------------------------
   Error bubble
   -------------------------------------------------------------------------- */
.homz-bubble.homz-error {
    background: #fff5f5;
    color: #c0392b;
    border-color: #fca5a5;
}

/* --------------------------------------------------------------------------
   Input area
   -------------------------------------------------------------------------- */
.homz-input-area {
    padding: 10px 12px 12px;
    background: var(--homz-white);
    border-top: 1px solid var(--homz-border);
    display: flex;
    gap: 8px;
    align-items: flex-end;
    flex-shrink: 0;
}

.homz-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    background: var(--homz-light-bg);
    border: 1px solid var(--homz-border);
    border-radius: 22px;
    padding: 0 12px;
    transition: border-color 0.15s;
    min-height: 40px;
}

.homz-input-wrap:focus-within {
    border-color: var(--homz-primary);
    background: var(--homz-white);
}

#homz-message-input {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    resize: none;
    font-family: inherit;
    font-size: 13.5px;
    color: var(--homz-text);
    line-height: 1.5;
    padding: 8px 0;
    max-height: 90px;
    overflow-y: auto;
    scrollbar-width: none;
}

#homz-message-input::-webkit-scrollbar { display: none; }

#homz-message-input::placeholder {
    color: #9ca3af;
}

#homz-send-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--homz-primary);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.15s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

#homz-send-btn:hover {
    background: var(--homz-primary-dark);
    transform: scale(1.06);
}

#homz-send-btn:active { transform: scale(0.94); }

#homz-send-btn:disabled {
    background: #c3ddf0;
    cursor: not-allowed;
    transform: none;
}

#homz-send-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--homz-white);
    transform: rotate(45deg);
}

/* --------------------------------------------------------------------------
   Navigation button (shown after booking confirmation)
   -------------------------------------------------------------------------- */
.homz-nav-btn {
    display: inline-block;
    margin-top: 8px;
    padding: 7px 14px;
    background: var(--homz-primary);
    color: var(--homz-white) !important;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.15s, transform 0.1s;
    white-space: nowrap;
}

.homz-nav-btn:hover {
    background: var(--homz-primary-dark);
    transform: translateX(2px);
    text-decoration: none !important;
}

/* Auto-redirect notice (shown before navigating) */
.homz-nav-redirect {
    display: inline-block;
    margin-top: 8px;
    padding: 6px 12px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    font-size: 12px;
    color: #0369a1;
    font-style: italic;
}

/* --------------------------------------------------------------------------
   Virtual walkthrough media card (2.5)
   -------------------------------------------------------------------------- */
.homz-media-card {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 280px;
}

/* Video tile — clickable poster that opens the walkthrough in a new tab */
.homz-media-video {
    position: relative;
    display: flex;
    align-items: flex-end;
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    background-color: #0f1e3d;
    background-size: cover;
    background-position: center;
    text-decoration: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    transition: transform 0.12s;
}

.homz-media-video:hover { transform: translateY(-2px); }

.homz-media-video .homz-media-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--homz-primary);
    font-size: 18px;
    line-height: 46px;
    text-align: center;
    padding-left: 3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.homz-media-video .homz-media-cap {
    position: relative;
    width: 100%;
    padding: 16px 10px 8px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0));
}

/* Interior photo strip — horizontal scroll */
.homz-media-photos {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}

.homz-media-photo {
    flex: 0 0 auto;
    display: block;
    width: 84px;
    height: 84px;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none !important;
}

.homz-media-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.12s;
}

.homz-media-photo:hover img { transform: scale(1.06); }

/* --------------------------------------------------------------------------
   Kit-purchase checkout card (3.1)
   -------------------------------------------------------------------------- */
.homz-pay-card {
    margin-top: 8px;
    max-width: 280px;
    padding: 12px 14px;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    background: #f0f9ff;
}

.homz-pay-head {
    font-size: 13px;
    font-weight: 700;
    color: var(--homz-primary);
    margin-bottom: 4px;
}

.homz-pay-body {
    font-size: 12px;
    color: #334155;
    line-height: 1.4;
    margin-bottom: 10px;
}

.homz-pay-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.homz-pay-waiting .homz-pay-status-txt { color: #0369a1; }
.homz-pay-failed  .homz-pay-status-txt { color: #b91c1c; }

/* Spinner shown while the payment is in progress */
.homz-spinner {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
    border: 2px solid #bae6fd;
    border-top-color: var(--homz-primary);
    border-radius: 50%;
    animation: homz-spin 0.7s linear infinite;
}

@keyframes homz-spin { to { transform: rotate(360deg); } }

/* Subtle fallback link (only if the inline modal can't open / for retry) */
.homz-pay-fallback {
    display: inline-block;
    margin-top: 10px;
    font-size: 11px;
    color: var(--homz-primary);
    text-decoration: underline !important;
}

/* Success receipt (replaces the card content on payment success) */
.homz-pay-card-done {
    border-color: #bbf7d0;
    background: #f0fdf4;
}

.homz-receipt-head { color: #15803d; margin-bottom: 8px; }

.homz-receipt {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.homz-receipt-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 12px;
}

.homz-receipt-row span { color: #64748b; }
.homz-receipt-row b    { color: #14532d; font-weight: 700; word-break: break-all; text-align: right; }

/* --------------------------------------------------------------------------
   Clickable form picker (3.1)
   -------------------------------------------------------------------------- */
.homz-form-choices {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 280px;
}

.homz-form-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    background: var(--homz-white);
    color: #1e293b;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.12s, background 0.12s, transform 0.1s;
}

.homz-form-btn:hover:not(:disabled) {
    border-color: var(--homz-primary);
    background: #f0f7ff;
    transform: translateY(-1px);
}

.homz-form-name { flex: 1; }

.homz-form-amt {
    flex: 0 0 auto;
    color: var(--homz-primary);
    font-weight: 700;
}

.homz-form-btn:disabled { opacity: 0.55; cursor: default; }

.homz-form-btn.homz-form-selected {
    border-color: var(--homz-primary);
    background: var(--homz-primary);
    color: var(--homz-white);
    opacity: 1;
}

.homz-form-btn.homz-form-selected .homz-form-amt { color: var(--homz-white); }

/* --------------------------------------------------------------------------
   Mobile — full screen below 768 px
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
    #homz-chat-panel {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border-radius: 0;
        transform: translateY(100%);
        transition: transform 0.3s ease, opacity 0.3s ease;
        opacity: 1;
    }

    #homz-chat-panel.homz-open {
        transform: translateY(0);
        opacity: 1;
    }

    #homz-chat-btn {
        bottom: 18px;
        right: 18px;
    }
}

/* --------------------------------------------------------------------------
   Voice (1.4) — mic button, voice-first entry card, speaking indicator
   -------------------------------------------------------------------------- */

/* Mic button (sits left of the text input) */
.homz-mic-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--homz-light-bg);
    border: 1px solid var(--homz-border);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.homz-mic-btn:hover  { background: #e8f4fc; }
.homz-mic-btn:active { transform: scale(0.94); }

.homz-mic-btn svg {
    width: 18px;
    height: 18px;
    fill: var(--homz-primary);
    pointer-events: none;
}

/* Recording — accent colour, pulsing halo */
.homz-mic-btn.homz-recording {
    background: var(--homz-accent);
    border-color: var(--homz-accent);
    animation: homz-mic-pulse 1.3s infinite;
}
.homz-mic-btn.homz-recording svg { fill: var(--homz-white); }

@keyframes homz-mic-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(240, 78, 37, 0.45); }
    70%  { box-shadow: 0 0 0 10px rgba(240, 78, 37, 0); }
    100% { box-shadow: 0 0 0 0 rgba(240, 78, 37, 0); }
}

/* Processing — amber spinner ring */
.homz-mic-btn.homz-processing {
    position: relative;
    background: #fff7ed;
    border-color: #fdba74;
}
.homz-mic-btn.homz-processing svg { fill: #d97706; }
.homz-mic-btn.homz-processing::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #d97706;
    animation: homz-spin 0.8s linear infinite;
}
@keyframes homz-spin { to { transform: rotate(360deg); } }

/* Voice-first entry card ("Choose how you'd like to chat") */
.homz-voice-entry {
    background: linear-gradient(135deg, #eaf6fd 0%, var(--homz-white) 70%);
    border: 1px solid var(--homz-border);
    border-radius: 14px;
    padding: 16px 16px 14px;
    box-shadow: 0 2px 10px rgba(13, 149, 223, 0.10);
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.homz-voice-entry-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--homz-text);
    margin-bottom: 4px;
}

.homz-voice-entry-sub {
    font-size: 12px;
    color: var(--homz-text-muted);
    line-height: 1.4;
    margin-bottom: 12px;
}

.homz-voice-entry-buttons {
    display: flex;
    gap: 8px;
}

.homz-voice-entry-btn {
    flex: 1;
    padding: 9px 10px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.homz-voice-entry-btn:active { transform: scale(0.97); }

.homz-voice-primary {
    background: var(--homz-primary);
    color: var(--homz-white);
    border: none;
}
.homz-voice-primary:hover { background: var(--homz-primary-dark); }

.homz-voice-secondary {
    background: var(--homz-white);
    color: var(--homz-text);
    border: 1px solid var(--homz-border);
}
.homz-voice-secondary:hover { background: var(--homz-light-bg); }

/* Speaking — the header avatar gently pulses while a reply is spoken */
#homz-chat-panel.homz-speaking .homz-header-avatar {
    animation: homz-speak-pulse 1s infinite ease-in-out;
}

@keyframes homz-speak-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.35); }
    50%      { box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}
