/* Colorful Offers campaign — used on /offers and in the admin RTE preview. */
.sf-offer-campaign {
    font-family: inherit;
    line-height: 1.45;
}

.sf-offer-campaign p {
    margin: 0;
}

.sf-offer-hero {
    position: relative;
    overflow: hidden;
    background-image: linear-gradient(135deg, #6d28d9 0%, #db2777 46%, #ea580c 100%) !important;
    color: #fff !important;
    padding: 2.75rem 1.25rem 2.5rem !important;
    border-radius: 1.5rem !important;
    text-align: center;
    box-shadow: 0 22px 50px rgb(124 58 237 / 0.28);
}

.sf-offer-hero::before,
.sf-offer-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.sf-offer-hero::before {
    width: 11rem;
    height: 11rem;
    top: -4rem;
    left: -3rem;
    background: rgb(250 204 21 / 0.28);
}

.sf-offer-hero::after {
    width: 9rem;
    height: 9rem;
    right: -2.5rem;
    bottom: -3.5rem;
    background: rgb(255 255 255 / 0.16);
}

.sf-offer-kicker {
    position: relative;
    z-index: 1;
    display: inline-block;
    margin: 0 0 0.85rem !important;
    padding: 0.28rem 0.85rem;
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #7c2d12 !important;
    background: #facc15;
    border-radius: 999px;
}

.sf-offer-title {
    position: relative;
    z-index: 1;
    margin: 0 0 0.7rem !important;
    font-size: clamp(2rem, 5vw, 3.35rem) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    color: #fff !important;
    text-shadow: 0 8px 24px rgb(0 0 0 / 0.22);
}

.sf-offer-lead {
    position: relative;
    z-index: 1;
    margin: 0 auto 1.35rem !important;
    max-width: 36rem;
    font-size: 1.05rem !important;
    font-weight: 500;
    color: #fff !important;
    opacity: 0.95;
}

.sf-offer-cta-wrap {
    position: relative;
    z-index: 1;
    margin: 0 !important;
}

.sf-offer-cta-wrap a {
    display: inline-block;
    padding: 0.8rem 1.55rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #7f1d1d !important;
    background: #facc15;
    border-radius: 999px;
    text-decoration: none !important;
    box-shadow: 0 10px 24px rgb(0 0 0 / 0.18);
}

.sf-offer-cta-wrap a:hover {
    background: #fde047;
}

.sf-offer-tile .sf-offer-cta-wrap a {
    padding: 0.5rem 1.1rem;
    font-size: 0.82rem;
    color: #111827 !important;
    background: #fff;
}

.sf-offer-perks,
.sf-offer-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1rem;
}

.sf-offer-perk,
.sf-offer-tile {
    position: relative;
    overflow: hidden;
    min-height: 6.5rem;
    box-shadow: 0 12px 28px rgb(15 23 42 / 0.1);
}

.sf-offer-perk-a { background-image: linear-gradient(160deg, #3b82f6, #1d4ed8) !important; }
.sf-offer-perk-b { background-image: linear-gradient(160deg, #22c55e, #15803d) !important; }
.sf-offer-perk-c { background-image: linear-gradient(160deg, #fb923c, #c2410c) !important; }
.sf-offer-perk-d { background-image: linear-gradient(160deg, #f472b6, #be185d) !important; }

.sf-offer-tile {
    min-height: 10rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.sf-offer-tile-a { background-image: linear-gradient(155deg, #f43f5e, #9d174d) !important; }
.sf-offer-tile-b { background-image: linear-gradient(155deg, #8b5cf6, #4c1d95) !important; }
.sf-offer-tile-c { background-image: linear-gradient(155deg, #f59e0b, #b45309) !important; }
.sf-offer-tile-d { background-image: linear-gradient(155deg, #2dd4bf, #0f766e) !important; }

.sf-offer-perk-title,
.sf-offer-tile-title {
    color: #fff !important;
    font-weight: 800 !important;
}

.sf-offer-tile-title {
    font-size: 1.45rem !important;
}

.sf-offer-perk-text,
.sf-offer-tile-label {
    color: rgb(255 255 255 / 0.9) !important;
}

@media (min-width: 768px) {
    .sf-offer-perks,
    .sf-offer-tiles {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1rem;
        margin-top: 1.25rem;
    }

    .sf-offer-hero {
        padding: 3.5rem 2rem 3rem !important;
    }
}

.shopiz-rte-editor:has(.sf-offer-campaign) {
    max-height: 42rem;
    background: #f8fafc;
}

.shopiz-rte-editor .sf-offer-campaign {
    font-size: 0.95rem;
}
