/* Chargie Mobile CRO overrides — loaded last, mobile-first. */

/* ---- Header: single compact row on phones ---- */
@media (max-width: 767px) {
    .chargie-page .hero-logo-wrapper { display: none !important; }
    .chargie-page .nav { min-height: 56px; padding: 6px 0; gap: 8px; justify-content: space-between; }
    .chargie-page .nav .logo { opacity: 1 !important; max-width: 160px !important; }
    .chargie-page .logo-img { max-height: 34px; }
    .chargie-page .nav-toggle { position: static; transform: none; margin-left: auto; }
    .chargie-page .nav-cart { margin-left: 0; }
}

/* Header tagline (keyword) next to the logo on wide screens */
.chargie-page .nav .logo-tagline { display: none; font-size: 13px; color: #64748b; line-height: 1.2; max-width: 150px; }
@media (min-width: 900px) { .chargie-page .nav .logo.visible .logo-tagline { display: block; } }
/* Hydrated price spans inside buttons must flow as text, not as flex items */
[data-cro] { display: contents; }

/* ---- Cookie banner: slim strip above the buy bar, not a modal ---- */
@media (max-width: 767px) {
    #ccc-banner.ccc-banner { left: 8px !important; right: 8px !important; bottom: 66px !important; width: auto !important; }
    #ccc-banner .ccc-banner-inner { padding: 10px 12px !important; border-radius: 12px !important; }
    #ccc-banner #ccc-main-view .ccc-title { display: none; }
    #ccc-banner #ccc-main-view .ccc-description { font-size: 12px; line-height: 1.35; margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    #ccc-banner #ccc-main-view .ccc-policy-link { display: inline; margin: 0 8px 0 0; font-size: 12px; }
    #ccc-banner #ccc-main-view .ccc-actions { display: flex; gap: 6px; margin-top: 6px; }
    #ccc-banner .ccc-btn { padding: 8px 10px !important; font-size: 13px !important; }
    #ccc-overlay { display: none !important; }
}

/* ---- Sticky buy bar: one primary CTA + quiz link; chat bubble lifted above it ---- */
.mobile-buy-bar { padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); gap: 8px; }
.mobile-buy-bar .shop-now { flex: 1; justify-content: center; padding: 12px 12px; font-size: 15px; white-space: nowrap; border-radius: 10px; background: linear-gradient(135deg, #ff6b35, #f7931e); }
.chargie-page .mobile-buy-bar .buy-bar-which, .mobile-buy-bar .buy-bar-which { flex: 0 0 auto; background: #fff; color: #1e3a5f !important; border: 2px solid #e2e8f0; padding: 10px 12px; font-size: 14px; border-radius: 10px; }
@media (max-width: 767px) {
    .agentura-bubble, button.agentura-bubble { bottom: 76px !important; }
    #ccc-reconsent-btn { bottom: 84px !important; }
    body.chargie-page { padding-bottom: 68px; }
}

/* ---- Hero: CTA above the fold ---- */
.chargie-modern-wrapper .cm-hero-price-strip { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 18px; }
.chargie-modern-wrapper .cm-price-chip { display: inline-flex; align-items: baseline; gap: 8px; padding: 8px 14px; border-radius: 10px; background: #fff; border: 1px solid #e2e8f0; text-decoration: none; color: #1e3a5f; }
.chargie-modern-wrapper .cm-price-chip span { font-size: 14px; color: #64748b; }
.chargie-modern-wrapper .cm-price-chip strong { font-size: 18px; }
.chargie-modern-wrapper .cm-price-chip del { color: #94a3b8; font-weight: 400; font-size: 14px; margin-right: 4px; }
.chargie-modern-wrapper .cm-price-chip ins { text-decoration: none; }
.chargie-modern-wrapper .cm-price-chip .chargie-savings-badge { display: none; }
.chargie-modern-wrapper .cm-hero-proof { margin: 16px 0 8px; font-size: 14px; color: #475569; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chargie-modern-wrapper .cm-hero-stars { color: #f59e0b; letter-spacing: 1px; }
.chargie-modern-wrapper .cm-hero-quote { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid #ff6b35; background: #fff; border-radius: 0 10px 10px 0; font-size: 15px; color: #334155; }
.chargie-modern-wrapper .cm-hero-quote cite { display: block; font-style: normal; font-size: 13px; color: #64748b; margin-top: 4px; }
.chargie-modern-wrapper .cm-hero .cm-guarantee-badge { font-size: 14px; }
.chargie-modern-wrapper .cm-hero .cm-hero-developer { margin: 0 0 14px; padding: 12px 14px; max-width: 420px; width: auto; justify-content: flex-start; }
.chargie-modern-wrapper .cm-hero .cm-hero-developer .cm-developer-avatar { width: 48px; height: 48px; }
@media (max-width: 767px) {
    .chargie-modern-wrapper .cm-hero { min-height: 0; padding: 20px 20px 24px; }
    .chargie-modern-wrapper .cm-hero-badge { display: none; }
    .chargie-modern-wrapper .cm-hero h1 { font-size: 2.15rem; line-height: 1.12; margin-bottom: 10px; }
    .chargie-modern-wrapper .cm-hero-description { font-size: 15px; line-height: 1.45; margin-bottom: 12px; }
    .chargie-modern-wrapper .cm-hero-price-strip { margin-bottom: 12px; }
    .chargie-modern-wrapper .cm-price-chip { padding: 6px 12px; }
    .chargie-modern-wrapper .cm-hero-buttons { margin-bottom: 0; gap: 8px; }
    .chargie-modern-wrapper .cm-hero-buttons .cm-btn { width: 100%; justify-content: center; padding: 14px 16px; }
    .chargie-modern-wrapper .cm-hero-products-mobile { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 4px 0 14px; }
    .chargie-modern-wrapper .cm-hero-products-mobile a { flex: 0 1 46%; display: flex; justify-content: center; }
    .chargie-modern-wrapper .cm-hero-products-mobile .cm-product-hero-img { max-height: 120px; width: auto; max-width: 100%; }
    .chargie-modern-wrapper .cm-hero-proof { margin-top: 12px; }
    .chargie-modern-wrapper .cm-hero-visual { display: none; }
}

/* ---- Product cards: price + add to cart, single-line features ---- */
.chargie-modern-wrapper .cm-product-features li { display: block !important; text-align: left !important; padding: 8px 0 8px 26px !important; position: relative; line-height: 1.4; }
.chargie-modern-wrapper .cm-product-features li::before { content: "✓"; color: #22c55e; font-weight: 700; position: absolute; left: 2px; top: 8px; }
.chargie-modern-wrapper .cm-product-features li strong { display: inline !important; width: auto !important; margin-right: 2px; }
.chargie-modern-wrapper .cm-product-buy { padding: 16px 24px 4px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid #e2e8f0; }
.chargie-modern-wrapper .cm-product-price { font-size: 26px; font-weight: 800; color: #1e3a5f; }
.chargie-modern-wrapper .cm-product-price del { color: #94a3b8; font-weight: 400; font-size: 16px; margin-right: 6px; }
.chargie-modern-wrapper .cm-product-price ins, .chargie-modern-wrapper .cm-price-chip ins { text-decoration: none; background: none; }
.chargie-modern-wrapper .cm-product-add { flex: 1; justify-content: center; min-width: 140px; }
.chargie-modern-wrapper .cm-product-more { width: 100%; font-size: 14px; color: #64748b; text-decoration: none; }
@media (max-width: 767px) {
    .chargie-modern-wrapper #choose-chargie.cm-section { padding: 36px 20px; }
    .chargie-modern-wrapper #choose-chargie .cm-section-header { margin-bottom: 20px; }
    .chargie-modern-wrapper #choose-chargie .cm-section-title { font-size: 1.75rem; }
    .chargie-modern-wrapper .cm-product-card { padding: 20px 16px !important; }
    .chargie-modern-wrapper .cm-product-image img { max-height: 140px; width: auto; }
}

/* Offer: headline already carries the threshold, drop the duplicate pill on phones */
@media (max-width: 767px) { .chargie-modern-wrapper .cm-offer-shipping-badge, .chargie-modern-wrapper .cm-offer-icons { display: none; } }

.chargie-modern-wrapper .cm-product-buy-list { display: block; }
.chargie-modern-wrapper .cm-buy-row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "name price" "btn btn"; gap: 6px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f1f5f9; }
.chargie-modern-wrapper .cm-buy-row:last-of-type { border-bottom: 0; }
.chargie-modern-wrapper .cm-buy-name { grid-area: name; text-align: left; line-height: 1.25; }
.chargie-modern-wrapper .cm-buy-name strong { display: block; color: #1e3a5f; font-size: 16px; }
.chargie-modern-wrapper .cm-buy-name span { font-size: 14px; color: #64748b; }
.chargie-modern-wrapper .cm-buy-row .cm-product-price { grid-area: price; font-size: 22px; text-align: right; }
.chargie-modern-wrapper .cm-buy-row .cm-product-add { grid-area: btn; min-width: 0; }
@media (min-width: 768px) { .chargie-modern-wrapper .cm-buy-row { grid-template-columns: 1fr auto auto; grid-template-areas: "name price btn"; } .chargie-modern-wrapper .cm-buy-row .cm-product-add { padding: 10px 18px; } }

/* ---- Section rhythm: shorter page on phones ---- */
@media (max-width: 767px) {
    .chargie-modern-wrapper .cm-section { padding: 40px 20px; }
    .chargie-modern-wrapper .cm-section-header { margin-bottom: 24px; }
    .chargie-modern-wrapper .cm-section-title { font-size: 1.75rem; }
    .chargie-modern-wrapper .cm-section-description { font-size: 15px; }
    .chargie-modern-wrapper .cm-btn { padding: 13px 20px; font-size: 15px; }
}

/* ---- Deep-dive accordion ---- */
.chargie-modern-wrapper .cm-deep-dive { position: relative; z-index: 1; margin: 0 20px 24px; border: 1px solid #e2e8f0; border-radius: 16px; background: #fff; }
.cm-deep-dive > summary { list-style: none; cursor: pointer; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.cm-deep-dive > summary::-webkit-details-marker { display: none; }
.cm-deep-dive > summary span { font-weight: 700; font-size: 18px; color: #1e3a5f; }
.cm-deep-dive > summary span::after { content: " +"; color: #ff6b35; }
.cm-deep-dive[open] > summary span::after { content: " −"; }
.cm-deep-dive > summary small { font-size: 14px; color: #64748b; }
.cm-deep-dive-body { border-top: 1px solid #e2e8f0; }
@media (min-width: 768px) { .chargie-modern-wrapper .cm-deep-dive { max-width: 1200px; margin: 0 auto 40px; } }

/* ---- Founder card in the Europe section ---- */
.chargie-modern-wrapper #invented-europe .cm-developer { margin: 0 0 20px; justify-content: flex-start; }

/* ---- Minimum 14px body text on phones ---- */
@media (max-width: 767px) {
    .cm-section-label, .cm-hero-badge, .cm-trust-badge, .cm-badge, .cm-developer-label,
    .cm-product-seo-tagline, .cm-video-author, .cm-video-badge, .cm-video-duration, .cm-eu-text,
    .cm-comparison-label, .cm-highlight-tag, .cm-stat-detail, .cm-feature-text, .cm-feature-title,
    .cm-usecase-badge, .cm-green-stat-label, .cm-green-stat-desc, .cm-value-label, .cm-battery-label,
    .cm-battery-unit, .cm-battery-years, .cm-battery-status, .cm-control-hint, .cm-vs-badge,
    .cm-notable-customer-location, .cm-inventor-label, .cm-pcb-caption, .cm-ai-chat-note,
    .cm-production-caption, .cm-slider-value, .cm-savings-label, .cm-offer-auto-apply,
    .cm-video-stat-text { font-size: 14px !important; }
    .cm-feature-title { font-size: 16px !important; }
    .cm-hero-quote cite, .chargie-savings-badge, .cm-slider-labels span, .cm-ai-chat-prompts li, .cm-scenario-text p, .cm-shipping-item p { font-size: 14px !important; }
    .cm-overtemp-benefit h5, .cm-scenario-text h5 { font-size: 15px !important; }
}

/* ---- What Chargie Does: feature icon grid + feature pages ---- */
.chargie-modern-wrapper .cm-what-section { padding-top: 40px; padding-bottom: 40px; }
.chargie-modern-wrapper .cm-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.chargie-modern-wrapper .cm-feature-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; text-decoration: none; color: #1e3a5f; transition: border-color .2s, transform .2s; }
.chargie-modern-wrapper .cm-feature-tile:hover { border-color: #ff6b35; transform: translateY(-2px); text-decoration: none; }
.chargie-modern-wrapper .cm-feature-tile-icon { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,107,53,.1); color: #ff6b35; display: flex; align-items: center; justify-content: center; }
.chargie-modern-wrapper .cm-feature-tile-icon svg { width: 22px; height: 22px; }
.chargie-modern-wrapper .cm-feature-tile-title { font-weight: 700; font-size: 16px; line-height: 1.25; }
.chargie-modern-wrapper .cm-feature-tile-text { font-size: 14px; color: #64748b; line-height: 1.4; }
.chargie-modern-wrapper .cm-feature-tile::after { content: "Learn more →"; font-size: 13px; color: #ff6b35; font-weight: 600; margin-top: 2px; }
@media (max-width: 767px) {
    .chargie-modern-wrapper .cm-what-section { padding: 28px 16px 24px; }
    .chargie-modern-wrapper .cm-feature-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .chargie-modern-wrapper .cm-feature-tile { padding: 12px; gap: 4px; }
    .chargie-modern-wrapper .cm-feature-tile-icon { width: 34px; height: 34px; }
    .chargie-modern-wrapper .cm-feature-tile-title { font-size: 14px; }
    .chargie-modern-wrapper .cm-feature-tile-text { display: none; }
    .chargie-modern-wrapper .cm-feature-tile::after { font-size: 12px; }
}
.chargie-modern-wrapper .cm-feature-crumbs { position: relative; z-index: 1; padding: 12px 20px 0; font-size: 14px; color: #64748b; }
.chargie-modern-wrapper .cm-feature-crumbs a { color: #1e3a5f; }
.chargie-modern-wrapper .cm-feature-more .cm-section-title { text-align: center; margin-bottom: 24px; }
.chargie-modern-wrapper .cm-feature-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.cm-feature-page .cm-section:first-of-type h2.cm-section-title { font-size: 2.2rem; }
/* Feature pages: sections are visible even before/without the fade-in observer */
.cm-feature-page .cm-fade-in { opacity: 1 !important; transform: none !important; }

/* ---- Product page: compatibility at a glance (beside the price) ---- */
.cro-specs { margin: 12px 0 16px; padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc; font-size: 14px; }
.cro-specs-title { font-weight: 700; color: #1e3a5f; margin-bottom: 8px; }
.cro-specs dl { margin: 0; display: grid; gap: 6px; }
.cro-specs dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 8px; }
.cro-specs dt { color: #64748b; font-weight: 600; }
.cro-specs dd { margin: 0; color: #1e293b; }
@media (max-width: 480px) { .cro-specs dl > div { grid-template-columns: 1fr; gap: 2px; } }
/* Product page sticky bar: product name + price + real Add to cart */
.product-buy-bar { align-items: center; }
.product-buy-bar-info { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; color: #1e3a5f; }
.product-buy-bar-info strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product-buy-bar-info span { font-size: 15px; font-weight: 700; }
.product-buy-bar-info del { color: #94a3b8; font-weight: 400; font-size: 12px; margin-right: 4px; }
.product-buy-bar-info ins { text-decoration: none; background: none; }
.product-buy-bar-info .chargie-savings-badge { display: none; }
.product-buy-bar .product-buy-bar-btn { flex: 0 0 auto; border: 0; cursor: pointer; font: inherit; font-weight: 600; color: #fff; }
.product-buy-bar[hidden] { display: none !important; }
/* Sidebar cart note */
.cart-sidebar-note { font-size: 12px; color: #64748b; margin: 4px 0 10px; }

/* ---- Feature pages: science sections and charts ---- */
.chargie-modern-wrapper .cro-science { background: #fff; }
.chargie-modern-wrapper .cro-science-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.chargie-modern-wrapper .cro-science-text h3 { font-size: 1.15rem; color: #1e3a5f; margin: 18px 0 8px; }
.chargie-modern-wrapper .cro-science-text h3:first-child { margin-top: 0; }
.chargie-modern-wrapper .cro-science-text p { font-size: 16px; line-height: 1.65; color: #334155; margin-bottom: 12px; }
.chargie-modern-wrapper .cro-figure { margin: 0 0 28px; padding: 16px; border: 1px solid #e2e8f0; border-radius: 14px; background: #fff; }
.chargie-modern-wrapper .cro-figure figcaption { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.chargie-modern-wrapper .cro-figure figcaption strong { font-size: 15px; color: #1e293b; }
.chargie-modern-wrapper .cro-figure figcaption span { font-size: 13px; color: #64748b; }
.chargie-modern-wrapper .cro-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: #475569; margin-bottom: 6px; }
.chargie-modern-wrapper .cro-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.chargie-modern-wrapper svg.cro-chart, .cm-feature-page svg.cro-chart { width: 100% !important; height: auto !important; max-width: 100% !important; min-height: 0 !important; display: block; aspect-ratio: 640 / 300; }
.chargie-modern-wrapper .cro-chart .cro-tick { font-size: 12px; fill: #64748b; }
.chargie-modern-wrapper .cro-chart .cro-val { font-size: 12px; fill: #1e293b; font-weight: 600; }
.chargie-modern-wrapper .cro-chart .cro-axis { font-size: 12px; fill: #475569; }
.chargie-modern-wrapper .cro-chart rect:hover, .chargie-modern-wrapper .cro-chart circle:hover { opacity: .8; }
.chargie-modern-wrapper .cro-table { margin-top: 8px; font-size: 13px; }
.chargie-modern-wrapper .cro-table summary { cursor: pointer; color: #2563eb; }
.chargie-modern-wrapper .cro-table table { width: 100%; border-collapse: collapse; margin-top: 8px; }
.chargie-modern-wrapper .cro-table th, .chargie-modern-wrapper .cro-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #e2e8f0; }
.chargie-modern-wrapper .cro-source { font-size: 12px; color: #64748b; margin: 10px 0 0; line-height: 1.4; }
@media (max-width: 900px) { .chargie-modern-wrapper .cro-science-grid { grid-template-columns: 1fr; gap: 20px; } }
@media (max-width: 767px) { .chargie-modern-wrapper .cro-chart .cro-tick { font-size: 15px; } .chargie-modern-wrapper .cro-chart .cro-val, .chargie-modern-wrapper .cro-chart .cro-axis { font-size: 15px; } .chargie-modern-wrapper .cro-figure { padding: 12px; } }

#science .cro-figure .cro-chart-box { position: relative; width: 100%; aspect-ratio: 640 / 300; }
#science .cro-figure .cro-chart-box svg.cro-chart { position: absolute !important; inset: 0 !important; width: 100% !important; height: 100% !important; max-width: none !important; max-height: none !important; }
