/**
 * Cielo Offers — scoped popup styles
 * All rules are nested under .cielo-offers to avoid leaking and to win
 * specificity over theme defaults without resorting to !important.
 */

.cielo-offers,
.cielo-offers * {
    box-sizing: border-box;
}

.cielo-offers {
    font-family: Georgia, "Times New Roman", serif;
    color: #222323;
    line-height: 1.5;
    max-width: 100%;
    text-align: left;
}

/* Section */
.cielo-offers .cielo-offers__section {
    margin: 0 0 8px;
    padding: 0;
}
.cielo-offers .cielo-offers__section--happenings {
    padding: 8px 0 24px;
    border-bottom: 1px solid #e8e2d4;
    margin-bottom: 24px;
    text-align: center;
}
.cielo-offers .cielo-offers__section--offers {
    text-align: center;
}

/* Titles */
.cielo-offers .cielo-offers__section-title {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: 700;
    color: #222323;
    text-align: center;
    margin: 0 0 16px;
    padding: 0;
    line-height: 1.3;
}
.cielo-offers .cielo-offers__section-title--italic {
    font-style: italic;
    font-weight: 400;
}
.cielo-offers .cielo-offers__divider {
    display: block;
    width: 50px;
    height: 1px;
    background: #a18955;
    margin: 0 auto 20px;
}

/* Buttons (full-width, like the original Discover More / Book Now) */
.cielo-offers .cielo-offers__btn {
    display: block;
    width: 60%;
    margin: 0 auto;
    padding: 12px 10px;
    background: #a18955;
    color: #ffffff;
    text-decoration: none;
    text-align: center;
    text-transform: uppercase;
    font-family: Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 1.5px;
    border: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}
.cielo-offers .cielo-offers__btn:hover,
.cielo-offers .cielo-offers__btn:focus {
    background: #8a7448;
    color: #ffffff;
    text-decoration: none;
}

/* Hero block */
.cielo-offers .cielo-offers__hero {
    display: block;
    background: #222323;
    color: #ffffff;
    padding: 18px 16px;
    margin: 0 0 18px;
    border-radius: 2px;
    text-align: center;
}
.cielo-offers .cielo-offers__hero-eyebrow {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 10px;
    letter-spacing: 2px;
    color: #a18955;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.cielo-offers .cielo-offers__hero-title {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 8px;
    line-height: 1.3;
}
.cielo-offers .cielo-offers__hero-meta {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #cfc7b4;
    line-height: 1.55;
    margin-bottom: 4px;
}
.cielo-offers .cielo-offers__hero-validity {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #ffffff;
    font-weight: 600;
    margin-top: 6px;
}

/* Booking window note */
.cielo-offers .cielo-offers__window {
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #444;
    margin: 0 0 16px;
    padding: 0;
    line-height: 1.5;
}

/* Accordion */
.cielo-offers .cielo-offers__acc {
    border-top: 1px solid #e8e2d4;
    text-align: left;
}
.cielo-offers .cielo-offers__item {
    border-bottom: 1px solid #e8e2d4;
    background: #ffffff;
}

.cielo-offers .cielo-offers__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 12px;
    background: transparent;
    border: 0;
    margin: 0;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    color: inherit;
    -webkit-appearance: none;
    appearance: none;
    box-shadow: none;
}
.cielo-offers .cielo-offers__head:hover,
.cielo-offers .cielo-offers__head:focus {
    background: #faf8f3;
    outline: none;
}
.cielo-offers .cielo-offers__item.is-open .cielo-offers__head {
    background: #faf8f3;
}

.cielo-offers .cielo-offers__name {
    flex: 1 1 auto;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 15px;
    font-weight: 700;
    color: #222323;
    line-height: 1.3;
    padding-right: 8px;
}
.cielo-offers .cielo-offers__discount {
    flex: 0 0 auto;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    color: #a18955;
    margin: 0 12px;
    white-space: nowrap;
}
.cielo-offers .cielo-offers__toggle {
    flex: 0 0 auto;
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 1;
    color: #a18955;
    width: 16px;
    text-align: center;
    font-weight: 400;
}
.cielo-offers .cielo-offers__item.is-open .cielo-offers__toggle {
    /* Use a dash that doesn't depend on font support */
    transform: rotate(0deg);
}

.cielo-offers .cielo-offers__body {
    display: none;
    padding: 4px 14px 18px;
    background: #faf8f3;
}
.cielo-offers .cielo-offers__item.is-open .cielo-offers__body {
    display: block;
}

.cielo-offers .cielo-offers__desc {
    font-family: Arial, sans-serif;
    font-size: 13px;
    color: #444;
    line-height: 1.55;
    margin: 6px 0 8px;
    padding: 0;
}
.cielo-offers .cielo-offers__validity {
    font-family: Arial, sans-serif;
    font-size: 11px;
    color: #888;
    font-style: italic;
    margin: 0 0 12px;
    padding: 0;
}

.cielo-offers .cielo-offers__row {
    display: flex;
    align-items: stretch;
    gap: 8px;
    flex-wrap: wrap;
}

.cielo-offers .cielo-offers__code {
    flex: 1 1 140px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #ffffff;
    border: 1px dashed #a18955;
    padding: 8px 12px;
    min-height: 38px;
}
.cielo-offers .cielo-offers__code-value {
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
    font-weight: 700;
    color: #a18955;
    letter-spacing: 1px;
}
.cielo-offers .cielo-offers__copy {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0 0 0 10px;
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #888;
    -webkit-appearance: none;
    appearance: none;
}
.cielo-offers .cielo-offers__copy:hover,
.cielo-offers .cielo-offers__copy:focus {
    color: #a18955;
    outline: none;
}
.cielo-offers .cielo-offers__copy.is-copied {
    color: #5a8a3a;
}

.cielo-offers .cielo-offers__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: #a18955;
    color: #ffffff;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    transition: background 0.2s ease;
}
.cielo-offers .cielo-offers__cta:hover,
.cielo-offers .cielo-offers__cta:focus {
    background: #8a7448;
    color: #ffffff;
    text-decoration: none;
}

.cielo-offers .cielo-offers__subgroup {
    display: block;
    text-align: center;
    font-family: Arial, sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    color: #999;
    text-transform: uppercase;
    padding: 22px 0 10px;
    margin: 0;
}

/* Mobile tweaks for narrow popups */
@media (max-width: 420px) {
    .cielo-offers .cielo-offers__btn {
        width: 80%;
    }
    .cielo-offers .cielo-offers__name {
        font-size: 14px;
    }
    .cielo-offers .cielo-offers__discount {
        font-size: 13px;
        margin: 0 8px;
    }
    .cielo-offers .cielo-offers__row {
        flex-direction: column;
    }
    .cielo-offers .cielo-offers__cta {
        width: 100%;
    }
}
