/*
 * NCLEX Nerds CSS Bundle: sale-widget.bundle.css
 * Group: public
 * Auto-generated by scripts/bundle_css.py — DO NOT EDIT
 * Edit the source files instead.
 * Sources: sale-widget-base.css, sale-widget-desktop.css, sale-widget-mobile-portrait.css, sale-widget-mobile-landscape.css
 */

/* === sale-widget-base.css === */
/*
 * Sale Widget — Base Styles
 * NO media queries here. Visual styling that applies to every viewport.
 * Layout overrides live in sale-widget-{desktop,mobile-portrait,mobile-landscape}.
 *
 * Port of armk/static/css/teachers/sale-widget-base.css with:
 *   - class prefix .t-sale-* → .n-sale-* (NCLEX; avoids collisions)
 *   - amber/gold (#d4a017 / #b8860b) → NCLEX purple (#7c3aed / #6d28d9)
 *   - shadow alpha channel tinted purple
 *
 * All component markup lives in templates/_sale_widget.html.
 */

/* ── Popup overlay (first-visit full-screen modal) ────────────────── */
.n-sale-popup-overlay {
    position: fixed; inset: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000;
    opacity: 0; pointer-events: none;
    transition: opacity 0.18s ease-out;
    padding: 16px;
}
.n-sale-popup-overlay.active { opacity: 1; pointer-events: auto; }

.n-sale-popup {
    position: relative;
    background: #fff;
    border-radius: 16px;
    max-width: 480px; width: 100%;
    box-shadow: 0 24px 64px rgba(0,0,0,0.35);
    padding: 28px 28px 22px;
    transform: translateY(10px); opacity: 0;
    transition: transform 0.22s ease-out, opacity 0.22s ease-out;
}
.n-sale-popup-overlay.active .n-sale-popup {
    transform: translateY(0); opacity: 1;
}

.n-sale-popup-close {
    position: absolute; top: 10px; right: 12px;
    background: none; border: 0; font-size: 28px; line-height: 1;
    color: #a0aec0; cursor: pointer; padding: 4px 8px;
}
.n-sale-popup-close:hover { color: #2d3748; }

.n-sale-popup-brand {
    display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.n-sale-popup-logo {
    height: 32px; width: auto;
}
.n-sale-popup-badge {
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #fff;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
    text-transform: uppercase;
}

.n-sale-popup-headline {
    font-size: 1.4rem; font-weight: 800; color: #1a202c;
    margin: 0 0 6px; line-height: 1.25;
}
.n-sale-popup-sub {
    font-size: 1rem; color: #6d28d9; font-weight: 700; margin: 0 0 14px;
}
.n-sale-popup-body {
    font-size: 0.92rem; line-height: 1.55; color: #4a5568; margin: 0 0 10px;
}
.n-sale-popup-signoff {
    font-size: 0.88rem; color: #718096; font-style: italic; margin: 0 0 16px;
}

.n-sale-popup-row {
    display: flex; gap: 10px; margin-bottom: 14px;
}
.n-sale-popup-countdown, .n-sale-popup-code {
    flex: 1;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
    display: flex; flex-direction: column; gap: 2px;
}
.n-sale-countdown-label, .n-sale-popup-code > :first-child {
    font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
    color: #718096; font-weight: 600;
}
.n-sale-countdown-timer {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 1.1rem; font-weight: 700; color: #1a202c;
}
.n-sale-code-value {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 1.1rem; font-weight: 800;
    color: #6d28d9;
    letter-spacing: 0.06em;
}

.n-sale-countdown-timer.urgent { color: #c53030; animation: n-sale-pulse 1s ease-in-out infinite; }
@keyframes n-sale-pulse {
    0%, 100% { opacity: 1; } 50% { opacity: 0.55; }
}

/* ── Two-button action row: gold primary + outline secondary ────── */
.n-sale-popup-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}
.n-sale-popup-cta {
    display: block;
    width: 100%;
    padding: 13px 18px;
    text-align: center;
    text-decoration: none;
    border: 0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out,
                background 0.12s ease-out, color 0.12s ease-out;
}
.n-sale-popup-cta--primary {
    background: linear-gradient(135deg, #E8B230 0%, #B8881A 100%);
    color: #1F1A33;
    box-shadow: 0 6px 18px rgba(184, 136, 26, 0.40);
}
.n-sale-popup-cta--primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(184, 136, 26, 0.50);
    filter: brightness(1.04);
}
.n-sale-popup-cta--secondary {
    background: #fff;
    color: #5E3FA0;
    border: 1.5px solid rgba(124, 92, 186, 0.35);
}
.n-sale-popup-cta--secondary:hover {
    transform: translateY(-1px);
    background: rgba(124, 92, 186, 0.08);
    border-color: #7C5CBA;
    color: #5E3FA0;
}

/* ── Plain text close link below the buttons ────────────────────── */
.n-sale-popup-close-link {
    display: block;
    margin: 12px auto 0;
    padding: 6px 10px;
    background: transparent;
    border: 0;
    color: rgba(31, 26, 51, 0.55);
    font-family: inherit;
    font-size: 0.86rem;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
    transition: color 0.12s ease;
}
.n-sale-popup-close-link:hover {
    color: #1F1A33;
}

/* ── Persistent lower-left widget ─────────────────────────────────── */
.n-sale-widget {
    position: fixed;
    bottom: 20px; left: 20px;
    z-index: 9998;
    transition: transform 0.18s ease-out, opacity 0.18s ease-out;
}
.n-sale-widget[data-state="hidden"] { display: none; }

/* Minimized: circular button with logo + discount badge */
.n-sale-widget-toggle {
    position: relative;
    width: 56px; height: 56px;
    border: 0; border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    box-shadow: 0 8px 20px rgba(124, 58, 237, 0.45);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
}
.n-sale-widget-toggle:hover { transform: scale(1.05); }
.n-sale-widget-icon-wrap {
    width: 34px; height: 34px;
    background: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.n-sale-widget-icon-logo {
    height: 22px; width: auto;
}
.n-sale-widget-badge {
    position: absolute;
    /* Anchor by LEFT edge near the widget's right side so the badge
       extends RIGHTWARD from the widget instead of growing leftward
       across the toggle face. Slight inward overlap (~8px) keeps the
       badge looking attached to the widget. */
    top: -10px;
    left: calc(100% - 8px);
    background: #c53030; color: #fff;
    font-size: 11px; font-weight: 800;
    padding: 2px 8px;
    border-radius: 10px;
    border: 2px solid #fff;
    min-width: 30px; text-align: center;
    /* Keep "80% OFF" on a single line — without these the badge wraps
       and overlaps the toggle button below it. */
    white-space: nowrap;
    line-height: 1.1;
}

.n-sale-widget[data-state="minimized"] .n-sale-widget-toggle { display: flex; }
.n-sale-widget[data-state="minimized"] .n-sale-widget-panel  { display: none; }

.n-sale-widget[data-state="expanded"]  .n-sale-widget-toggle { display: none; }
.n-sale-widget[data-state="expanded"]  .n-sale-widget-panel  { display: block; }

/* Expanded: mini card with countdown + CTA */
.n-sale-widget-panel {
    display: none;
    width: 280px;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 14px 38px rgba(0,0,0,0.22);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}
.n-sale-widget-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
    color: #fff;
}
.n-sale-widget-title {
    font-size: 0.95rem; font-weight: 800; line-height: 1.2;
}
.n-sale-widget-sub {
    font-size: 0.7rem; opacity: 0.9; margin-top: 2px;
    letter-spacing: 0.03em; text-transform: uppercase;
}
.n-sale-widget-minimize {
    background: rgba(255,255,255,0.2); border: 0;
    color: #fff; font-size: 18px; line-height: 1;
    width: 26px; height: 26px; border-radius: 6px;
    cursor: pointer;
}
.n-sale-widget-minimize:hover { background: rgba(255,255,255,0.32); }

.n-sale-widget-countdown {
    padding: 10px 14px 6px;
    display: flex; flex-direction: column; gap: 2px;
}
.n-sale-widget-countdown-label {
    font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
    color: #718096; font-weight: 600;
}
.n-sale-widget-countdown-timer {
    font-family: ui-monospace, SFMono-Regular, monospace;
    font-size: 1.05rem; font-weight: 700; color: #1a202c;
}
.n-sale-widget-countdown-timer.urgent { color: #c53030; animation: n-sale-pulse 1s ease-in-out infinite; }

.n-sale-widget-code {
    padding: 2px 14px 8px;
    font-size: 0.82rem; color: #4a5568;
}
.n-sale-widget-code strong {
    font-family: ui-monospace, SFMono-Regular, monospace;
    color: #6d28d9; font-weight: 800; letter-spacing: 0.05em;
}

.n-sale-widget-cta {
    display: block; margin: 6px 14px 14px;
    padding: 10px 12px;
    background: #1a202c;
    color: #fff; text-decoration: none; text-align: center;
    border-radius: 8px;
    font-size: 0.88rem; font-weight: 700;
}
.n-sale-widget-cta:hover { background: #2d3748; }

/* When the widget must be hidden (paid status, pricing page, etc.) */
.n-sale-widget.hidden, .n-sale-popup-overlay.hidden { display: none !important; }

/* ── First-visit attention pulse (landing-home only) ──────────────────
   The .n-sale-widget--pulsing modifier is added by sale-widget.js when
   the user lands on `currentPage === 'home'` AND has not yet seen the
   popup this session. Stops on first toggle click, sale expiry, or any
   other path that flips popupShown=true.
   Animates box-shadow only — leaves transform free for the existing
   :hover scale, so hover and pulse coexist without fighting. */
@keyframes n-sale-attention-glow {
    0%, 14%, 100% {
        box-shadow: 0 8px 20px rgba(124, 58, 237, 0.45);
    }
    7% {
        box-shadow: 0 8px 20px rgba(124, 58, 237, 0.55),
                    0 0 0 6px rgba(124, 58, 237, 0.18),
                    0 0 28px rgba(124, 58, 237, 0.55);
    }
}
.n-sale-widget--pulsing .n-sale-widget-toggle {
    animation: n-sale-attention-glow 5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    .n-sale-widget--pulsing .n-sale-widget-toggle { animation: none; }
}

/* === sale-widget-desktop.css === */
/*
 * Sale Widget — Desktop Styles
 * @media (min-width: 769px)
 *
 * Base has all the real styling; desktop mostly lets it be. Use this file
 * if the widget ever needs distinct desktop-only tweaks (e.g. larger
 * popup on ultra-wide, different panel width).
 */

@media (min-width: 769px) {

/* Base design targets desktop out of the box — nothing to override here
   today. Leaving the file in place so future tweaks land in a predictable
   spot. */

} /* end @media (min-width: 769px) */

/* === sale-widget-mobile-portrait.css === */
/*
 * Sale Widget — Mobile Portrait Styles
 * @media (max-width: 768px) and (orientation: portrait)
 *
 * Narrow the popup, shrink the persistent widget so it doesn't cover
 * thumb-reach content, drop the expanded panel width.
 */

@media (max-width: 768px) and (orientation: portrait) {

.n-sale-popup {
    padding: 22px 20px 18px;
    border-radius: 14px;
    max-width: calc(100vw - 24px);
}

.n-sale-popup-headline { font-size: 1.2rem; }
.n-sale-popup-sub      { font-size: 0.92rem; }
.n-sale-popup-body     { font-size: 0.88rem; }

.n-sale-popup-row { flex-direction: column; gap: 8px; }
.n-sale-popup-countdown, .n-sale-popup-code { padding: 8px 10px; }
.n-sale-countdown-timer, .n-sale-code-value { font-size: 1rem; }

.n-sale-widget {
    bottom: 14px;
    left: 14px;
}

.n-sale-widget-toggle {
    width: 50px;
    height: 50px;
}
.n-sale-widget-icon-wrap { width: 30px; height: 30px; }
.n-sale-widget-icon-logo { height: 20px; }

.n-sale-widget-panel {
    width: 240px;
    border-radius: 12px;
}
.n-sale-widget-header { padding: 10px 12px; }
.n-sale-widget-title  { font-size: 0.88rem; }

} /* end @media (max-width: 768px) and (orientation: portrait) */

/* === sale-widget-mobile-landscape.css === */
/*
 * Sale Widget — Mobile Landscape Styles
 * @media (max-width: 926px) and (orientation: landscape)
 *
 * Tiny vertical real-estate — compress the popup, keep the persistent
 * widget tight so it doesn't eat more than ~20% of the viewport height.
 */

@media (max-width: 926px) and (orientation: landscape) {

.n-sale-popup {
    padding: 18px 22px 16px;
    max-width: 560px;
}

.n-sale-popup-headline { font-size: 1.15rem; line-height: 1.2; margin-bottom: 4px; }
.n-sale-popup-sub      { font-size: 0.92rem; margin-bottom: 10px; }
.n-sale-popup-body     { font-size: 0.85rem; margin-bottom: 8px; }
.n-sale-popup-signoff  { margin-bottom: 10px; }

.n-sale-popup-row { gap: 8px; margin-bottom: 10px; }
.n-sale-popup-countdown, .n-sale-popup-code { padding: 8px 10px; }

.n-sale-popup-cta { padding: 11px 16px; font-size: 0.92rem; }

.n-sale-widget {
    bottom: 12px;
    left: 12px;
}

.n-sale-widget-toggle {
    width: 48px;
    height: 48px;
}
.n-sale-widget-icon-wrap { width: 28px; height: 28px; }
.n-sale-widget-icon-logo { height: 18px; }

.n-sale-widget-panel { width: 240px; }
.n-sale-widget-header { padding: 10px 12px; }
.n-sale-widget-title  { font-size: 0.88rem; }

} /* end @media (max-width: 926px) and (orientation: landscape) */
