/* Anker Gadgets - Global WhatsApp Chat v1.0.0 */
.ag-wa-chat {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 9997;
    font-family: inherit;
}

.ag-wa-chat__launcher {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .20);
    cursor: pointer;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.ag-wa-chat__launcher:hover,
.ag-wa-chat__launcher:focus {
    background: #1fbd5a;
    box-shadow: 0 15px 34px rgba(0, 0, 0, .24);
    transform: translateY(-2px);
    outline: 0;
}

.ag-wa-chat__launcher svg {
    width: 31px;
    height: 31px;
}

.ag-wa-chat__pulse {
    position: absolute;
    inset: -5px;
    border: 2px solid rgba(37, 211, 102, .35);
    border-radius: 50%;
    animation: agWaPulse 2.2s infinite;
    pointer-events: none;
}

@keyframes agWaPulse {
    0% { transform: scale(.94); opacity: .8; }
    70% { transform: scale(1.15); opacity: 0; }
    100% { transform: scale(1.15); opacity: 0; }
}

.ag-wa-chat__panel {
    position: absolute;
    right: 0;
    bottom: 72px;
    width: 326px;
    overflow: hidden;
    border: 1px solid #e6ebf0;
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 18px 48px rgba(15, 23, 42, .20);
    transform-origin: bottom right;
}

.ag-wa-chat__panel[hidden] {
    display: none !important;
}

.ag-wa-chat__panel.is-opening {
    animation: agWaPanelIn .18s ease-out;
}

@keyframes agWaPanelIn {
    from { opacity: 0; transform: translateY(8px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.ag-wa-chat__header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 14px;
    background: #075e54;
    color: #fff;
}

.ag-wa-chat__brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    border-radius: 50%;
    background: #25d366;
}

.ag-wa-chat__brand-icon svg {
    width: 24px;
    height: 24px;
}

.ag-wa-chat__header-copy {
    min-width: 0;
    flex: 1;
}

.ag-wa-chat__header-copy strong {
    display: block;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.ag-wa-chat__header-copy span {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 3px;
    font-size: 10.5px;
    font-weight: 400;
    opacity: .88;
}

.ag-wa-chat__header-copy span i {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #4ade80;
}

.ag-wa-chat__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: rgba(255, 255, 255, .09);
    color: #fff;
    font-size: 22px;
    font-weight: 400;
    line-height: 1;
    cursor: pointer;
}

.ag-wa-chat__body {
    min-height: 126px;
    padding: 18px 16px;
    background: #efeae2;
}

.ag-wa-chat__bubble {
    max-width: 88%;
    padding: 11px 12px;
    border-radius: 4px 12px 12px 12px;
    background: #fff;
    color: #24313c;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .05);
}

.ag-wa-chat__bubble strong {
    display: block;
    margin-bottom: 3px;
    font-size: 12.5px;
    font-weight: 600;
}

.ag-wa-chat__bubble p {
    margin: 0;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.5;
}

.ag-wa-chat__composer {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px;
    border-top: 1px solid #edf0f3;
    background: #fff;
}

.ag-wa-chat__composer input {
    min-width: 0;
    flex: 1;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #dce2e8;
    border-radius: 20px;
    background: #fff;
    color: #1f2937;
    font-size: 12px;
    font-weight: 400;
    outline: 0;
}

.ag-wa-chat__composer input:focus {
    border-color: #25d366;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, .10);
}

.ag-wa-chat__composer button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    cursor: pointer;
}

.ag-wa-chat__composer button svg {
    width: 18px;
    height: 18px;
}

.ag-wa-chat__open {
    display: block;
    padding: 0 12px 11px;
    color: #157347;
    font-size: 10.5px;
    font-weight: 500;
    text-align: center;
    text-decoration: none;
}

.ag-wa-chat__open:hover,
.ag-wa-chat__open:focus {
    color: #0f5b38;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .ag-wa-chat {
        right: 14px;
        bottom: 78px;
    }

    .ag-wa-chat__launcher {
        width: 54px;
        height: 54px;
    }

    .ag-wa-chat__launcher svg {
        width: 29px;
        height: 29px;
    }

    .ag-wa-chat__panel {
        position: fixed;
        right: 12px;
        bottom: 142px;
        width: min(330px, calc(100vw - 24px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .ag-wa-chat__pulse,
    .ag-wa-chat__panel.is-opening {
        animation: none;
    }
}
