/* Shared Sikubah toast notices. Include this file with common/css/common.css. */
.sk-notice {
    position: fixed;
    z-index: 10050;
    top: 18px;
    left: 50%;
    box-sizing: border-box;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: calc(100vw - 24px);
    max-width: 660px;
    max-height: calc(100vh - 110px);
    padding: 14px 14px 18px;
    overflow: auto;
    border: 2px solid;
    border-left-width: 8px;
    border-radius: 8px;
    box-shadow: 0 12px 34px rgba(20, 35, 45, .28);
    color: #24313a;
    font-size: 15px;
    line-height: 1.45;
    transform: translateX(-50%);
    animation: sk-notice-enter .18s ease-out both;
}

.sk-notice-in-app { top: 72px; }
.sk-notice-success { border-color: #28734e; background: #eaf5ee; }
.sk-notice-error { border-color: #a43f35; background: #faefed; }
.sk-notice-warning { border-color: #9a6b00; background: #fff5d8; }
.sk-notice-info { border-color: #176b9a; background: #e8f3f9; }
.sk-notice-neutral { border-color: #687780; background: #f2f5f7; }

.sk-notice-icon {
    display: inline-flex;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .82);
    font-size: 21px;
    font-weight: 800;
}

.sk-notice-content { flex: 1; min-width: 0; padding-top: 1px; }
.sk-notice-title { display: block; margin: 0 0 2px; font-size: 16px; font-weight: 800; }
.sk-notice-message { display: block; overflow-wrap: anywhere; }

.sk-notice-close {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 5px;
    background: transparent;
    color: inherit;
    font-size: 25px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.sk-notice-close:hover,
.sk-notice-close:focus-visible { background: rgba(0, 0, 0, .08); outline: 2px solid currentColor; }

.sk-notice-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 5px;
    overflow: hidden;
    background: rgba(25, 40, 50, .12);
}

.sk-notice-progress > span {
    display: block;
    width: 100%;
    height: 100%;
    background: currentColor;
    transform-origin: left center;
    animation: sk-notice-countdown linear forwards;
}

.sk-notice-success .sk-notice-progress > span { background: #28734e; }
.sk-notice-error .sk-notice-progress > span { background: #a43f35; }
.sk-notice-warning .sk-notice-progress > span { background: #9a6b00; }
.sk-notice-info .sk-notice-progress > span { background: #176b9a; }
.sk-notice-neutral .sk-notice-progress > span { background: #687780; }
.sk-notice-progress.is-paused > span { animation-play-state: paused; }

@keyframes sk-notice-enter {
    from { opacity: 0; transform: translate(-50%, -8px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes sk-notice-countdown {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 600px) {
    .sk-notice { top: 8px; width: calc(100vw - 16px); gap: 9px; padding: 11px 11px 16px; font-size: 14px; }
    .sk-notice-in-app { top: 60px; }
    .sk-notice-icon { flex-basis: 30px; width: 30px; height: 30px; font-size: 19px; }
    .sk-notice-title { font-size: 15px; }
}

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