.footer-privacy-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 18px;
}

.cookie-consent,
.cookie-consent-launcher {
    --cookie-gold: #c8a878;
    --cookie-ink: #222019;
    --cookie-blue: #082e71;
    position: fixed;
    z-index: 50;
    right: auto;
    left: 10px;
    color: var(--cookie-ink);
    background: var(--cookie-gold);
    font-size: 14px;
    line-height: 1.5;
}

.cookie-consent {
    inset-block: auto 10px;
    width: min(520px, calc(100% - 20px));
    max-width: none;
    max-height: calc(100dvh - 20px);
    overflow: auto;
    margin: 0;
    padding: 18px;
    border: 1px solid #a88a5f;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgb(0 0 0 / 24%);
}

.cookie-consent-header {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 34px;
    padding-inline: 38px;
}

.cookie-consent-header h2 {
    margin: 0;
    font-size: 16px;
    line-height: 1.3;
    text-align: center;
}

.cookie-consent-close {
    position: absolute;
    inset-inline-end: -4px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 5px;
    color: inherit;
    background: transparent;
    font-size: 26px;
    line-height: 1;
}

.cookie-consent-close:hover {
    background: rgb(255 255 255 / 25%);
}

#cookie-consent-intro {
    margin: 16px 0 24px;
}

.cookie-consent-form-fields {
    min-inline-size: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.cookie-consent-category {
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 5px;
    background: rgb(255 255 255 / 28%);
}

.cookie-consent-category-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 28px;
}

.cookie-consent-category p {
    margin: 3px 0 0;
    font-size: 13px;
}

.cookie-consent-active {
    color: #24431c;
    font-size: 12px;
    font-weight: 700;
}

.cookie-consent-category input {
    appearance: none;
    position: relative;
    flex: 0 0 auto;
    width: 42px;
    height: 24px;
    margin: 0;
    border: 1px solid #48453e;
    border-radius: 99px;
    background: #fafafa;
    color: #48453e;
    cursor: pointer;
}

.cookie-consent-category input::before {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.cookie-consent-category input:checked {
    border-color: var(--cookie-blue);
    background: var(--cookie-blue);
    color: #fff;
}

.cookie-consent-category input:checked::before {
    transform: translateX(18px);
}

.cookie-consent-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.cookie-consent-actions button {
    min-height: 44px;
    padding: 7px;
    border: 1px solid #fff;
    border-radius: 6px;
    color: #fff;
    background: var(--cookie-blue);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.cookie-consent-actions button:hover:enabled {
    background: #164589;
}

.cookie-consent button:disabled {
    opacity: 0.7;
    cursor: wait;
}

.cookie-consent :focus-visible,
.cookie-consent-launcher:focus-visible {
    outline: 2px solid #171612;
    outline-offset: 2px;
}

.cookie-consent-error {
    margin: 8px 0 0;
    font-weight: 700;
}

.cookie-consent-policy {
    display: block;
    width: fit-content;
    margin: 9px auto 0;
    color: var(--cookie-blue);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-consent-launcher {
    bottom: 0;
    left: 40px;
    min-height: 44px;
    padding: 8px 14px;
    border: 1px solid #a88a5f;
    border-bottom: 0;
    border-radius: 8px 8px 0 0;
    box-shadow: 0 2px 10px rgb(0 0 0 / 20%);
}

.cookie-consent-launcher:hover {
    background: #d6bd97;
}

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

.cookie-policy-content {
    max-width: 960px;
}

.cookie-policy-content h2 {
    margin: 28px 0 10px;
    font-size: clamp(1.25rem, 3vw, 1.55rem);
}

.cookie-policy-content p {
    margin: 0 0 14px;
}

.cookie-policy-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cookie-policy-content address {
    margin-bottom: 16px;
    font-style: normal;
}

.cookie-policy-categories dt {
    font-weight: 700;
}

.cookie-policy-categories dd {
    margin: 0 0 10px;
}

.cookie-policy-table {
    overflow-x: auto;
}

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

.cookie-policy-table th,
.cookie-policy-table td {
    padding: 10px;
    border: 1px solid #d7dce1;
    vertical-align: top;
}

.cookie-policy-table thead {
    background: #eef0f2;
}

.cookie-policy-table code {
    overflow-wrap: anywhere;
}

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

    #cookie-consent-categories {
        max-height: 42dvh;
        overflow-y: auto;
        padding-inline-end: 4px;
    }

    .cookie-consent-actions button {
        padding-inline: 4px;
        font-size: 13px;
    }

    .cookie-consent-launcher {
        left: 10px;
    }
}

@media (max-width: 380px) {
    #cookie-consent-intro {
        margin-block: 10px 12px;
    }

    #cookie-consent-categories {
        max-height: 28dvh;
    }

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