/* =========================================================
   RAIN SPREE PREMIUM — COMPACT NEWSLETTER
   Single authoritative layout system
   ========================================================= */

.rs-newsletter {
    width: 100%;
    margin: 0;
    padding: 18px 0;
    background: transparent;
    box-sizing: border-box;
}

.rs-newsletter > .rs-container {
    width: min(calc(100% - 40px), 900px) !important;
    max-width: 900px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Compact glass panel */
.rs-newsletter__background {
    position: relative;
    width: 100%;
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-size: cover;
    background-position: center;
    overflow: hidden;
}

.rs-newsletter__glass {
    position: relative;
    z-index: 2;
    width: 100%;
	width: min(1180px, calc(100% - 40px)) !important;
    max-width: 1180px;
    min-height: 190px;
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 20px 28px;
    border: 1px solid rgba(255,255,255,.82);
    border-radius: 22px;
    background: rgba(255,255,255,.72);
    box-shadow:
        0 15px 40px rgba(31,94,47,.07),
        0 4px 18px rgba(255,255,255,.28);
    backdrop-filter: blur(20px) saturate(120%);
    -webkit-backdrop-filter: blur(20px) saturate(120%);
    box-sizing: border-box;
    overflow: hidden;
}

/* Compact left artwork area */
.rs-newsletter__visual {
    position: relative;
    min-height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rs-newsletter__envelope {
    width: 190px;
    height: 150px;
    transform: rotate(-3deg);
    filter: drop-shadow(0 16px 16px rgba(68,42,90,.18));
}

.rs-newsletter__paper {
    top: -38px;
    left: 35px;
    width: 125px;
    height: 105px;
    padding: 14px 10px;
}

.rs-newsletter__paper img {
    width: 90px;
    max-width: 100%;
    height: auto;
}

.rs-newsletter__paper small {
    margin-top: 6px;
    font-size: 7px;
}

.rs-newsletter__envelope-body {
    inset: 20px 0 0;
}

.rs-newsletter__envelope-heart {
    bottom: 10px;
    width: 32px;
    height: 32px;
    font-size: 16px;
}

.rs-newsletter__heart {
    top: 25px;
    left: 3%;
    width: 46px;
    height: 46px;
    font-size: 19px;
}

.rs-newsletter__sparkle {
    font-size: 18px;
}

.sparkle-one {
    top: 20px;
    right: 4%;
}

.sparkle-two {
    bottom: 18px;
    right: 8%;
}

/* Compact content */
.rs-newsletter__content {
    min-width: 0;
}

.rs-newsletter__eyebrow {
    gap: 7px;
    padding: 7px 12px;
    font-size: 10px;
}

.rs-newsletter__content h2 {
    margin: 10px 0 7px;
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.02;
    letter-spacing: -.025em;
}

.rs-newsletter__content > p {
    max-width: 520px;
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 1.5;
}

.rs-newsletter__form {
    width: 100%;
    max-width: 520px;
}

.rs-newsletter__input {
    min-height: 46px;
    padding: 4px;
}

.rs-newsletter__input > i {
    margin-left: 14px;
    margin-right: 9px;
    font-size: 17px;
}

.rs-newsletter__input input {
    height: 38px;
    font-size: 12px;
}

.rs-newsletter__input button {
    flex: 0 0 110px;
    height: 38px;
    padding: 0 13px;
    font-size: 12px;
}

.rs-newsletter__input button i {
    font-size: 16px;
}

.rs-newsletter__privacy {
    gap: 7px;
    margin-top: 7px;
    margin-left: 3px;
    font-size: 9px;
}

/* =========================================================
   ORIGINAL NEWSLETTER DETAIL RULES
   ========================================================= */

/* =========================================================
   BACKGROUND
   ========================================================= */

.rs-newsletter__background {
    position: relative;
    width: 100%;
    min-height: 620px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 45px 4%;
   

    background-size: cover;
    background-position: center;

    overflow: hidden;
}


/* =========================================================
   GLASS PANEL
   ========================================================= */

.rs-newsletter__glass {
    position: relative;
    z-index: 2;

    width: 100%;
    max-width: 1500px;

    min-height: 490px;

    display: grid;

    grid-template-columns:
        minmax(360px, .8fr)
        minmax(500px, 1.2fr);

    align-items: center;

    gap: 35px;

    padding: 42px 55px;

    border: 1px solid rgba(255,255,255,.75);

    border-radius: 30px;

    background:
        rgba(255,255,255,.28);

    box-shadow:
        0 20px 60px rgba(70,45,90,.12);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}


/* =========================================================
   UNIVERSAL NEWSLETTER — LEFT ARTWORK
   ========================================================= */

.rs-newsletter__visual {
    position: relative !important;

    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    transform: none !important;
}

.rs-newsletter__art {
    display: block !important;

    width: 175px !important;
    height: 175px !important;

    max-width: 100% !important;
    max-height: 100% !important;

    object-fit: contain !important;

    margin: 0 auto !important;
    padding: 0 !important;

    border: 0 !important;

    filter:
        drop-shadow(
            0 14px 20px rgba(55, 35, 80, .16)
        ) !important;

    transition:
        transform .35s ease,
        filter .35s ease !important;
}

.rs-newsletter__visual:hover .rs-newsletter__art {
    transform: translateY(-4px) scale(1.03) !important;

    filter:
        drop-shadow(
            0 18px 24px rgba(55, 35, 80, .20)
        ) !important;
}


/* ENVELOPE */

.rs-newsletter__envelope {
    position: relative;

    width: 300px;
    height: 235px;

    transform: rotate(-3deg);

    filter:
        drop-shadow(
            0 22px 20px
            rgba(68,42,90,.22)
        );
}


/* PAPER */

.rs-newsletter__paper {
    position: absolute;

    z-index: 2;

    top: -65px;
    left: 54px;

    width: 200px;
    height: 165px;

    padding: 24px 15px;

    display: flex;

    flex-direction: column;

    align-items: center;
    justify-content: center;

    background: #fffdf8;

    border-radius: 5px;

    box-shadow:
        0 10px 22px rgba(50,40,60,.13);

    transform: rotate(3deg);
}


.rs-newsletter__paper img {
    width: 135px;
    max-width: 100%;
    height: auto;

    object-fit: contain;
}


.rs-newsletter__paper small {
    margin-top: 10px;

    color: #6c42a3;

    font-size: 8px;
    font-weight: 700;

    letter-spacing: .12em;
}


/* ENVELOPE BODY */

.rs-newsletter__envelope-body {
    position: absolute;

    inset: 28px 0 0;

    border-radius: 8px;

    background:
        linear-gradient(
            145deg,
            #a77ce1,
            #7041b2
        );

    overflow: hidden;
}


.rs-newsletter__envelope-body::before {
    content: '';

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            35deg,
            transparent 49%,
            rgba(255,255,255,.18) 50%,
            transparent 51%
        ),
        linear-gradient(
            -35deg,
            transparent 49%,
            rgba(255,255,255,.14) 50%,
            transparent 51%
        );
}


/* HEART */

.rs-newsletter__envelope-heart {
    position: absolute;

    z-index: 4;

    left: 50%;
    bottom: 18px;

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;
    justify-content: center;

    transform: translateX(-50%);

    border-radius: 50%;

    background: #8e5bd0;

    color: #fff;

    font-size: 20px;

    box-shadow:
        0 6px 14px rgba(50,30,80,.22);
}


/* FLOATING HEART */

.rs-newsletter__heart {
    position: absolute;

    z-index: 5;

    top: 45px;
    left: 7%;

    width: 62px;
    height: 62px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        rgba(141,91,208,.78);

    color: #fff;

    font-size: 25px;

    box-shadow:
        0 10px 20px rgba(60,40,90,.15);
}


/* SPARKLES */

.rs-newsletter__sparkle {
    position: absolute;

    color: #b087e4;

    font-size: 25px;
}


.sparkle-one {
    top: 45px;
    right: 15%;
}

.sparkle-two {
    bottom: 65px;
    right: 20%;
}


/* =========================================================
   RIGHT CONTENT
   ========================================================= */

.rs-newsletter__content {
    min-width: 0;
}


.rs-newsletter__eyebrow {
    display: inline-flex;

    align-items: center;

    gap: 10px;

    padding: 10px 17px;

    border-radius: 999px;

    border: 1px solid rgba(255,255,255,.75);

    background:
        rgba(255,255,255,.46);

    color: #7041b1;

    font-size: 13px;

    font-weight: 800;

    letter-spacing: .04em;
}


/* =========================================================
   HEADING
   ========================================================= */

.rs-newsletter__content h2 {
    margin: 24px 0 15px;

    color: #24334a;

    font-family: Georgia, 'Times New Roman', serif;

    font-size: clamp(42px, 4.6vw, 68px);

    font-weight: 400;

    line-height: .98;

    letter-spacing: -.035em;
}


.rs-newsletter__content h2 span {
    display: block;

    color: #7041b1;
}


/* =========================================================
   DESCRIPTION
   ========================================================= */

.rs-newsletter__content > p {
    max-width: 680px;

    margin: 0 0 24px;

    color: #39475c;

    font-size: 16px;

    line-height: 1.7;
}


/* =========================================================
   FORM
   ========================================================= */

.rs-newsletter__form {
    width: 100%;
    max-width: 760px;
}


.rs-newsletter__input {
    display: flex;

    align-items: center;

    width: 100%;

    min-height: 68px;

    padding: 6px;

    border-radius: 999px;

    border: 1px solid rgba(255,255,255,.9);

    background:
        rgba(255,255,255,.72);

    box-shadow:
        0 8px 25px rgba(60,45,75,.10);
}


.rs-newsletter__input > i {
    flex: 0 0 auto;

    margin-left: 22px;
    margin-right: 14px;

    color: #455268;

    font-size: 22px;
}


.rs-newsletter__input input {
    flex: 1;
    min-width: 0;
    height: 52px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #26364d;
    font-size: 16px;
}


.rs-newsletter__input input::placeholder {
    color: #586377;
}


/* BUTTON */

.rs-newsletter__input button {
    flex: 0 0 210px;

    height: 56px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    padding: 0 22px;

    border: 0;

    border-radius: 999px;

    background:
        linear-gradient(
            135deg,
            #3c813e,
            #2c6b32
        );

    color: #fff;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}


.rs-newsletter__input button:hover {
    transform: translateY(-2px);

    box-shadow:
        0 9px 20px rgba(40,100,45,.22);
}


.rs-newsletter__input button i {
    font-size: 21px;
}


/* =========================================================
   PRIVACY
   ========================================================= */

.rs-newsletter__privacy {
    display: flex;

    align-items: center;

    gap: 10px;

    margin-top: 14px;
    margin-left: 20px;

    color: #4f5c70;

    font-size: 12px;
}


.rs-newsletter__privacy i {
    color: #26364d;
}


.rs-newsletter__privacy strong {
    color: #7041b1;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 950px) {

    .rs-newsletter__background {
        min-height: auto;

        padding: 35px 18px;
    }


    .rs-newsletter__glass {
        grid-template-columns: 1fr;

        gap: 0;

        padding: 35px 30px;

        text-align: center;
    }


    .rs-newsletter__visual {
        min-height: 300px;

        transform: scale(.8);
    }


    .rs-newsletter__content {
        display: flex;

        flex-direction: column;

        align-items: center;
    }


    .rs-newsletter__content h2 {
        font-size: 48px;
    }


    .rs-newsletter__content > p {
        font-size: 14px;
    }


    .rs-newsletter__privacy {
        justify-content: center;

        margin-left: 0;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

    .rs-newsletter {
        padding: 18px 8px;
    }


    .rs-newsletter__background {
        min-height: auto;
        padding: 20px 8px;
        background-position: center;
    }


    .rs-newsletter__glass {
        min-height: auto;

        padding: 20px 14px 24px;

        border-radius: 22px;
    }


    .rs-newsletter__visual {
        min-height: 205px;

        transform: scale(.68);
    }


    .rs-newsletter__content h2 {
        margin: 12px 0;

        font-size: 35px;

        line-height: 1;
    }


    .rs-newsletter__content > p {
        margin-bottom: 16px;

        font-size: 12px;

        line-height: 1.5;
    }


    .rs-newsletter__eyebrow {
        padding: 8px 13px;

        font-size: 10px;
    }


    .rs-newsletter__input {
        min-height: 54px;

        padding: 5px;
    }


    .rs-newsletter__input > i {
        margin-left: 13px;
        margin-right: 8px;

        font-size: 17px;
    }


    .rs-newsletter__input input {
        font-size: 12px;
    }


    .rs-newsletter__input button {
        flex: 0 0 105px;

        height: 44px;

        padding: 0 13px;

        font-size: 12px;
    }


    .rs-newsletter__input button i {
        font-size: 16px;
    }


    .rs-newsletter__privacy {
        margin-top: 9px;

        font-size: 9px;
    }

}

/* =========================================================
   FINAL COMPACT OVERRIDES
   Keep these last so the newsletter remains compact.
   ========================================================= */

@media (max-width: 950px) {
    .rs-newsletter > .rs-container {
        width: min(calc(100% - 32px), 760px) !important;
        max-width: 760px !important;
    }

    .rs-newsletter__glass {
        grid-template-columns: 120px minmax(0, 1fr) !important;
        min-height: 175px !important;
        padding: 18px 22px !important;
        gap: 18px !important;
    }

    .rs-newsletter__visual {
        min-height: 130px !important;
        transform: none !important;
    }

    .rs-newsletter__envelope {
        width: 160px !important;
        height: 125px !important;
    }

    .rs-newsletter__paper {
        top: -30px !important;
        left: 28px !important;
        width: 108px !important;
        height: 88px !important;
    }

    .rs-newsletter__paper img {
        width: 78px !important;
    }

    .rs-newsletter__content h2 {
        font-size: 32px !important;
    }

    .rs-newsletter__content > p {
        font-size: 11px !important;
    }

    .rs-newsletter__form {
        max-width: 100% !important;
    }
}

@media (max-width: 600px) {
    .rs-newsletter {
        padding: 12px 0 !important;
    }

    .rs-newsletter > .rs-container {
        width: calc(100% - 24px) !important;
        max-width: none !important;
    }

    .rs-newsletter__glass {
        min-height: 0 !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        padding: 18px 14px 20px !important;
        text-align: center !important;
    }

    .rs-newsletter__visual {
        min-height: 145px !important;
        transform: none !important;
    }

    .rs-newsletter__envelope {
        width: 170px !important;
        height: 133px !important;
    }

    .rs-newsletter__content {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
    }

    .rs-newsletter__content h2 {
        margin: 8px 0 !important;
        font-size: 28px !important;
    }

    .rs-newsletter__content > p {
        max-width: 430px !important;
        margin-bottom: 12px !important;
        font-size: 11px !important;
    }

    .rs-newsletter__form {
        max-width: 100% !important;
    }

    .rs-newsletter__input {
        min-height: 46px !important;
    }

    .rs-newsletter__privacy {
        justify-content: center !important;
        margin-left: 0 !important;
    }
}

@media (max-width: 480px) {
    .rs-newsletter > .rs-container {
        width: calc(100% - 20px) !important;
    }

    .rs-newsletter__glass {
        padding: 16px 12px 18px !important;
        border-radius: 20px !important;
    }

    .rs-newsletter__content h2 {
        font-size: 25px !important;
    }
}

/* =========================================================
   UNIVERSAL NEWSLETTER — FINAL DESKTOP ALIGNMENT
   ========================================================= */

.rs-newsletter__glass {
    width: min(1100px, calc(100% - 40px)) !important;
    max-width: 1100px !important;

    height: 220px !important;
    min-height: 220px !important;

    margin: 0 auto !important;

    padding: 18px 30px !important;

    display: grid !important;

    grid-template-columns:
        190px
        minmax(0, 1fr) !important;

    column-gap: 28px !important;

    align-items: center !important;

    box-sizing: border-box !important;
}

.rs-newsletter__content {
    width: 100% !important;
    max-width: 650px !important;

    margin-left: auto !important;
    margin-right: auto !important;
}

.rs-newsletter__eyebrow {
    margin: 0 0 7px !important;
}

.rs-newsletter__content h2 {
    margin: 0 0 7px !important;

    font-size: 34px !important;
    line-height: 1.02 !important;
}

.rs-newsletter__content > p {
    margin: 0 0 10px !important;

    max-width: 560px !important;

    font-size: 11px !important;
    line-height: 1.4 !important;
}

.rs-newsletter__form {
    width: 100% !important;
    max-width: 570px !important;

    margin: 0 !important;
}

.rs-newsletter__privacy {
    margin-top: 5px !important;
    margin-left: 2px !important;

    font-size: 8px !important;
}

/* =========================================================
   RAIN SPREE — UNIVERSAL NEWSLETTER
   FINAL WIDTH / HEIGHT LOCK
   ========================================================= */

.rs-newsletter > .rs-container {
    width: min(
        calc(100% - 40px),
        1180px
    ) !important;

    max-width: 1180px !important;

    margin-left: auto !important;
    margin-right: auto !important;

    padding: 0 !important;
}

.rs-newsletter__background {
    width: 100% !important;

    min-height: 0 !important;
    height: auto !important;

    padding: 14px 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.rs-newsletter__glass {
    width: 100% !important;
    max-width: 1180px !important;

    height: 220px !important;
    min-height: 220px !important;

    margin: 0 auto !important;

    padding: 18px 30px !important;

    box-sizing: border-box !important;

    display: grid !important;

    grid-template-columns:
        190px
        minmax(0, 1fr) !important;

    gap: 28px !important;

    align-items: center !important;

    overflow: hidden !important;
}

/* Universal left artwork */
.rs-newsletter__visual {
    width: 190px !important;
    height: 170px !important;
    min-height: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;
    padding: 0 !important;

    transform: none !important;
}

.rs-newsletter__art {
    display: block !important;

    width: 165px !important;
    height: 165px !important;

    max-width: 100% !important;
    max-height: 100% !important;

    object-fit: contain !important;
}

/* Disable the old envelope/paper artwork */
.rs-newsletter__envelope,
.rs-newsletter__paper,
.rs-newsletter__envelope-body,
.rs-newsletter__envelope-heart,
.rs-newsletter__heart,
.rs-newsletter__sparkle {
    display: none !important;
}

/* Content */
.rs-newsletter__content {
    width: 100% !important;
    max-width: 680px !important;
    margin-left: 0 !important;
    margin: 0 auto !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-start !important;
}

.rs-newsletter__content h2 {
    margin: 6px 0 !important;

    font-size: 34px !important;
    line-height: 1.02 !important;
}

.rs-newsletter__content > p {
    max-width: 580px !important;

    margin: 0 0 8px !important;

    font-size: 11px !important;
    line-height: 1.4 !important;
}

.rs-newsletter__form {
    width: 100% !important;
    max-width: 570px !important;
    margin: 0 !important;
}

.rs-newsletter__input {
    width: 100% !important;

    height: 42px !important;
    min-height: 42px !important;
}

.rs-newsletter__input input {
    height: 34px !important;
    font-size: 11px !important;
}

.rs-newsletter__input button {
    width: 105px !important;
    height: 34px !important;

    flex: 0 0 105px !important;

    font-size: 11px !important;
}

.rs-newsletter__privacy {
    display: flex !important;
    align-items: center !important;

    width: 100% !important;

    margin: 5px 0 0 2px !important;

    font-size: 8px !important;
    line-height: 1.2 !important;

    visibility: visible !important;
    opacity: 1 !important;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 950px) {

    .rs-newsletter__glass {
        width: calc(100% - 32px) !important;
        max-width: 900px !important;

        height: 210px !important;
        min-height: 210px !important;

        grid-template-columns: 150px minmax(0, 1fr) !important;

        gap: 20px !important;
    }

    .rs-newsletter__visual {
        width: 150px !important;
        height: 140px !important;
    }

    .rs-newsletter__art {
        width: 135px !important;
        height: 135px !important;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .rs-newsletter__glass {
        width: calc(100% - 24px) !important;
        max-width: none !important;

        height: auto !important;
        min-height: 0 !important;

        grid-template-columns: 1fr !important;

        gap: 8px !important;

        padding: 16px 14px 18px !important;

        text-align: center !important;
    }

    .rs-newsletter__visual {
        width: 100% !important;
        height: 135px !important;
    }

    .rs-newsletter__art {
        width: 130px !important;
        height: 130px !important;
    }

    .rs-newsletter__content {
        align-items: center !important;
    }

    .rs-newsletter__privacy {
        justify-content: center !important;
        margin-left: 0 !important;
    }
}

/* =========================================================
   NEWSLETTER — LARGER LEFT ARTWORK
   ========================================================= */

.rs-newsletter__glass {
    grid-template-columns:
        240px
        minmax(0, 1fr) !important;

    column-gap: 18px !important;
}

.rs-newsletter__visual {
    width: 240px !important;
    height: 190px !important;
    min-height: 0 !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.rs-newsletter__art {
    width: 240px !important;
    height: 240px !important;

    max-width: none !important;
    max-height: none !important;

    object-fit: contain !important;

    transform: scale(1.12) !important;
}
