body.newsletter-modal-open {
    overflow: hidden;
}

[hidden] {
    display: none !important;
}

.newsletter-overlay {
    position: fixed;
    inset: 0;
    z-index: 200000;
    background:
        radial-gradient(circle at 50% 35%, rgba(25, 67, 56, 0.18), transparent 50%),
        rgba(2, 8, 7, 0.82);
    opacity: 0;
    backdrop-filter: blur(5px);
    transition: opacity 0.32s ease;
}

.newsletter-overlay.is-visible {
    opacity: 1;
}

.newsletter-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 200001;
    display: grid;
    grid-template-columns: minmax(270px, 0.82fr) minmax(430px, 1.45fr);
    width: min(850px, calc(100vw - 42px));
    max-height: min(650px, calc(100dvh - 42px));
    overflow: hidden;
    border: 1px solid rgba(218, 188, 128, 0.64);
    border-radius: 22px;
    background: #102a25;
    box-shadow:
        0 35px 100px rgba(0, 0, 0, 0.78),
        0 0 0 1px rgba(255, 255, 255, 0.04),
        inset 0 0 0 4px rgba(58, 35, 17, 0.45);
    opacity: 0;
    transform: translate(-50%, -46%) scale(0.965);
    transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.newsletter-popup::before {
    content: "";
    position: absolute;
    inset: 7px;
    z-index: 3;
    border: 1px solid rgba(210, 180, 140, 0.2);
    border-radius: 16px;
    pointer-events: none;
}

.newsletter-popup.is-visible {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.newsletter-popup-brand {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 42px 28px 38px;
    border-right: 5px solid transparent;
    border-image: linear-gradient(to bottom, #3e2513, #b68b4d 48%, #3a2111) 1;
    background:
        linear-gradient(to bottom, rgba(3, 13, 11, 0.16), rgba(3, 13, 11, 0.86)),
        url("/assets/images/bg-forest.webp") center / cover no-repeat;
    text-align: center;
}

.newsletter-popup-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(circle at 50% 30%, rgba(229, 205, 151, 0.18), transparent 35%),
        linear-gradient(100deg, rgba(0, 0, 0, 0.24), transparent 45%, rgba(0, 0, 0, 0.28));
}

.newsletter-popup-brand::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: 22px;
    left: 22px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(210, 180, 140, 0.68), transparent);
}

.newsletter-brand-shade {
    position: absolute;
    inset: 0;
    z-index: -1;
    box-shadow: inset 0 0 70px rgba(0, 0, 0, 0.55);
}

.newsletter-popup-brand > img {
    display: block;
    width: 178px;
    max-width: 72%;
    height: auto;
    margin: -12px auto 12px;
    filter:
        drop-shadow(0 10px 18px rgba(0, 0, 0, 0.62))
        saturate(0.92);
}

.newsletter-brand-copy span {
    display: block;
    margin-bottom: 7px;
    color: #d7c49a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2.1px;
    text-transform: uppercase;
}

.newsletter-brand-copy h2 {
    margin: 0;
    color: #f2e6cb;
    font-size: clamp(27px, 3vw, 37px);
    line-height: 1.05;
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.75);
}

.newsletter-brand-copy p {
    max-width: 230px;
    margin: 12px auto 0;
    color: #dfd8ca;
    font-size: 14px;
    line-height: 1.5;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.78);
}

.newsletter-popup-content {
    min-width: 0;
    overflow-y: auto;
    padding: 38px 42px 36px;
    background:
        linear-gradient(rgba(12, 39, 33, 0.92), rgba(5, 20, 17, 0.97)),
        url("/assets/images/bg-canvas.webp") center / cover;
    scrollbar-width: thin;
    scrollbar-color: rgba(210, 180, 140, 0.45) transparent;
}

.newsletter-popup-content::-webkit-scrollbar {
    width: 7px;
}

.newsletter-popup-content::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: rgba(210, 180, 140, 0.45);
}

.newsletter-close {
    position: absolute;
    top: 14px;
    right: 15px;
    z-index: 5;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(222, 195, 146, 0.42);
    border-radius: 50%;
    background:
        linear-gradient(rgba(70, 42, 21, 0.88), rgba(34, 21, 12, 0.94)),
        url("/assets/images/bg-wood.webp") center / cover;
    color: #f7ead0;
    font: inherit;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.42);
    transition: transform 0.2s ease, filter 0.2s ease;
}

.newsletter-close:hover {
    filter: brightness(1.18);
    transform: rotate(6deg) scale(1.04);
}

.newsletter-eyebrow {
    display: block;
    margin: 0 44px 5px 0;
    color: #cbb281;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.65px;
    text-transform: uppercase;
}

.newsletter-popup-content h3 {
    margin: 0 44px 7px 0;
    color: #f1e7d3;
    font-size: 30px;
    line-height: 1.1;
    text-shadow: 0 2px 7px rgba(0, 0, 0, 0.65);
}

.newsletter-lead {
    margin: 0 0 20px;
    color: #d8d2c5;
    font-size: 14.5px;
    line-height: 1.52;
}

.newsletter-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 15px;
}

.newsletter-field {
    min-width: 0;
}

.newsletter-field-wide,
.newsletter-submit,
.newsletter-privacy,
.newsletter-status {
    grid-column: 1 / -1;
}

.newsletter-field label {
    display: block;
    margin: 0 0 5px 2px;
    color: #eee3cf;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.25px;
}

.newsletter-field input {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid rgba(210, 180, 140, 0.38);
    border-radius: 8px;
    background: rgba(1, 10, 8, 0.48);
    color: #fff;
    font: inherit;
    font-size: 16px;
    outline: none;
    box-shadow:
        inset 0 1px 5px rgba(0, 0, 0, 0.42),
        0 1px 0 rgba(255, 255, 255, 0.025);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-field input:focus {
    border-color: #d9bd86;
    background: rgba(1, 10, 8, 0.7);
    box-shadow:
        inset 0 1px 5px rgba(0, 0, 0, 0.45),
        0 0 0 3px rgba(210, 180, 140, 0.12);
}

.newsletter-field input[aria-invalid="true"] {
    border-color: #df8b7f;
}

.newsletter-submit {
    position: relative;
    min-height: 48px;
    overflow: hidden;
    margin-top: 4px;
    padding: 11px 20px;
    border: 1px solid rgba(234, 211, 168, 0.55);
    border-radius: 9px;
    background:
        linear-gradient(180deg, rgba(151, 102, 56, 0.84), rgba(77, 44, 22, 0.95)),
        url("/assets/images/bg-wood.webp") center / cover;
    color: #fff9ec;
    font-family: inherit;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.25px;
    text-shadow: 0 2px 3px rgba(0, 0, 0, 0.72);
    cursor: pointer;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 8px 18px rgba(0, 0, 0, 0.35);
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-submit::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: -35%;
    width: 24%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.13), transparent);
    transform: skewX(-18deg);
    transition: left 0.45s ease;
}

.newsletter-submit:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 11px 23px rgba(0, 0, 0, 0.4);
}

.newsletter-submit:hover::after {
    left: 112%;
}

.newsletter-submit:disabled {
    cursor: wait;
    opacity: 0.72;
    transform: none;
}

.newsletter-privacy {
    margin: -3px 0 0;
    color: rgba(226, 218, 202, 0.7);
    font-size: 11px;
    line-height: 1.4;
    text-align: center;
}

.newsletter-status {
    display: none;
    margin: -2px 0 0;
    padding: 8px 10px;
    border: 1px solid rgba(223, 139, 127, 0.32);
    border-radius: 7px;
    background: rgba(100, 32, 24, 0.18);
    color: #ffd2cb;
    font-size: 12px;
    text-align: center;
}

.newsletter-status.is-visible {
    display: block;
}

.newsletter-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.newsletter-tab {
    position: fixed;
    top: 52%;
    right: 0;
    z-index: 200000;
    display: flex;
    align-items: stretch;
    min-height: 58px;
    padding: 0;
    border: 1px solid rgba(218, 188, 128, 0.58);
    border-right: 0;
    border-radius: 14px 0 0 14px;
    background:
        linear-gradient(110deg, rgba(9, 37, 31, 0.98), rgba(5, 22, 18, 0.98)),
        url("/assets/images/bg-canvas.webp") center / cover;
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.48),
        inset 0 0 0 3px rgba(72, 42, 20, 0.35);
    transform: translateX(110%);
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), filter 0.2s ease;
}

.newsletter-tab.is-visible {
    transform: translateX(0);
}

.newsletter-tab:hover {
    filter: brightness(1.1);
}

.newsletter-tab-open {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 7px 10px 7px 8px;
    border: 0;
    background: transparent;
    color: #f4ead7;
    font-family: inherit;
    cursor: pointer;
}

.newsletter-tab-open:focus {
    outline: none;
}

.newsletter-tab-open:focus-visible {
    border-radius: 11px 0 0 11px;
    box-shadow: inset 0 0 0 2px rgba(218, 188, 128, 0.82);
}

.newsletter-tab-open img {
    width: 43px;
    height: 43px;
    object-fit: contain;
    filter: drop-shadow(0 4px 7px rgba(0, 0, 0, 0.52));
}

.newsletter-tab-open > span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.1;
}

.newsletter-tab-open small {
    margin-bottom: 3px;
    color: #cbb281;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.newsletter-tab-dismiss {
    display: grid;
    width: 32px;
    min-width: 32px;
    place-items: center;
    margin: 7px 7px 7px 0;
    border: 1px solid rgba(218, 188, 128, 0.32);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.22);
    color: #e6d6b8;
    font-family: inherit;
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.newsletter-tab-dismiss:hover {
    background: rgba(112, 55, 32, 0.62);
    color: #fff;
}

.newsletter-tab-dismiss:focus {
    outline: none;
}

.newsletter-tab-dismiss:focus-visible {
    box-shadow: 0 0 0 2px rgba(218, 188, 128, 0.82);
}

.newsletter-toast {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 200002;
    max-width: min(390px, calc(100vw - 32px));
    padding: 15px 20px;
    border: 1px solid rgba(210, 180, 140, 0.55);
    border-radius: 12px;
    background:
        linear-gradient(rgba(20, 63, 53, 0.97), rgba(10, 39, 32, 0.98)),
        url("/assets/images/bg-canvas.webp") center / cover;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.48);
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px);
    transition: opacity 0.24s ease, transform 0.24s ease;
}

.newsletter-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .newsletter-popup {
        grid-template-columns: 215px minmax(390px, 1fr);
        width: min(720px, calc(100vw - 28px));
        max-height: calc(100dvh - 28px);
    }

    .newsletter-popup-brand {
        padding: 30px 20px;
    }

    .newsletter-popup-brand > img {
        width: 135px;
    }

    .newsletter-brand-copy h2 {
        font-size: 29px;
    }

    .newsletter-popup-content {
        padding: 30px 31px 28px;
    }
}

@media (max-height: 690px) and (min-width: 681px) {
    .newsletter-popup {
        max-height: calc(100dvh - 16px);
    }

    .newsletter-popup-brand > img {
        width: 115px;
        margin-bottom: 5px;
    }

    .newsletter-brand-copy p {
        margin-top: 7px;
    }

    .newsletter-popup-content {
        padding-top: 23px;
        padding-bottom: 22px;
    }

    .newsletter-popup-content h3 {
        font-size: 26px;
    }

    .newsletter-lead {
        margin-bottom: 13px;
        line-height: 1.4;
    }

    .newsletter-form {
        gap: 9px 12px;
    }

    .newsletter-field input {
        min-height: 39px;
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .newsletter-submit {
        min-height: 42px;
    }
}

@media (max-width: 680px) {
    .newsletter-popup {
        top: auto;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        width: 100%;
        max-height: min(94dvh, 780px);
        overflow-y: auto;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 22px 22px 0 0;
        opacity: 1;
        transform: translateY(105%);
        overscroll-behavior: contain;
    }

    .newsletter-popup::before {
        inset: 6px 6px auto;
        height: 104px;
        border-bottom: 0;
        border-radius: 16px 16px 0 0;
    }

    .newsletter-popup.is-visible {
        transform: translateY(0);
    }

    .newsletter-popup-brand {
        min-height: 112px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 12px;
        padding:
            15px
            max(58px, calc(18px + env(safe-area-inset-right)))
            14px
            max(17px, env(safe-area-inset-left));
        border-right: 0;
        border-bottom: 4px solid #70451f;
        text-align: left;
    }

    .newsletter-popup-brand::after {
        display: none;
    }

    .newsletter-popup-brand > img {
        flex: 0 0 auto;
        width: 82px;
        max-width: none;
        margin: 0;
    }

    .newsletter-brand-copy span {
        margin-bottom: 3px;
        font-size: 9px;
        letter-spacing: 1.35px;
    }

    .newsletter-brand-copy h2 {
        font-size: 25px;
    }

    .newsletter-brand-copy p {
        max-width: 250px;
        margin: 5px 0 0;
        font-size: 12px;
        line-height: 1.3;
    }

    .newsletter-popup-content {
        overflow: visible;
        padding:
            21px
            max(17px, env(safe-area-inset-right))
            max(22px, env(safe-area-inset-bottom))
            max(17px, env(safe-area-inset-left));
    }

    .newsletter-eyebrow {
        margin-right: 0;
        font-size: 10px;
    }

    .newsletter-popup-content h3 {
        margin-right: 0;
        font-size: 25px;
    }

    .newsletter-lead {
        margin-bottom: 15px;
        font-size: 13.5px;
        line-height: 1.42;
    }

    .newsletter-form {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .newsletter-field-wide,
    .newsletter-submit,
    .newsletter-privacy,
    .newsletter-status {
        grid-column: auto;
    }

    .newsletter-field input {
        min-height: 43px;
    }

    .newsletter-close {
        top: 13px;
        right: max(13px, env(safe-area-inset-right));
    }

    .newsletter-tab {
        top: auto;
        right: max(9px, env(safe-area-inset-right));
        bottom: max(13px, env(safe-area-inset-bottom));
        min-height: 52px;
        padding: 0;
        border-right: 1px solid rgba(218, 188, 128, 0.58);
        border-radius: 13px;
    }

    .newsletter-tab-open {
        padding: 6px 8px 6px 7px;
    }

    .newsletter-tab-open img {
        width: 38px;
        height: 38px;
    }

    .newsletter-tab-dismiss {
        width: 30px;
        min-width: 30px;
        margin: 6px 6px 6px 0;
    }

    .newsletter-toast {
        right: 13px;
        bottom: max(13px, env(safe-area-inset-bottom));
        left: 13px;
        max-width: none;
    }
}

@media (max-width: 390px) {
    .newsletter-popup-brand {
        min-height: 98px;
    }

    .newsletter-popup-brand > img {
        width: 70px;
    }

    .newsletter-brand-copy h2 {
        font-size: 22px;
    }

    .newsletter-brand-copy p {
        display: none;
    }

    .newsletter-popup-content {
        padding-top: 18px;
    }

    .newsletter-popup-content h3 {
        font-size: 23px;
    }

    .newsletter-lead {
        margin-bottom: 12px;
        font-size: 13px;
    }

    .newsletter-field label {
        font-size: 11px;
    }

    .newsletter-field input {
        min-height: 41px;
        padding: 8px 11px;
    }

    .newsletter-submit {
        min-height: 43px;
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .newsletter-overlay,
    .newsletter-popup,
    .newsletter-tab,
    .newsletter-toast,
    .newsletter-close,
    .newsletter-submit {
        transition: none;
    }
}
