/* =========================================================
   SUGAR & STIX — ANNOUNCEMENT POPUP
   Isolated from the main site styles.
   ========================================================= */

.ss-announcement[hidden] {
    display: none !important;
}

.ss-announcement {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 24px;
}

.ss-announcement-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(53, 35, 24, 0.72);
    backdrop-filter: blur(4px);
}

.ss-announcement-card {
    position: relative;
    z-index: 1;
    width: min(590px, 100%);
    max-height: calc(100vh - 48px);
    overflow: auto;
    border-radius: 26px;
    background: #fffaf4;
    box-shadow: 0 28px 80px rgba(53, 35, 24, 0.28);
}

.ss-announcement-card.has-image {
    width: min(820px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
}

.ss-announcement-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 3;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 250, 244, 0.94);
    color: #352318;
    font: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 18px rgba(53, 35, 24, 0.12);
}

.ss-announcement-close:hover,
.ss-announcement-close:focus-visible {
    background: #ffffff;
}

.ss-announcement-image-wrap {
    min-height: 100%;
    overflow: hidden;
    border-radius: 26px 0 0 26px;
    background: #f9e7dc;
}

.ss-announcement-image {
    width: 100%;
    height: 100%;
    min-height: 390px;
    display: block;
    object-fit: cover;
}

.ss-announcement-content {
    padding: 48px 44px 44px;
}

.ss-announcement-eyebrow {
    margin: 0 0 12px;
    color: #b96745;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.ss-announcement-content h2 {
    margin: 0;
    color: #352318;
    font-family: "Playfair Display", serif;
    font-size: clamp(32px, 4.4vw, 46px);
    line-height: 1.02;
    letter-spacing: -0.025em;
}

.ss-announcement-message {
    margin: 20px 0 0;
    color: #542b19;
    font-family: "DM Sans", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

.ss-announcement-button {
    margin-top: 28px;
}

body.ss-announcement-open {
    overflow: hidden;
}

@media (max-width: 720px) {
    .ss-announcement {
        padding: 18px;
    }

    .ss-announcement-card,
    .ss-announcement-card.has-image {
        width: min(500px, 100%);
        display: block;
        border-radius: 22px;
    }

    .ss-announcement-image-wrap {
        height: 220px;
        min-height: 0;
        border-radius: 22px 22px 0 0;
    }

    .ss-announcement-image {
        min-height: 0;
        height: 100%;
    }

    .ss-announcement-content {
        padding: 34px 26px 30px;
    }

    .ss-announcement-content h2 {
        font-size: 34px;
    }
}
