@font-face {
    font-family: Poppins;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../build/fonts/Poppins-Regular.woff2') format('woff2');
}

@font-face {
    font-family: Poppins;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../build/fonts/Poppins-Bold.woff2') format('woff2');
}

@font-face {
    font-family: Oxygen;
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../build/fonts/Oxygen-Bold.woff2') format('woff2');
}

html:has(.cpx-actiepopup[open]) {
    overflow: hidden;
}

.cpx-actiepopup {
    --cpx-popup-ink: #010101;
    --cpx-popup-accent: #b3d1d5;
    --cpx-popup-surface: #f5fcff;
    --cpx-popup-white: #fff;
    --cpx-popup-line: #c8dfe4;
    --cpx-popup-dark-hover: #333;
    --cpx-popup-space: clamp(1.25rem, 5vw, 2.5rem);
    --cpx-popup-font-body: Poppins, Helvetica, Arial, sans-serif;
    --cpx-popup-font-title: Oxygen, Helvetica, Arial, sans-serif;

    box-sizing: border-box;
    width: min(35rem, calc(100% - 1.5rem));
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    overflow: visible;
    border: 0;
    background: var(--cpx-popup-surface);
    box-shadow: 0 1.25rem 4rem rgb(1 1 1 / 24%);
    color: var(--cpx-popup-ink);
    font: 400 1rem/1.5 var(--cpx-popup-font-body);
    text-align: center;
}

.cpx-actiepopup:not([open]) {
    display: none;
}

.cpx-actiepopup::backdrop {
    background: rgb(1 1 1 / 60%);
}

.cpx-actiepopup__panel {
    position: relative;
}

.cpx-actiepopup__scroll {
    max-height: calc(100vh - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.cpx-actiepopup__close {
    position: absolute;
    z-index: 1;
    top: .75rem;
    right: .75rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    background: var(--cpx-popup-accent);
    cursor: pointer;
}

.cpx-actiepopup__close::before,
.cpx-actiepopup__close::after {
    position: absolute;
    top: calc(50% - 1px);
    left: calc(50% - .5rem);
    width: 1rem;
    height: 2px;
    background: var(--cpx-popup-ink);
    content: '';
    transform: rotate(45deg);
}

.cpx-actiepopup__close::after {
    transform: rotate(-45deg);
}

.cpx-actiepopup__close:hover {
    background: var(--cpx-popup-surface);
}

.cpx-actiepopup :focus-visible {
    outline: 2px solid var(--cpx-popup-ink);
    outline-offset: 3px;
}

.cpx-actiepopup__header {
    padding: 1.875rem var(--cpx-popup-space) 1.625rem;
    background: var(--cpx-popup-accent);
}

.cpx-actiepopup__header__logo {
    display: block;
    width: 8.25rem;
    height: auto;
    margin: 0 auto 1rem;
}

.cpx-actiepopup__header__title {
    margin: 0;
    color: var(--cpx-popup-ink);
    font: 700 clamp(2.25rem, 9vw, 3.875rem)/1.05 var(--cpx-popup-font-title);
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.cpx-actiepopup__header__period {
    margin: .6875rem 0 0;
    font-size: .8125rem;
    line-height: 1.5;
    letter-spacing: .045em;
    text-transform: uppercase;
}

.cpx-actiepopup__content {
    display: grid;
    gap: 1.125rem;
    padding: 1.375rem var(--cpx-popup-space) 1.625rem;
    overflow-wrap: anywhere;
}

.cpx-actiepopup__coupon {
    width: min(100%, 21rem);
    margin: 0 auto;
}

.cpx-actiepopup__coupon__label {
    margin: 0 0 .375rem;
    font-size: .875rem;
    line-height: 1.5;
}

.cpx-actiepopup__coupon__row {
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-height: 3rem;
    background: var(--cpx-popup-ink);
    color: var(--cpx-popup-white);
}

.cpx-actiepopup__coupon__code {
    flex: 1;
    align-self: center;
    min-width: 0;
    padding: .5rem .625rem;
    font: 700 clamp(1.125rem, 4.5vw, 1.5rem)/1.25 var(--cpx-popup-font-title);
    letter-spacing: .04em;
    user-select: all;
}

.cpx-actiepopup__coupon__copy {
    min-width: 5rem;
    padding: .5rem .625rem;
    border: 0;
    border-left: 1px solid #575757;
    background: transparent;
    color: var(--cpx-popup-white);
    font: inherit;
    font-size: .75rem;
    cursor: pointer;
}

.cpx-actiepopup__coupon__copy:hover {
    background: var(--cpx-popup-dark-hover);
}

.cpx-actiepopup__coupon__copy:focus-visible {
    outline-color: var(--cpx-popup-accent);
    outline-offset: -4px;
}

.cpx-actiepopup__description {
    margin: 0;
    font-size: clamp(.9375rem, 3.8vw, 1.0625rem);
    font-weight: 700;
    line-height: 1.65;
}

.cpx-actiepopup__extra {
    margin: 0;
    padding-top: .875rem;
    border-top: 1px solid var(--cpx-popup-line);
    font-size: .875rem;
    line-height: 1.6;
}

.cpx-actiepopup .cpx-actiepopup__button {
    display: inline-block;
    justify-self: center;
    min-width: 9rem;
    padding: .625rem 1.5rem;
    border: 0;
    border-bottom: 2px solid var(--cpx-popup-accent);
    background: var(--cpx-popup-ink);
    color: var(--cpx-popup-white);
    font: 700 1.0625rem/1.45 var(--cpx-popup-font-title);
    text-decoration: none;
}

.cpx-actiepopup .cpx-actiepopup__button:hover {
    background: var(--cpx-popup-dark-hover);
    color: var(--cpx-popup-white);
}

.cpx-actiepopup__sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.cpx-actiepopup-beheer .form-table {
    max-width: 55rem;
}

.cpx-actiepopup-beheer .regular-text {
    width: min(100%, 28rem);
}

.cpx-actiepopup-beheer__status {
    margin: 1.25rem 0 .375rem;
}

.cpx-actiepopup-beheer__status__label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .625rem;
    min-height: 2rem;
    font-weight: 600;
    cursor: pointer;
}

.cpx-actiepopup-beheer__status__label > .cpx-actiepopup-beheer__status__input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.cpx-actiepopup-beheer__status__switch {
    --cpx-popup-admin-track: #646970;
    --cpx-popup-admin-active: var(--wp-admin-theme-color-darker-20, #135e96);
    --cpx-popup-admin-thumb: #fff;

    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    width: 2.5rem;
    height: 1.375rem;
    padding: .1875rem;
    border-radius: 1rem;
    background: var(--cpx-popup-admin-track);
}

.cpx-actiepopup-beheer__status__switch::before {
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    background: var(--cpx-popup-admin-thumb);
    content: '';
}

.cpx-actiepopup-beheer__status__input:checked + .cpx-actiepopup-beheer__status__switch {
    justify-content: flex-end;
    background: var(--cpx-popup-admin-active);
}

.cpx-actiepopup-beheer__status__input:focus-visible + .cpx-actiepopup-beheer__status__switch {
    outline: 2px solid var(--cpx-popup-admin-active);
    outline-offset: 3px;
}

@media (forced-colors: active) {
    .cpx-actiepopup-beheer__status__switch {
        --cpx-popup-admin-track: Canvas;
        --cpx-popup-admin-active: Highlight;
        --cpx-popup-admin-thumb: CanvasText;

        box-shadow: inset 0 0 0 1px CanvasText;
        forced-color-adjust: none;
    }

    .cpx-actiepopup-beheer__status__input:checked + .cpx-actiepopup-beheer__status__switch {
        --cpx-popup-admin-thumb: HighlightText;
    }
}

.cpx-actiepopup-beheer__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}
