.cookie-notice {
    position: fixed;
    z-index: 5000;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    font-family: var(--shell-font, Inter, system-ui, sans-serif);
    background: var(--card, #fff);
    color: var(--tx, #0f172a);
    border-top: 3px solid var(--pri, #1557bf);
    box-shadow: 0 -10px 32px rgba(11, 31, 74, 0.16);
}

.cookie-notice[hidden] {
    display: none !important;
}

.cookie-notice__bar {
    pointer-events: auto;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px 18px;
    width: min(var(--shell-max, 1200px), 100%);
    margin: 0 auto;
    padding: 14px var(--shell-pad, 16px) calc(14px + env(safe-area-inset-bottom, 0px));
}

.cookie-notice__mark {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--prit, #eaf1fd);
    color: var(--pri, #1557bf);
}

.cookie-notice__copy {
    min-width: 0;
}

.cookie-notice__title {
    margin: 0 0 2px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--tx, #0f172a);
}

.cookie-notice__text {
    margin: 0;
    color: var(--mut, #5b6577);
    font-size: 13.5px;
    line-height: 1.5;
}

.cookie-notice__text a {
    color: var(--pri, #1557bf);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.cookie-notice__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cookie-notice__btn {
    min-height: 42px;
    min-width: 108px;
    padding: 0 16px;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.cookie-notice__btn--reject {
    background: var(--card, #fff);
    color: var(--tx, #0f172a);
    border: 1px solid var(--bd, #e3e8f0);
}

.cookie-notice__btn--reject:hover {
    border-color: var(--pri, #1557bf);
    color: var(--pri, #1557bf);
}

.cookie-notice__btn--accept {
    background: var(--pri, #1557bf);
    color: #fff;
    border: 1px solid var(--pri, #1557bf);
}

.cookie-notice__btn--accept:hover {
    filter: brightness(1.08);
}

body.has-cookie-notice .shell-footer {
    padding-bottom: calc(28px + var(--cookie-notice-h, 0px));
}

body.has-cookie-notice .shell-company-footer {
    padding-bottom: calc(20px + var(--cookie-notice-h, 0px));
}

.shell-footer__legal button,
.shell-company-footer__legal button {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.shell-footer__legal button {
    font-size: 13px;
    color: #b8c4e0;
}

.shell-footer__legal button:hover {
    color: #fff;
}

.shell-company-footer__legal {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
}

.shell-company-footer__legal a,
.shell-company-footer__legal button {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    text-decoration: underline;
    text-underline-offset: 2px;
}

@media (max-width: 999.98px) {
    body.has-shell-bottom .cookie-notice {
        bottom: calc(56px + env(safe-area-inset-bottom, 0px));
    }

    body.has-shell-bottom .cookie-notice__bar {
        padding-bottom: 14px;
    }

    body.has-cookie-notice.has-shell-bottom .shell-footer {
        padding-bottom: calc(28px + 56px + env(safe-area-inset-bottom, 0px) + var(--cookie-notice-h, 0px));
    }
}

@media (max-width: 760px) {
    .cookie-notice__bar {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
    }

    .cookie-notice__actions {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .cookie-notice__btn {
        width: 100%;
        min-width: 0;
    }
}
