/**
 * FILE: assets/css/ova-wa-button.css
 * VERSION: 1.0.0 (Phase 1.5 — Floating WhatsApp Button)
 * PURPOSE: Styles for OVA floating WhatsApp button and PDPA consent notice.
 */

/* ── Wrapper + position variants ───────────────────────────────────────────── */
#ova-wa-btn-wrap {
    position: fixed;
    z-index:  9999;
}
.ova-wa-btn-pos-bottom-right { bottom: 24px; right: 24px; }
.ova-wa-btn-pos-bottom-left  { bottom: 24px; left:  24px; }
.ova-wa-btn-pos-top-right    { top:    24px; right: 24px; }
.ova-wa-btn-pos-top-left     { top:    24px; left:  24px; }

/* ── Button ─────────────────────────────────────────────────────────────────── */
#ova-wa-btn {
    display:         flex;
    align-items:     center;
    gap:             8px;
    background:      #25D366;
    color:           #fff;
    border-radius:   50px;
    padding:         12px 20px;
    text-decoration: none;
    font-weight:     600;
    font-size:       15px;
    font-family:     inherit;
    box-shadow:      0 4px 12px rgba(37, 211, 102, 0.4);
    transition:      transform 0.2s ease, box-shadow 0.2s ease;
    white-space:     nowrap;
}
#ova-wa-btn:hover,
#ova-wa-btn:focus {
    transform:       translateY(-2px);
    box-shadow:      0 6px 18px rgba(37, 211, 102, 0.5);
    color:           #fff;
    text-decoration: none;
    outline:         none;
}
#ova-wa-btn svg {
    flex-shrink: 0;
}
.ova-wa-btn-label {
    line-height: 1;
}

/* ── PDPA consent notice card ────────────────────────────────────────────────── */
.ova-wa-pdpa {
    position:      absolute;
    bottom:        calc(100% + 12px);
    right:         0;
    z-index:       4; /* top of the shared anchor stack (nudge 1 < panels 2 < pdpa 4) —
                         the consent gate can be triggered from inside the open chat
                         and must paint on top of it, not underneath */
    width:         280px;
    box-sizing:    border-box;
    background:    #ffffff;
    border:        1px solid #e2e8f0;
    border-radius: 12px;
    padding:       16px;
    box-shadow:    0 8px 24px rgba(0, 0, 0, 0.12);
    font-size:     13px;
    line-height:   1.5;
    color:         #334155;
}

/* Reposition for left-aligned button placements */
.ova-wa-btn-pos-bottom-left .ova-wa-pdpa,
.ova-wa-btn-pos-top-left    .ova-wa-pdpa {
    right: auto;
    left:  0;
}

/* Reposition for top placements */
.ova-wa-btn-pos-top-right .ova-wa-pdpa,
.ova-wa-btn-pos-top-left  .ova-wa-pdpa {
    bottom: auto;
    top:    calc(100% + 12px);
}

.ova-wa-pdpa p {
    margin: 0 0 4px;
}
.ova-wa-pdpa a {
    color:           #25D366;
    text-decoration: underline;
}

.ova-wa-pdpa-actions {
    display:    flex;
    gap:        8px;
    margin-top: 12px;
}

#ova-wa-pdpa-accept {
    flex:          1;
    background:    #25D366;
    color:         #ffffff;
    border:        none;
    border-radius: 8px;
    padding:       8px 12px;
    cursor:        pointer;
    font-weight:   600;
    font-size:     13px;
    transition:    background 0.15s ease;
}
#ova-wa-pdpa-accept:hover {
    background: #1ebe5d;
}

#ova-wa-pdpa-dismiss {
    background:    transparent;
    color:         #64748b;
    border:        1px solid #cbd5e1;
    border-radius: 8px;
    padding:       8px 12px;
    cursor:        pointer;
    font-size:     13px;
    transition:    border-color 0.15s ease, color 0.15s ease;
}
#ova-wa-pdpa-dismiss:hover {
    border-color: #94a3b8;
    color:        #334155;
}

/**
 * ── Dual-action pill — "Get A Quote │ WhatsApp Us" ──────────────────────────
 * Opt-in (whatsapp_wa_quote_enabled). See docs/tasks/TASK_WA_QUOTE_PILL.md.
 * One rounded pill, two tap targets — not two separate floating bubbles.
 */
#ova-wa-pill {
    display:       flex;
    align-items:   stretch;
    border-radius: 50px;
    box-shadow:    0 4px 12px rgba(0, 0, 0, 0.18);
}

/* Inside the dual pill, each segment shares the silhouette instead of being
   independently pill-shaped — override the standalone-button radius/shadow. */
.ova-wa-dual #ova-wa-btn {
    border-radius: 0 50px 50px 0;
    box-shadow:    none;
}
.ova-wa-dual #ova-wa-btn:hover,
.ova-wa-dual #ova-wa-btn:focus {
    transform: none; /* the lift-on-hover reads oddly on half a shared pill */
}

#ova-wa-quote-btn {
    display:      flex;
    align-items:  center;
    gap:          8px;
    background:   #1e293b;
    color:        #fff;
    border:       none;
    border-radius: 50px 0 0 50px;
    padding:      12px 18px;
    font-family:  inherit;
    font-weight:  600;
    font-size:    14px;
    white-space:  nowrap;
    cursor:       pointer;
    transition:   background 0.2s ease;
}
#ova-wa-quote-btn:hover,
#ova-wa-quote-btn:focus {
    background: #0f172a;
    outline:    none;
}

/* ── One-time pointing nudge (opt-in, wa_quote_nudge_enabled) ────────────────
   Sits above the quote button's edge of the pill (its first/left flex child,
   in every corner placement) and bounces gently until dismissed by an
   interaction or a short timeout — see ova-tracker.js dismissQuoteNudge(). */
.ova-wa-quote-nudge {
    position:      absolute;
    bottom:        calc(100% + 4px);
    left:          14px;
    color:         #1e293b; /* overridden by wa_quote_nudge_color (or wa_quote_color) when set */
    pointer-events: none;
    z-index:       1; /* lowest of the shared-anchor layers — it's decoration and must
                         never cover the quote/chat panel or the consent gate */
    animation:     ova-wa-nudge-bounce 1.1s ease-in-out infinite;
    transition:    opacity 0.3s ease;
}
.ova-wa-quote-nudge svg {
    width:     28px;
    height:    35px;
    transform: rotate(180deg); /* flips the raised finger to point down toward the button */
    filter:    drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}
/* Size presets (wa_quote_nudge_size) — regular is the base rule above.
   Both dimensions scale together to hold the icon's 4:5 aspect ratio. */
.ova-wa-quote-nudge-lg svg {
    width:  40px;
    height: 50px;
}
.ova-wa-quote-nudge-xl svg {
    width:  54px;
    height: 68px;
}
.ova-wa-quote-nudge-huge svg {
    width:  72px;
    height: 90px;
}
/* Bounce speed presets (wa_quote_nudge_speed) — normal is the base rule's 1.1s.
   Only the duration changes so all three share one set of keyframes. */
.ova-wa-quote-nudge-slow { animation-duration: 1.9s; }
.ova-wa-quote-nudge-fast { animation-duration: 0.7s; }

/* Pre-reveal state: in the DOM (so it can be measured and centered) but not yet
   visible. Removing the class fades it in through the transition above, once the
   configured delay has elapsed — see ova-tracker.js. */
.ova-wa-quote-nudge-pending {
    opacity: 0;
}
.ova-wa-quote-nudge-hide {
    opacity: 0;
}

/* Respect a visitor's reduced-motion preference — the nudge still appears and
   still self-dismisses, it just doesn't bounce. */
@media (prefers-reduced-motion: reduce) {
    .ova-wa-quote-nudge {
        animation: none;
    }
}
@keyframes ova-wa-nudge-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(6px); }
}

.ova-wa-pill-divider {
    width:      1px;
    align-self: stretch;
    background: rgba(255, 255, 255, 0.25);
}

/* ── Quote mini-form panel (mirrors .ova-wa-pdpa's card styling) ─────────────── */
.ova-wa-quote-panel {
    position:      absolute;
    bottom:        calc(100% + 12px);
    right:         0;
    z-index:       2; /* must out-stack the nudge (1), which shares this anchor point
                         and would otherwise paint over the open form/chat */
    width:         360px;
    max-width:     calc(100vw - 48px);
    box-sizing:    border-box;
    background:    #ffffff;
    border:        1px solid #e2e8f0;
    border-radius: 12px;
    padding:       18px;
    box-shadow:    0 8px 24px rgba(0, 0, 0, 0.12);
    font-size:     13px;
    color:         #334155;
}

.ova-wa-btn-pos-bottom-left  .ova-wa-quote-panel,
.ova-wa-btn-pos-top-left     .ova-wa-quote-panel {
    right: auto;
    left:  0;
}
.ova-wa-btn-pos-top-right .ova-wa-quote-panel,
.ova-wa-btn-pos-top-left  .ova-wa-quote-panel {
    bottom: auto;
    top:    calc(100% + 12px);
}

/* Fields scroll inside a capped-height body instead of the panel just
   growing tall — keeps the pill's footprint compact. Submit/Cancel sit
   outside this box (see .ova-wa-quote-actions) so they're always visible
   without needing to scroll to reach them. */
.ova-wa-quote-scroll {
    max-height:    190px;
    overflow-y:    auto;
    padding-right: 6px;
    margin-right:  -6px; /* claw back the gutter so content still lines up with the panel's own padding */
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.ova-wa-quote-scroll::-webkit-scrollbar {
    width: 6px;
}
.ova-wa-quote-scroll::-webkit-scrollbar-track {
    background: transparent;
}
.ova-wa-quote-scroll::-webkit-scrollbar-thumb {
    background:    #cbd5e1;
    border-radius: 3px;
}
.ova-wa-quote-scroll::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

.ova-wa-quote-title {
    margin:      0 0 4px !important;
    padding:     0 !important;
    font-size:   15px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color:       #1e293b !important;
    text-align:  center;
}

.ova-wa-quote-step {
    margin:      0 0 6px;
    font-size:   11px;
    font-weight: 600;
    color:       #94a3b8;
    text-align:  center;
}

/* Thin fill bar above the scrollable field list — doubles as a scroll-progress
   hint (so it's obvious there's more below) and an at-a-glance "how far along"
   cue, since Submit/Cancel sit below the fold on most screens. */
.ova-wa-quote-progress {
    height:        4px;
    background:    #e2e8f0;
    border-radius: 2px;
    overflow:      hidden;
    margin:        0 0 14px;
}
.ova-wa-quote-progress-bar {
    height:     100%;
    width:      0%;
    background: #1e293b;
    border-radius: 2px;
    transition: width 0.15s ease;
}

.ova-wa-quote-panel label {
    display:      block;
    font-weight:  600;
    font-size:    12px;
    color:        #475569;
    margin-bottom: 12px;
}
.ova-wa-quote-optional {
    font-weight: 400;
    color:       #94a3b8;
    font-size:   11px;
}

.ova-wa-quote-panel input[type="text"],
.ova-wa-quote-panel input[type="date"],
.ova-wa-quote-panel select,
#ova-wa-quote-need {
    display:       block;
    width:         100% !important;
    margin-top:    4px;
    padding:       8px 10px;
    border:        1px solid #cbd5e1 !important;
    border-radius: 8px !important;
    font-family:   inherit;
    font-size:     13px !important;
    color:         #1e293b !important;
    box-sizing:    border-box !important;
}
/* #ova-wa-quote-other is deliberately hidden via inline style until "Other…"
   is picked — must NOT be swept up by the display:block !important below
   (that's what made it appear regardless of selection, see chat notes). */
#ova-wa-quote-need {
    display: block !important;
}
.ova-wa-quote-panel select,
#ova-wa-quote-need {
    background-color: #ffffff !important;
    -webkit-appearance: none !important;
    -moz-appearance:    none !important;
    appearance:          none !important;
    background-image:   url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2364748b'%3E%3Cpath fill-rule='evenodd' d='M5.23 7.21a.75.75 0 011.06.02L10 11.168l3.71-3.938a.75.75 0 111.08 1.04l-4.25 4.5a.75.75 0 01-1.08 0l-4.25-4.5a.75.75 0 01.02-1.06z' clip-rule='evenodd'/%3E%3C/svg%3E") !important;
    background-repeat:   no-repeat !important;
    background-position: right 10px center !important;
    background-size:     16px !important;
    padding-right:        32px !important;
    min-height:          36px !important;
    line-height:         normal !important;
    cursor: pointer;
}
.ova-wa-quote-panel input[type="text"]:focus,
.ova-wa-quote-panel input[type="date"]:focus,
.ova-wa-quote-panel select:focus {
    outline:     none;
    border-color: #1e293b !important;
}

.ova-wa-quote-pdpa {
    margin:    0 0 12px;
    font-size: 11.5px;
    color:     #64748b;
    line-height: 1.5;
}
.ova-wa-quote-pdpa a {
    color:           #25D366;
    text-decoration: underline;
}
.ova-wa-quote-privacy-link {
    text-align: center;
}

.ova-wa-quote-actions {
    display:    flex;
    gap:        8px;
    margin-top: 14px;
}
.ova-wa-quote-actions button[type="submit"] {
    flex:          1;
    background:    #1e293b;
    color:         #ffffff;
    border:        none;
    border-radius: 8px;
    padding:       9px 12px;
    cursor:        pointer;
    font-weight:   600;
    font-size:     13px;
    font-family:   inherit;
    transition:    background 0.15s ease;
}
.ova-wa-quote-actions button[type="submit"]:hover {
    background: #0f172a;
}
#ova-wa-quote-cancel {
    background:    transparent;
    color:         #64748b;
    border:        1px solid #cbd5e1;
    border-radius: 8px;
    padding:       9px 12px;
    cursor:        pointer;
    font-size:     13px;
    font-family:   inherit;
    transition:    border-color 0.15s ease, color 0.15s ease;
}
#ova-wa-quote-cancel:hover {
    border-color: #94a3b8;
    color:        #334155;
}

/* Success ("thank you") state — animated check draw + accent-filled Done.
   Accent color comes from the injected wa_quote_color <style> block; the
   values below are the no-color-set defaults. */
.ova-wa-quote-success {
    text-align: center;
    padding:    14px 8px 8px;
}
.ova-wa-quote-success-icon {
    width:           56px;
    height:          56px;
    margin:          0 auto 12px;
    border-radius:   50%;
    background:      #eef2f7;
    display:         flex;
    align-items:     center;
    justify-content: center;
    animation:       ova-wa-success-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.ova-wa-quote-success-icon svg {
    width:  36px;
    height: 36px;
    fill:   none;
}
.ova-wa-success-circle {
    stroke:           #1e293b;
    stroke-width:     2.5;
    stroke-dasharray: 151;  /* 2πr, r=24 */
    stroke-dashoffset: 151;
    animation: ova-wa-success-draw 0.5s ease 0.15s forwards;
}
.ova-wa-success-check {
    stroke:           #1e293b;
    stroke-width:     3.5;
    stroke-linecap:   round;
    stroke-linejoin:  round;
    stroke-dasharray: 34;
    stroke-dashoffset: 34;
    animation: ova-wa-success-draw 0.35s ease 0.55s forwards;
}
@keyframes ova-wa-success-pop {
    from { opacity: 0; transform: scale(0.5); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes ova-wa-success-draw {
    to { stroke-dashoffset: 0; }
}
.ova-wa-quote-success h4 {
    margin:      0 0 6px;
    font-size:   16px;
    font-weight: 700;
    color:       #0f172a;
    text-align:  center !important; /* survive theme p/h overrides on any page template */
    animation:   ova-wa-bubble-in 0.3s ease 0.25s both;
}
.ova-wa-quote-success p {
    margin:      0 auto 16px;
    font-size:   13px;
    line-height: 1.55;
    color:       #64748b;
    text-align:  center !important; /* survive theme p/h overrides on any page template */
    animation:   ova-wa-bubble-in 0.3s ease 0.35s both;
}
.ova-wa-quote-success button {
    background:    #1e293b; /* overridden by wa_quote_color when set */
    color:         #ffffff;
    border:        none;
    border-radius: 999px;
    padding:       9px 28px;
    cursor:        pointer;
    font-size:     13px;
    font-weight:   600;
    font-family:   inherit;
    transition:    background 0.15s ease, transform 0.15s ease;
    animation:     ova-wa-bubble-in 0.3s ease 0.45s both;
}
.ova-wa-quote-success button:hover {
    background: #0f172a;
    transform:  translateY(-1px);
}

/* ── Chat-bubble intro (docs/tasks/TASK_WA_QUOTE_CHATBOT.md) ─────────────────
   Reuses .ova-wa-quote-panel for positioning/width/shadow; the rules below
   turn its inside into a small branded chat widget: header (avatar + name +
   online status), scrolling thread on a tinted surface, animated bubbles,
   typing indicator, icon chips, footer skip-link. Accent color comes from
   the injected wa_quote_color <style> block in ova-tracker.js. */
.ova-wa-quote-chat {
    padding:       0;
    overflow:      hidden;
    border-radius: 16px;
}

.ova-wa-chat-header {
    display:     flex;
    align-items: center;
    gap:         8px;
    padding:     9px 12px;
    background:  #1e293b; /* overridden by wa_quote_color when set */
    background-image: linear-gradient(rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.06));
    color:       #ffffff;
    box-shadow:  0 1px 0 rgba(0, 0, 0, 0.12);
    position:    relative;
    z-index:     1;
}
.ova-wa-chat-avatar {
    display:         flex;
    align-items:     center;
    justify-content: center;
    flex-shrink:     0;
    width:           28px;
    height:          28px;
    border-radius:   50%;
    background:      rgba(255, 255, 255, 0.18);
    border:          1px solid rgba(255, 255, 255, 0.35);
    font-weight:     700;
    font-size:       13px;
    color:           #ffffff;
}
/* Solid white backing when the avatar holds an uploaded logo — without it a
   grey/dark logo disappears against the (dark) header color. Applied via a
   dedicated class rather than :has() for older-browser safety; the fallback
   site-initial keeps the translucent tint so white text stays readable. */
.ova-wa-chat-avatar-img {
    background: #ffffff;
}
.ova-wa-chat-avatar img {
    width:         100%;
    height:        100%;
    border-radius: 50%;
    object-fit:    cover;
    display:       block;
}
.ova-wa-chat-head-txt {
    display:        flex;
    flex-direction: column;
    align-items:    flex-start;
    gap:            1px;
    min-width:      0;
    flex:           1;
    padding-left:   4px; /* breathing room off the avatar so text doesn't crowd it */
}
.ova-wa-chat-title {
    font-weight:   700;
    font-size:     14.5px;
    line-height:   1.2;
    text-align:    left;
    white-space:   nowrap;
    overflow:      hidden;
    text-overflow: ellipsis;
}
.ova-wa-chat-status {
    display:     flex;
    align-items: center;
    justify-content: flex-start;
    gap:         4px;
    font-size:   10.5px;
    line-height: 1.2;
    color:       rgba(255, 255, 255, 0.75);
}
.ova-wa-chat-status i {
    width:         7px;
    height:        7px;
    border-radius: 50%;
    background:    #22c55e;
    box-shadow:    0 0 0 0 rgba(34, 197, 94, 0.55);
    animation:     ova-wa-status-pulse 2s infinite;
}
@keyframes ova-wa-status-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
    70%  { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
#ova-wa-chat-close {
    flex-shrink:   0;
    background:    transparent;
    border:        none;
    color:         rgba(255, 255, 255, 0.7);
    font-size:     20px;
    line-height:   1;
    padding:       2px 4px;
    cursor:        pointer;
    border-radius: 6px;
    transition:    color 0.15s ease, background 0.15s ease;
}
#ova-wa-chat-close:hover {
    color:      #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.ova-wa-quote-thread {
    max-height:    300px;
    overflow-y:    auto;
    padding:       14px;
    background:    #f4f7fb;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
}
.ova-wa-quote-thread::-webkit-scrollbar {
    width: 6px;
}
.ova-wa-quote-thread::-webkit-scrollbar-thumb {
    background:    #cbd5e1;
    border-radius: 3px;
}

.ova-wa-chat-bubble {
    max-width:     85%;
    margin-bottom: 8px;
    padding:       9px 13px;
    border-radius: 14px;
    font-size:     13px;
    line-height:   1.5;
    width:         fit-content;
    animation:     ova-wa-bubble-in 0.25s ease both;
}
@keyframes ova-wa-bubble-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* Directional entrances — bot slides in from our side (left), the visitor's
   replies from theirs (right), so the two voices read apart at a glance. */
@keyframes ova-wa-bubble-in-bot {
    from { opacity: 0; transform: translate(-10px, 4px); }
    to   { opacity: 1; transform: translate(0, 0); }
}
@keyframes ova-wa-bubble-in-user {
    from { opacity: 0; transform: translate(10px, 4px); }
    to   { opacity: 1; transform: translate(0, 0); }
}
.ova-wa-chat-bot {
    /* Default tint; when wa_quote_color is set, the injected <style> block
       re-tints bg/border with a light wash of the accent instead. */
    background:    #eef2f7;
    color:         #334155;
    margin-right:  auto;
    border:        1px solid #dde5ef;
    border-bottom-left-radius: 4px;
    box-shadow:    0 1px 2px rgba(15, 23, 42, 0.06);
    animation-name: ova-wa-bubble-in-bot;
}
.ova-wa-chat-user {
    background:    #1e293b; /* overridden by wa_quote_color when set */
    color:         #ffffff;
    margin-left:   auto;
    border-bottom-right-radius: 4px;
    text-align:    right;
    box-shadow:    0 1px 2px rgba(15, 23, 42, 0.12);
    animation-name: ova-wa-bubble-in-user;
}

/* Typing indicator — three bouncing dots inside a bot bubble */
.ova-wa-chat-typing {
    display:     flex;
    align-items: center;
    gap:         4px;
    min-height:  20px;
}
.ova-wa-chat-typing span {
    width:         6px;
    height:        6px;
    border-radius: 50%;
    background:    #94a3b8;
    animation:     ova-wa-typing 1.1s infinite ease-in-out;
}
.ova-wa-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.ova-wa-chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ova-wa-typing {
    0%, 60%, 100% { transform: translateY(0);    opacity: 0.45; }
    30%           { transform: translateY(-4px); opacity: 1; }
}

.ova-wa-chat-chips {
    display:       flex;
    flex-wrap:     wrap;
    gap:           8px;
    margin:        4px 0 12px;
}
.ova-wa-chat-chip {
    display:       inline-flex;
    align-items:   center;
    gap:           6px;
    background:    #ffffff;
    color:         #334155;
    border:        1px solid #d3dce8;
    border-radius: 999px;
    padding:       7px 14px;
    cursor:        pointer;
    font-size:     12.5px;
    font-weight:   600;
    font-family:   inherit;
    box-shadow:    0 1px 2px rgba(15, 23, 42, 0.05);
    transition:    border-color 0.15s ease, color 0.15s ease,
                   box-shadow 0.15s ease, transform 0.15s ease;
    animation:     ova-wa-bubble-in 0.25s ease both;
}
.ova-wa-chat-chips .ova-wa-chat-chip:nth-child(2) { animation-delay: 0.06s; }
.ova-wa-chat-chips .ova-wa-chat-chip:nth-child(3) { animation-delay: 0.12s; }
.ova-wa-chat-chips .ova-wa-chat-chip:nth-child(4) { animation-delay: 0.18s; }
.ova-wa-chat-chips .ova-wa-chat-chip:nth-child(5) { animation-delay: 0.24s; }
.ova-wa-chat-chips .ova-wa-chat-chip:nth-child(6) { animation-delay: 0.3s; }
.ova-wa-chat-chip svg {
    flex-shrink: 0;
}
.ova-wa-chat-chip:hover {
    border-color: #94a3b8;
    color:        #1e293b;
    box-shadow:   0 2px 6px rgba(15, 23, 42, 0.1);
    transform:    translateY(-1px);
}
/* Primary chip — the conversion path ("Get an exact quote") reads as the
   main action; background is overridden by wa_quote_color when set. */
.ova-wa-chat-chip-primary {
    background:   #1e293b;
    border-color: transparent;
    color:        #ffffff;
}
.ova-wa-chat-chip-primary:hover {
    background:   #0f172a;
    border-color: transparent;
    color:        #ffffff;
}
/* WhatsApp chip — brand green, matching the main WhatsApp button */
.ova-wa-chat-chip-wa {
    background:   #25D366;
    border-color: transparent;
    color:        #ffffff;
}
.ova-wa-chat-chip-wa:hover,
.ova-wa-chat-chip-wa:focus {
    background:   #1ebe5d;
    border-color: transparent;
    color:        #ffffff;
}

/* Docked action bar — the final WhatsApp/Email/Quote chips pin here at the
   bottom of the panel instead of floating inside the thread. Collapses to
   nothing while empty so the panel doesn't carry a dead strip mid-chat. */
.ova-wa-chat-actions {
    display:         flex;
    flex-wrap:       wrap;
    gap:             8px;
    justify-content: center;
    padding:         10px 14px;
    background:      #ffffff;
    border-top:      1px solid #eef2f7;
}
.ova-wa-chat-actions:empty {
    display: none;
}

.ova-wa-chat-footer {
    padding:    8px 14px 10px;
    background: #ffffff;
    border-top: 1px solid #eef2f7;
}
.ova-wa-quote-skip {
    display:         block;
    text-align:      center;
    font-size:       11.5px;
    color:           #94a3b8;
    text-decoration: underline;
}
.ova-wa-quote-skip:hover {
    color: #64748b;
}

/* Mobile: pill floats horizontally centered regardless of the configured
   corner — only the vertical edge (top/bottom) from wa_position is kept.
   Also capped width + tighter padding so the pill (especially the dual
   "Get A Quote │ WhatsApp Us" variant) never overflows either screen edge.
   Placed at the end of the file (not near the position-class block above)
   so it wins the cascade against the unconditional #ova-wa-btn /
   #ova-wa-quote-btn rules defined earlier in the file. */
@media (max-width: 480px) {
    .ova-wa-btn-pos-bottom-right,
    .ova-wa-btn-pos-bottom-left  { bottom: 16px; }
    .ova-wa-btn-pos-top-right,
    .ova-wa-btn-pos-top-left     { top:    16px; }
    .ova-wa-btn-pos-bottom-right,
    .ova-wa-btn-pos-bottom-left,
    .ova-wa-btn-pos-top-right,
    .ova-wa-btn-pos-top-left {
        left:      50%;
        right:     auto;
        transform: translateX(-50%);
    }

    #ova-wa-btn-wrap {
        max-width: calc(100vw - 32px);
    }
    #ova-wa-btn,
    #ova-wa-quote-btn {
        padding:   10px 14px;
        font-size: 13px;
    }

    /* Popups (PDPA notice + quote form) center on the wrap's own midpoint
       rather than hugging its left/right edge — since the wrap itself is
       now centered in the viewport, this transitively centers the popup
       in the viewport too. Selectors matched 1:1 against the corner-specific
       left/right overrides above (same specificity) so they actually win —
       a bare .ova-wa-pdpa/.ova-wa-quote-panel rule here would lose to those
       more specific `.ova-wa-btn-pos-* .ova-wa-pdpa` rules regardless of
       source order. */
    .ova-wa-btn-pos-bottom-right .ova-wa-pdpa,
    .ova-wa-btn-pos-bottom-left  .ova-wa-pdpa,
    .ova-wa-btn-pos-top-right    .ova-wa-pdpa,
    .ova-wa-btn-pos-top-left     .ova-wa-pdpa,
    .ova-wa-btn-pos-bottom-right .ova-wa-quote-panel,
    .ova-wa-btn-pos-bottom-left  .ova-wa-quote-panel,
    .ova-wa-btn-pos-top-right    .ova-wa-quote-panel,
    .ova-wa-btn-pos-top-left     .ova-wa-quote-panel {
        left:      50%;
        right:     auto;
        transform: translateX(-50%);
    }
}
