.ds-customer-notice {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 100000;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
}

.ds-customer-notice--open {
    display: flex;
}

.ds-customer-notice-lock {
    overflow: hidden;
}

.ds-customer-notice__dialog {
    position: relative;
    box-sizing: border-box;
    /* Popup takes the size of its content, never wider/taller than 90% of the screen */
    width: -moz-fit-content;
    width: fit-content;
    max-width: 90vw;
    max-height: 90vh;
    max-height: 90dvh;
    padding: 40px 20px 20px;
    /* Funderland green border, see-through background that blurs the page behind */
    background: rgba(255, 255, 255, 0.15);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 3px solid #c4d43a;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ds-customer-notice__close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #2f3184;
    font-size: 30px;
    font-weight: 700;
    line-height: 36px;
    text-align: center;
    cursor: pointer;
    box-shadow: none;
}

.ds-customer-notice__close:hover,
.ds-customer-notice__close:focus {
    background: #2f3184;
    color: #fff;
}

/* Shrink any CMS content to fit the popup width */
.ds-customer-notice__content {
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.ds-customer-notice__content * {
    max-width: 100%;
    box-sizing: border-box;
}

.ds-customer-notice__content img,
.ds-customer-notice__content video,
.ds-customer-notice__content svg {
    height: auto;
    /* Large images shrink so they fit the popup height too (90vh minus padding) */
    max-height: calc(90vh - 60px);
    max-height: calc(90dvh - 60px);
    object-fit: contain;
}

.ds-customer-notice__content iframe {
    max-width: 100%;
}

.ds-customer-notice__content table {
    max-width: 100% !important;
}

@media (max-width: 767px) {
    .ds-customer-notice__dialog {
        padding: 36px 12px 12px;
    }

    .ds-customer-notice__content {
        font-size: 14px;
    }
}
