.cookie-consent {
    position: fixed;
    right: 20px;
    bottom: 20px;
    left: 20px;
    z-index: 9000;
    display: flex;
    width: min(100% - 40px, 960px);
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 20px;
    border: 1px solid #b9cdd6;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(6, 25, 41, 0.24);
    color: #173047;
}

.cookie-consent[hidden] {
    display: none;
}

.cookie-consent strong {
    display: block;
    margin-bottom: 4px;
    font-size: 0.95rem;
}

.cookie-consent p {
    margin: 0;
    color: #52697a;
    font-size: 0.8rem;
    line-height: 1.5;
}

.cookie-consent a {
    color: #126e78;
    font-weight: 750;
}

.cookie-consent-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.cookie-consent button,
.cookie-settings-link {
    cursor: pointer;
    font: inherit;
}

.cookie-consent button {
    min-height: 40px;
    padding: 8px 13px;
    border: 1px solid #bfd0d8;
    border-radius: 8px;
    background: #f6f9fa;
    color: #29475c;
    font-size: 0.78rem;
    font-weight: 800;
}

.cookie-consent .cookie-consent-accept {
    border-color: #17777b;
    background: #17777b;
    color: #fff;
}

.cookie-settings-link {
    margin-left: 8px;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: inherit;
    text-decoration: underline;
}

body.theme-dark .cookie-consent {
    border-color: #3d6271;
    background: #172b38;
    color: #edf8fb;
}

body.theme-dark .cookie-consent p {
    color: #b4c9d4;
}

body.theme-dark .cookie-consent button {
    border-color: #476777;
    background: #233d4b;
    color: #edf8fb;
}

body.theme-dark .cookie-consent .cookie-consent-accept {
    border-color: #52aaa8;
    background: #247c7e;
}

@media (max-width: 720px) {
    .cookie-consent {
        align-items: stretch;
        flex-direction: column;
        gap: 14px;
    }

    .cookie-consent-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media print {
    .cookie-consent {
        display: none !important;
    }
}
