.order-arrival-alert {
    position: fixed;
    top: 18px;
    left: 50%;
    width: min(760px, calc(100vw - 32px));
    z-index: 10050;
    pointer-events: none;
}

.order-arrival-alert--hidden {
    opacity: 0;
    transform: translate(-50%, -14px);
}

.order-arrival-alert--show {
    animation: order-arrival-alert-in 3s ease-out forwards;
}

.order-arrival-alert__inner {
    display: grid;
    grid-template-columns: 156px minmax(0, 1fr) 190px;
    gap: 16px;
    align-items: center;
    min-height: 72px;
    padding: 12px 18px;
    border: 1px solid rgba(112, 232, 218, 0.75);
    border-radius: 8px;
    background: rgba(6, 12, 16, 0.94);
    box-shadow: 0 0 24px rgba(112, 232, 218, 0.26), 0 12px 36px rgba(0, 0, 0, 0.34);
}

.order-arrival-alert__identity {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.order-profile-avatar {
    position: relative;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid rgba(112, 232, 218, 0.72);
    border-radius: 50%;
    color: #091014;
    background: linear-gradient(145deg, #70e8da, #f2c94c);
    box-shadow: 0 0 12px rgba(112, 232, 218, 0.2);
}

.order-profile-avatar--alert {
    width: 50px;
    height: 50px;
}

.order-profile-avatar--row {
    width: 42px;
    height: 42px;
}

.order-profile-avatar__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.order-profile-avatar__initials {
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.02em;
}

.order-arrival-alert__label {
    color: #70e8da;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
}

.order-arrival-alert__main {
    min-width: 0;
    overflow: hidden;
}

.order-arrival-alert__order {
    display: block;
    overflow: hidden;
    color: #ffffff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-arrival-alert__customer {
    display: block;
    overflow: hidden;
    margin-top: 5px;
    color: #d1d5db;
    font-size: 17px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-arrival-alert__meta {
    min-width: 0;
    text-align: right;
}

.order-arrival-alert__amount {
    display: block;
    overflow: hidden;
    color: #ffffff;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-arrival-alert__context {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
    margin-top: 5px;
}

.order-arrival-alert__owner {
    display: block;
    min-width: 0;
    overflow: hidden;
    color: #70e8da;
    font-size: 16px;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-arrival-alert__status {
    display: block;
    flex: 0 0 auto;
    padding: 2px 7px;
    border: 1px solid rgba(242, 201, 76, 0.72);
    border-radius: 4px;
    color: #f2c94c;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

.order-notification-row {
    display: grid;
    grid-template-columns: 48px 118px minmax(0, 1fr) 150px minmax(150px, 220px) max-content;
    gap: 14px;
    align-items: center;
    min-width: 0;
    padding: 4px 0;
}

.order-notification-row__main,
.order-notification-row__owner {
    min-width: 0;
    overflow: hidden;
}

.order-notification-row__owner {
    color: #70e8da;
    font-size: 18px;
    line-height: 1.1;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.order-notification-row__status {
    justify-self: end;
    min-width: 132px;
    padding: 3px 9px;
    border: 1px solid rgba(242, 201, 76, 0.72);
    border-radius: 4px;
    color: #f2c94c;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
    white-space: nowrap;
}

@keyframes order-arrival-alert-in {
    0% {
        opacity: 0;
        transform: translate(-50%, -18px);
        filter: drop-shadow(0 0 0 rgba(112, 232, 218, 0));
    }
    12% {
        opacity: 1;
        transform: translate(-50%, 0);
        filter: drop-shadow(0 0 16px rgba(112, 232, 218, 0.56));
    }
    72% {
        opacity: 1;
        transform: translate(-50%, 0);
        filter: drop-shadow(0 0 10px rgba(112, 232, 218, 0.34));
    }
    100% {
        opacity: 0;
        transform: translate(-50%, -8px);
        filter: drop-shadow(0 0 0 rgba(112, 232, 218, 0));
    }
}

@media (max-width: 1023px) {
    .order-notification-row {
        grid-template-columns: 42px minmax(0, 1fr) max-content;
        grid-template-areas:
            "avatar main amount"
            "avatar time status"
            "avatar owner owner";
        gap: 4px 10px;
    }

    .order-notification-row__avatar {
        grid-area: avatar;
    }

    .order-notification-row__time {
        grid-area: time;
    }

    .order-notification-row__main {
        grid-area: main;
    }

    .order-notification-row__amount {
        grid-area: amount;
    }

    .order-notification-row__owner {
        grid-area: owner;
        text-align: left;
    }

    .order-notification-row__status {
        grid-area: status;
        justify-self: end;
        min-width: 0;
    }
}

@media (max-width: 720px) {
    .order-arrival-alert {
        top: 12px;
        width: calc(100vw - 24px);
    }

    .order-arrival-alert__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        min-height: 0;
    }

    .order-arrival-alert__meta {
        text-align: left;
    }

    .order-arrival-alert__context {
        justify-content: flex-start;
    }
}
