.hds-chat-bubble {
    position: fixed;
    bottom: 20px;
    z-index: 998;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #ec6a1f;
    color: #fff;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,.3);
    font-size: 26px;
    cursor: pointer;
}
.hds-chat-bubble.hds-chat-left { left: 20px; }
.hds-chat-bubble.hds-chat-right { right: 20px; }

.hds-chat-cart-badge {
    position: absolute;
    top: -4px;
    inset-inline-end: -4px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    border-radius: 9px;
    background: #dc3545;
    color: #fff;
    font-size: 11px;
    font-weight: bold;
    line-height: 18px;
    text-align: center;
    display: none;
}
.hds-chat-cart-badge.hds-chat-cart-badge-visible { display: block; }

.hds-chat-window {
    position: fixed;
    bottom: 90px;
    z-index: 999;
    width: 320px;
    max-width: calc(100vw - 40px);
    height: 420px;
    max-height: 70vh;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(0,0,0,.35);
    display: none;
    flex-direction: column;
    overflow: hidden;
    font-family: inherit;
}
.hds-chat-window.hds-chat-left { left: 20px; }
.hds-chat-window.hds-chat-right { right: 20px; }
.hds-chat-window.hds-chat-open { display: flex; }

.hds-chat-header {
    background: #ec6a1f;
    color: #fff;
    padding: 12px 15px;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.hds-chat-header button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    cursor: pointer;
}
.hds-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 10px;
    background: #f7f7f7;
}
.hds-chat-msg {
    margin-bottom: 8px;
    padding: 8px 12px;
    border-radius: 12px;
    max-width: 85%;
    word-wrap: break-word;
    font-size: 14px;
    line-height: 1.4;
}
.hds-chat-msg.hds-chat-user {
    background: #ec6a1f;
    color: #fff;
    margin-inline-start: auto;
}
.hds-chat-msg.hds-chat-bot {
    background: #e9e9e9;
    color: #222;
    margin-inline-end: auto;
}
.hds-chat-form {
    display: flex;
    border-top: 1px solid #ddd;
    padding: 8px;
    gap: 6px;
}
.hds-chat-form input[type=text] {
    flex: 1;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 8px 12px;
    font-size: 14px;
}
.hds-chat-form button {
    background: #ec6a1f;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
}
.hds-chat-lead {
    padding: 12px;
    font-size: 14px;
}
.hds-chat-lead input, .hds-chat-lead textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 8px;
    margin-bottom: 8px;
    font-size: 14px;
}
.hds-chat-lead button {
    background: #ec6a1f;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 14px;
    cursor: pointer;
}

@media (max-width: 480px) {
    .hds-chat-window {
        width: calc(100vw - 24px);
        height: 60vh;
        bottom: 84px;
    }
}

/* Guided ordering flow (platform -> goal -> package -> cart -> checkout) -
   every interactive element here is a real <button>, never a bare link,
   so every step stays explicit and tappable instead of relying on typed
   text or raw URLs. */
.hds-chat-window.hds-chat-commerce-mode {
    width: 360px;
    height: 520px;
    max-height: 80vh;
}

.hds-chat-buttons {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0;
}
.hds-chat-btn {
    background: #fff;
    border: 1px solid #ec6a1f;
    color: #ec6a1f;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    text-align: start;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
.hds-chat-btn:hover { background: #fff4ec; }
.hds-chat-btn-primary {
    background: #ec6a1f;
    color: #fff;
}
.hds-chat-btn-primary:hover { background: #d65e18; }

.hds-chat-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08);
}
.hds-chat-card-media {
    height: 70px;
    border-radius: 6px;
    background: linear-gradient(135deg, #025f85 0%, #07b7ff 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: #fff;
    font-size: 26px;
    overflow: hidden;
}
.hds-chat-card-media img { max-height: 100%; max-width: 100%; object-fit: contain; }
.hds-chat-card h5 { margin: 0 0 4px; font-size: 14px; }
.hds-chat-card .hds-chat-card-price {
    display: inline-block;
    font-weight: bold;
    color: #025f85;
    background: #eaf6fb;
    font-size: 14px;
    padding: 3px 12px;
    border-radius: 999px;
    margin: 6px 0;
    font-variant-numeric: tabular-nums;
}
.hds-chat-card ul { list-style: none; padding: 0; margin: 6px 0; font-size: 12px; color: #555; }
.hds-chat-card ul li { padding: 1px 0; }
.hds-chat-card ul li:before { content: "✓ "; color: #28a745; }
.hds-chat-qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0;
}
.hds-chat-qty button {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 1px solid #ccc;
    background: #fff;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
}
.hds-chat-qty span { min-width: 20px; text-align: center; font-weight: bold; }

.hds-chat-form-inline {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 8px 0;
}
.hds-chat-form-inline input {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 13px;
}

.hds-chat-whatsapp-btn {
    background: #25D366;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
