﻿/* ============================================================
   HV Chatbot Widget Styles, Love Gracefully
   Palette and type from love-gracefully.com: dusty rose #c47c7c on blush
   whites, Playfair Display headings over Montserrat. The host site already
   loads both fonts; elsewhere the fallbacks take over.
   ============================================================ */
:root {
    --hv-accent:   #c47c7c;
    --hv-accent-hover: #ad6767;
    --hv-on-accent: #ffffff;
    --hv-dark:     #333333;
    --hv-light:    #444444;
    --hv-white:    #ffffff;
    --hv-muted:    #9b8b8b;
    --hv-bg:       #ffffff;
    --hv-bg-alt:   #fcf9f9;
    --hv-blush:    #f9f2f2;
    --hv-border:   #ecdddd;
    --hv-window-border: #e2cccc;
    --hv-bubble-border: #f0dddd;
    --hv-input-border: #d6a7a7;
    --hv-link:     #9e5a5a;
    --hv-radius:   20px;
    --hv-shadow:   0 10px 36px rgba(110, 60, 60, .18);
    --hv-font:     'Montserrat', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --hv-font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;

    /*
       Position hooks:
       - trigger = the small floating round chat button when the chat is closed.
       - mobile trigger = the same closed button, but on screens up to 480px.
       - window = the opened chat panel. On mobile it becomes full-screen below.
       Override these from the host page when a site has sticky buttons nearby.
    */
    --hv-chat-trigger-bottom: 28px;
    --hv-chat-trigger-right: 110px;
    --hv-chat-trigger-left: auto;

    --hv-chat-mobile-trigger-bottom: 16px;
    --hv-chat-mobile-trigger-right: auto;
    --hv-chat-mobile-trigger-left: 16px;

    --hv-chat-window-bottom: 24px;
    --hv-chat-window-right: 24px;
    --hv-chat-window-left: auto;
}

#hv-chat-trigger,
#hv-chat-trigger *,
#hv-chat-window,
#hv-chat-window * {
    box-sizing: border-box !important;
}

/* Scoped reset against WordPress/theme styles. Keep it inside this widget only. */
#hv-chat-window,
#hv-chat-window div,
#hv-chat-window span,
#hv-chat-window h3,
#hv-chat-window a,
#hv-chat-window label,
#hv-chat-window select,
#hv-chat-window input,
#hv-chat-window textarea,
#hv-chat-window button,
#hv-chat-trigger,
#hv-chat-trigger span,
#hv-chat-trigger button {
    font-family: var(--hv-font) !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    text-shadow: none !important;
}
#hv-chat-window input,
#hv-chat-window textarea,
#hv-chat-window button,
#hv-chat-trigger {
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    box-shadow: none;
}
#hv-chat-window input,
#hv-chat-window textarea {
    float: none !important;
    vertical-align: baseline !important;
}
#hv-chat-window button,
#hv-chat-trigger {
    background-image: none !important;
}

/* --- Floating trigger button ------------------------------------------------ */
#hv-chat-trigger {
    position: fixed !important;
    bottom: var(--hv-chat-trigger-bottom) !important;
    right: var(--hv-chat-trigger-right) !important;
    left: var(--hv-chat-trigger-left) !important;
    z-index: 99998 !important;
    min-width: 86px !important;
    height: 50px !important;
    border-radius: 6px !important;
    border: none !important;
    background: var(--hv-accent) !important;
    color: var(--hv-on-accent) !important;
    cursor: pointer !important;
    box-shadow: var(--hv-shadow) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px !important;
    padding: 0 22px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 50px !important;
    white-space: nowrap !important;
    transition: padding .2s, box-shadow .2s !important;
}
#hv-chat-trigger:hover {
    padding-left: 20px !important;
    padding-right: 20px !important;
    background: var(--hv-accent-hover) !important;
    box-shadow: 0 12px 40px rgba(110, 60, 60, .30) !important;
}
#hv-chat-trigger svg {
    width: 22px;
    height: 22px;
    fill: var(--hv-on-accent);
    flex-shrink: 0;
}
/* Same uppercase, tracked label as the buttons on the site. Beats the scoped
   reset above, which zeroes letter-spacing and text-transform. */
#hv-chat-trigger span {
    text-transform: uppercase !important;
    letter-spacing: .12em !important;
    transform: translateY(-1px);
}
#hv-chat-trigger.hv-hidden { display: none; }

/* --- Chat window ------------------------------------------------------------ */
#hv-chat-window {
    position: fixed !important;
    bottom: var(--hv-chat-window-bottom);
    right: var(--hv-chat-window-right);
    left: var(--hv-chat-window-left);
    z-index: 99999;
    width: 380px;
    max-width: calc(100vw - 32px);
    height: 600px;
    max-height: calc(100vh - 48px);
    border-radius: var(--hv-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--hv-shadow);
    border: 1px solid var(--hv-window-border);
    font-family: var(--hv-font);
    background: var(--hv-bg);
    opacity: 0;
    transform: translateY(20px) scale(.96);
    pointer-events: none;
    transition: opacity .25s, transform .25s;
}
#hv-chat-window.hv-open {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

/* --- Header ----------------------------------------------------------------- */
#hv-chat-header {
    background: var(--hv-blush);
    border-bottom: 1px solid var(--hv-border);
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
}
#hv-chat-header .hv-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--hv-accent);
    color: var(--hv-on-accent);
    font-size: 27px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
#hv-chat-header .hv-header-text {
    flex: 1;
    min-width: 0;
}
#hv-chat-header .hv-header-text h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 400;
    color: var(--hv-dark);
    line-height: 1.2;
    text-align: left;
}
#hv-chat-header .hv-header-text span {
    margin-top: 3px;
    font-size: 10.5px;
    font-weight: 500;
    color: #7d6666;
    display: flex;
    align-items: center;
    gap: 6px;
}
#hv-chat-header .hv-header-text span::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--hv-accent);
    border-radius: 50%;
    display: inline-block;
}
#hv-chat-close {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(196, 124, 124, .14);
    border-radius: 50%;
    color: var(--hv-dark);
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
    flex-shrink: 0;
    line-height: 1;
}
#hv-chat-close:hover { background: rgba(196, 124, 124, .24); }

/* --- Messages area ---------------------------------------------------------- */
#hv-chat-messages {
    /* New replies must not move the reader or start a smooth scroll. */
    overflow-anchor: none;
    scroll-behavior: auto;
    flex: 1;
    overflow-y: auto;
    padding: 18px 18px 16px;
    background: var(--hv-bg);
    display: flex;
    flex-direction: column;
    gap: 12px;
}
#hv-chat-messages::-webkit-scrollbar { width: 5px; }
#hv-chat-messages::-webkit-scrollbar-track { background: transparent; }
#hv-chat-messages::-webkit-scrollbar-thumb { background: var(--hv-border); border-radius: 4px; }

/* --- Message bubbles -------------------------------------------------------- */
.hv-msg {
    max-width: 85%;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1.5;
    word-wrap: break-word;
    text-align: left;
    animation: hv-fadein .25s ease;
}
@keyframes hv-fadein {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hv-msg-bot {
    align-self: flex-start;
    background: var(--hv-blush);
    color: var(--hv-dark);
    border: 1px solid var(--hv-bubble-border);
}
.hv-msg-user {
    align-self: flex-end;
    background: var(--hv-accent);
    color: var(--hv-on-accent);
    border-bottom-right-radius: 4px;
    font-weight: 500;
}

/* Formatting inside bot messages */
.hv-msg-bot strong { color: var(--hv-dark); font-weight: 700; }
/* Lines starting with "- " in a reply (formatMarkdown in widget.js) */
#hv-chat-window .hv-msg ul.hv-list {
    margin: 4px 0 !important;
    padding: 0 0 0 18px !important;
    list-style: disc outside !important;
}
#hv-chat-window .hv-msg ul.hv-list li {
    margin: 0 0 2px !important;
    padding: 0 !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
    list-style: inherit !important;
    background: none !important;
}
#hv-chat-window .hv-msg ul.hv-list li::marker { color: var(--hv-accent); }
#hv-chat-window .hv-msg ul.hv-list li::before { content: none !important; }
.hv-msg a { color: var(--hv-link); text-decoration: underline; word-break: break-all; }
.hv-msg-user a { color: var(--hv-on-accent); }

/* --- Typing indicator ------------------------------------------------------- */
.hv-typing {
    display: flex;
    gap: 5px;
    padding: 12px 16px;
    align-self: flex-start;
}
.hv-typing span {
    width: 8px;
    height: 8px;
    background: var(--hv-border);
    border-radius: 50%;
    animation: hv-bounce .6s infinite alternate;
}
.hv-typing span:nth-child(2) { animation-delay: .15s; }
.hv-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes hv-bounce {
    from { opacity: .3; transform: translateY(0); }
    to   { opacity: 1;  transform: translateY(-5px); }
}

/* --- Input bar -------------------------------------------------------------- */
#hv-chat-input-bar {
    display: flex !important;
    align-items: center;
    padding: 14px 16px;
    background: var(--hv-bg);
    border-top: 1px solid var(--hv-border);
    gap: 10px;
    flex-shrink: 0;
}
#hv-chat-input {
    flex: 1;
    border: 1.5px solid var(--hv-input-border);
    border-radius: 22px;
    padding: 11px 18px;
    font-size: 14px;
    font-family: var(--hv-font);
    background: var(--hv-bg);
    color: var(--hv-light);
    outline: none;
    transition: border-color .2s;
    resize: none;
    min-height: 44px;
    max-height: 80px;
    line-height: 1.4;
}
#hv-chat-input::placeholder { color: var(--hv-muted); }
#hv-chat-input:focus { border-color: var(--hv-accent); }
#hv-chat-send {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: var(--hv-accent);
    color: var(--hv-on-accent);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .2s, background .2s;
    flex-shrink: 0;
}
#hv-chat-send:disabled { opacity: .45; cursor: default; }
#hv-chat-send:not(:disabled):hover { background: var(--hv-accent-hover); }
#hv-chat-send svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--hv-white);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform: translate(-1px, 1px);
}

/* --- Footer: tagline, then the legal line with the privacy link -------------- */
#hv-chat-footer {
    text-align: center;
    font-size: 11px;
    line-height: 1.45;
    color: #6f5d5d;
    padding: 10px 12px 12px;
    background: var(--hv-blush);
    border-top: 1px solid var(--hv-border);
}
#hv-chat-footer .hv-footer-tagline {
    font-style: italic;
    font-size: 13px;
    color: var(--hv-dark);
    margin-bottom: 2px;
}

/* --- Mobile adjustments ----------------------------------------------------- */
@media (max-width: 480px) {
    #hv-chat-window {
        width: 100vw !important;
        max-width: 100vw !important;
        /* 100vh on mobile includes the area behind the browser UI, so the panel
           overflows and the header is pushed off-screen. dvh = the *visible*
           viewport (Chrome/Safari mobile). vh stays as fallback for old browsers. */
        height: 100vh !important;
        height: 100dvh !important;
        max-height: 100vh !important;
        max-height: 100dvh !important;
        top: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        left: 0 !important;
        border: none !important;
        border-radius: 0 !important;
    }
    #hv-chat-trigger {
        bottom: var(--hv-chat-mobile-trigger-bottom) !important;
        right: var(--hv-chat-mobile-trigger-right) !important;
        left: var(--hv-chat-mobile-trigger-left) !important;
    }
}

/* --- Inline chat (embed/, framed on the client's page) ----------------------
   Always open and filling its container, so it beats the fixed panel above
   and the full-screen mobile panel. On a wide frame the conversation keeps a
   readable column in the middle; the header and footer stay full width. */
#hv-chat-window.hv-inline {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    z-index: auto !important;
    width: 100% !important;
    max-width: none !important;
    height: 100% !important;
    max-height: none !important;
    border: 1px solid var(--hv-window-border) !important;
    border-radius: var(--hv-radius) !important;
    box-shadow: none !important;
    opacity: 1 !important;
    transform: none !important;
    pointer-events: auto !important;
    transition: none !important;
}
#hv-chat-window.hv-inline #hv-chat-messages {
    padding-left: max(18px, calc((100% - 760px) / 2));
    padding-right: max(18px, calc((100% - 760px) / 2));
}
#hv-chat-window.hv-inline #hv-chat-input-bar {
    padding-left: max(16px, calc((100% - 760px) / 2));
    padding-right: max(16px, calc((100% - 760px) / 2));
}

/* --- Inline lead capture form ----------------------------------------------- */
.hv-lead-form {
    align-self: stretch;
    background: var(--hv-bg-alt);
    border: 1px solid var(--hv-bubble-border);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 9px;
    max-width: 100%;
    animation: hv-fadein .25s ease;
}
.hv-lead-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--hv-dark);
    margin-bottom: 2px;
}
.hv-lead-input {
    border: 1px solid var(--hv-border);
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 13px;
    font-family: var(--hv-font) !important;
    background: var(--hv-bg) !important;
    color: var(--hv-light);
    outline: none;
    transition: border-color .2s;
    width: 100%;
    box-sizing: border-box;
}
.hv-lead-input:focus {
    border-color: var(--hv-accent);
}
.hv-lead-input::placeholder {
    color: var(--hv-muted);
}
select.hv-lead-input {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}
select.hv-lead-input option {
    background: var(--hv-bg);
    color: var(--hv-light);
}
.hv-lead-phone-row {
    display: flex;
    gap: 6px;
    width: 100%;
    box-sizing: border-box;
}
.hv-lead-phone-cc {
    flex: 0 0 92px;
    width: 92px;
    min-width: 0;
}
.hv-lead-phone-num {
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
}
.hv-lead-submit {
    border: none;
    border-radius: 8px;
    padding: 10px 16px 11px;
    font-size: 13px;
    font-weight: 600;
    font-family: var(--hv-font);
    background: var(--hv-accent);
    color: var(--hv-on-accent);
    cursor: pointer;
    transition: background .2s, box-shadow .2s, opacity .2s;
}
.hv-lead-submit:hover:not(:disabled) {
    background: var(--hv-accent-hover);
    box-shadow: 0 4px 12px rgba(0,0,0,.12);
}
.hv-lead-submit:disabled {
    opacity: .5;
    cursor: default;
}
.hv-lead-note {
    font-size: 10px;
    color: var(--hv-muted);
    text-align: center;
}
.hv-lead-row {
    display: flex;
    gap: 6px;
    width: 100%;
}
.hv-lead-error {
    font-size: 12px;
    color: #b54848;
}
.hv-lead-error[hidden] { display: none; }
.hv-lead-success {
    font-size: 13px;
    color: var(--hv-link);
    font-weight: 600;
    text-align: center;
    padding: 8px 0;
}

/* Final scoped hardening against host CMS/theme form and button styles. */
#hv-chat-window .hv-msg,
#hv-chat-window .hv-lead-form,
#hv-chat-window .hv-lead-title,
#hv-chat-window .hv-lead-note,
#hv-chat-window .hv-lead-success,
#hv-chat-window #hv-chat-footer {
    font-family: var(--hv-font) !important;
    letter-spacing: normal !important;
    text-transform: none !important;
}
#hv-chat-window .hv-lead-form {
    display: flex !important;
    flex-direction: column !important;
    align-self: stretch !important;
    gap: 9px !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 16px !important;
    border: 1px solid var(--hv-bubble-border) !important;
    border-radius: 16px !important;
    background: var(--hv-bg-alt) !important;
    color: var(--hv-light) !important;
    box-shadow: none !important;
}
#hv-chat-window .hv-lead-title {
    margin: 0 0 2px !important;
    padding: 0 !important;
    color: var(--hv-dark) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
}
#hv-chat-window .hv-msg {
    margin: 0 !important;
    padding: 11px 16px !important;
    max-width: 85% !important;
    border-radius: 16px !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    text-align: left !important;
    box-shadow: none !important;
}
#hv-chat-window .hv-msg-bot {
    background: var(--hv-blush) !important;
    color: var(--hv-dark) !important;
    border: 1px solid var(--hv-bubble-border) !important;
}
#hv-chat-window .hv-msg-user {
    background: var(--hv-accent) !important;
    color: var(--hv-on-accent) !important;
    border: none !important;
    border-bottom-right-radius: 4px !important;
}
#hv-chat-window #hv-chat-input,
#hv-chat-window .hv-lead-input {
    -webkit-appearance: none !important;
    appearance: none !important;
    display: block !important;
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    border-style: solid !important;
    border-width: 1px !important;
    border-color: var(--hv-border) !important;
    border-radius: 8px !important;
    background: var(--hv-bg) !important;
    color: var(--hv-light) !important;
    box-shadow: none !important;
    outline: none !important;
    font-family: var(--hv-font) !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 18px !important;
    text-align: left !important;
    text-decoration: none !important;
}
#hv-chat-window .hv-lead-input {
    height: 40px !important;
    min-height: 40px !important;
    padding: 10px 14px !important;
    border-color: #ead4d4 !important;
}
#hv-chat-window .hv-lead-phone-row {
    display: flex !important;
    gap: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
#hv-chat-window .hv-lead-phone-cc {
    width: 92px !important;
    flex: 0 0 92px !important;
    min-width: 0 !important;
    padding-right: 26px !important;
    text-overflow: ellipsis !important;
}
#hv-chat-window .hv-lead-phone-num {
    width: auto !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
#hv-chat-window #hv-chat-input {
    height: auto !important;
    min-height: 44px !important;
    max-height: 80px !important;
    border-width: 1.5px !important;
    border-color: var(--hv-input-border) !important;
    border-radius: 22px !important;
    padding: 11px 18px !important;
    background: var(--hv-bg) !important;
    font-size: 14px !important;
    resize: none !important;
}
#hv-chat-window #hv-chat-input:focus,
#hv-chat-window .hv-lead-input:focus {
    border-color: var(--hv-accent) !important;
    box-shadow: none !important;
}
#hv-chat-window #hv-chat-input::placeholder,
#hv-chat-window .hv-lead-input::placeholder {
    color: var(--hv-muted) !important;
    opacity: 1 !important;
}
#hv-chat-window select.hv-lead-input {
    cursor: pointer !important;
    padding-right: 32px !important;
    background-color: var(--hv-bg) !important;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--hv-muted) 50%),
        linear-gradient(135deg, var(--hv-muted) 50%, transparent 50%) !important;
    background-position:
        calc(100% - 17px) 50%,
        calc(100% - 12px) 50% !important;
    background-size:
        5px 5px,
        5px 5px !important;
    background-repeat: no-repeat !important;
}
#hv-chat-window #hv-chat-send,
#hv-chat-window .hv-lead-submit,
#hv-chat-window #hv-chat-close {
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-family: var(--hv-font) !important;
}
#hv-chat-window .hv-lead-submit {
    display: block !important;
    width: 100% !important;
    min-height: 44px !important;
    margin-top: 2px !important;
    padding: 12px 16px 13px !important;
    border-radius: 8px !important;
    background: var(--hv-accent) !important;
    color: var(--hv-on-accent) !important;
    font-size: 12.5px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
    text-align: center !important;
    cursor: pointer !important;
    transition: background .2s, box-shadow .2s, opacity .2s !important;
    transform: none !important;
}
#hv-chat-window .hv-lead-submit:hover:not(:disabled) {
    background: var(--hv-accent-hover) !important;
    box-shadow: 0 4px 12px rgba(0,0,0,.12) !important;
    transform: none !important;
}
#hv-chat-window #hv-chat-send {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 0 !important;
    border-radius: 50% !important;
    background: var(--hv-accent) !important;
    color: var(--hv-on-accent) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 44px !important;
}


/* ---------------------------------------------------------------------------
   HOST-PAGE HARDENING FOR <select>
   The widget is embedded in a WordPress theme we do not control. Both selects
   (country code, preferred contact method) rendered blank on the live club
   sites while every <input> was fine: the theme styles bare `select`, and our
   rules did not cover the properties it uses to hide text.
   Verified: the form renders correctly with widget.css alone, so this only
   defends against the host cascade. Everything below restates a value we
   already intend, so it changes nothing in isolation.
   --------------------------------------------------------------------------- */
#hv-chat-window select.hv-lead-input {
    /* the classic invisible-text pair: `color` alone does not beat this */
    -webkit-text-fill-color: var(--hv-light) !important;
    color: var(--hv-light) !important;
    opacity: 1 !important;
    visibility: visible !important;
    /* themes that collapse or shove the text out of the box */
    font-size: 13px !important;
    line-height: 18px !important;
    letter-spacing: normal !important;
    text-indent: 0 !important;
    text-transform: none !important;
    text-shadow: none !important;
    box-sizing: border-box !important;
    /* custom-dropdown scripts that move or clip the real control */
    position: static !important;
    transform: none !important;
    clip-path: none !important;
    max-width: none !important;
    max-height: none !important;
    pointer-events: auto !important;
}
#hv-chat-window select.hv-lead-input option {
    color: var(--hv-light) !important;
    -webkit-text-fill-color: var(--hv-light) !important;
    background: var(--hv-bg) !important;
    font-size: 13px !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    text-indent: 0 !important;
}

/*
 * Some host themes wrap selects in `.select_container` and add their own
 * arrow with ::before/::after. Reset that generated wrapper inside the lead
 * form so it participates in our layout exactly like the original select.
 */
#hv-chat-window .hv-lead-form .select_container {
    display: block !important;
    position: static !important;
    float: none !important;
    width: 100% !important;
    height: 40px !important;
    min-width: 0 !important;
    min-height: 40px !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    overflow: visible !important;
    transform: none !important;
}
#hv-chat-window .hv-lead-form .select_container::before,
#hv-chat-window .hv-lead-form .select_container::after {
    content: none !important;
    display: none !important;
}
#hv-chat-window .hv-lead-form .hv-lead-phone-row > .select_container {
    flex: 0 0 92px !important;
    width: 92px !important;
}
#hv-chat-window .hv-lead-form .select_container > select.hv-lead-input {
    display: block !important;
    width: 100% !important;
    height: 40px !important;
    min-height: 40px !important;
    margin: 0 !important;
    -webkit-appearance: none !important;
    appearance: none !important;
}

/* ---------------------------------------------------------------------------
   Love Gracefully type details. Placed last so they win over the scoped resets
   above, which force the body font, no tracking and no uppercase everywhere.
   --------------------------------------------------------------------------- */
#hv-chat-window #hv-chat-header h3,
#hv-chat-window #hv-chat-header .hv-avatar {
    font-family: var(--hv-font-display) !important;
}
#hv-chat-trigger span,
#hv-chat-window #hv-chat-header .hv-header-text span,
#hv-chat-window .hv-lead-submit {
    text-transform: uppercase !important;
    letter-spacing: .1em !important;
}
#hv-chat-trigger span { letter-spacing: .12em !important; }
#hv-chat-window .hv-lead-title {
    font-family: var(--hv-font-display) !important;
    font-size: 15px !important;
    font-weight: 400 !important;
}
#hv-chat-window .hv-lead-row {
    display: flex !important;
    gap: 6px !important;
    width: 100% !important;
}
#hv-chat-window .hv-lead-row > .hv-lead-input {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    width: auto !important;
}
#hv-chat-window .hv-lead-error {
    margin: 0 !important;
    font-size: 12px !important;
    line-height: 16px !important;
    color: #b54848 !important;
}

/* Footer, as in the client's mockup: Playfair italic tagline over the legal
   line, which carries the privacy policy link. */
#hv-chat-window #hv-chat-footer .hv-footer-tagline {
    font-family: var(--hv-font-display) !important;
    font-style: italic !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}
#hv-chat-window #hv-chat-footer .hv-footer-legal {
    font-size: 11px !important;
    line-height: 1.45 !important;
}
#hv-chat-window #hv-chat-footer a {
    color: var(--hv-link) !important;
    font-weight: 600 !important;
    text-decoration: underline !important;
    text-underline-offset: 2px;
    background: none !important;
    border: 0 !important;
    white-space: nowrap;
}
#hv-chat-window #hv-chat-footer a:hover { color: var(--hv-accent-hover) !important; }

/* Lead form: the wedding date radios. The scoped reset strips the native
   radio (appearance: none), so the circle and dot are drawn here. */
#hv-chat-window .hv-lead-when {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
    margin: 2px 0 1px !important;
    padding: 0 !important;
    border: 0 !important;
}
#hv-chat-window .hv-lead-label {
    margin: 0 !important;
    font-size: 10.5px !important;
    font-weight: 600 !important;
    line-height: 16px !important;
    color: #7d6666 !important;
    text-transform: uppercase !important;
    letter-spacing: .1em !important;
}
#hv-chat-window .hv-lead-radio {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 !important;
    padding: 1px 0 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 18px !important;
    color: var(--hv-light) !important;
    cursor: pointer !important;
}
#hv-chat-window .hv-lead-radio input[type="radio"] {
    display: inline-block !important;
    position: static !important;
    flex: 0 0 17px !important;
    width: 17px !important;
    height: 17px !important;
    min-width: 17px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1.5px solid var(--hv-input-border) !important;
    border-radius: 50% !important;
    background: var(--hv-bg) !important;
    opacity: 1 !important;
    visibility: visible !important;
    cursor: pointer !important;
    transition: border-color .15s !important;
}
#hv-chat-window .hv-lead-radio input[type="radio"]:checked {
    border-color: var(--hv-accent) !important;
    background: radial-gradient(circle, var(--hv-accent) 0 4px, var(--hv-bg) 4.5px) !important;
}
#hv-chat-window .hv-lead-radio input[type="radio"]:focus-visible {
    outline: 2px solid var(--hv-accent) !important;
    outline-offset: 2px !important;
}
/* Ceremony type: "Looking for a civil or a church ceremony?" opens a short
   explanation under the radios (as on the website form), with a button that
   asks the chat. */
#hv-chat-window .hv-lead-legal-link,
#hv-chat-window .hv-lead-legal-ask {
    display: inline-block !important;
    align-self: flex-start !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    box-shadow: none !important;
    font-family: var(--hv-font) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    line-height: 16px !important;
    color: var(--hv-link) !important;
    text-decoration: underline !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    white-space: normal !important;
    text-align: left !important;
    cursor: pointer !important;
}
#hv-chat-window .hv-lead-legal-link:hover,
#hv-chat-window .hv-lead-legal-ask:hover { color: var(--hv-accent-hover) !important; }
#hv-chat-window .hv-lead-legal-info {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    margin: 0 !important;
    padding: 9px 11px !important;
    border: 1px solid var(--hv-input-border) !important;
    border-radius: 10px !important;
    background: var(--hv-bg) !important;
    white-space: normal !important;
}
#hv-chat-window .hv-lead-legal-info[hidden] { display: none !important; }
#hv-chat-window .hv-lead-legal-info p {
    margin: 0 !important;
    padding: 0 !important;
    font-family: var(--hv-font) !important;
    font-size: 12px !important;
    line-height: 17px !important;
    color: var(--hv-light) !important;
}
/* Beats display: block !important on .hv-lead-input */
#hv-chat-window .hv-lead-input[hidden] { display: none !important; }
#hv-chat-window input[type="date"].hv-lead-input { cursor: pointer !important; }
/* Selects still on their placeholder option read as placeholders */
#hv-chat-window select.hv-lead-input.hv-empty {
    color: var(--hv-muted) !important;
    -webkit-text-fill-color: var(--hv-muted) !important;
}

/* Switching destination in the chat (widget.js appendDivider, appendSwitchOffer,
   showDestination): a divider where the chat moves to another destination, the
   two answer buttons of the offer, and the destination in the header while it
   is not the page's own. */
#hv-chat-window .hv-dest-divider {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    align-self: stretch !important;
    gap: 2px !important;
    margin: 6px 0 2px !important;
    padding: 10px 0 !important;
    border-top: 1px solid var(--hv-border) !important;
    border-bottom: 1px solid var(--hv-border) !important;
    background: none !important;
    text-align: center !important;
}
#hv-chat-window .hv-dest-divider .hv-dest-label {
    font-size: 10px !important;
    font-weight: 600 !important;
    line-height: 14px !important;
    color: #7d6666 !important;
    text-transform: uppercase !important;
    letter-spacing: .1em !important;
}
#hv-chat-window .hv-dest-divider .hv-dest-name {
    font-family: var(--hv-font-display) !important;
    font-size: 19px !important;
    line-height: 1.25 !important;
    color: var(--hv-dark) !important;
}
#hv-chat-window .hv-switch {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    align-self: flex-start !important;
    max-width: 85% !important;
    margin: 0 !important;
    padding: 0 !important;
}
#hv-chat-window .hv-switch-btn {
    -webkit-appearance: none !important;
    appearance: none !important;
    margin: 0 !important;
    min-height: 40px !important;
    padding: 9px 16px 10px !important;
    border-radius: 8px !important;
    font-family: var(--hv-font) !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 18px !important;
    text-align: left !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    box-shadow: none !important;
    cursor: pointer !important;
    transition: background .2s, border-color .2s, opacity .2s !important;
}
#hv-chat-window .hv-switch-yes {
    border: 1px solid var(--hv-accent) !important;
    background: var(--hv-accent) !important;
    color: var(--hv-on-accent) !important;
}
#hv-chat-window .hv-switch-yes:hover:not(:disabled) {
    border-color: var(--hv-accent-hover) !important;
    background: var(--hv-accent-hover) !important;
}
#hv-chat-window .hv-switch-no {
    border: 1px solid var(--hv-input-border) !important;
    background: var(--hv-bg) !important;
    color: var(--hv-link) !important;
}
#hv-chat-window .hv-switch-no:hover:not(:disabled) {
    border-color: var(--hv-accent) !important;
    background: var(--hv-blush) !important;
}
#hv-chat-window .hv-switch-btn:disabled {
    opacity: .45 !important;
    cursor: default !important;
}
#hv-chat-window .hv-switch-btn.hv-chosen:disabled { opacity: 1 !important; }
#hv-chat-window .hv-dest-pill {
    display: inline-block !important;
    margin: 6px 0 0 !important;
    padding: 3px 10px 4px !important;
    border-radius: 999px !important;
    background: var(--hv-accent) !important;
    color: var(--hv-on-accent) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 15px !important;
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}
#hv-chat-window .hv-dest-pill[hidden] { display: none !important; }
