.cookie-consent[hidden],
.cookie-consent__preferences[hidden],
.cookie-btn[hidden] {
    display: none !important;
}

.cookie-consent {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.58);
}

.cookie-consent__panel {
    width: min(100%, 760px);
    max-height: calc(100vh - 2rem);
    overflow: auto;
    padding: 1.5rem;
    border: 2px solid #172554;
    border-radius: 18px;
    background: #fff;
    color: #172033;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.3);
}

.cookie-consent__summary {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    justify-content: space-between;
}

.cookie-consent__summary h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
}

.cookie-consent__summary p {
    max-width: 58ch;
    margin: 0;
    line-height: 1.55;
}

.cookie-consent__summary a {
    flex: 0 0 auto;
    color: #173b8f;
    font-weight: 700;
}

.cookie-consent__preferences {
    margin-top: 1.25rem;
    border-top: 1px solid #d8deea;
}

.cookie-consent__option {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.9rem 0;
    border-bottom: 1px solid #d8deea;
}

.cookie-consent__option strong,
.cookie-consent__option small {
    display: block;
}

.cookie-consent__option small {
    margin-top: 0.2rem;
    color: #4b5563;
    line-height: 1.4;
}

.cookie-consent__option input {
    width: 1.35rem;
    height: 1.35rem;
    accent-color: #173b8f;
}

.cookie-consent__always {
    flex: 0 0 auto;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: #e8eefc;
    color: #173b8f;
    font-size: 0.82rem;
    font-weight: 700;
}

.cookie-consent__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.cookie-btn,
.cookie-settings-link {
    min-height: 44px;
    padding: 0.7rem 1rem;
    border: 2px solid #173b8f;
    border-radius: 10px;
    background: #fff;
    color: #173b8f;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.cookie-btn--primary {
    background: #173b8f;
    color: #fff;
}

.cookie-btn:focus-visible,
.cookie-settings-link:focus-visible,
.cookie-consent a:focus-visible,
.cookie-consent input:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
}

.cookie-settings-link {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 9998;
    min-height: 38px;
    padding: 0.45rem 0.75rem;
    border-width: 1px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
    font-size: 0.85rem;
}

@media (max-width: 620px) {
    .cookie-consent {
        padding: 0;
    }

    .cookie-consent__panel {
        max-height: 92vh;
        padding: 1.1rem;
        border-width: 1px 0 0;
        border-radius: 16px 16px 0 0;
    }

    .cookie-consent__summary {
        display: block;
    }

    .cookie-consent__summary a {
        display: inline-block;
        margin-top: 0.75rem;
    }

    .cookie-consent__actions {
        display: grid;
    }

    .cookie-btn {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent *,
    .cookie-settings-link {
        scroll-behavior: auto !important;
    }
}

.policy-table-wrap {
    max-width: 100%;
    overflow-x: auto;
    margin: 1rem 0 1.5rem;
}

.policy-table {
    width: 100%;
    min-width: 680px;
    border-collapse: collapse;
    text-align: left;
}

.policy-table th,
.policy-table td {
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    vertical-align: top;
}

.policy-table th {
    background: #eef3ff;
    color: #172554;
}
