.cookie-consent {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    display: flex;
    width: 100%;
    margin: 0;
    padding: 8px;
    align-items: center;
    gap: 12px;
    box-sizing: border-box;
    color: #222;
    background: #fff;
    border: 1px solid #d8d8d8;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .22);
}

.cookie-consent[hidden], .cookie-modal[hidden] { display: none; }
.cookie-consent__text { flex: 1; margin: 0; line-height: 1.5; }
.cookie-consent__text a { color: #970000; text-decoration: underline; }
.cookie-consent__actions { display: flex; gap: 12px; flex-shrink: 0; }
.cookie-consent__button {
    width: 112px;
    min-height: 38px;
    padding: 8px 12px;
    color: #fff;
    background: #970000;
    border: 2px solid #970000;
    border-radius: 4px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}
.cookie-consent__button:hover { background: #a60101; border-color: #a60101; }
.cookie-consent__button:focus-visible { background: #a60101; border-color: #a60101; outline: 2px solid #fff; outline-offset: -4px; }
.cookie-consent__button[aria-pressed="true"] { box-shadow: none; }
.cookie-settings-link { padding: 0; color: inherit; background: none; border: 0; text-decoration: underline; cursor: pointer; }
#script_container, #uralweb-hc { display: none !important; }
.cookie-modal { position: fixed; inset: 0; z-index: 10001; display: flex; padding: 20px; align-items: center; justify-content: center; background: rgba(0, 0, 0, .55); }
.cookie-modal__dialog { position: relative; width: 100%; max-width: 520px; padding: 28px; color: #222; background: #fff; border-radius: 6px; box-shadow: 0 12px 40px rgba(0, 0, 0, .3); }
.cookie-modal__close { position: absolute; top: 8px; right: 8px; z-index: 1; display: flex; width: 48px; height: 48px; padding: 0; align-items: center; justify-content: center; color: #555; background: transparent; border: 0; border-radius: 4px; font-family: inherit; font-size: 40px; line-height: 1; cursor: pointer; touch-action: manipulation; }
.cookie-modal__close:hover { color: #970000; }
.cookie-modal__close:focus-visible { color: #970000; outline: 2px solid #970000; outline-offset: 2px; }
.cookie-modal__dialog h2 { margin: 0 44px 14px 0; font-size: 22px; }
.cookie-modal__status { min-height: 24px; margin: 18px 0; font-weight: 600; }

@media (max-width: 720px) {
    .cookie-consent { padding: 8px; flex-direction: column; align-items: stretch; gap: 8px; }
    .cookie-consent__actions { width: 100%; }
    .cookie-consent__button { flex: 1; width: auto; }
    .cookie-modal__dialog { padding: 64px 18px 22px; }
    .cookie-modal__close { top: 8px; right: 8px; }
    .cookie-modal__dialog h2 { margin-right: 0; }
}
