/* WhatsApp chat replica — not Pure Messaging tokens */
.wa-phone-frame {
    width: 290px;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 36px;
    background: #1a1a1a;
    padding: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
}

.wa-phone-frame::before {
    content: "";
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 5px;
    background: #333;
    border-radius: 10px;
}

.wa-phone-screen {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 522px;
    border-radius: 28px;
    overflow: hidden;
    background: #efeae2;
}

.wa-hdr {
    background: #008069;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    flex-shrink: 0;
}

.wa-hdr::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 22px;
    background: #075e54;
}

.wa-hdr > * {
    position: relative;
    z-index: 1;
}

.wa-hdr-back {
    color: #fff;
    font-size: 1.2rem;
    margin-top: 14px;
}

button.wa-hdr-back {
    appearance: none;
    background: transparent;
    border: 0;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    font-family: inherit;
}

button.wa-hdr-back:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    border-radius: 4px;
}

.wa-hdr-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #FFF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 14px;
    overflow: hidden;
}

.wa-hdr-avatar i {
    color: #0079c2;
    font-size: 1.4rem;
}

.wa-hdr-info {
    flex: 1;
    margin-top: 14px;
}

.wa-hdr-name {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 500;
}

.wa-hdr-status {
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.6rem;
}

.wa-hdr-icons {
    display: flex;
    gap: 14px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
    margin-top: 14px;
}

.wa-chat-area {
    padding: 8px 8px 6px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    background-color: #efeae2;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cpath d='M20 10c2 0 3-1 3-3s-1-3-3-3-3 1-3 3 1 3 3 3zm40 20c1.5 0 2.5-1 2.5-2.5S61.5 25 60 25s-2.5 1-2.5 2.5S58.5 30 60 30zm80-15c1 0 2-.8 2-2s-1-2-2-2-2 .8-2 2 1 2 2 2zm-60 80c1.5 0 2.5-1 2.5-2.5S81.5 90 80 90s-2.5 1-2.5 2.5S78.5 95 80 95zm100 10c1 0 2-.8 2-2s-1-2-2-2-2 .8-2 2 1 2 2 2zm-140 60c2 0 3-1 3-3s-1-3-3-3-3 1-3 3 1 3 3 3zm120-20c1.5 0 2.5-1 2.5-2.5s-1-2.5-2.5-2.5-2.5 1-2.5 2.5 1 2.5 2.5 2.5z' fill='%23cfc8bc' fill-opacity='.08'/%3E%3C/svg%3E");
}

.wa-chat-date {
    text-align: center;
    margin-bottom: 8px;
}

.wa-chat-date span {
    font-size: 0.625rem;
    color: #54656f;
    background: #fff;
    padding: 3px 10px;
    border-radius: 8px;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.08);
    display: inline-block;
}

.wa-msg {
    max-width: 80%;
    padding: 6px 8px 4px 9px;
    border-radius: 8px;
    margin-bottom: 3px;
    font-size: 0.7rem;
    line-height: 1.35;
    position: relative;
    overflow-wrap: break-word;
    animation: waMsgPop 0.2s ease;
}

.wa-msg--in {
    background: #fff;
    border-top-left-radius: 0;
    margin-right: auto;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.08);
}

.wa-msg--out {
    background: #d9fdd3;
    border-top-right-radius: 0;
    margin-left: auto;
    box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.08);
}

.wa-msg-time {
    font-size: 0.5rem;
    color: #667781;
    text-align: right;
    margin-top: 1px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
}

.wa-msg--out .wa-msg-time {
    color: #5c8a5a;
}

.wa-msg--out .wa-msg-time::after {
    content: "";
    display: inline-block;
    width: 14px;
    height: 9px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10'%3E%3Cpath d='M2 5l2.5 3L9 3' fill='none' stroke='%2353bdeb' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6 5l2.5 3L13 3' fill='none' stroke='%2353bdeb' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center;
}

.wa-msg strong {
    font-weight: 600;
}

.wa-typing-ind {
    display: flex;
    gap: 4px;
    padding: 10px 14px;
    max-width: 60px;
}

.wa-typing-ind span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8696a0;
    animation: waTypeBounce 1.2s infinite;
}

.wa-typing-ind span:nth-child(2) {
    animation-delay: 0.2s;
}

.wa-typing-ind span:nth-child(3) {
    animation-delay: 0.4s;
}

.wa-quick-menu {
    background: #f0f2f5;
    padding: 8px;
    border-top: 1px solid #e9edef;
    display: flex;
    flex-wrap: wrap;
    align-content: center;
    gap: 6px;
    justify-content: center;
    height: 72px;
    overflow: hidden;
    flex-shrink: 0;
    box-sizing: border-box;
}

.wa-qbtn,
.wa-demo-restart {
    background: #fff;
    border: 1px solid #00a884;
    color: #008069;
    font-size: 0.65rem;
    font-weight: 500;
    padding: 6px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-family: inherit;
}

.wa-qbtn {
    transition: background 0.15s, color 0.15s, transform 0.1s;
    animation: waMsgPop 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.wa-qbtn:hover {
    background: #00a884;
    color: #fff;
    transform: scale(1.03);
}

.wa-qbtn:active {
    transform: scale(0.97);
}

.wa-demo-restart {
    margin: 4px auto 0;
}

.wa-input-bar {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 5px 7px;
    background: #f0f2f5;
    flex-shrink: 0;
}

.wa-input-emoji {
    color: #54656f;
    font-size: 1rem;
}

.wa-input-field {
    flex: 1;
    background: #fff;
    border-radius: 20px;
    padding: 7px 10px;
    font-size: 0.625rem;
    color: #8696a0;
}

.wa-input-clip {
    color: #54656f;
    font-size: 0.9rem;
    transform: rotate(-45deg);
}

.wa-input-mic {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #00a884;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
}

.wa-demo-splash {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 28px 22px 24px;
    text-align: center;
    background: var(--pm-color-surface-tint, #f0faf4);
    background: var(--pm-color-ink, #f0faf4);
    color: var(--pm-color-ink, #1f2a3d);
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.wa-demo-splash::before {
    /* content: "";
    position: absolute;
    inset: 0;
    background: url("../images/logo-mark.svg") no-repeat center / 140px;
    opacity: 0.06;
    pointer-events: none; */
}

.wa-demo-splash > * {
    position: relative;
    z-index: 1;
}

.wa-phone-screen.is-playing .wa-demo-splash {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.wa-demo-splash__mark {
    width: 48px;
    height: auto;
    display: block;
}

.wa-demo-splash__wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 0.26em;
    margin: 0;
    letter-spacing: -1px;
    white-space: nowrap;
    line-height: 1;
    font-size: 17.5px;
    color: var(--pm-color-ink, #1f2a3d);
}

.wa-demo-splash__pure { font-weight: 300; }
.wa-demo-splash__msg { font-weight: 700; }

.wa-demo-splash__label {
    margin: 8px 0 0;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
    color: var(--pm-color-ink, #1f2a3d);
}

.wa-demo-splash__cta {
    margin-top: 4px;
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 10px 16px;
    background: var(--pm-color-brand, #22b14c);
    color: #fff;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(34, 177, 76, 0.28);
}

.wa-demo-splash__cta:hover {
    filter: brightness(0.96);
}

.wa-demo-splash__cta:focus-visible {
    outline: 2px solid var(--pm-color-ink, #1f2a3d);
    outline-offset: 2px;
}

@keyframes waMsgPop {
    from { opacity: 0; transform: scale(0.92) translateY(6px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes waTypeBounce {
    0%, 60%, 100% { transform: translateY(0); }
    30% { transform: translateY(-3px); }
}

@media (prefers-reduced-motion: reduce) {
    .wa-msg,
    .wa-qbtn,
    .wa-typing-ind span {
        animation: none;
    }

    .wa-demo-splash {
        transition: none;
    }
}

@media (max-width: 767px) {
    .wa-phone-frame {
        width: 252px;
    }

    .wa-phone-screen {
        height: 464px;
    }
}
