.pop-up-overlay {
    align-items: center;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    background: rgba(17, 24, 39, 0.48);
    bottom: 0;
    display: none;
    justify-content: center;
    left: 0;
    padding: 24px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 99999;
}

.pop-up-overlay.is-visible {
    display: flex;
}

.pop-up-modal {
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28) !important;
    box-sizing: border-box !important;
    color: #1f2937 !important;
    font-family: inherit !important;
    max-height: calc(100vh - 48px) !important;
    max-width: 440px !important;
    min-width: 0 !important;
    outline: 0 !important;
    overflow: auto !important;
    padding: 28px !important;
    position: relative !important;
    width: min(100%, 440px) !important;
}

.pop-up-modal *,
.pop-up-modal *::before,
.pop-up-modal *::after {
    box-sizing: border-box;
}

.pop-up-background {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    bottom: 0;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 0;
}

.pop-up-inner {
    background: rgba(255, 255, 255, 0.7) !important;
    border: 0 !important;
    border-radius: 8px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    margin: 0 auto !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 24px !important;
    position: relative !important;
    width: 100% !important;
    z-index: 1 !important;
}

.pop-up-close {
    align-items: center;
    appearance: none !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    color: #4b5563 !important;
    cursor: pointer;
    display: flex;
    font-family: Arial, sans-serif !important;
    font-size: 30px !important;
    font-weight: 400 !important;
    height: 36px !important;
    justify-content: center;
    line-height: 1 !important;
    margin: 0 !important;
    min-height: 0 !important;
    min-width: 0 !important;
    outline: 0 !important;
    padding: 0 !important;
    position: absolute;
    right: 10px !important;
    text-decoration: none !important;
    top: 8px !important;
    width: 36px !important;
    z-index: 2 !important;
}

.pop-up-close:hover,
.pop-up-close:focus {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #111827 !important;
    outline: 0 !important;
}

.pop-up-title {
    color: #0f2f5f !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    margin: 0 0 12px 0 !important;
    padding: 0 !important;
}

.pop-up-content {
    color: #374151 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    margin-bottom: 18px !important;
}

.pop-up-content p {
    color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
}

.pop-up-content p:last-child {
    margin-bottom: 0;
}

.pop-up-shortcode {
    margin-top: 18px !important;
}

.pop-up-shortcode h2,
.pop-up-shortcode h3,
.pop-up-shortcode .wp-block-jetpack-subscriptions__title,
.pop-up-shortcode .wp-block-jetpack-subscriptions__description,
.pop-up-shortcode .jetpack_subscription_widget > p:first-of-type,
.pop-up-shortcode #subscribe-text {
    display: none;
}

.pop-up-shortcode form {
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

.pop-up-shortcode form p,
.pop-up-shortcode .wp-block-jetpack-subscriptions__form,
.pop-up-shortcode .wp-block-jetpack-subscriptions__form-elements,
.pop-up-shortcode .wp-block-jetpack-subscriptions__form .wp-block-jetpack-subscriptions__form-elements {
    box-sizing: border-box !important;
    display: block !important;
    margin: 0 0 10px !important;
    max-width: none !important;
    width: 100% !important;
}

.pop-up-shortcode input[type="email"],
.pop-up-shortcode input[type="text"],
.pop-up-shortcode .wp-block-jetpack-subscriptions__subscribe-field {
    appearance: none !important;
    background: #ffffff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    color: #111827 !important;
    display: block !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
    margin: 0 0 10px !important;
    max-width: none !important;
    min-height: 44px !important;
    padding: 10px 12px !important;
    width: 100% !important;
}

.pop-up-shortcode input[type="email"]::placeholder,
.pop-up-shortcode input[type="text"]::placeholder,
.pop-up-shortcode .wp-block-jetpack-subscriptions__subscribe-field::placeholder {
    font-size: 14px;
}

.pop-up-shortcode input[type="submit"],
.pop-up-shortcode button[type="submit"],
.pop-up-shortcode .wp-block-jetpack-subscriptions__button {
    align-items: center;
    appearance: none !important;
    background: linear-gradient(135deg, #0f4c81 0%, #14a37f 100%) !important;
    border: 0 !important;
    border-radius: 6px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    color: #ffffff !important;
    cursor: pointer;
    display: flex !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    gap: 8px !important;
    justify-content: center;
    line-height: 1.4 !important;
    margin: 0 !important;
    max-width: none !important;
    min-height: 44px !important;
    padding: 10px 14px !important;
    text-decoration: none !important;
    width: 100% !important;
}

.pop-up-shortcode input[type="submit"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23ffffff' d='M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4l217.6 163.2c11.4 8.5 27 8.5 38.4 0l217.6-163.2C504.9 141.3 512 127.1 512 112c0-26.5-21.5-48-48-48H48zM0 176v208c0 35.3 28.7 64 64 64h384c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z'/%3E%3C/svg%3E"), linear-gradient(135deg, #0f4c81 0%, #14a37f 100%) !important;
    background-position: calc(50% - 58px) center, center !important;
    background-repeat: no-repeat, no-repeat !important;
    background-size: 16px 16px, cover !important;
    padding-left: 34px !important;
}

.pop-up-shortcode button[type="submit"]::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 512 512'%3E%3Cpath fill='%23ffffff' d='M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4l217.6 163.2c11.4 8.5 27 8.5 38.4 0l217.6-163.2C504.9 141.3 512 127.1 512 112c0-26.5-21.5-48-48-48H48zM0 176v208c0 35.3 28.7 64 64 64h384c35.3 0 64-28.7 64-64V176L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z'/%3E%3C/svg%3E") center / contain no-repeat !important;
    content: "" !important;
    display: inline-block !important;
    flex: 0 0 16px !important;
    height: 16px !important;
    width: 16px !important;
}

.pop-up-shortcode input[type="submit"]:hover,
.pop-up-shortcode input[type="submit"]:focus,
.pop-up-shortcode button[type="submit"]:hover,
.pop-up-shortcode button[type="submit"]:focus {
    background: linear-gradient(135deg, #123f6d 0%, #0f8f71 100%) !important;
}

.pop-up-confirmation {
    background: rgba(20, 163, 127, 0.12) !important;
    border: 1px solid rgba(20, 163, 127, 0.32) !important;
    border-radius: 6px !important;
    color: #0f5f4d !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 12px 0 0 !important;
    padding: 10px 12px !important;
    text-align: center !important;
}

.pop-up-confirmation[hidden] {
    display: none !important;
}

.pop-up-social {
    margin-top: 18px !important;
    text-align: center !important;
}

.pop-up-social-separator {
    background: rgba(15, 47, 95, 0.18) !important;
    border: 0 !important;
    height: 1px !important;
    margin: 0 0 14px !important;
}

.pop-up-social-text {
    color: #0f2f5f !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    margin: 0 0 12px !important;
    padding: 0 !important;
}

.pop-up-social-icons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 6px !important;
    justify-content: center !important;
}

.pop-up-social-link {
    align-items: center !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    color: #0f2f5f !important;
    display: inline-flex !important;
    height: 22px !important;
    justify-content: center !important;
    margin: 0 !important;
    outline: 0 !important;
    padding: 0 !important;
    text-decoration: none !important;
    transition: color 160ms ease, transform 160ms ease !important;
    width: 22px !important;
}

.pop-up-social-link:hover,
.pop-up-social-link:focus {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #14a37f !important;
    transform: translateY(-1px) !important;
}

.pop-up-social-link svg,
.pop-up-social-link i {
    display: block !important;
    font-size: 16px !important;
    height: 16px !important;
    line-height: 1 !important;
    width: 16px !important;
}

body.pop-up-lock {
    overflow: hidden;
}

@media (max-width: 600px) {
    .pop-up-overlay {
        align-items: center !important;
        justify-content: center !important;
        padding: 14px !important;
        place-items: center !important;
    }

    .pop-up-modal {
        left: auto !important;
        margin: 0 auto !important;
        max-height: calc(100vh - 28px) !important;
        max-width: calc(100vw - 28px) !important;
        padding: 24px 20px !important;
        right: auto !important;
        transform: none !important;
        width: min(100%, 420px) !important;
    }

    .pop-up-inner {
        margin: 0 auto !important;
        padding: 20px !important;
        width: 100% !important;
    }

    .pop-up-title {
        font-size: 20px;
    }

    .pop-up-content {
        font-size: 13px !important;
        line-height: 1.4 !important;
    }
}

@media (max-width: 380px) {
    .pop-up-overlay {
        padding: 10px !important;
    }

    .pop-up-modal {
        max-width: calc(100vw - 20px) !important;
        padding: 18px 14px !important;
    }

    .pop-up-inner {
        padding: 18px !important;
    }

    .pop-up-content {
        font-size: 12.5px !important;
    }
}
