/* Anton Foundation Chat Icon Animation */
#afcw2-launch {
    animation: afcw2-pulse 2.5s infinite;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Favicon image */
#afcw2-launch img {
    transition: transform 0.3s ease;
}
/* Hover effect */
#afcw2-launch:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 8px rgba(52, 124, 246, 0.12),
                0 4px 18px rgba(52, 124, 246, 0.30);
    animation-play-state: paused;
}
#afcw2-launch:hover img {
    transform: rotate(-8deg);
}
/* Gentle pulse animation */
@keyframes afcw2-pulse {
    0% {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10),
                    0 0 0 0 rgba(52, 124, 246, 0.35);
    }

    50% {
        box-shadow: 0 3px 16px rgba(0, 0, 0, 0.12),
                    0 0 0 9px rgba(52, 124, 246, 0.08);
    }

    100% {
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.10),
                    0 0 0 14px rgba(52, 124, 246, 0);
    }
}
/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
    #afcw2-launch {
        animation: none;
        transition: none;
    }

    #afcw2-launch:hover img {
        transform: none;
    }
}
/* Anton Foundation Chat Widget v2.0.1 — Front-end styles */
#afcw2-launch {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 999990;
    width: 50px;
    height: 50px;
    padding: 0px;
    border: 1px solid #edf0f4;
    border-radius: 50%;
    background: #fff;
    color: var(--afcw2-launcher-color, #111);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
#afcw2-launch img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border-radius: 50%;
}
#afcw2-launch svg {
    width: 38px;
    height: 38px;
}
#afcw2-panel {
    position: fixed;
    right: 24px;
    bottom: 80px;
    z-index: 999991;
    width: min(460px, calc(100vw - 28px));
    max-height: min(760px, calc(100vh - 130px));
    overflow: auto;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 8px;
    box-shadow: 0 3px 18px rgba(0, 0, 0, 0.14);
    display: none;
    font-family: Arial, Helvetica, sans-serif;
    color: #111;
}
#afcw2-panel.open {
    display: block;
}
#afcw2-panel * {
    box-sizing: border-box;
}
.afcw2-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: var(--afcw2-header-color, #fafafa);
    border-bottom: 1px solid #eee;
    position: sticky;
    top: 0;
    z-index: 2;
}
.afcw2-avatar,
.afcw2-mini {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #d8eafa;
    border: 2px solid #91b6db;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    color: #3475b9;
}
.afcw2-avatar {
    width: 58px;
    height: 58px;
}
.afcw2-avatar img,
.afcw2-mini img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.afcw2-agent {
    flex: 1;
    min-width: 0;
}
.afcw2-agent strong {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
}
.afcw2-agent span {
    display: block;
    font-size: 14px;
    line-height: 1.4;
}
.afcw2-close {
    border: 0;
    background: transparent;
    color: #999;
    font-size: 26px;
    cursor: pointer;
}
.afcw2-body {
    padding: 18px 20px;
}
.afcw2-time {
    text-align: center;
    color: #aaa;
    font-size: 13px;
    margin: 0 0 16px;
}
.afcw2-msgrow {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 10px 0;
}
.afcw2-mini {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
}
.afcw2-bubble {
    background: var(--afcw2-bubble-color, #f0f0f0);
    border-radius: 0 16px 16px 16px;
    padding: 12px 15px;
    white-space: pre-line;
    font-size: 16px;
    line-height: 1.55;
    flex: 1;
    min-width: 0;
}
.afcw2-user-bubble {
    background: #347cf6;
    color: #fff;
    border-radius: 16px 0 16px 16px;
    padding: 10px 13px;
    max-width: 85%;
    overflow-wrap: anywhere;
    font-size: 15px;
    white-space: pre-wrap;
}
.afcw2-inputrow {
    display: flex;
    gap: 8px;
    margin: 10px 0 15px 46px;
}
.afcw2-inputrow input {
    height: 40px !important;
    min-width: 0;
    flex: 1;
    border-radius: 7px;
    padding: 11px 12px;
    outline: none;
    box-shadow: none;
}
.afcw2-inputrow input:focus {
    border-color: #347cf6;
    box-shadow: 0 0 0 2px rgba(52, 124, 246, 0.12);
}
.afcw2-send,
.afcw2-submit {
	height: 40px;
    border: 0;
    background: #347cf6;
    color: #fff;
    border-radius: 7px;
    padding: 10px 14px;
    font-weight: 600;
    line-height: 1.4;
}
.afcw2-send:disabled,
.afcw2-submit:disabled {
    opacity: 0.55;
    cursor: wait;
}
.afcw2-error {
    color: #b42318;
    font-size: 12px;
    margin: 4px 0 8px 46px;
}
.afcw2-title {
    text-align: center;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.3;
    margin: 22px 0 12px;
}
.afcw2-q {
    display: flex;
    gap: 9px;
    padding: 10px;
    border: 1px solid #e1e5eb;
    border-radius: 8px;
    margin: 7px 0;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    background: #fff;
}
.afcw2-q:hover {
    border-color: #347cf6;
    background: #f8faff;
}
.afcw2-q input {
    margin-top: 3px;
    accent-color: #347cf6;
    flex-shrink: 0;
}
.afcw2-answer {
    display: none;
    background: #f5f7fa;
    border-radius: 8px;
    padding: 10px 12px;
    margin: 0 0 9px 26px;
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line;
}
.afcw2-answer.show {
    display: block;
}
.afcw2-submit {
    width: 100%;
    margin-top: 8px;
}
.afcw2-status {
    text-align: center;
    color: #666;
    font-size: 12px;
    line-height: 1.5;
    margin-top: 8px;
}
.afcw2-contact-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}
.afcw2-contact-item {
    width: calc(20% - 7px);
    max-width: 72px;
    min-width: 48px;
}
.afcw2-contact {
    height: 54px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #fff !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.afcw2-contact:hover {
    transform: translateY(-2px);
    opacity: 0.9;
}
.afcw2-contact svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}
.afcw2-contact-label {
    display: block;
    text-align: center;
    font-size: 10px;
    color: #666;
    margin-top: 3px;
    overflow-wrap: anywhere;
    line-height: 1.3;
}
.afcw2-contact-area {
    margin-top: 22px;
}
@media (max-width: 480px) {
    #afcw2-launch {
        width: 60px;
        height: 60px;
        right: 15px;
        bottom: 15px;
    }
    #afcw2-panel {
        right: 10px;
        bottom: 86px;
        width: calc(100vw - 20px);
        max-height: calc(100vh - 105px);
    }
    .afcw2-body {
        padding: 14px;
    }
    .afcw2-head {
        padding: 13px;
    }
    .afcw2-agent strong {
        font-size: 18px;
    }
    .afcw2-contact {
        height: 48px;
    }
    .afcw2-inputrow {
        margin-left: 0;
    }
    .afcw2-error {
        margin-left: 0;
    }
}