/**
 * PepperLabz Conversion Event — Homepage Package Section styling.
 * Loads sitewide; harmless when the shortcode isn't placed or the
 * complete_package flag is false (renders nothing to style).
 */

.plz-event-package-section {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    background: #F1F3F5 !important;
    padding: 56px 20px !important;
}

/* Force border-box on every descendant — guards against a page-builder
   or theme global box-sizing reset causing padding to add to width
   instead of being absorbed by it (the usual cause of "oversized" inside
   an Elementor Shortcode widget). */
.plz-event-package-section,
.plz-event-package-section * {
    box-sizing: border-box !important;
}

.plz-event-package-inner {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    gap: 56px !important;
    align-items: center !important;
}

.plz-event-package-visual {
    display: flex !important;
    width: 100% !important;
    justify-content: center !important;
    position: relative !important;
}

/**
 * Pack visual (2026-10-09b): the bag + chrome ring now come from the
 * shared .plz-pack-ring-* component (pepperlabz-event-package-page.css),
 * inside the product page's rounded image card. Only the two-bag flip
 * motion still lives here (also used by the pack pages).
 */
.plz-package-flip {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    animation: plzPackageFlip 12s ease-in-out infinite;
}

.plz-package-flip-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    backface-visibility: hidden;
}

.plz-package-flip-face.is-back {
    transform: rotateY(180deg);
}

.plz-package-flip-face.is-static {
    position: relative;
    z-index: 2;
}

.plz-package-flip-face img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Slow, deliberate flip: long holds on each face (0-40%, 50-90% of a
   12s loop = ~4.8s each), quick-but-smooth ~1.2s rotations between —
   "smooth and slow, not fast or jarring" per owner direction. Ambient/
   continuous, same precedent as the promo bar's shimmer — nothing here
   is interactive, so there's no user action for it to "answer." */
@keyframes plzPackageFlip {
    0%, 40% { transform: rotateY(0deg); }
    50%, 90% { transform: rotateY(180deg); }
    100% { transform: rotateY(360deg); }
}

/* Reduced motion for the flip lives with the ring component
   (pepperlabz-event-package-page.css): both bags side by side, no motion. */

.plz-event-package-eyebrow {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #79818A;
    margin: 0 0 8px;
}

.plz-event-package-headline {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 900;
    font-size: clamp(28px, 4vw, 40px);
    color: #1C1F23;
    margin: 0 0 20px;
    line-height: 1.1;
}

.plz-event-package-price-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 8px;
}

.plz-event-package-compare {
    text-decoration: line-through;
    color: #79818A;
    font-size: 18px;
}

.plz-event-package-price {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 800;
    font-size: 32px;
    color: #1C1F23;
}

.plz-event-package-savings {
    font-size: 15px;
    color: #1C1F23;
    margin: 0 0 16px;
}

.plz-event-package-savings-pct {
    color: #79818A;
}

.plz-event-package-gift {
    font-size: 14px;
    color: #1C1F23;
    font-weight: 600;
    margin: 0 0 24px;
}

/* Buttons (2026-10-09b): product-page styles — "View the Complete Pack"
   uses the Add to Cart pill (.plz-add-cart-btn, with its chrome sheen),
   "View the Starter Pack" the outline View Cart pill (.plz-cart-link). */
.plz-event-package-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    max-width: 520px !important;
}

.plz-event-package-actions .plz-add-cart-btn,
.plz-event-package-actions .plz-cart-link {
    height: 54px !important;
    width: 100% !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    font-size: 15px !important;
}

/* Pack visual card: the product page's rounded image card, sized for
   this section. */
.plz-event-package-card {
    width: 100% !important;
    min-height: 600px !important;
}

@media (max-width: 780px) {
    .plz-event-package-inner {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }

    .plz-event-package-price-row {
        justify-content: center !important;
    }

    .plz-event-package-inner {
        gap: 28px !important;
    }

    .plz-event-package-card {
        min-height: 440px !important;
    }

    .plz-event-package-actions {
        grid-template-columns: 1fr !important;
        max-width: 420px !important;
        margin: 0 auto !important;
    }
}
