#page:before {
    content: "Наш сервисный центр открыт! Мы работаем!";
    display: block;
    width: 100%;
    color: #045104;
    text-align: center;
    font-size: 20px;
    border-top: 1px solid gray;
    border-bottom: 1px solid gray;
    line-height: 50px;
    background-color: #f7f7f7;
}

:root{ --accent:#2B7FFF; --cookie-bg: rgba(15,23,42,.6); }

/* Центрированное расположение */
#cookie-banner{
    position:fixed; left:50%; bottom:calc(12px + env(safe-area-inset-bottom));
    z-index:2147483647;
    width:420px; max-width:calc(100% - 24px);
    padding:16px; border-radius:12px;
    transform:translateX(-50%);

    background:var(--cookie-bg);
    -webkit-backdrop-filter:saturate(140%) blur(8px);
    backdrop-filter:saturate(140%) blur(8px);
    border:1px solid rgba(255,255,255,.18);
    box-shadow:0 12px 30px rgba(0,0,0,.25);

    color:#fff; font:13px/1.45 system-ui,-apple-system,Segoe UI,Roboto,Arial;
    animation: cookie-fade .2s ease-out;
}
@keyframes cookie-fade{ from{ opacity:0; transform:translate(-50%, 6px);} to{opacity:1; transform:translate(-50%, 0);} }

/* Прогресс-бар */
#cookie-progress {
    height:3px; margin:12px 0 8px;
    background:rgba(255,255,255,.1); border-radius:2px;
    overflow:hidden;
}
#cookie-progress-fill {
    height:100%; width:100%;
    background:var(--accent);
    transform-origin:left;
    animation:progress-shrink 12s linear forwards;
}
@keyframes progress-shrink {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

#cookie-banner .cookie-text{
    margin:0 0 8px; color:rgba(255,255,255,.95);
    font-size:14px; line-height:1.4;
    padding-right:24px; /* место для крестика */
}
#cookie-banner a{ color:#fff; text-decoration:underline; }

/* Крестик закрытия */
.cookie-close {
    position:absolute; top:12px; right:12px;
    width:24px; height:24px; padding:0;
    background:transparent; border:none;
    color:rgba(255,255,255,.8); font-size:20px;
    cursor:pointer; border-radius:50%;
    display:flex; align-items:center; justify-content:center;
    transition:all .2s;
}
.cookie-close:hover {
    background:rgba(255,255,255,.1);
    color:#fff;
}

/* Таймер текст */
.cookie-timer {
    font-size:12px; color:rgba(255,255,255,.7);
    text-align:center; margin:0;
}

/* на очень узких экранах растягиваемся */
@media (max-width:480px){
    #cookie-banner{
        width:calc(100% - 20px);
        padding:14px;
    }
}
@media (max-width:380px){
    .cookie-text{ font-size:13px; }
}
