:where(.status-message-container) {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 20px;
}

:where(.status-message) {
    position: relative;
    padding: 16px 48px 16px 20px;
    margin-bottom: 10px;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    font-size: 14px;
    font-weight: 500;
    pointer-events: auto;
    min-width: 600px;
    max-width: 800px;
    word-wrap: break-word;
    transform: translateY(-120%);
    opacity: 0;
    border: 1px;
    border-style: solid;
    box-sizing: border-box;
}

:where(.status-message.slide-in) {
    animation: slideDown 0.3s ease-out forwards;
}

:where(.status-message.slide-out) {
    animation: slideUp 0.3s ease-in forwards;
}

:where(.status-message.no-animation) {
    transform: translateY(0);
    opacity: 1;
}

:where(.status-message.st-status-success) {
    background-color: #3dae2b;
    border-color: #30961f;
    color: white;
    font-weight: 600;
}

.status-message.st-status-success a {
    color: white;
    text-decoration: underline;
    &:hover {
        color: #ccc;
    }
}

:where(.status-message.st-status-error) {
    background-color: #e20000;
    border-color: #8a0000;
    font-weight: 900;
    color: white;
}

:where(.status-message.st-status-error .status-message-close) {
    font-weight: 600;
}

.status-message.st-status-error a {
    color: white;
    text-decoration: underline;
    &:hover {
        color: #ccc;
    }
}

:where(.status-message.st-status-warning) {
    background-color: #fff3cd;
    border-color: #ffe07f;
    font-weight: 900;
    color: red;
}

:where(.status-message.st-status-warning .status-message-close) {
    font-weight: 600;
}

.status-message.st-status-warning a {
    color: red;
    text-decoration: underline;

    &:hover {
        color: darkred;
    }
}

:where(.status-message-close) {
    position: absolute;
    top: 27px;
    right: 16px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
    padding: 0;
    line-height: 1;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

:where(.status-message-close:hover) {
    opacity: 1;
}

:where(.status-message-close svg) {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: rotate(-90deg) translateX(-0.5px);
}

:where(.status-message-close-timer) {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    opacity: 0.3;
    stroke-dasharray: 75.4;
    stroke-dashoffset: 75.4;
}

@keyframes slideDown {
    from {
        transform: translateY(-120%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-120%);
        opacity: 0;
    }
}

@media (max-width: 768px) {
    :where(.status-message-container) {
        padding-top: 10px;
        top: 67px;
        left: 0;
        right: 0;
        transform: none;
        padding-left: 10px;
        padding-right: 10px;
    }

    :where(.status-message) {
        min-width: unset;
        width: 100%;
        max-width: 100%;
        padding: 20px 48px 20px 20px;
        min-height: 60px;
        display: flex;
        align-items: center;
    }
}
