/*
 * IPP cookie consent dialog.
 * Standalone and first-party on purpose: this file is shared by the Razor
 * Pages public layout and the Blazor IPPPublic theme, and must not depend on
 * Theme.css (which is generated from SCSS) or on Bootstrap being present.
 */

.ipp-consent-locked,
.ipp-consent-locked body {
    overflow: hidden;
}

.ipp-consent-root {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ipp-consent-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(9, 32, 43, 0.72);
}

.ipp-consent-dialog {
    position: relative;
    width: 100%;
    max-width: 34rem;
    max-height: calc(100vh - 2rem);
    overflow-y: auto;
    background: #fff;
    color: #1c2b33;
    border-top: 5px solid #134a62;
    border-radius: 4px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
    padding: 1.75rem;
    font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.9375rem;
    line-height: 1.55;
}

.ipp-consent-title {
    margin: 0 0 0.75rem;
    font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: #134a62;
}

.ipp-consent-intro {
    margin: 0 0 0.75rem;
}

.ipp-consent-link {
    display: inline-block;
    margin-bottom: 1rem;
    color: #134a62;
    font-weight: 600;
    text-decoration: underline;
}

.ipp-consent-link:hover,
.ipp-consent-link:focus {
    color: #0d3547;
}

/* categories */

.ipp-consent-categories {
    border-top: 1px solid #dde3e7;
    margin-bottom: 1.25rem;
}

.ipp-consent-category {
    border-bottom: 1px solid #dde3e7;
    padding: 0.85rem 0;
}

.ipp-consent-category-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    color: #134a62;
}

label.ipp-consent-category-head {
    cursor: pointer;
}

.ipp-consent-checkbox {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    accent-color: #134a62;
    flex: 0 0 auto;
    cursor: pointer;
}

.ipp-consent-category-label {
    font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.95rem;
}

.ipp-consent-always-on {
    margin-left: auto;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #5b6b75;
}

.ipp-consent-category-body {
    margin: 0.4rem 0 0;
    font-size: 0.875rem;
    color: #45555f;
}

/* actions */

.ipp-consent-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.ipp-consent-btn {
    flex: 1 1 10rem;
    min-height: 2.75rem;
    padding: 0.6rem 1.1rem;
    border-radius: 3px;
    font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    cursor: pointer;
}

/*
 * Accept and Reject deliberately share one style. If a future change makes
 * one of them louder than the other, that is a compliance regression, not a
 * design tweak.
 */
.ipp-consent-btn-primary {
    background: #134a62;
    border: 2px solid #134a62;
    color: #fff;
}

.ipp-consent-btn-primary:hover,
.ipp-consent-btn-primary:focus {
    background: #0d3547;
    border-color: #0d3547;
}

.ipp-consent-btn-secondary {
    background: #fff;
    border: 2px solid #98a7b0;
    color: #1c2b33;
}

.ipp-consent-btn-secondary:hover,
.ipp-consent-btn-secondary:focus {
    border-color: #134a62;
    color: #134a62;
}

.ipp-consent-btn:focus-visible,
.ipp-consent-link:focus-visible,
.ipp-consent-checkbox:focus-visible {
    outline: 3px solid #f0a202;
    outline-offset: 2px;
}

@media (max-width: 575px) {
    .ipp-consent-dialog {
        padding: 1.25rem;
    }

    .ipp-consent-btn {
        flex: 1 1 100%;
    }
}

/* ----------------------------------------------------- /cookie-policy page */

.cookie-policy {
    font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #1c2b33;
}

.cookie-policy h1,
.cookie-policy h2 {
    font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
    color: #134a62;
}

.cookie-policy h1 {
    margin-bottom: 0.25rem;
}

.cookie-policy h2 {
    margin-top: 2.25rem;
    font-size: 1.15rem;
}

.cookie-policy-updated {
    color: #5b6b75;
}

.cookie-policy-table {
    width: 100%;
    margin: 1rem 0 0;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.cookie-policy-table th,
.cookie-policy-table td {
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #dde3e7;
    text-align: left;
    vertical-align: top;
}

.cookie-policy-table thead th {
    border-bottom: 2px solid #134a62;
    font-family: Montserrat, "Helvetica Neue", Arial, sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #134a62;
}

.cookie-policy-table code {
    font-size: 0.85rem;
    color: #0d3547;
    word-break: break-word;
}

/* Deliberately loud: this page must not look finished while these remain. */
.cookie-policy-todo {
    margin-top: 0.75rem;
    padding: 0.85rem 1rem;
    border-left: 4px solid #f0a202;
    background: #fdf6e6;
    color: #5c4508;
}
