/*************** Globals ***************/
.dmpCnCookieWrp,
.dmpCnCookieReopenBtn,
.dmpCnEmbedPlaceholder {
    --cn-primary-color: #c8195e;
    --cn-primary-text-color: #ffffff;
    --cn-green-color: #c8195e;
    --cn-black-color: #1a1a1a;
    --cn-white-color: #ffffff;
    --cn-dark-color: #1a1a1a;
    --cn-dark-alt-color: #1a1a1a;
    --cn-gray-color: #cccccc;
    --cn-gray-alt-color: #f5f5f5;
    --cn-fw-400: 400;
    --cn-fw-500: 500;
    --cn-fw-600: 600;
    --cn-fw-700: 700;
}

.dmpCnCookieWrp {
    color: var(--cn-dark-alt-color);
    font-family: inherit;
}

/* Buttons/inputs use the browser UI font unless they inherit from body/theme. */
.dmpCnCookieWrp button,
.dmpCnCookieWrp input,
.dmpCnCookieWrp select,
.dmpCnCookieWrp textarea,
.dmpCnCookieReopenBtn,
.dmpCnEmbedPlaceholder,
.dmpCnEmbedPlaceholder button {
    font-family: inherit;
}

#dmpCnCookieModalOverlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    user-select: none;
    background: rgba(0, 0, 0, 0.55);
}

.dmpCnCookieWrp,
.dmpCnCookieWrp *,
.dmpCnCookieWrp *::before,
.dmpCnCookieWrp *::after {
    box-sizing: border-box;
}

.dmpCnCookieWrp {
    position: fixed;
    left: 50%;
    top: 50%;
    bottom: auto;
    z-index: 200000;
    display: flex;
    width: calc(100% - 32px);
    max-width: 800px;
    max-height: 93vh;
    max-height: 93dvh;
    overflow: hidden;
    transform: translate(-50%, -50%);
}

.dmpCnCookieWrp.isCustomizing {
    max-width: 1024px;
}

.dmpCnCookieContentWrp {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    max-height: 93vh;
    max-height: 93dvh;
    padding: 28px 28px 18px;
    overflow: hidden;
    background: var(--cn-white-color);
    color: inherit;
    border: 0 !important;
    outline: 0;
    border-radius: 20px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

#dmpCnCookieModal:not(.isCustomizing) .dmpCnCookieContentWrp {
    border: 0 !important;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
}

.dmpCnCloseBtn {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6b7280;
    line-height: 0;
    cursor: pointer;
}

.dmpCnCookieWrp.isReopen .dmpCnCloseBtn:not([hidden]) {
    display: inline-flex;
}

.dmpCnCookieWrp.isReopen .dmpCnBackToFirst {
    display: none !important;
}

.dmpCnCloseBtn:hover,
.dmpCnCloseBtn:focus-visible {
    color: #111827;
    background: #f3f4f6;
}

.dmpCnCloseBtn .dmpCnCloseIcon {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.dmpCookieHeader {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 0 36px 12px 0;
    margin-bottom: 0;
    text-align: left;
    flex-shrink: 0;
}

.dmpCookieCustomizeHeader {
    gap: 0;
    padding: 0 36px 12px 0;
}

.dmpCnCustomizeTitleRow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    min-width: 0;
}

.dmpCnCustomizeTitleRow .dmpCnCustomizeTitle {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.dmpCookieCustomizeHeader .dmpCnCustomizeIntro {
    margin-top: 8px;
    width: 100%;
}

.dmpCookieHeader .dmpCookieHeaderLogo img {
    display: block;
    width: auto;
    max-width: 160px;
    max-height: 48px;
    margin: 0;
}

.dmpCnBackToFirst {
    flex: 0 0 auto;
    gap: 8px;
    min-width: auto;
    padding: 8px 14px;
    text-decoration: none;
}

.dmpCnBackArrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 0;
}

.dmpCnBackArrow svg {
    display: block;
    width: 16px;
    height: 16px;
}

.dmpCnBackLabel {
    line-height: 1.2;
}

.dmpCnHeroTitle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e6e8ec;
}

.dmpCnHeroIcon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 80px;
    min-width: 80px;
    height: 80px;
    margin-top: 0;
    color: var(--cn-primary-color);
}

.dmpCnHeroIcon svg {
    display: block;
    width: 80px;
    min-width: 66px;
    height: 80px;
}

.dmpCnHeroCopy {
    flex: 1 1 auto;
    min-width: 0;
}

.dmpCnHeroTitle .dmpCnCookieContentTitle {
    margin: 0;
}

.dmpCnHeroIntro {
    margin: 6px 0 0;
    line-height: 1.55;
    color: #4b5563;
}

.dmpCnHeroIntro p {
    margin: 0 0 0.6em;
}

.dmpCnHeroIntro p:last-child {
    margin-bottom: 0;
}

.dmpCnCookieContentTitle {
    font-weight: var(--cn-fw-700);
    line-height: 1.25;
    margin: 0;
}

.dmpCnDialogBody {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow: auto;
    overflow-x: hidden;
    padding: 4px 2px 12px;
    -webkit-overflow-scrolling: touch;
}

.dmpCnDialogFooter {
    flex-shrink: 0;
    padding-top: 14px;
    border-top: 0;
}

.dmpCnCookieContentText {
    margin: 0;
    line-height: 1.55;
}

.dmpCnCookieContentText p {
    margin: 0 0 0.75em;
}

.dmpCnCookieContentText p:last-child {
    margin-bottom: 0;
}

.dmpCnCookieContentText a {
    color: inherit;
    text-decoration: underline;
}

.dmpCnHighlightBox {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 18px 0 4px;
}

/* New style: top divider + tick list */
.dmpCnHighlightBox--ticks {
    padding: 14px 0 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0;
    background: transparent;
}

/* Old style: colored box + feature cards (colors from Colors settings) */
.dmpCnHighlightBox--cards {
    padding: 14px;
    border-top: 0;
    border-radius: 14px;
    background: var(--cn-highlight-bg, #e8f5ec);
}

.dmpCnHighlightIntro {
    margin: 0;
    line-height: 1.45;
    color: inherit;
}

.dmpCnHighlightAcceptLabel {
    color: var(--cn-primary-color);
    font-weight: var(--cn-fw-700);
}

.dmpCnHighlightTicks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.dmpCnHighlightBox--ticks li,
.dmpCnHighlightTick {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin: 0;
    padding: 0;
    min-width: 0;
    list-style: none;
}

.dmpCnHighlightBox--ticks li::before,
.dmpCnHighlightBox--ticks li::after,
.dmpCnHighlightTick::before,
.dmpCnHighlightTick::after {
    content: none !important;
    display: none !important;
    background: none !important;
    width: 0 !important;
    height: 0 !important;
}

.dmpCnHighlightIcon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.dmpCnHighlightBox--ticks .dmpCnHighlightIcon,
.dmpCnHighlightIcon--tick {
    width: 1.15em;
    height: 1.15em;
    margin-top: 0.15em;
    color: var(--cn-primary-color);
    font-size: inherit;
}

.dmpCnHighlightTickSvg {
    display: block;
    width: 1.15em;
    height: 1.15em;
    color: var(--cn-primary-color);
    fill: currentColor;
}

.dmpCnHighlightLabel {
    font-weight: var(--cn-fw-600);
    line-height: 1.4;
    color: var(--cn-highlight-text, var(--cn-dark-color, #1a2744));
}

.dmpCnHighlightCards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 10px;
}

.dmpCnHighlightCard {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 0;
    min-width: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--cn-highlight-card-bg, #ffffff);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.dmpCnHighlightBox--cards .dmpCnHighlightIcon {
    width: 28px;
    height: 28px;
    margin-top: 0;
    color: var(--cn-highlight-text, var(--cn-dark-color, #1a2744));
}

.dmpCnHighlightBox--cards .dmpCnHighlightLabel {
    line-height: 1.35;
}

.dmpCnFeatureList {
    margin: 8px 0 0;
    padding-left: 1.2em;
    line-height: 1.5;
}

.dmpCnFeatureList li {
    margin: 0 0 4px;
}

.dmpCnCookieSelectionBtnGroupWrp {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
}

.dmpCnPrimaryActions .dmpCnCookieSelectionBtn,
.dmpCnCustomizeActions .dmpCnCookieSelectionBtn {
    flex: 1 1 0;
    min-width: 0;
}

.dmpCnCookieSelectionBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 14px;
    min-height: 44px;
    min-width: 44px;
    cursor: pointer;
    border: 2px solid transparent;
    border-radius: 10px;
    font-weight: var(--cn-fw-600);
    line-height: 1.3;
    text-align: center;
    appearance: none;
    -webkit-appearance: none;
}

.dmpCnPrimaryActions .dmpCnCustomizeLink {
    text-decoration: none;
}

.dmpCnNecessaryOnly .dmpCnPrimaryActions .dmpCnCookieSelectionBtn {
    flex: 1 1 100%;
}

.dmpCnFooterMeta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    padding-top: 2px;
    line-height: 1.4;
    color: #000000;
}

.dmpCnFooterMetaCenter,
.dmpCnFooterMetaRight {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 14px;
}

.dmpCnFooterMetaCenter {
    flex: 1 1 auto;
    justify-content: flex-start;
}

.dmpCnFooterMetaRight {
    flex: 0 1 auto;
    justify-content: flex-end;
    margin-left: auto;
}

.dmpCnFooterLink {
    color: #000000;
    text-decoration: underline;
}

.dmpCnDevelopedBy {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    color: #000000;
    font-weight: 400;
    text-decoration: none;
    white-space: normal;
    max-width: 100%;
}

.dmpCnDevelopedByText {
    font-weight: 400;
    color: inherit;
}

.dmpCnDevelopedByText p {
    display: inline;
    margin: 0;
}

.dmpCnDevelopedByText a {
    font-weight: 700;
    color: inherit;
    text-decoration: none;
}

.dmpCnDevelopedByText a:hover,
.dmpCnDevelopedByText a:focus-visible {
    text-decoration: underline;
}

.dmpCnDevelopedByIcon {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: var(--cn-primary-color);
    border-radius: 50%;
    overflow: hidden;
}

.dmpCnDevelopedByIcon svg {
    display: block;
    width: 16px;
    height: 16px;
}

.dmpCnBulkActions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
}

.dmpCnBulkBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    min-width: 0;
    height: auto;
    padding: 5px 12px;
    border: 2px solid transparent;
    border-radius: 8px;
    background: var(--cn-white-color, #fff);
    color: inherit;
    font: inherit;
    font-size: 13px;
    font-weight: var(--cn-fw-600);
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.dmpCnBulkBtn:hover,
.dmpCnBulkBtn:focus-visible {
    outline: none;
}

.dmpCnCatTabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 2px;
    margin: 0 0 18px;
    border-bottom: 1px solid var(--cn-gray-color);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.dmpCnCatTab {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 10px 16px;
    border: 0;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 14px;
    font-weight: var(--cn-fw-600);
    line-height: 1.3;
    white-space: nowrap;
    cursor: pointer;
    outline: none;
    box-shadow: none;
}

.dmpCnCatTab:hover {
    color: var(--cn-primary-color);
}

.dmpCnCatTab.isActive,
.dmpCnCatTab[aria-selected="true"] {
    z-index: 2;
    background: var(--cn-primary-color);
    color: var(--cn-primary-text-color, #fff);
    border-bottom-color: var(--cn-primary-color);
    border-radius: 6px 6px 0 0;
}

.dmpCnCatTab:focus,
.dmpCnCatTab:focus-visible {
    outline: none;
    box-shadow: none;
}

.dmpCnAccordion {
    display: block;
}

.dmpCnAccordionBtn {
    display: none;
}

.dmpCnCatPanel {
    padding: 0 0 12px;
}

.dmpCnCatPanel .dmpCnTabContentTitle {
    font-weight: var(--cn-fw-600);
    margin: 0 0 6px;
    color: inherit;
}

.dmpCnAboutIntro {
    margin: 0 0 14px;
    line-height: 1.5;
}

.dmpCnAboutBlock {
    margin: 0 0 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.dmpCnAboutBlockTitle {
    margin: 0 0 8px;
    font-weight: var(--cn-fw-600);
}

.dmpCnAboutBlockBody {
    line-height: 1.5;
}

.dmpCnAboutList {
    margin: 0;
    display: grid;
    grid-template-columns: minmax(5rem, auto) 1fr;
    gap: 4px 12px;
    line-height: 1.45;
}

.dmpCnAboutList dt {
    margin: 0;
    font-weight: var(--cn-fw-600);
}

.dmpCnAboutList dd {
    margin: 0;
}

.dmpCnCatPanel p {
    margin: 0 0 8px;
    line-height: 1.5;
}

.dmpCnCatChoiceRow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.dmpCnCatChoiceAside {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    margin-left: auto;
}

.dmpCnSwitch {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    cursor: pointer;
}

.dmpCnSwitch input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.dmpCnSwitchUi {
    display: block;
    width: 44px;
    height: 24px;
    border-radius: 999px;
    background: var(--cn-gray-color, #cccccc);
    position: relative;
    flex-shrink: 0;
}

.dmpCnSwitchUi::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--cn-white-color, #ffffff);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.dmpCnSwitch input:checked + .dmpCnSwitchUi {
    background: var(--cn-primary-color);
}

.dmpCnSwitch input:checked + .dmpCnSwitchUi::after {
    left: 22px;
}

.dmpCnCatDesc {
    margin: 0 0 12px;
    line-height: 1.5;
    color: var(--cn-dark-color);
}

.dmpCnCatDesc p,
.dmpCnServicesIntro p,
.dmpCnServiceBlurb p,
.dmpCnServiceTip p,
.dmpCnHeroIntro p,
.dmpCnCookieContentText p,
.dmpCnHighlightIntro p,
.dmpCnAboutBlockBody p {
    margin: 0 0 0.6em;
}

.dmpCnCatDesc p:last-child,
.dmpCnServicesIntro p:last-child,
.dmpCnServiceBlurb p:last-child,
.dmpCnServiceTip p:last-child,
.dmpCnHeroIntro p:last-child,
.dmpCnCookieContentText p:last-child,
.dmpCnHighlightIntro p:last-child,
.dmpCnAboutBlockBody p:last-child {
    margin-bottom: 0;
}

.dmpCnServicesIntro {
    margin: 0 0 14px;
    font-size: 13px;
    line-height: 1.5;
    color: inherit;
    opacity: 0.8;
}

.dmpCnServiceList {
    margin: 0 0 8px;
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.dmpCnServiceRow {
    border: 0;
    border-bottom: 1px solid var(--cn-gray-color);
    transition: background-color 0.18s ease;
}

.dmpCnServiceRow.isOpen {
    background: var(--cn-gray-alt-color);
}

.dmpCnServiceChoiceRow .dmpCnServiceChoiceHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 0;
    min-height: 0;
}

.dmpCnServiceChoiceControls {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.dmpCnServiceChoiceRow .dmpCnServiceInfoBtn {
    width: auto;
    min-height: 0;
    padding: 0;
    color: var(--cn-primary-color);
    font-size: 13px;
    font-weight: var(--cn-fw-600);
    line-height: 1.3;
    white-space: nowrap;
}

.dmpCnServiceChoiceRow .dmpCnServiceInfoBtn:hover,
.dmpCnServiceChoiceRow .dmpCnServiceInfoBtn:focus-visible {
    background: transparent;
    text-decoration: underline;
}

.dmpCnServiceChoiceRow .dmpCnServiceInfo {
    padding: 0 0 14px;
}

.dmpCnServiceToggle {
    appearance: none;
    -webkit-appearance: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    margin: 0;
    padding: 16px 0;
    min-height: 0;
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.dmpCnServiceToggle:hover,
.dmpCnServiceToggle:focus-visible {
    background: transparent;
}

.dmpCnServiceHeadMain {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.dmpCnServiceName {
    font-size: 14px;
    font-weight: var(--cn-fw-600);
    line-height: 1.35;
}

.dmpCnServiceBadge {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(200, 25, 94, 0.12);
    background: color-mix(in srgb, var(--cn-primary-color) 12%, #fff);
    color: var(--cn-primary-color);
    font-size: 12px;
    font-weight: var(--cn-fw-600);
    line-height: 1.2;
}

.dmpCnServiceToggleLabel {
    flex-shrink: 0;
    color: var(--cn-primary-color);
    font-size: 13px;
    font-weight: var(--cn-fw-600);
    line-height: 1.3;
    white-space: nowrap;
}

.dmpCnChevron {
    display: inline-block;
    width: 0.55em;
    height: 0.55em;
    margin-left: 4px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    transition: transform 0.18s ease;
    vertical-align: middle;
}

.dmpCnChevron.isOpen {
    transform: rotate(-135deg) translateY(-1px);
}

.dmpCnToggleShow[hidden],
.dmpCnToggleHide[hidden] {
    display: none;
}

.dmpCnServiceInfo {
    padding: 0 0 14px;
    animation: dmpCnServiceReveal 0.2s ease;
}

.dmpCnServiceInfo[hidden] {
    display: none !important;
}

@keyframes dmpCnServiceReveal {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dmpCnServiceBlurb {
    margin: 0 0 8px;
    line-height: 1.55;
}

.dmpCnServiceTip {
    margin: 0;
    padding: 8px 10px;
    border-radius: 6px;
    background: #fff;
    border: 1px solid var(--cn-gray-color);
    line-height: 1.45;
}

.dmpCnServiceTipLabel {
    display: inline-block;
    margin-right: 4px;
    color: var(--cn-primary-color);
    font-weight: var(--cn-fw-600);
}

.dmpCnServiceHead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    min-height: 44px;
}

.dmpCnServiceDetail {
    display: flex;
    gap: 8px;
    padding: 10px 0 0;
    line-height: 1.5;
}

.dmpCnDetailLabel {
    flex-shrink: 0;
    font-weight: var(--cn-fw-600);
    min-width: 90px;
}

.dmpCnAlwaysOn {
    font-weight: var(--cn-fw-600);
    color: var(--cn-gray-color);
}

.dmpCnTableScroll {
    width: 100%;
    max-width: 100%;
    margin: 8px 0 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.dmpCnTable {
    border-collapse: collapse;
    border-spacing: 0;
    border: 1px solid var(--cn-gray-color);
    margin: 0;
    width: 100%;
    min-width: 520px;
    table-layout: fixed;
}

.dmpCnTable th,
.dmpCnTable td {
    background-color: var(--cn-white-color);
    border: 1px solid var(--cn-gray-color);
    color: inherit;
    padding: 8px 10px;
    text-align: left;
    vertical-align: top;
    word-break: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
}

.dmpCnTable td a {
    hyphens: none;
    overflow-wrap: break-word;
    word-break: normal;
}

.dmpCnTable td p {
    margin: 0 0 0.45em;
}

.dmpCnTable td p:last-child {
    margin-bottom: 0;
}

.dmpCnTable th {
    font-weight: var(--cn-fw-600);
}

.dmpCnTable th:nth-child(1),
.dmpCnTable td:nth-child(1) {
    width: 22%;
}

.dmpCnTable th:nth-child(2),
.dmpCnTable td:nth-child(2) {
    width: 28%;
}

.dmpCnTable th:nth-child(3),
.dmpCnTable td:nth-child(3) {
    width: 34%;
}

.dmpCnTable th:nth-child(4),
.dmpCnTable td:nth-child(4) {
    width: 16%;
}

.dmpCnCookieWrp[hidden],
#dmpCnCookieModalOverlay[hidden],
.dmpCnCookieReopenBtn[hidden],
.dmpCnCloseBtn[hidden],
.dmpCookieHeader[hidden],
.dmpCookieCustomizeHeader[hidden],
.dmpCnBackToFirst[hidden],
#dmpCnCookieCustomizePanel[hidden],
#dmpCnFirstLayer[hidden],
#dmpCnFirstFooter[hidden],
#dmpCnCustomizeFooter[hidden],
.dmpCnCatPanel[hidden] {
    display: none !important;
}

body.dmp-cn-consent-open {
    overflow: hidden;
}

.dmpCnCookieSelectionBtn:focus-visible,
.dmpCnCookieReopenBtn:focus-visible,
.dmpCnCloseBtn:focus-visible,
.dmpCnBulkBtn:focus-visible,
.dmpCnCustomizeLink:focus-visible,
.dmpCnBackToFirst:focus-visible,
.dmpCnServiceToggle:focus-visible,
.dmpCnEmbedPlaceholder button:focus-visible,
.dmpCnFooterLink:focus-visible,
.dmpCnDevelopedByText a:focus-visible {
    outline: none;
    box-shadow: none;
}

.dmpCnSwitch input:focus-visible + .dmpCnSwitchUi {
    outline: none;
    box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px var(--cn-primary-color);
}

.dmpCnCookieReopenBtn.dmpCnReopenFab {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 99990;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    min-height: 36px;
    min-width: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    cursor: pointer;
    box-shadow: none;
}

.dmpCnCookieReopenBtn.dmpCnReopenFab .dmpCnReopenIcon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--cn-primary-color);
    border-radius: 50%;
    overflow: hidden;
}

.dmpCnCookieReopenBtn.dmpCnReopenFab .dmpCnReopenIcon svg {
    display: block;
    width: 36px;
    height: 36px;
}

.dmpCnCookieReopenBtn.dmpCnReopenFab:hover,
.dmpCnCookieReopenBtn.dmpCnReopenFab:focus-visible {
    transform: scale(1.04);
}

.dmpCnCookieReopenBtn.dmpCnReopenFab:focus-visible {
    outline: none;
}

.dmpCnCookieReopenBtn.dmpCnCookieReopenInline {
    position: static;
    width: auto;
    height: auto;
    padding: 10px 16px;
    border-radius: 2px;
    box-shadow: none;
}

.dmpCnEmbedPlaceholder {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    margin: 12px 0;
    border: 2px solid var(--cn-primary-color, currentColor);
    background: var(--cn-gray-alt-color, transparent);
    color: inherit;
    line-height: 1.5;
}

.dmpCnEmbedPlaceholder button {
    min-height: 44px;
    padding: 8px 16px;
    border: 2px solid var(--cn-primary-color, currentColor);
    background: var(--cn-white-color, transparent);
    color: inherit;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.screen-reader-text {
    position: absolute !important;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}

@media screen and (max-width: 900px) {
    .dmpCnCookieWrp,
    .dmpCnCookieWrp.isCustomizing {
        width: calc(100% - 24px);
        max-width: 100%;
    }

    .dmpCnCookieContentWrp {
        padding: 24px 18px 14px;
    }

    .dmpCnCookieSelectionBtnGroupWrp {
        flex-wrap: wrap;
    }

    .dmpCnPrimaryActions .dmpCnCookieSelectionBtn,
    .dmpCnCustomizeActions .dmpCnCookieSelectionBtn {
        flex: 1 1 calc(50% - 10px);
        min-width: 140px;
    }

    .dmpCnServiceChoiceRow .dmpCnServiceChoiceHead {
        flex-wrap: wrap;
        align-items: flex-start;
    }

    .dmpCnServiceChoiceControls {
        margin-left: auto;
    }
}

@media screen and (max-width: 640px) {
    .dmpCnCatTabs {
        display: none;
    }

    .dmpCnAccordion {
        display: flex;
        flex-direction: column;
        gap: 8px;
        margin: 0 0 8px;
    }

    .dmpCnAccordionItem {
        border: 1px solid var(--cn-gray-color);
        border-radius: 10px;
        overflow: hidden;
        background: var(--cn-white-color);
    }

    .dmpCnAccordionBtn {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        width: 100%;
        min-height: 48px;
        margin: 0;
        padding: 12px 14px;
        border: 0;
        background: var(--cn-gray-alt-color, #f5f5f5);
        color: inherit;
        font: inherit;
        font-weight: var(--cn-fw-600);
        text-align: left;
        cursor: pointer;
        appearance: none;
        -webkit-appearance: none;
    }

    .dmpCnAccordionItem.isOpen .dmpCnAccordionBtn {
        background: var(--cn-primary-color);
        color: var(--cn-primary-text-color, #fff);
    }

    .dmpCnAccordionBtnLabel {
        flex: 1 1 auto;
        min-width: 0;
    }

    .dmpCnAccordionChevron {
        flex-shrink: 0;
        width: 10px;
        height: 10px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        transform: rotate(45deg);
        transition: transform 0.15s ease;
    }

    .dmpCnAccordionItem.isOpen .dmpCnAccordionChevron {
        transform: rotate(-135deg);
        margin-top: 4px;
    }

    .dmpCnAccordionItem .dmpCnCatPanel {
        padding: 12px 12px 14px;
        border-top: 1px solid var(--cn-gray-color);
    }

    .dmpCnAccordionItem .dmpCnCatPanel[hidden] {
        display: none !important;
    }

    .dmpCnCookieWrp,
    .dmpCnCookieWrp.isCustomizing {
        left: 50%;
        top: 50%;
        right: auto;
        bottom: auto;
        width: calc(100% - 16px);
        max-width: 100%;
        max-height: 93vh;
        max-height: 93dvh;
        transform: translate(-50%, -50%);
    }

    .dmpCnCookieContentWrp {
        padding: 18px 12px 12px;
        border-radius: 14px;
        max-height: 93vh;
        max-height: 93dvh;
    }

    .dmpCookieHeader,
    .dmpCookieCustomizeHeader {
        padding-right: 40px;
    }

    .dmpCnCustomizeTitleRow {
        flex-direction: column;
        align-items: stretch;
    }

    .dmpCnBackToFirst {
        width: 100%;
        justify-content: center;
    }

    .dmpCnHeroTitle {
        gap: 10px;
    }

    .dmpCnHeroIcon,
    .dmpCnHeroIcon svg {
        width: 56px;
        min-width: 46px;
        height: 56px;
    }

    .dmpCnHighlightBox--ticks {
        padding: 12px 0 0;
    }

    .dmpCnHighlightBox--cards {
        padding: 12px;
    }

    .dmpCnHighlightTicks {
        gap: 8px;
    }

    .dmpCnHighlightCards {
        flex-direction: column;
    }

    .dmpCnHighlightCard {
        flex: 1 1 100%;
    }

    .dmpCnCookieSelectionBtnGroupWrp {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .dmpCnPrimaryActions .dmpCnCookieSelectionBtn,
    .dmpCnCustomizeActions .dmpCnCookieSelectionBtn {
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
    }

    .dmpCnFooterMeta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .dmpCnFooterMetaCenter,
    .dmpCnFooterMetaRight {
        flex: 0 1 auto;
        width: 100%;
        justify-content: flex-start;
        margin-left: 0;
    }

    .dmpCnCatTab {
        padding: 9px 12px;
        min-height: 38px;
        font-size: 13px;
    }

    .dmpCnAboutList {
        grid-template-columns: 1fr;
        gap: 2px 0;
    }

    .dmpCnAboutList dt {
        margin-top: 6px;
    }

    .dmpCnAboutList dt:first-child {
        margin-top: 0;
    }

    /* Stack cookie rows as cards — no horizontal scroll on phones. */
    .dmpCnTableScroll {
        overflow: visible;
    }

    .dmpCnTable {
        min-width: 0;
        width: 100%;
        border: 0;
        table-layout: auto;
    }

    .dmpCnTable thead {
        display: none;
    }

    .dmpCnTable tbody {
        display: block;
    }

    .dmpCnTable tr {
        display: block;
        margin: 0 0 10px;
        border: 1px solid var(--cn-gray-color);
        border-radius: 8px;
        overflow: hidden;
        background: var(--cn-white-color);
    }

    .dmpCnTable tr:last-child {
        margin-bottom: 0;
    }

    .dmpCnTable th:nth-child(1),
    .dmpCnTable td:nth-child(1),
    .dmpCnTable th:nth-child(2),
    .dmpCnTable td:nth-child(2),
    .dmpCnTable th:nth-child(3),
    .dmpCnTable td:nth-child(3),
    .dmpCnTable th:nth-child(4),
    .dmpCnTable td:nth-child(4) {
        width: auto;
    }

    .dmpCnTable td {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
        text-align: right;
        width: 100%;
        max-width: none;
        border-width: 0 0 1px;
        padding: 10px 12px;
    }

    .dmpCnTable td:last-child {
        border-bottom: 0;
    }

    .dmpCnTable td:before {
        content: attr(data-label);
        flex: 0 0 38%;
        max-width: 42%;
        font-weight: 600;
        text-align: left;
        color: inherit;
    }

    .dmpCnTable td > * {
        flex: 1 1 auto;
        min-width: 0;
    }
}

@media screen and (max-width: 400px) {
    .dmpCnCookieWrp,
    .dmpCnCookieWrp.isCustomizing {
        width: calc(100% - 10px);
        max-height: 93vh;
        max-height: 93dvh;
    }

    .dmpCnCookieContentWrp {
        padding: 14px 10px 10px;
        border-radius: 12px;
        max-height: 93vh;
        max-height: 93dvh;
    }

    .dmpCnHeroTitle {
        flex-direction: column;
        align-items: flex-start;
    }

    .dmpCnHeroIcon,
    .dmpCnHeroIcon svg {
        width: 48px;
        min-width: 40px;
        height: 48px;
    }

    .dmpCnTable td {
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        text-align: left;
    }

    .dmpCnTable td:before {
        flex: none;
        max-width: none;
        width: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .dmpCnCatTab {
        transition: none !important;
    }
}

/* Structural resets only — footer button colors come from Buttons admin CSS. */
#dmpCnCookieModal button.dmpCnCookieSelectionBtn,
#dmpCnCookieModal .dmpCnCookieSelectionBtn {
    background-image: none !important;
    box-shadow: none !important;
}

#dmpCnCookieModal button.dmpCnCatTab {
    background-color: transparent !important;
    background-image: none !important;
    color: var(--cn-dark-alt-color) !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

#dmpCnCookieModal button.dmpCnCatTab:hover {
    background-color: transparent !important;
    color: var(--cn-primary-color) !important;
}

#dmpCnCookieModal button.dmpCnCatTab.isActive,
#dmpCnCookieModal button.dmpCnCatTab[aria-selected="true"],
#dmpCnCookieModal button.dmpCnCatTab.isActive:hover,
#dmpCnCookieModal button.dmpCnCatTab[aria-selected="true"]:hover {
    background-color: var(--cn-primary-color) !important;
    color: var(--cn-primary-text-color) !important;
}

#dmpCnCookieModal button.dmpCnCatTab:focus,
#dmpCnCookieModal button.dmpCnCatTab:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

#dmpCnCookieModal button.dmpCnBulkBtn {
    background-image: none !important;
    box-shadow: none !important;
}

#dmpCnCookieModal button.dmpCnBackToFirst {
    position: static !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 35px;
    max-height: 35px;
    text-decoration: none !important;
}

@media (max-width: 1024px) {
    .dmpCnCookieReopenBtn.dmpCnReopenFab {
        left: max(8px, env(safe-area-inset-left));
        bottom: max(8px, env(safe-area-inset-bottom));
    }
}