/*
 * Teachers CSS Bundle: sale-widget.bundle.css
 * Auto-generated by scripts/bundle_teachers_css.py
 * DO NOT EDIT - Edit source files instead
 *
 * Sources: sale-widget-base.css, sale-widget-desktop.css, sale-widget-tablet.css, sale-widget-mobile.css, sale-widget-landscape.css
 */

/* === sale-widget-base.css === */

/* ======================================================================
 * sale-widget-base.css
 *
 * Teachers launch-special popup + lower-left persistent widget.
 * NO media queries here — all component/visual styling lives here and
 * applies to every viewport. Layout tweaks live in the viewport files.
 * ====================================================================== */

/* ── Popup overlay (full-screen modal shown on first visit) ────────── */
.t-sale-popup-overlay {
    position: fixed; inset: 0;
    background: rgba(26, 32, 44, 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;
}
.t-sale-popup-overlay.active {
    opacity: 1; pointer-events: auto;
}

.t-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;
}
.t-sale-popup-overlay.active .t-sale-popup {
    transform: translateY(0); opacity: 1;
}

.t-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;
}
.t-sale-popup-close:hover { color: #2d3748; }

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

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

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

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

.t-sale-popup-cta {
    display: block; width: 100%;
    padding: 13px 18px;
    background: linear-gradient(135deg, #d4a017 0%, #b8860b 100%);
    color: #fff; text-decoration: none; text-align: center;
    border-radius: 10px;
    font-size: 0.98rem; font-weight: 700;
    letter-spacing: 0.01em;
    box-shadow: 0 6px 18px rgba(184, 134, 11, 0.35);
    transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
}
.t-sale-popup-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(184, 134, 11, 0.42);
}

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

/* Minimized: a circular button with the logo + discount badge */
.t-sale-widget-toggle {
    position: relative;
    width: 56px; height: 56px;
    border: 0; border-radius: 50%;
    background: linear-gradient(135deg, #d4a017 0%, #b8860b 100%);
    box-shadow: 0 8px 20px rgba(184, 134, 11, 0.45);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    padding: 0;
}
.t-sale-widget-toggle:hover { transform: scale(1.05); }
.t-sale-widget-icon-wrap {
    width: 34px; height: 34px;
    background: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.t-sale-widget-icon-logo {
    height: 22px; width: auto;
}
.t-sale-widget-badge {
    position: absolute;
    top: -4px; right: -6px;
    background: #c53030; color: #fff;
    font-size: 11px; font-weight: 800;
    padding: 2px 6px;
    border-radius: 10px;
    border: 2px solid #fff;
    min-width: 30px; text-align: center;
}

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

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

/* Expanded: mini card with countdown + CTA */
.t-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;
}
.t-sale-widget-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #d4a017 0%, #b8860b 100%);
    color: #fff;
}
.t-sale-widget-title {
    font-size: 0.95rem; font-weight: 800; line-height: 1.2;
}
.t-sale-widget-sub {
    font-size: 0.7rem; opacity: 0.9; margin-top: 2px;
    letter-spacing: 0.03em; text-transform: uppercase;
}
.t-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;
}
.t-sale-widget-minimize:hover { background: rgba(255,255,255,0.32); }

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

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

.t-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;
}
.t-sale-widget-cta:hover { background: #2d3748; }

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


/* === sale-widget-desktop.css === */

/* sale-widget-desktop.css — layout tweaks for desktop (≥1025px). */
@media (min-width: 1025px) {
    .t-sale-popup { max-width: 520px; padding: 32px 32px 24px; }
    .t-sale-popup-headline { font-size: 1.55rem; }
    .t-sale-widget { bottom: 24px; left: 24px; }
    .t-sale-widget-panel { width: 300px; }
}


/* === sale-widget-tablet.css === */

/* sale-widget-tablet.css — tablet overrides (769–1024px). */
@media (min-width: 769px) and (max-width: 1024px) {
    .t-sale-popup { max-width: 480px; padding: 26px; }
    .t-sale-popup-headline { font-size: 1.3rem; }
    .t-sale-widget-panel { width: 280px; }
}


/* === sale-widget-mobile.css === */

/* sale-widget-mobile.css — mobile portrait (≤768px, portrait). */
@media (max-width: 768px) and (orientation: portrait) {
    .t-sale-popup-overlay { padding: 12px; }
    .t-sale-popup { padding: 22px 20px 18px; border-radius: 14px; }
    .t-sale-popup-headline { font-size: 1.2rem; }
    .t-sale-popup-sub { font-size: 0.95rem; }
    .t-sale-popup-body { font-size: 0.88rem; }
    .t-sale-popup-row { flex-direction: column; gap: 8px; }
    .t-sale-popup-countdown, .t-sale-popup-code { padding: 8px 10px; }
    .t-sale-countdown-timer, .t-sale-code-value { font-size: 1rem; }

    .t-sale-widget { bottom: 14px; left: 14px; }
    .t-sale-widget-toggle { width: 52px; height: 52px; }
    .t-sale-widget-panel { width: calc(100vw - 28px); max-width: 320px; }
    .t-sale-widget-title { font-size: 0.9rem; }
}


/* === sale-widget-landscape.css === */

/* sale-widget-landscape.css — mobile landscape (≤926px, landscape). */
@media (max-width: 926px) and (orientation: landscape) {
    .t-sale-popup-overlay { padding: 10px; }
    .t-sale-popup {
        max-width: 540px; padding: 18px 20px 16px;
        max-height: 92vh; overflow-y: auto;
    }
    .t-sale-popup-headline { font-size: 1.1rem; margin-bottom: 4px; }
    .t-sale-popup-sub { font-size: 0.88rem; margin-bottom: 8px; }
    .t-sale-popup-body { font-size: 0.82rem; margin-bottom: 8px; }
    .t-sale-popup-signoff { margin-bottom: 10px; }
    .t-sale-popup-row { margin-bottom: 10px; }
    .t-sale-popup-cta { padding: 10px 14px; font-size: 0.9rem; }

    .t-sale-widget { bottom: 12px; left: 12px; }
    .t-sale-widget-toggle { width: 48px; height: 48px; }
    .t-sale-widget-panel { width: 260px; }
}
