/* HC WhatsApp 1.0.1 — floating button (same family as HC WeChat 1.0.5 and the AI chat: 56 px circle), order box. */
.hcwa-fab {
    position: fixed;
    left: var(--hcwa-side, 16px);
    /* iOS Chrome: the mobile bottom bar grows by the safe area when the toolbar hides; follow it. */
    bottom: calc(var(--hcwa-bm, 224px) + env(safe-area-inset-bottom, 0px));
    z-index: 9998;
    width: 56px;
    height: 56px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    box-shadow: 0 6px 18px rgba(0,0,0,.22);
    line-height: 0;
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease;
    -webkit-tap-highlight-color: transparent;
}
.hcwa-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0,0,0,.26); }
.hcwa-fab:focus-visible { outline: 3px solid rgba(37,211,102,.5); outline-offset: 3px; }
.hcwa-fab .hcwa-logo { width: 56px; height: 56px; display: block; border-radius: 50%; }
@media (min-width: 768px) {
    .hcwa-fab { bottom: var(--hcwa-bd, 164px); }
}
/* The AI chat launcher sits 22 px from the edge above 480 px (16 px below); stay in the same column. */
@media (min-width: 481px) {
    .hcwa-fab { left: calc(var(--hcwa-side, 16px) + 6px); }
}
/* Hidden while the age gate is open */
html.hc-age-gate-locked .hcwa-fab { display: none; }

/* Hover label (computers only) */
.hcwa-tip {
    position: absolute;
    top: 50%;
    left: calc(100% + 10px);
    transform: translateY(-50%) translateX(-4px);
    padding: 7px 12px;
    border-radius: 999px;
    background: #1a1a1a;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
}
[dir="rtl"] .hcwa-tip { left: auto; right: calc(100% + 10px); }
@media (hover: hover) and (min-width: 768px) {
    .hcwa-fab:hover .hcwa-tip, .hcwa-fab:focus-visible .hcwa-tip { opacity: 1; transform: translateY(-50%); }
}

/* ============== ORDER BOX (thank-you / view order) ============== */
.hcwa-orderbox {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin: 20px 0;
    padding: 16px 18px;
    background: #f2fbf5;
    border: 1px solid #cdeedb;
    border-radius: 14px;
    text-align: start;
}
.hcwa-ob-icon .hcwa-logo { display: block; border-radius: 50%; }
.hcwa-ob-body { flex: 1; min-width: 0; }
.hcwa-ob-body strong { display: block; font-size: 16px; color: #1a1a1a; }
.hcwa-ob-body p { margin: 2px 0 10px; font-size: 14px; color: #555; }
.hcwa-btn {
    display: inline-block;
    padding: 9px 16px;
    border: 0;
    border-radius: 12px;
    background: #25d366;
    color: #fff !important;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    cursor: pointer;
}
.hcwa-btn:hover { background: #1fb956; }
@media (max-width: 480px) {
    .hcwa-orderbox { padding: 14px; }
}

/* ============== THEME GUARD ==============
   Kadence styles links on :hover/:focus; pin our own colours. */
body a.hcwa-fab, body a.hcwa-fab:hover, body a.hcwa-fab:focus, body a.hcwa-fab:active { background: transparent; color: inherit; border: 0; }
body a.hcwa-btn, body a.hcwa-btn:focus, body a.hcwa-btn:active { background: #25d366; color: #fff; }
body a.hcwa-btn:hover { background: #1fb956; color: #fff; }

@media (prefers-reduced-motion: reduce) {
    .hcwa-fab, .hcwa-tip { transition: none; }
}
@media print {
    .hcwa-fab, .hcwa-orderbox { display: none !important; }
}
