/**
 * Festival / announcement popup - fixed homepage slot below the warning card.
 * Every selector is scoped to .fp-* so no existing page style is touched.
 */

.fp-popup-slot {
    display: block;
}

.fp-popup,
.fp-popup * {
    box-sizing: border-box;
}

.fp-popup {
    width: 100%;
    max-width: 100%;
    position: relative;
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
    margin: 0 0 14px;
    padding: 18px 48px 18px 18px;
    background: linear-gradient(135deg, #fff8e6 0%, #fff 70%);
    border: 2px solid #c88a00;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(122, 31, 0, .12);
    overflow-wrap: anywhere;
}

.fp-popup--no-media {
    grid-template-columns: minmax(0, 1fr);
}

.fp-popup--preview {
    margin: 0;
}

.fp-popup__media img {
    display: block;
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.fp-popup__body {
    min-width: 0;
}

.fp-popup__eyebrow {
    margin: 0 0 6px;
    color: #8a5a00;
    font-size: .875rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.fp-popup__icon {
    font-size: 1.15em;
}

.fp-popup__title {
    margin: 0 0 8px;
    color: #7a1f00;
    font-size: clamp(1.125rem, 2.6vw, 1.5rem);
    line-height: 1.35;
    font-weight: 800;
}

.fp-popup__message {
    margin: 0 0 12px;
    color: #2b2b2b;
    font-size: 1rem;
    line-height: 1.75;
}

.fp-popup__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 8px 18px;
    border: 0;
    border-radius: 6px;
    background: #8a1c1c;
    color: #fff;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.fp-popup__cta:hover {
    background: #6f1515;
    text-decoration: none;
}

.fp-popup__close {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #7a1f00;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}

.fp-popup__close:hover {
    background: rgba(122, 31, 0, .1);
}

@media (max-width: 640px) {
    .fp-popup {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 16px 42px 16px 16px;
    }

    .fp-popup__media img {
        width: 100%;
        height: auto;
        max-height: 180px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fp-popup,
    .fp-popup * {
        transition: none !important;
        animation: none !important;
    }
}
