.settings-menu {
    height: auto;
    min-height: 7.5rem;
}

.settings-menu .beck-cookie-settings {
    display: flex;
    justify-content: center;
    padding: 1rem 0 0;
    margin-top: 1rem;
    border-top: 1px solid #ddd;
}

.settings-menu .beck-cookie-settings-button {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    min-height: 44px;
    padding: 0.625rem 1rem;
    border: 1px solid #dc1818;
    border-radius: 6px;
    background: transparent;
    color: #dc1818;
    font: inherit;
    font-size: 0.875rem;
    line-height: 1.4;
    cursor: pointer;
    transition: background-color 150ms ease, border-color 150ms ease;
}

.settings-menu .beck-cookie-settings-button:hover {
    background: #dc1818;
    border-color: #dc1818;
    color: #fff;
}

.settings-menu .beck-cookie-settings-button:focus-visible {
    outline: 2px solid #dc1818;
    outline-offset: 4px;
}

/*
 * The published OneTrust custom CSS removes the preference content from the
 * flex layout. Restore the current otPcCenter template's normal flow, using
 * higher specificity because OneTrust injects its styles after this file.
 * Leave OneTrust's display/visibility rules in control of opening and closing.
 */
#onetrust-consent-sdk #onetrust-pc-sdk.otPcCenter > div[role="dialog"] {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
}

#onetrust-consent-sdk #onetrust-pc-sdk.otPcCenter .ot-pc-header {
    flex: 0 0 auto;
}

#onetrust-consent-sdk #onetrust-pc-sdk.otPcCenter #ot-pc-content {
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto !important;
}

#onetrust-consent-sdk #onetrust-pc-sdk.otPcCenter .ot-pc-footer {
    position: relative !important;
    bottom: auto !important;
    flex: 0 0 auto;
    max-height: var(--ot-footer-space);
    overflow-y: auto;
}
