/** * All of the CSS for your public-facing functionality should be * included in this file. */

/* =========================== Floating WhatsApp Widget (Modern v2) =========================== */
#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] {
    position: fixed;
    z-index: 999999;
    inset: auto 24px 24px auto;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"].bottom-right {
    inset: auto 24px 24px auto;
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"].bottom-left {
    inset: auto auto 24px 24px;
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"].top-right {
    inset: 24px 24px auto auto;
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"].top-left {
    inset: 24px auto auto 24px;
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] * {
    box-sizing: border-box;
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] .wptwww-floating {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: flex-end;
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] .wptwww_widget_btn_label {
    background: var(--wptwww-label-bg, rgba(0, 0, 0, .75));
    color: var(--wptwww-label-text, #ffffff);
    padding: 10px 12px;
    border-radius: 999px;
    font-size: 13px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
    user-select: none;
    transform-origin: right center;
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] .wptwww_widget_btn_label.is-hidden {
    display: none;
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] #wptwww-whatsapp-button {
    width: var(--wptwww-button-size, 56px);
    height: var(--wptwww-button-size, 56px);
    border-radius: 999px;
    display: grid;
    place-items: center;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .28);
    transition: transform .18s ease, box-shadow .18s ease;
    background: var(--wptwww-widget-color, #25D366);
    color: var(--wptwww-widget-text, #ffffff);
    border: 0;
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] #wptwww-whatsapp-button:hover {
    transform: translateY(-2px) scale(1.03);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .32);
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] #wptwww-whatsapp-button:active {
    transform: translateY(0) scale(.98);
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] #wptwww-whatsapp-button img {
    width: 26px;
    height: 26px;
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] #wptwww-whatsapp-chat {
    width: min(92vw, 380px);
    max-height: min(78vh, 660px);
    border-radius: var(--wptwww-corner-radius, 18px);
    overflow: hidden;
    background: rgba(255, 255, 255, var(--wptwww-glass-opacity, .92));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--wptwww-shadow, 0 22px 64px rgba(0, 0, 0, .28));
    margin-top: 10px;
    transform-origin: bottom right;
    opacity: 0;
    transform: translateY(8px) scale(.96);
    pointer-events: none;
    transition: opacity .22s cubic-bezier(.2, .6, .2, 1), transform .22s cubic-bezier(.2, .6, .2, 1);
}

#wptwww-whatsapp-wrapper.top-left[data-wptwww-behavior="v2"] #wptwww-whatsapp-chat {
    transform-origin: top left;
}

#wptwww-whatsapp-wrapper.top-right[data-wptwww-behavior="v2"] #wptwww-whatsapp-chat {
    transform-origin: top right;
}

#wptwww-whatsapp-wrapper.bottom-left[data-wptwww-behavior="v2"] #wptwww-whatsapp-chat {
    transform-origin: bottom left;
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] #wptwww-whatsapp-chat.shown {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] .wptwww-chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    position: relative;
    background: var(--wptwww-widget-color, #25D366);
    color: var(--wptwww-widget-text, #ffffff);
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] .wptwww-chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35);
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] .wptwww-close {
    position: absolute;
    right: 10px;
    top: 8px;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    opacity: .9;
    background: transparent;
    border: 0;
    color: inherit;
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] .wptwww-close:hover {
    opacity: 1;
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] .wptwww-chat-body {
    padding: 12px;
    max-height: calc(min(78vh, 660px) - 70px);
    overflow: auto;
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] .wptwww-account {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    margin-bottom: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
    transition: transform .12s ease, box-shadow .12s ease;
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] .wptwww-account:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] .wptwww-account.offline {
    opacity: .72;
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] .wptwww-agent-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] .wptwww-agent-info {
    flex: 1;
    min-width: 0;
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] .wptwww-agent-info strong {
    font-weight: 700;
    font-size: 14px;
    display: block;
    margin-bottom: 4px;
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] .wptwww-agent-info small {
    color: #667085;
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    display: block;
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] .wptwww-account-btn {
    flex-shrink: 0;
    padding: 8px 12px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, .12);
    transition: transform .12s ease;
    background: var(--wptwww-widget-color, #25D366);
    color: var(--wptwww-widget-text, #ffffff);
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] .wptwww-account-btn:hover {
    transform: translateY(-1px);
}

#wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] .wptwww-gdpr {
    margin-top: 8px;
    padding: 10px 12px;
    background: rgba(0, 0, 0, .04);
    border-radius: 12px;
    font-size: 12px;
    display: flex;
    gap: 8px;
    align-items: center;
}

@media (prefers-reduced-motion: reduce) {
    #wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] #wptwww-whatsapp-chat,
    #wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] #wptwww-whatsapp-button,
    #wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] .wptwww-account {
        transition: none;
    }
}

@media (max-width: 480px) {
    #wptwww-whatsapp-wrapper[data-wptwww-behavior="v2"] .wptwww_widget_btn_label {
        display: none;
    }
}

/* =========================== Floating WhatsApp Widget =========================== */
/* Wrapper */
#wptwww-whatsapp-wrapper {
    position: fixed;
    font-family: Arial, sans-serif;
    z-index: 9999;
}

#wptwww-whatsapp-wrapper.bottom-right {
    bottom: 20px;
    right: 20px;
}

#wptwww-whatsapp-wrapper.bottom-left {
    bottom: 20px;
    left: 20px;
}

#wptwww-whatsapp-wrapper.top-right {
    top: 20px;
    right: 20px;
}

#wptwww-whatsapp-wrapper.top-left {
    top: 20px;
    left: 20px;
}

/* Floating Button */
#wptwww-whatsapp-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

#wptwww-whatsapp-button img {
    width: 50px;
    height: auto;
    cursor: pointer;
}

/* Chat Window */
#wptwww-whatsapp-chat {
    width: 320px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-top: 10px;
    display: none;
    flex-direction: column;
}

#wptwww-whatsapp-chat.show {
    display: flex;
}

#wptwww-whatsapp-chat.hidden {
    display: none;
}

.wptwww-chat-header {
    background: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border-radius: 8px 8px 0 0;
}

.wptwww-chat-header p {
    margin-bottom: 2px;
}


.wptwww-chat-body {
    padding: 15px;
    font-size: 14px;
    color: #333;
}

.wptwww-chat-footer {
    padding: 10px;
    border-top: 1px solid #eee;
    text-align: center;
}

.wptwww-chat-btn {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
}

#wptwww-close {
    cursor: pointer;
    font-size: 18px;
    margin-bottom: auto;
}

.wptwww-account {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f9f9f9;
    margin: 6px 0;
    padding: 6px 8px;
    border-radius: 5px;
}

.wptwww-agent-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 8px;
}

.wptwww-agent-prdct-avatar {
    margin-right: 8px;
}

.wptwww-agent-info {
    flex-grow: 1;
}

.wptwww-account-btn {
    padding: 6px 10px;
    border-radius: 4px;
    text-decoration: none;
}

.wptwww-account.offline .wptwww-account-btn {
    display: none;
}

.wptwww-gdpr {
    font-size: 12px;
    margin-top: 10px;
}

.wptwww_popup_txt {
    display: flex;
    gap: 10px;
}

.wptwww_widget_btn_label {
    text-align: center;
    margin-top: 15px;
    color: #2c2525;
}

.wptwww_hide {
    display: none !important;
}

/* =========================== WooCommerce WhatsApp Button =========================== */
.whatsapp-contact {
    margin-top: 10px;
    margin-bottom: 10px;
    min-width: 250px;
}

.whatsapp-contact a {
    /* border-radius: 10px !important; */
    text-decoration: none !important;
}

.whatsapp-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    padding: 12px 20px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.3s ease;
    color: var(--wptwww-text-color, #fff);
}

.whatsapp-button .wa-icon,
.wptwww_btn_icon img {
    width: 30px;
    height: 30px;
    filter: brightness(0) invert(1);
    margin-right: 10px;
    margin-bottom: 10px;
}

.whatsapp-offline {
    color: #999;
    font-size: 14px;
    font-style: italic;
    margin-top: 10px;
}

.whatsapp-accounts {
    margin: 15px 0;
    font-family: Arial, sans-serif;
    width: max-content;
}

/* Button design */
.wpt-whatsapp-chat {
    display: flex;
    align-items: center;
    /* background: #25d366; */
    color: #fff;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.wpt-whatsapp-chat:hover {
    transform: translateY(-2px);
}

.wpt-profile-container {
    display: flex;
    align-items: center;
    margin-right: 12px;
    position: relative;
}

.wpt-profile-container img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid white;
}

.wpt-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    margin-right: 8px;
}

.wpt-whatsapp-icon {
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    padding: 3px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: -4px;
    right: -6px;
}

.wpt-whatsapp-icon img {
    width: 16px;
    height: 16px;
}

.wpt-text {
    display: flex;
    flex-direction: column;
}

.wpt-name {
    font-size: 15px;
    font-weight: bold;
}

.wpt-status {
    font-size: 12px;
    font-weight: 600;
    margin-left: 6px;
    padding: 2px 6px;
    border-radius: 12px;
    text-transform: capitalize;
}

.wpt-status.online {
    background: #34d058;
    color: #fff;
}

.wpt-status.offline {
    background: #ccc;
    color: #444;
}

.wpt-help {
    font-size: 13px;
    font-weight: bold;
    text-decoration: none;
    margin-top: 4px;
    opacity: 0.9;
}

/* Disabled (offline) button */
.wpt-whatsapp-chat.wpt-disabled {
    /* background: #7c817c !important; */
    color: #fff !important;
    cursor: not-allowed;
    pointer-events: none;
    /* prevents clicking */
    box-shadow: none;
    transform: none;
    filter: grayscale(.18) brightness(.98);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .08);
}

.wpt-whatsapp-chat.wpt-disabled:hover {
    background: #cccccc !important;
    /* no hover effect */
    transform: none;
}

.statusoffline {
    color: #e79a9a !important;
    /* no hover effect */
}

.wptwww-gdpr label {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ========================= WhatsApp Chat — Polished UI ========================= */
:root {
    --wptw-brand: #2db742;
    --wptw-brand-ink: #ffffff;
    --wptw-bg: #ffffff;
    --wptw-text: #1f2937;
    --wptw-muted: #6b7280;
    --wptw-border: #e5e7eb;
    --wptw-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}

/* Panel container */
#wptwww-whatsapp-chat {
    position: fixed;
    right: 20px;
    bottom: 90px;
    /* sits above the FAB if you have one */
    width: min(380px, 92vw);
    max-height: 72vh;
    background: var(--wptw-bg);
    color: var(--wptw-text);
    border-radius: 16px;
    box-shadow: var(--wptw-shadow);
    overflow: hidden;
    display: none;
    /* you can toggle this in JS */
    opacity: 0;
    transform: translateY(10px) scale(.98);
    transform-origin: 100% 100%;
    transition: opacity .28s ease, transform .32s cubic-bezier(.22, 1, .36, 1);
    z-index: 10009;
}

#wptwww-whatsapp-chat.show {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Header */
.wptwww-chat-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--wptw-brand) 0%, #20a33a 100%);
    color: var(--wptw-brand-ink) !important;
}

.wptwww-chat-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: transparent;
    padding: 4px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, .12);
}

.wptwww-chat-header p {
    margin: 0;
}

.wptwww-chat-header p:first-child {
    font-size: 16px !important;
    font-weight: 700;
    letter-spacing: .2px;
}

.wptwww-chat-header p+p {
    font-size: 12.5px !important;
    opacity: .95;
}

/* Close button */
#wptwww-close {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    font-size: 20px;
    line-height: 1;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, opacity .18s ease;
    opacity: .9;
}

#wptwww-close:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, .2);
    opacity: 1;
}

/* Body */
.wptwww-chat-body {
    padding: 12px;
    max-height: calc(72vh - 58px);
    overflow: auto;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

/* Account rows */
.wptwww-account {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 10px;
    border: 1px solid var(--wptw-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(17, 24, 39, .06);
    margin-bottom: 10px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.wptwww-account:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(17, 24, 39, .08);
    border-color: #e1e5ea;
}

/* Avatar */
.wptwww-agent-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
}

/* Info */
.wptwww-agent-info {
    line-height: 1.25;
}

.wptwww-agent-info strong {
    font-size: 14.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wptwww-agent-info small {
    color: var(--wptw-muted);
    font-size: 12.5px;
}

/* Status dot using account online/offline classes */
.wptwww-account.online .wptwww-agent-info strong::before,
.wptwww-account.offline .wptwww-agent-info strong::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px #fff;
}


.wptwww-account.offline .wptwww-agent-info strong::before {
    background: #9ca3af;
    margin-right: 10px;
}

/* Action button */
.wptwww-account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    min-width: 78px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    background: var(--wptw-brand);
    color: var(--wptw-brand-ink);
    box-shadow: 0 8px 18px rgba(45, 183, 66, .28);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.wptwww-account-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(45, 183, 66, .34);
    filter: saturate(1.05);
}

/* GDPR row */
.wptwww-gdpr {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px dashed #e0e6eb;
    border-radius: 10px;
    background: #fbfdff;
}

.wptwww-gdpr label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--wptw-muted);
}

#wptwww-gdpr-check {
    width: 16px;
    height: 16px;
    accent-color: var(--wptw-brand);
}

/* Scrollbar (WebKit) */
.wptwww-chat-body::-webkit-scrollbar {
    width: 10px;
}

.wptwww-chat-body::-webkit-scrollbar-track {
    background: #f2f3f5;
    border-radius: 10px;
}

.wptwww-chat-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.wptwww-chat-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Reduced motion accessible default */
@media (prefers-reduced-motion: reduce) {
    #wptwww-whatsapp-chat {
        transition: none !important;
        transform: none !important;
    }

    .wptwww-account,
    .wptwww-account-btn,
    #wptwww-close {
        transition: none !important;
    }
}

/* Dark mode (optional, auto) */
/* @media (prefers-color-scheme: dark) {
    :root {
        --wptw-bg: #0f172a;
        --wptw-text: #e5e7eb;
        --wptw-muted: #a3a8b5;
        --wptw-border: #1f2937;
        --wptw-shadow: 0 18px 40px rgba(0, 0, 0, .55);
    }

    .wptwww-chat-body {
        background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    }

    .wptwww-account {
        background: #0b1224;
        border-color: #162036;
    }

    .wptwww-account:hover {
        border-color: #2a3857;
    }

    .wptwww-gdpr {
        background: #0b1224;
        border-color: #162036;
    }
} */

/* ========================= added new css WhatsApp Chat — Polished UI ========================= */
:root {
    --wptw-brand: #2db742;
    --wptw-brand-ink: #ffffff;
    --wptw-bg: #ffffff;
    --wptw-text: #1f2937;
    --wptw-muted: #6b7280;
    --wptw-border: #e5e7eb;
    --wptw-shadow: 0 20px 50px rgba(0, 0, 0, .18);
}

/* Panel container */
#wptwww-whatsapp-chat {
    position: fixed;
    right: 20px;
    bottom: 90px;
    /* sits above the FAB if you have one */
    width: min(380px, 92vw);
    max-height: 72vh;
    background: var(--wptw-bg);
    color: var(--wptw-text);
    border-radius: 16px;
    box-shadow: var(--wptw-shadow);
    overflow: hidden;
    display: none;
    /* you can toggle this in JS */
    opacity: 0;
    transform: translateY(10px) scale(.98);
    transform-origin: 100% 100%;
    transition: opacity .28s ease, transform .32s cubic-bezier(.22, 1, .36, 1);
    z-index: 10009;
}

#wptwww-whatsapp-chat.show {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Header */
.wptwww-chat-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, var(--wptw-brand) 0%, #20a33a 100%);
    color: var(--wptw-brand-ink) !important;
}


.wptwww-chat-header p {
    margin: 0;
}

.wptwww-chat-header p:first-child {
    font-size: 16px !important;
    font-weight: 700;
    letter-spacing: .2px;
}

.wptwww-chat-header p+p {
    font-size: 12.5px !important;
    opacity: .95;
}

/* Close button */
#wptwww-close {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    font-size: 20px;
    line-height: 1;
    border-radius: 8px;
    cursor: pointer;
    transition: transform .18s ease, background .18s ease, opacity .18s ease;
    opacity: .9;
}

#wptwww-close:hover {
    transform: rotate(90deg);
    background: rgba(255, 255, 255, .2);
    opacity: 1;
}

/* Body */
.wptwww-chat-body {
    padding: 12px;
    max-height: calc(72vh - 58px);
    overflow: auto;
    background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
}

/* Account rows */
.wptwww-account {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 10px 10px;
    border: 1px solid var(--wptw-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(17, 24, 39, .06);
    margin-bottom: 10px;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.wptwww-account:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(17, 24, 39, .08);
    border-color: #e1e5ea;
}

/* Avatar */
.wptwww-agent-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .12);
}

/* Info */
.wptwww-agent-info {
    line-height: 1.25;
}

.wptwww-agent-info strong {
    font-size: 14.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wptwww-agent-info small {
    color: var(--wptw-muted);
    font-size: 12.5px;
}

/* Status dot */
.wptwww-account.online .wptwww-agent-info strong::before,
.wptwww-account.offline .wptwww-agent-info strong::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px #fff;
}

.wptwww-account.online .wptwww-agent-info strong::before {
    background: #22c55e;
    margin-right: 10px;
}

.wptwww-account.offline .wptwww-agent-info strong::before {
    background: #9ca3af;
}

/* Action button */
.wptwww-account-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 14px;
    min-width: 78px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    background: var(--wptw-brand);
    color: var(--wptw-brand-ink);
    box-shadow: 0 8px 18px rgba(45, 183, 66, .28);
    transition: transform .12s ease, box-shadow .12s ease, filter .12s ease;
}

.wptwww-account-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 26px rgba(45, 183, 66, .34);
    filter: saturate(1.05);
}

/* GDPR row */
.wptwww-gdpr {
    margin-top: 12px;
    padding: 10px 12px;
    border: 1px dashed #e0e6eb;
    border-radius: 10px;
    background: #fbfdff;
}

.wptwww-gdpr label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--wptw-muted);
}

#wptwww-gdpr-check {
    width: 16px;
    height: 16px;
    accent-color: var(--wptw-brand);
}

/* Scrollbar */
.wptwww-chat-body::-webkit-scrollbar {
    width: 10px;
}

.wptwww-chat-body::-webkit-scrollbar-track {
    background: #f2f3f5;
    border-radius: 10px;
}

.wptwww-chat-body::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 10px;
}

.wptwww-chat-body::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    #wptwww-whatsapp-chat {
        transition: none !important;
        transform: none !important;
    }

    .wptwww-account,
    .wptwww-account-btn,
    #wptwww-close {
        transition: none !important;
    }
}

/* Dark mode */
/* @media (prefers-color-scheme: dark) {
    :root {
        --wptw-bg: #0f172a;
        --wptw-text: #e5e7eb;
        --wptw-muted: #a3a8b5;
        --wptw-border: #1f2937;
        --wptw-shadow: 0 18px 40px rgba(0, 0, 0, .55);
    }

    .wptwww-chat-body {
        background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    }

    .wptwww-account {
        background: #0b1224;
        border-color: #162036;
    }

    .wptwww-account:hover {
        border-color: #2a3857;
    }

    .wptwww-gdpr {
        background: #0b1224;
        border-color: #162036;
    }
} */

/* === WhatsApp Button Variations === */
/* Shape */
.wpt-round .wpt-demo-btn {
    border-radius: 40px;
}

.wpt-square .wpt-demo-btn {
    border-radius: 10px;
}

/* Color Themes */
.wpt-color-green .wpt-demo-btn {
    background: #25D366;
    color: #fff;
}

.wpt-color-yellow .wpt-demo-btn {
    background: #fbbf24;
    color: #fff;
}

.wpt-color-blue .wpt-demo-btn {
    background: #2563eb;
    color: #fff;
}

/* Status styling */
.wpt-status.online {
    background: #34d058;
    color: #fff;
}

.wpt-status.offline {
    background: #9ca3af;
    color: #444;
}

/* Avatar shape */
.wpt-avatar-wrap {
    position: relative;
    margin-right: 10px;
}

.wpt-avatar-wrap img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.wpt-icon {
    position: absolute;
    bottom: -5px;
    right: -5px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wpt-icon img {
    width: 12px;
    height: 12px;
}

/* honor custom vars */
.wpt-whatsapp-chat {
    color: var(--wpt-btn-ink, #fff);
    transition: background .2s ease, box-shadow .2s ease, transform .15s ease;
    display: flex;
    align-items: center;
    gap: 12px;
}

/* shapes + sizes */
.wpt-whatsapp-chat.wpt-round {
    border-radius: 40px;
}

.wpt-whatsapp-chat.wpt-square {
    border-radius: 10px;
}

.wpt-whatsapp-chat.wpt-sm {
    padding: 8px 12px;
    font-size: 14px;
}

.wpt-whatsapp-chat.wpt-md {
    padding: 12px 16px;
    font-size: 16px;
}

.wpt-whatsapp-chat.wpt-lg {
    padding: 16px 22px;
    font-size: 18px;
}

/* left media: big WhatsApp logo (no-avatar style) */
.wpt-logo-badge {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .2);
}

.wpt-logo-lg {
    width: 34px;
    height: 34px;
    filter: brightness(0) invert(1);
}

/* text column */
.wpt-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.wpt-line-1 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wpt-name {
    font-weight: 500;
}

.wpt-help {
    font-weight: 500;
}

.wpt-subtitle {
    font-size: 12px;
    opacity: .85;
    margin-top: 4px;
}

/* status badge */
.wpt-badge {
    font-size: 12px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .25);
    color: #fff;
}

.wpt-badge.online {
    background: rgba(34, 197, 94, .9);
    color: #fff;
}

.wpt-badge.offline {
    background: #e5e7eb;
    color: #111827;
}

/* offline look keeps your disabled state; add subtle shadow for cards like the mock */
.whatsapp-contact {
    margin: 12px 0;
}

/* ensure avatar block spacing matches */
.wpt-profile-container {
    position: relative;
    margin-right: 8px;
}

.wpt-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255, 255, 255, .6);
}

.wpt-whatsapp-icon {
    position: absolute;
    bottom: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    display: grid;
    place-items: center;
}

.wpt-whatsapp-icon img {
    width: 14px;
    height: 14px;
}

.whatsapp-accounts .wpt-whatsapp-chat:hover {
    transform: translateY(-2px);
}

.whatsapp-accounts .wpt-whatsapp-chat.wpt-disabled:hover {
    transform: none;
}

@media(max-width:480px) {
    .whatsapp-accounts .wpt-cta-chip {
        display: none;
    }
}

.wptwww-profile-card {
    margin: 10px 0;
}

.wptwww-card-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    text-decoration: none !important;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    transition: transform .2s ease, box-shadow .2s ease;
}

.wptwww-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.wptwww-card-link.is-disabled {
    pointer-events: none;
    cursor: not-allowed;
    filter: grayscale(.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .06);
}

.wptwww-avatar-wrap {
    position: relative;
    width: 58px;
    height: 58px;
    flex-shrink: 0;
}

.wptwww-avatar {
    width: 58px !important;
    height: 58px !important;
    border-radius: 50% !important;
    object-fit: cover;
    box-shadow: 0 0 0 3px #fff;
}

.wptwww-wa-badge {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wptwww-wa-badge img {
    width: 13px;
    height: 13px;
}

.wptwww-avatar-fallback {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wptwww-avatar-fallback img {
    width: 26px;
    height: 26px;
}

.wptwww-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    flex: 1;
    overflow: hidden;
}

.wptwww-name {
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wptwww-status {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.wptwww-status.online {
    background: #E6F7EE;
    color: #0F8F3E;
}

.wptwww-status.offline {
    background: #ECEFF3;
    color: #6B7280;
}

.wptwww-message {
    font-size: 13px;
    font-weight: 600;
    margin-top: 3px;
}

.wptwww-subtext {
    font-size: 11px;
    opacity: 0.85;
}

@media(max-width:480px) {
    .wptwww-card-link {
        flex-direction: row;
        align-items: center;
    }

    .wptwww-info {
        font-size: 13px;
    }

    .wptwww-avatar-wrap {
        width: 52px;
        height: 52px;
    }
}

.wptwww-profile-card {
    margin: 10px 0;
}

.wptwww-card-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    transition: transform .2s ease, box-shadow .2s ease;
}

.wptwww-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.wptwww-card-link.is-disabled {
    pointer-events: none;
    cursor: not-allowed;
    filter: grayscale(.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .06);
}

.wptwww-avatar-wrap {
    position: relative;
    width: 58px;
    height: 58px;
    flex-shrink: 0;
}

.wptwww-avatar {
    width: 58px !important;
    height: 58px !important;
    border-radius: 50% !important;
    object-fit: cover;
    box-shadow: 0 0 0 3px #fff;
}

.wptwww-wa-badge {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wptwww-wa-badge img {
    width: 13px;
    height: 13px;
}

.wptwww-avatar-fallback {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wptwww-avatar-fallback img {
    width: 26px;
    height: 26px;
}

.wptwww-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    flex: 1;
    overflow: hidden;
}

.wptwww-name {
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wptwww-status {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.wptwww-status.online {
    background: #E6F7EE;
    color: #0F8F3E;
}

.wptwww-status.offline {
    background: #ECEFF3;
    color: #6B7280;
}

.wptwww-message {
    font-size: 13px;
    font-weight: 600;
    margin-top: 3px;
}

.wptwww-subtext {
    font-size: 11px;
    opacity: 0.85;
}

@media(max-width:480px) {
    .wptwww-card-link {
        flex-direction: row;
        align-items: center;
    }

    .wptwww-info {
        font-size: 13px;
    }

    .wptwww-avatar-wrap {
        width: 52px;
        height: 52px;
    }
}

.wptwww-profile-card {
    margin: 10px 0;
    max-width: 350px;
}

.wptwww-card-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    text-decoration: none;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.1);
    transition: transform .2s ease, box-shadow .2s ease;
}

.wptwww-card-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.wptwww-card-link.is-disabled {
    pointer-events: none;
    cursor: not-allowed;
    filter: grayscale(.1);
    box-shadow: 0 3px 8px rgba(0, 0, 0, .06);
}

.wptwww-avatar-wrap {
    position: relative;
    width: 58px;
    height: 58px;
    flex-shrink: 0;
}

.wptwww-avatar {
    width: 58px !important;
    height: 58px !important;
    border-radius: 50% !important;
    object-fit: cover;
    box-shadow: 0 0 0 3px #fff;
}

.wptwww-wa-badge {
    position: absolute;
    right: -4px;
    bottom: -4px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wptwww-wa-badge img {
    width: 13px;
    height: 13px;
}

.wptwww-avatar-fallback {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wptwww-avatar-fallback img {
    width: 26px;
    height: 26px;
}

.wptwww-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    flex: 1;
    overflow: hidden;
}

.wptwww-name {
    font-weight: 700;
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.wptwww-status {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 12px;
    font-weight: 600;
    text-transform: capitalize;
}

.wptwww-status.online {
    background: #E6F7EE;
    color: #0F8F3E;
}

.wptwww-status.offline {
    background: #ECEFF3;
    color: #6B7280;
}

.wptwww-message {
    font-size: 13px;
    font-weight: 600;
    margin-top: 3px;
}

.wptwww-subtext {
    font-size: 11px;
    opacity: 0.85;
}

@media(max-width:480px) {
    .wptwww-card-link {
        flex-direction: row;
        align-items: center;
    }

    .wptwww-info {
        font-size: 13px;
    }

    .wptwww-avatar-wrap {
        width: 52px;
        height: 52px;
    }
}


/* for the wc orders settings */

.wptwww-btn-primary,
.wptwww-single-product-btn,
.wptwww-cart-btn,
.wptwww-floating-button {
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Single Product Button */
.wptwww-single-product-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    margin-top: 15px;
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    background-color: #25D366;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
    max-width: 260px;
}

.wptwww-single-product-btn:hover {
    background-color: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.wptwww-single-product-btn:active {
    transform: translateY(0);
}

/* Cart Button */
.wptwww-cart-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    margin-bottom: 15px;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    background-color: #25D366;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    width: 100%;
}

.wptwww-cart-btn:hover {
    background-color: #20BA5A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

/* WhatsApp Icon */
.wptwww-whatsapp-icon {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Custom Checkout Fields */
.wptwww-custom-fields {
    margin: 20px 0;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
}

.wptwww-custom-field {
    margin-bottom: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .wptwww-single-product-btn,
    .wptwww-cart-btn {
        font-size: 15px;
        padding: 12px 20px;
    }
    
    .wptwww-floating-button {
        width: 55px;
        height: 55px;
        bottom: 20px;
        right: 20px;
    }
    
    .wptwww-floating-button .wptwww-whatsapp-icon {
        width: 28px;
        height: 28px;
    }
    
    .wptwww-greeting-message {
        display: none;
    }
}

@media (max-width: 480px) {
    .wptwww-single-product-btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    .wptwww-cart-btn {
        padding: 12px 20px;
        font-size: 15px;
    }
}

/* Ensure no conflicts with other elements */
.wptwww-single-product-btn,
.wptwww-cart-btn,
.wptwww-floating-button {
    line-height: normal;
    text-transform: none;
    letter-spacing: normal;
}

/* Loading state */
.wptwww-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.wptwww-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ffffff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: wptwww-spin 0.6s linear infinite;
}

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