/* ==========================================================================
   Site Notices: noscript warning, offline banner, cookie consent, site toast
   ========================================================================== */

/* Site toast: flash success/error shown at the top of the page */
.site-toast {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    padding: 14px 44px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.site-toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.site-toast--success {
    background: #d1e7dd;
    color: #0f5132;
    border-bottom: 1px solid #badbcc;
}

.site-toast--error {
    background: #f8d7da;
    color: #842029;
    border-bottom: 1px solid #f5c2c7;
}

.site-toast__close {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
}

.site-toast__close:hover {
    opacity: 1;
}

.noscript-warning {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100000;
    background: #1c1c1c;
    color: #fff;
    text-align: center;
    padding: 14px 20px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    line-height: 1.6;
    border-bottom: 3px solid #F87C02;
}

.noscript-warning strong {
    color: #F87C02;
}

/* Offline banner */
.offline-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99998;
    background: #1c1c1c;
    color: #fff;
    text-align: center;
    padding: 12px 20px;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
    transform: translateY(-100%);
    transition: transform 0.35s ease;
}

.offline-banner.is-visible {
    transform: translateY(0);
}

.offline-banner__dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #e74c3c;
    margin-right: 8px;
    animation: offline-pulse 1.4s infinite;
}

@keyframes offline-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

/* Cookie consent */
.cookie-consent {
    position: fixed;
    left: 20px;
    right: 20px;
    bottom: 20px;
    max-width: 480px;
    z-index: 99999;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    padding: 24px;
    font-family: "Inter", sans-serif;
    transform: translateY(140%);
    opacity: 0;
    transition: transform 0.45s ease, opacity 0.45s ease;
}

.cookie-consent.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.cookie-consent__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(248, 124, 2, 0.12);
    color: #F87C02;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-bottom: 14px;
}

.cookie-consent__title {
    font-size: 17px;
    font-weight: 700;
    color: #1c1c1c;
    margin-bottom: 8px;
}

.cookie-consent__text {
    font-size: 13.5px;
    line-height: 1.7;
    color: #6a6a6a;
    margin-bottom: 18px;
}

.cookie-consent__text a {
    color: #F87C02;
    text-decoration: underline;
}

.cookie-consent__actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cookie-consent__btn {
    flex: 1 1 auto;
    border: none;
    cursor: pointer;
    border-radius: 30px;
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cookie-consent__btn:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.cookie-consent__btn--accept {
    background: #F87C02;
    color: #fff;
}

.cookie-consent__btn--reject {
    background: #f2f2f2;
    color: #1c1c1c;
}

@media (max-width: 575px) {
    .cookie-consent {
        left: 12px;
        right: 12px;
        bottom: 12px;
        padding: 18px;
    }
}
