/* ARTHUR flash alerts — Vikinger visual language */
.gam-alert-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 420px;
    width: calc(100% - 48px);
    pointer-events: none;
}

.gam-alert {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px 22px;
    border-radius: 12px;
    background-color: #21283b;
    box-shadow: 0 0 40px 0 rgba(0, 0, 0, 0.06);
    pointer-events: auto;
    animation: gam-alert-in 0.35s ease;
    position: relative;
    border-left: 4px solid #615dfa;
}

body.theme-light .gam-alert {
    background-color: #fff;
    box-shadow: 3px 5px 20px 0 rgba(94, 92, 154, 0.12);
}

.gam-alert.is-hiding {
    animation: gam-alert-out 0.3s ease forwards;
}

.gam-alert-icon-wrap {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gam-alert-icon-wrap svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.gam-alert-content {
    flex: 1;
    min-width: 0;
    padding-top: 2px;
}

.gam-alert-title {
    margin: 0 0 4px;
    font-size: 0.875rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.3;
}

body.theme-light .gam-alert-title {
    color: #3e3f5e;
}

.gam-alert-text {
    margin: 0;
    font-size: 0.8125rem;
    color: #9aa4bf;
    line-height: 1.45;
}

body.theme-light .gam-alert-text {
    color: #8f91ac;
}

.gam-alert-close {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: none;
    background: transparent;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity 0.2s;
}

.gam-alert-close:hover {
    opacity: 1;
}

.gam-alert-close svg {
    width: 10px;
    height: 10px;
    fill: #9aa4bf;
}

.gam-alert--success {
    border-left-color: #1df377;
}

.gam-alert--success .gam-alert-icon-wrap {
    background-color: #1df377;
}

.gam-alert--error {
    border-left-color: #fd434f;
}

.gam-alert--error .gam-alert-icon-wrap {
    background-color: #fd434f;
}

.gam-alert--warning {
    border-left-color: #ffe00d;
}

.gam-alert--warning .gam-alert-icon-wrap {
    background-color: #ffe00d;
}

.gam-alert--warning .gam-alert-icon-wrap svg {
    fill: #3e3f5e;
}

.gam-alert--info {
    border-left-color: #23d2e2;
}

.gam-alert--info .gam-alert-icon-wrap {
    background-color: #23d2e2;
}

.gam-alert-inline {
    margin-bottom: 22px;
}

.gam-alert-inline .gam-alert {
    position: relative;
    top: auto;
    right: auto;
    animation: none;
}

@keyframes gam-alert-in {
    from {
        opacity: 0;
        transform: translateX(40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes gam-alert-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(40px);
    }
}

@media screen and (max-width: 480px) {
    .gam-alert-container {
        top: 12px;
        right: 12px;
        width: calc(100% - 24px);
    }
}
