.cookie-consent__bar .gov-cookiebar__content,
.cookie-consent__bar .gov-cookiebar__actions {
    max-width: var(--templates-layout-page-limit-max);
    margin-right: auto;
    margin-left: auto;
}

.cookie-consent__lead {
    max-width: var(--templates-width-max-5xl);
}

.cookie-consent__dialog {
    --max-width: min(46rem, calc(100vw - var(--spacing-m) * 2));
}

.cookie-consent__dialog-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-m-nudge);
}

.cookie-consent__options {
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow: hidden;
    border: var(--border-width, 0.0625rem) solid var(--border-subtle);
    border-radius: var(--corner-radius-s);
    background: var(--background-neutral-subtlest);
}

.cookie-consent__option {
    display: block;
    width: 100%;
    background: var(--background-block-primary);
    border-bottom: var(--border-width, 0.0625rem) solid var(--border-subtlest);
    cursor: pointer;
}

.cookie-consent__options .cookie-consent__option {
    padding: var(--spacing-s-nudge) var(--spacing-m);
}

.cookie-consent__option input {
    left: var(--spacing-s-nudge) var(--spacing-m) !important;
    top: var(--spacing-s-nudge) var(--spacing-m) !important;
}

.cookie-consent__option:last-child {
    border-bottom: 0;
}

.cookie-consent__option[disabled],
.cookie-consent__option[data-disabled='true'] {
    background: var(--background-neutral-subtlest);
    cursor: not-allowed;
    pointer-events: auto;
}

.cookie-consent__option[disabled] *,
.cookie-consent__option[data-disabled='true'] * {
    cursor: not-allowed;
}

.cookie-consent__option [slot='label'] {
    display: block;
    width: 100%;
    max-width: var(--templates-width-max-4xl);
    margin-bottom: 0;
    cursor: inherit;
}

.cookie-consent__option .gov-form-label__label {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-2xs);
    width: 100%;
    cursor: inherit;
}

.cookie-consent__option .gov-form-label__label * {
    cursor: inherit;
}

.cookie-consent__option:not([disabled]):not([data-disabled='true']) .gov-form-label__label span {
    color: var(--text-secondary);
}

.cookie-consent-settings-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: var(--height-component-m);
    height: var(--height-component-m);
    margin: 0;
    padding: 0;
    color: var(--icon-on-subtle-fixed-bg);
    background: var(--component-footer-button-default);
    border: 0;
    border-radius: var(--corner-radius-s);
    cursor: pointer;
}

.cookie-consent-settings-button:hover {
    background: var(--component-footer-button-hover);
}

.cookie-consent-settings-button:active {
    background: var(--component-footer-button-active);
}

.cookie-consent-settings-button:focus {
    outline: none;
}

.cookie-consent-settings-button:focus-visible {
    outline: var(--outline-width, 0.125rem) solid var(--status-focus);
    outline-offset: var(--outline-offset, 0.125rem);
}
