/* =============================================
   CANLI SİPARİŞ BİLDİRİMİ (SOL ALT)
   ============================================= */

@keyframes order-notification-bell-swing {
    0%,
    100% {
        transform: rotate(-10deg);
    }

    50% {
        transform: rotate(10deg);
    }
}

.order-notification {
    position: fixed;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 1050;
    width: min(calc(100vw - 2rem), 17rem);
    pointer-events: auto;
    visibility: visible;
    opacity: 1;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.order-notification.is-hidden {
    pointer-events: none;
    visibility: hidden;
    opacity: 0;
}

.order-notification__card {
    position: relative;
    padding: 1.15rem 1.5rem 1.15rem 4.25rem;
    border-radius: 1.75rem;
    background: #3b49cf;
    box-shadow: 0 16px 38px rgba(59, 73, 207, 0.4);
    overflow: visible;
}

.order-notification__icon-wrap {
    position: absolute;
    top: -1rem;
    left: -1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.9rem;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.12);
}

.order-notification__icon {
    display: block;
    width: 2.2rem;
    height: 2.2rem;
    object-fit: contain;
    transform-origin: top center;
    animation: order-notification-bell-swing 2s ease-in-out infinite;
    pointer-events: none;
    user-select: none;
}

@media (prefers-reduced-motion: reduce) {
    .order-notification__icon {
        animation: none;
    }
}

.order-notification__close {
    position: absolute;
    top: 5px;
    right: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #0038a8;
    color: #ffffff;
    box-shadow: none;
    transform: translate(50%, -50%);
    transition: background 0.2s ease;
}

.order-notification__close:hover {
    background: #002f8f;
}

.order-notification__body {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.order-notification__time {
    font-size: 1.0625rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.order-notification__text {
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.95);
}

@media (max-width: 479px) {
    .order-notification {
        bottom: 1rem;
        left: 1rem;
        width: min(calc(100vw - 2rem), 16rem);
    }

    .order-notification__card {
        padding: 1rem 1.25rem 1rem 3.85rem;
        border-radius: 1.5rem;
    }

    .order-notification__icon-wrap {
        top: -0.85rem;
        left: -1rem;
        width: 3.15rem;
        height: 3.15rem;
    }

    .order-notification__icon {
        width: 1.95rem;
        height: 1.95rem;
    }

    .order-notification__time {
        font-size: 0.9375rem;
    }

    .order-notification__text {
        font-size: 0.75rem;
    }
}
