.ui-newsletter-showcase-section {
    padding: clamp(3rem, 6vw, 5.5rem) 0;
    background: #fff;
}

.ui-newsletter-showcase-section--embedded {
    padding: 0 0 1.5rem;
    background: transparent;
}

.ui-newsletter-showcase {
    min-height: clamp(460px, 54vw, 620px);
    overflow: hidden;
    border-radius: 18px;
    background-size: cover;
    background-position: center;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
}

.ui-newsletter-showcase-section--embedded .ui-newsletter-showcase {
    min-height: 420px;
    border-radius: 14px;
}

.ui-newsletter-showcase-section--embedded .ui-newsletter-showcase__content {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    max-width: 720px;
}

.ui-newsletter-showcase-section--embedded .ui-newsletter-showcase__title {
    max-width: 100%;
    font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.ui-newsletter-showcase-section--embedded .ui-newsletter-showcase__form {
    width: min(100%, 500px);
    min-width: 0;
    justify-self: start;
}

.ui-newsletter-showcase__shade {
    min-height: inherit;
    display: flex;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, 0.62) 0%, rgba(15, 23, 42, 0.42) 44%, rgba(15, 23, 42, 0.06) 100%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.16));
}

.ui-newsletter-showcase__content {
    width: min(100%, 1180px);
    display: grid;
    grid-template-columns: minmax(300px, 520px) 1fr;
    gap: clamp(2rem, 5vw, 5.5rem);
    align-items: center;
    padding: clamp(2rem, 5vw, 4.5rem);
}

.ui-newsletter-showcase__copy {
    color: #fff;
}

.ui-newsletter-eyebrow {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.ui-newsletter-showcase__title {
    max-width: 12ch;
    margin: 0 0 0.85rem;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.65rem);
    line-height: 1.02;
    font-weight: 800;
}

.ui-newsletter-showcase__copy p {
    max-width: 34rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
    font-size: 1.05rem;
    line-height: 1.65;
}

.ui-newsletter-showcase__form {
    width: min(100%, 420px);
    min-width: 0;
    padding: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.18);
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.16);
    backdrop-filter: blur(8px);
}

.ui-newsletter-form,
.ui-newsletter-form .input-group,
.ui-newsletter-form .form-control {
    min-width: 0;
}

.ui-newsletter-showcase .ui-modal-label,
.ui-newsletter-showcase .form-check-label,
.ui-newsletter-showcase .form-check-label a,
.ui-newsletter-showcase .text-muted {
    color: rgba(255, 255, 255, 0.88) !important;
}

.ui-newsletter-showcase .ui-modal-input {
    height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.16);
}

.ui-newsletter-showcase .ui-modal-addon {
    border-color: rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.88);
}

.ui-newsletter-showcase .form-check-input {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.25rem;
}

.ui-newsletter-showcase .ui-modal-submit {
    height: 58px;
    border: 1px solid #241812;
    border-radius: 12px;
    background: #241812 !important;
    color: #fff !important;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.22);
}

.ui-newsletter-showcase .ui-modal-submit:hover,
.ui-newsletter-showcase .ui-modal-submit:focus-visible {
    background: #ff6a00 !important;
    border-color: #ff6a00 !important;
    color: #fff !important;
}

.ui-home-newsletter {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    pointer-events: none;
    background: rgba(15, 23, 42, 0.18);
    transition: opacity 0.24s ease;
    will-change: opacity;
}

.ui-home-newsletter[hidden] {
    display: none !important;
}

.ui-home-newsletter .ui-modal-close {
    display: none !important;
}

body.ui-newsletter-modal-open {
    overflow: hidden;
    padding-right: var(--newsletter-scrollbar-gap, 0px);
}

body.ui-newsletter-modal-open .ui-home-newsletter {
    opacity: 1;
    pointer-events: auto;
}

body.ui-newsletter-modal-open .ui-home-newsletter .container {
    width: min(100%, 920px);
    padding: 0;
}

body.ui-newsletter-modal-open .ui-home-newsletter .ui-modal-close {
    position: absolute;
    display: inline-flex !important;
}

.ui-modal {
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
}

.ui-newsletter-panel {
    width: min(100%, 860px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 250, 252, 0.99));
    position: relative;
    opacity: 0;
    transform: translateY(18px);
    transition: transform 0.24s ease, opacity 0.24s ease, box-shadow 0.24s ease;
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 24px 56px rgba(15, 23, 42, 0.18);
}

body.ui-newsletter-modal-open .ui-newsletter-panel.is-open {
    opacity: 1;
    transform: translateY(0);
}

.ui-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 1000;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid rgba(15, 23, 42, 0.2);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    opacity: 1;
    text-shadow: none;
    margin: 0;
    padding: 0;
    font-size: 0;
    line-height: 1;
}

.ui-modal-close:hover,
.ui-modal-close:focus-visible {
    background: #ff6a00;
    border-color: rgba(255, 106, 0, 0.45);
    color: #fff;
    box-shadow: 0 12px 26px rgba(255, 106, 0, 0.35);
    outline: none;
}

.ui-modal-close-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    font-size: 28px;
    line-height: 18px;
    font-weight: 700;
    color: currentColor !important;
    transform: translateY(-1px);
}

.ui-modal-title,
.ui-modal-label {
    color: #0f172a;
}

.ui-modal-input {
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-radius: 10px;
    height: 50px;
    background: #fff;
}

.ui-modal-addon {
    border: 1px solid rgba(15, 23, 42, 0.14);
    border-left: none;
    border-radius: 0 10px 10px 0;
    background: rgba(255, 106, 0, 0.12);
    color: #ff6a00;
}

.ui-newsletter-image {
    min-height: 100%;
    background-size: cover;
    background-position: center;
}

.ui-newsletter-body {
    padding: 1.5rem;
}

.ui-newsletter-body--inline {
    padding: 1.9rem 1.9rem 1.45rem;
}

.ui-newsletter-status {
    border-radius: 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: none;
}

.ui-newsletter-actions {
    display: grid;
    gap: 0.45rem;
    margin-top: 0.85rem;
}

.ui-newsletter-dismiss {
    align-self: center;
    justify-self: center;
    padding: 0;
    border: none;
    color: #64748b;
    font-size: 0.93rem;
    font-weight: 600;
    text-decoration: none;
}

.ui-newsletter-dismiss:hover,
.ui-newsletter-dismiss:focus-visible {
    color: #ff6a00;
    text-decoration: none;
    outline: none;
}

@media (max-width: 991px) {
    .ui-newsletter-showcase__shade {
        background: linear-gradient(90deg, rgba(15, 23, 42, 0.72) 0%, rgba(15, 23, 42, 0.48) 100%);
    }

    .ui-newsletter-showcase__content {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ui-newsletter-showcase__form {
        width: min(100%, 30rem);
    }
}

@media (max-width: 768px) {
    .ui-newsletter-showcase-section {
        padding: 2.5rem 0;
    }

    .ui-newsletter-showcase {
        min-height: auto;
        border-radius: 16px;
        background-position: center;
    }

    .ui-newsletter-showcase__shade {
        min-height: auto;
        background: linear-gradient(180deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.58) 100%);
    }

    .ui-newsletter-showcase__content {
        padding: 1.35rem;
    }

    .ui-newsletter-showcase__title {
        max-width: 100%;
        font-size: 1.85rem;
    }

    .ui-newsletter-showcase__copy p {
        font-size: 0.96rem;
        line-height: 1.5;
    }

    .ui-newsletter-showcase .ui-modal-input,
    .ui-newsletter-showcase .ui-modal-submit {
        height: 48px;
    }

    .ui-newsletter-showcase-section--embedded .ui-newsletter-showcase {
        min-height: auto;
    }

    body.ui-newsletter-modal-open .ui-home-newsletter {
        align-items: flex-end;
        padding: calc(0.65rem + env(safe-area-inset-top)) 0.75rem calc(0.75rem + env(safe-area-inset-bottom));
        background: linear-gradient(180deg, rgba(15, 23, 42, 0), rgba(15, 23, 42, 0.16));
    }

    .ui-newsletter-panel {
        width: 100%;
        max-width: 30rem;
        max-height: calc(100dvh - 1.5rem - env(safe-area-inset-top) - env(safe-area-inset-bottom));
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        border-radius: 24px 24px 18px 18px;
        transform: translateY(24px);
        box-shadow: 0 18px 38px rgba(15, 23, 42, 0.16);
    }

    .ui-newsletter-image {
        display: block;
        min-height: clamp(112px, 24vw, 150px);
        border-bottom: 1px solid rgba(15, 23, 42, 0.08);
        background-position: center 54%;
    }

    .ui-newsletter-body,
    .ui-newsletter-body--inline {
        padding: 1.15rem 1.1rem 1rem;
    }

    .ui-modal-title {
        font-size: 1.28rem;
        line-height: 1.2;
        margin-right: 2.75rem;
    }
}

@media (max-width: 576px) {
    .ui-home-newsletter {
        padding: 0 0.65rem calc(0.65rem + env(safe-area-inset-bottom));
    }

    .ui-newsletter-image {
        min-height: 92px;
        max-height: 112px;
    }

    .ui-newsletter-body--inline {
        padding: 0.9rem 0.95rem 0.85rem;
    }

    .ui-newsletter-body .form-check-label {
        font-size: 0.82rem;
        line-height: 1.34;
    }

    .ui-modal-close {
        top: 0.55rem;
        right: 0.55rem;
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }
}
