.phone-mockup {
    border: 12px solid #1a1a1a;
    border-radius: 45px;
    overflow: hidden;
    position: relative;
    background: #fff;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.35);
    aspect-ratio: 9/19;
    max-height: 620px;
    margin: 0 auto;
    z-index: 20;
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 28px;
    background: #1a1a1a;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 30;
}

#chat-container {
    background-image: url('/whatsapp-bg.webp');
    background-color: #E5DDD5;
}

#chat-container::-webkit-scrollbar {
    width: 4px;
}

#chat-container::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.msg-enter {
    animation: slideUpFade 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(15px);
}

@keyframes slideUpFade {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.typing-dot {
    animation: typing 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
    animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
    animation-delay: -0.16s;
}

@keyframes typing {
    0%,
    80%,
    100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1);
    }
}

details > summary {
    list-style: none;
    outline: none;
}

details > summary::-webkit-details-marker {
    display: none;
}

details > summary {
    min-height: 44px;
}

details[open] summary ~ * {
    animation: sweep 0.3s ease-in-out;
}

@keyframes sweep {
    0% {
        opacity: 0;
        transform: translateY(-10px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .msg-enter,
    .typing-dot,
    details[open] summary ~ *,
    .phone-mockup {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
