.simple-popup-root {
    --sp-popup-width: 500px;
    --sp-popup-max-width: 500px;
    --sp-popup-min-width: 280px;
    --sp-popup-height: auto;
    --sp-popup-max-height: 92vh;
    --sp-popup-radius: 12px;
    --sp-popup-shadow: 0 18px 45px rgba(0,0,0,.28);
    --sp-content-items: center;
    --sp-overlay-bg: rgba(0,0,0,.58);
    --sp-overlay-blur: blur(7px);
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 24px;
    box-sizing: border-box;
    font-family: Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.simple-popup-root--preview {
    position: relative;
    min-height: 720px;
    z-index: 1;
}

.simple-popup-overlay {
    position: absolute;
    inset: 0;
    background: var(--sp-overlay-bg);
    backdrop-filter: var(--sp-overlay-blur);
}

.simple-popup-dialog-wrap {
    position: relative;
    width: min(var(--sp-popup-width), var(--sp-popup-max-width), calc(100vw - 48px));
    height: var(--sp-popup-height);
    min-width: min(var(--sp-popup-min-width), calc(100vw - 48px));
    max-height: var(--sp-popup-max-height);
    overflow: auto;
    outline: none;
}

.simple-popup-card {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 100%;
    overflow: hidden;
    border-radius: var(--sp-popup-radius);
    border: var(--sp-popup-border-width) solid var(--sp-popup-border-color);
    box-shadow: var(--sp-popup-shadow);
    background: var(--sp-content-bg);
    color: var(--sp-body-color);
}

.simple-popup-image {
    height: var(--sp-image-height);
    background: #e5e5e5;
    overflow: hidden;
}

.simple-popup-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: var(--sp-image-fit);
    object-position: var(--sp-image-position);
}

.simple-popup-content {
    min-height: var(--sp-content-min-height);
    container-type: inline-size;
    display: flex;
    flex-direction: column;
    align-items: var(--sp-content-items);
    justify-content: center;
    gap: var(--sp-content-gap);
    text-align: var(--sp-content-align);
    background: var(--sp-content-bg);
    padding: var(--sp-content-padding-top) var(--sp-content-padding-right) var(--sp-content-padding-bottom) var(--sp-content-padding-left);
    box-sizing: border-box;
}

.simple-popup-heading-text {
    max-width: 860px;
    margin: 0 0 var(--sp-heading-margin-bottom);
    color: var(--sp-heading-color);
    font-size: var(--sp-heading-size);
    line-height: var(--sp-heading-line-height);
    font-weight: var(--sp-heading-weight);
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.simple-popup-body {
    max-width: var(--sp-body-max-width);
    color: var(--sp-body-color);
    font-size: var(--sp-body-size);
    line-height: var(--sp-body-line-height);
    font-weight: var(--sp-body-weight);
    overflow-wrap: anywhere;
}

.simple-popup-body p {
    margin: 0;
}

.simple-popup-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    min-width: min(var(--sp-button-width), 100%);
    min-height: var(--sp-button-height);
    padding: var(--sp-button-padding-y) var(--sp-button-padding-x);
    border-radius: var(--sp-button-radius);
    background: var(--sp-button-bg);
    color: var(--sp-button-color);
    text-decoration: none;
    font-size: var(--sp-button-size);
    font-weight: var(--sp-button-weight);
    line-height: 1.1;
    box-sizing: border-box;
    transition: background-color .18s ease;
    overflow-wrap: anywhere;
}

.simple-popup-button:hover,
.simple-popup-button:focus {
    background: var(--sp-button-bg-hover);
    color: var(--sp-button-color);
}

.simple-popup-arrow {
    font-size: 1.2em;
    line-height: 1;
}

.simple-popup-close {
    position: absolute;
    z-index: 5;
    top: var(--sp-close-top);
    right: var(--sp-close-right);
    min-width: var(--sp-close-size);
    min-height: var(--sp-close-size);
    padding: var(--sp-close-padding);
    border: 0;
    border-radius: var(--sp-close-radius);
    background: var(--sp-close-bg);
    color: var(--sp-close-color);
    font: inherit;
    font-size: var(--sp-close-size);
    line-height: .8;
    cursor: pointer;
}

.simple-popup-close--type-text {
    width: auto;
    min-width: 0;
    font-size: max(13px, calc(var(--sp-close-size) * .36));
    line-height: 1.1;
}

.simple-popup-close--top-left {
    right: auto;
    left: var(--sp-close-right);
}

.simple-popup-layout--split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.simple-popup-layout--split .simple-popup-image {
    height: auto;
    min-height: max(var(--sp-image-height), var(--sp-content-min-height));
}

.simple-popup-layout--split .simple-popup-content {
    min-height: var(--sp-content-min-height);
}

.simple-popup-layout--horizontal {
    grid-template-columns: minmax(0, .58fr) minmax(0, 1.42fr);
    max-width: 1120px;
    margin: 0 auto;
}

.simple-popup-layout--horizontal .simple-popup-image {
    height: auto;
    min-height: var(--sp-image-height);
}

.simple-popup-layout--horizontal .simple-popup-content {
    min-height: var(--sp-content-min-height);
    justify-content: center;
    padding-top: var(--sp-content-padding-top);
    padding-bottom: var(--sp-content-padding-bottom);
}

.simple-popup-layout--horizontal .simple-popup-heading-text {
    max-width: 700px;
}

.simple-popup-layout--horizontal .simple-popup-body {
    max-width: 640px;
}

.simple-popup-layout--compact {
    max-width: 620px;
    margin: 0 auto;
}

.simple-popup-layout--compact .simple-popup-image {
    height: calc(var(--sp-image-height) * .55);
}

.simple-popup-layout--compact .simple-popup-content {
    min-height: calc(var(--sp-content-min-height) * .62);
    margin: -70px 46px 0;
    position: relative;
    z-index: 2;
    background: var(--sp-content-bg);
    box-shadow: 0 12px 30px rgba(0,0,0,.12);
}

.simple-popup-dialog-wrap--spotlight {
    width: min(var(--sp-popup-width), var(--sp-popup-max-width), calc(100vw - 48px));
}

.simple-popup-layout--spotlight {
    grid-template: 1fr / 1fr;
    min-height: min(calc(var(--sp-image-height) + var(--sp-content-min-height)), calc(100vh - 48px));
    background: #121820;
}

.simple-popup-layout--spotlight .simple-popup-image,
.simple-popup-layout--spotlight .simple-popup-content {
    grid-area: 1 / 1;
}

.simple-popup-layout--spotlight .simple-popup-image {
    height: auto;
    min-height: min(calc(var(--sp-image-height) + var(--sp-content-min-height)), calc(100vh - 48px));
    opacity: 1;
}

.simple-popup-layout--spotlight::after {
    content: "";
    grid-area: 1 / 1;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(0, 0, 0, .08) 0%, rgba(0, 0, 0, .3) 48%, rgba(0, 0, 0, .62) 100%);
}

.simple-popup-layout--spotlight .simple-popup-content {
    align-self: end;
    min-height: auto;
    z-index: 2;
    margin: clamp(16px, 4vw, 30px);
    padding: clamp(22px, 5cqw, var(--sp-content-padding-top)) clamp(24px, 6cqw, var(--sp-content-padding-right)) clamp(24px, 6cqw, var(--sp-content-padding-bottom));
    border-radius: max(8px, calc(var(--sp-popup-radius) * .72));
    background: color-mix(in srgb, var(--sp-content-bg) 86%, transparent);
    box-shadow: 0 18px 42px rgba(0,0,0,.24);
}

.simple-popup-layout--spotlight .simple-popup-heading-text,
.simple-popup-layout--spotlight .simple-popup-body {
    color: #ffffff;
}

.simple-popup-dialog-wrap--drawer {
    justify-self: end;
    align-self: stretch;
    width: min(var(--sp-popup-width), var(--sp-popup-max-width), 460px, calc(100vw - 48px));
    max-height: calc(100vh - 48px);
}

.simple-popup-layout--drawer {
    min-height: 100%;
}

.simple-popup-layout--drawer .simple-popup-image {
    height: var(--sp-image-height);
    max-height: min(38vh, 280px);
}

.simple-popup-layout--drawer .simple-popup-content {
    min-height: auto;
    justify-content: center;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .simple-popup-dialog-wrap--drawer {
        align-self: center;
        max-height: min(760px, calc(100vh - 48px));
    }

    .simple-popup-layout--drawer {
        min-height: auto;
    }
}

.simple-popup-dialog-wrap--offer-strip {
    width: min(var(--sp-popup-width), var(--sp-popup-max-width), 820px, calc(100vw - 48px));
}

.simple-popup-layout--offer-strip {
    container-type: inline-size;
    grid-template-columns: 128px minmax(0, 1fr);
    align-items: center;
    background: var(--sp-content-bg);
}

.simple-popup-layout--offer-strip .simple-popup-image {
    width: min(var(--sp-image-height), 96px);
    height: min(var(--sp-image-height), 96px);
    min-height: 0;
    margin: 22px 0 22px 28px;
    border-radius: max(10px, calc(var(--sp-popup-radius) * .72));
}

.simple-popup-layout--offer-strip .simple-popup-content {
    min-height: min(var(--sp-content-min-height), 150px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(128px, 180px);
    grid-template-rows: auto auto;
    column-gap: clamp(18px, 4cqw, 32px);
    row-gap: min(var(--sp-content-gap), 8px);
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: clamp(20px, 4cqw, var(--sp-content-padding-top)) var(--sp-content-padding-right) clamp(20px, 4cqw, var(--sp-content-padding-bottom)) 24px;
}

.simple-popup-layout--offer-strip .simple-popup-heading-text {
    max-width: 520px;
    grid-column: 1;
    grid-row: 1;
    margin-bottom: 0;
    overflow-wrap: normal;
    word-break: normal;
}

.simple-popup-layout--offer-strip .simple-popup-body {
    max-width: 520px;
    grid-column: 1;
    grid-row: 2;
    overflow-wrap: normal;
    word-break: normal;
}

.simple-popup-layout--offer-strip .simple-popup-button {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    width: 100%;
    min-width: 0;
    max-width: 180px;
}

@container (max-width: 560px) {
    .simple-popup-layout--offer-strip .simple-popup-content {
        grid-template-columns: 1fr;
    }

    .simple-popup-layout--offer-strip .simple-popup-button {
        grid-column: 1;
        grid-row: 3;
        justify-self: start;
        width: min(100%, 180px);
    }
}

.simple-popup-layout--minimal {
    max-width: 460px;
    margin: 0 auto;
}

.simple-popup-layout--minimal .simple-popup-image {
    width: min(var(--sp-image-height), 120px);
    height: min(var(--sp-image-height), 120px);
    margin: 34px auto 0;
    border-radius: max(10px, calc(var(--sp-popup-radius) * .72));
}

.simple-popup-layout--minimal .simple-popup-image--empty {
    display: none;
}

.simple-popup-layout--minimal .simple-popup-content {
    min-height: auto;
    padding: clamp(30px, 7cqw, var(--sp-content-padding-top)) clamp(30px, 8cqw, var(--sp-content-padding-right)) clamp(36px, 8cqw, var(--sp-content-padding-bottom));
}

body.simple-popup-open {
    overflow: hidden;
}

@media (min-width: 768px) and (max-width: 1024px) {
    .simple-popup-heading-text {
        font-size: var(--sp-heading-fluid-tablet-size);
    }

    .simple-popup-body {
        font-size: var(--sp-body-fluid-tablet-size);
    }

    .simple-popup-button {
        font-size: var(--sp-button-fluid-tablet-size);
    }
}

@media (max-width: 767px) {
    .simple-popup-root {
        padding: 16px;
    }

    .simple-popup-dialog-wrap {
        width: min(var(--sp-mobile-popup-width), calc(100vw - 32px));
        min-width: min(var(--sp-popup-min-width), calc(100vw - 32px));
        max-height: 94vh;
        max-height: 94dvh;
    }

    .simple-popup-layout--split,
    .simple-popup-layout--horizontal,
    .simple-popup-layout--offer-strip {
        grid-template-columns: 1fr;
        max-width: none;
    }

    .simple-popup-image,
    .simple-popup-layout--compact .simple-popup-image,
    .simple-popup-layout--split .simple-popup-image,
    .simple-popup-layout--horizontal .simple-popup-image,
    .simple-popup-layout--offer-strip .simple-popup-image {
        height: var(--sp-image-mobile-height);
        min-height: 0;
    }

    .simple-popup-content,
    .simple-popup-layout--compact .simple-popup-content,
    .simple-popup-layout--split .simple-popup-content,
    .simple-popup-layout--horizontal .simple-popup-content,
    .simple-popup-layout--offer-strip .simple-popup-content {
        min-height: auto;
        padding: var(--sp-mobile-content-padding-top) var(--sp-mobile-content-padding-right) var(--sp-mobile-content-padding-bottom) var(--sp-mobile-content-padding-left);
        gap: min(var(--sp-content-gap), 16px);
    }

    .simple-popup-heading-text {
        margin-bottom: 0;
    }

    .simple-popup-heading-text {
        font-size: var(--sp-heading-fluid-mobile-size);
    }

    .simple-popup-body {
        font-size: var(--sp-body-fluid-mobile-size);
    }

    .simple-popup-button {
        width: 100%;
        min-width: 0;
        min-height: 60px;
        font-size: var(--sp-button-fluid-mobile-size);
    }

    .simple-popup-layout--compact .simple-popup-content {
        margin: -42px 18px 0;
    }

    .simple-popup-dialog-wrap--spotlight,
    .simple-popup-dialog-wrap--drawer,
    .simple-popup-dialog-wrap--offer-strip,
    .simple-popup-dialog-wrap--minimal {
        justify-self: center;
        align-self: center;
        width: min(var(--sp-mobile-popup-width), calc(100vw - 32px));
        max-height: 94vh;
    }

    .simple-popup-layout--spotlight {
        min-height: min(calc(var(--sp-image-mobile-height) + var(--sp-content-min-height)), calc(94vh - 32px));
        min-height: min(calc(var(--sp-image-mobile-height) + var(--sp-content-min-height)), calc(94dvh - 32px));
    }

    .simple-popup-layout--spotlight .simple-popup-image {
        min-height: min(calc(var(--sp-image-mobile-height) + var(--sp-content-min-height)), calc(94vh - 32px));
        min-height: min(calc(var(--sp-image-mobile-height) + var(--sp-content-min-height)), calc(94dvh - 32px));
    }

    .simple-popup-layout--spotlight .simple-popup-content {
        margin: 12px;
        padding: var(--sp-mobile-content-padding-top) var(--sp-mobile-content-padding-right) var(--sp-mobile-content-padding-bottom) var(--sp-mobile-content-padding-left);
    }

    .simple-popup-layout--drawer .simple-popup-image {
        height: var(--sp-image-mobile-height);
    }

    .simple-popup-dialog-wrap--drawer {
        align-self: end;
    }

    .simple-popup-layout--drawer {
        max-height: 84vh;
        max-height: 84dvh;
    }

    .simple-popup-layout--drawer .simple-popup-content,
    .simple-popup-layout--offer-strip .simple-popup-content {
        align-items: var(--sp-content-items);
        text-align: var(--sp-content-align);
    }

    .simple-popup-layout--offer-strip .simple-popup-image {
        width: min(var(--sp-image-mobile-height), 96px);
        height: min(var(--sp-image-mobile-height), 96px);
        margin: 22px auto 0;
    }

    .simple-popup-layout--offer-strip .simple-popup-content {
        display: flex;
        flex-direction: column;
        align-items: var(--sp-content-items);
        text-align: var(--sp-content-align);
        row-gap: min(var(--sp-content-gap), 16px);
    }

    .simple-popup-layout--offer-strip .simple-popup-heading-text,
    .simple-popup-layout--offer-strip .simple-popup-body,
    .simple-popup-layout--offer-strip .simple-popup-button {
        max-width: 100%;
    }

    .simple-popup-layout--offer-strip .simple-popup-button {
        width: 100%;
        min-width: 0;
    }

    .simple-popup-layout--minimal .simple-popup-image {
        width: min(var(--sp-image-mobile-height), 96px);
        height: min(var(--sp-image-mobile-height), 96px);
        margin-top: 24px;
    }
}
