/**
 * Single Offer Page Styles
 * Description: Core layout + mobile stacking. Element reordering handled by JS.
 */

.tso-offer-layout-screenshot { background: #f8fafc; padding: 24px 0 60px; font-family: 'Inter', sans-serif; color: #0f172a; }
.tso-offer-layout-screenshot *, .tso-offer-layout-screenshot *::before, .tso-offer-layout-screenshot *::after { box-sizing: border-box; }

/* 1. Breadcrumbs */
.tso-shot-breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #64748b; margin-bottom: 20px; flex-wrap: wrap; }
.tso-shot-breadcrumbs a { color: #08183a; font-weight: 500; text-decoration: none; }
.tso-shot-breadcrumbs a:hover { color: #0066ff; }
.tso-shot-breadcrumbs .tso-sep { color: #94a3b8; font-size: 12px; }
.tso-shot-breadcrumbs .tso-current { color: #08183a; font-weight: 600; }

/* 2. Top Summary Grid */
.tso-top-summary-grid { display: grid; grid-template-columns: 2.2fr 1fr; gap: 20px; margin-bottom: 20px; }
.tso-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 24px; box-shadow: 0 4px 15px rgba(8, 24, 58, 0.04); }
.tso-card-label { font-size: 14px; font-weight: 700; color: #08183a; margin-bottom: 16px; display: block; }

/* 3. Summary Split */
.tso-summary-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: stretch; }
.tso-summary-info { display: flex; flex-direction: column; justify-content: space-between; }
.tso-brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 12px; }
.tso-brand-circle { width: 48px; height: 48px; border-radius: 50%; object-fit: contain; background: #fff; border: 1px solid #e2e8f0; padding: 4px; }
.tso-brand-pill { background: #f1f5f9; padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 700; color: #08183a; }
.tso-title-stack h1 { font-size: 1.45rem; font-weight: 800; color: #08183a; margin: 0 0 4px; line-height: 1.25; }
.tso-updated-text { font-size: 11px; color: #64748b; }

/* 4. Price & Action Buttons */
.tso-price-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.tso-price-figure { font-size: 2.4rem; font-weight: 800; color: #08183a; font-family: 'Poppins', sans-serif; line-height: 1; }
.tso-action-mini-btns { display: flex; gap: 6px; }
.tso-btn-mini { background: #f1f5f9; border: 1px solid #cbd5e1; color: #475569; width: 32px; height: 32px; border-radius: 6px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .2s ease; font-size: 13px; }
.tso-btn-mini:hover { background: #0066ff; color: #fff; border-color: #0066ff; }
.tso-report-btn:hover { background: #ef4444; border-color: #ef4444; }

/* 5. Pills & Metrics */
.tso-yellow-pills { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.tso-pill { background: #fef08a; color: #854d0e; font-size: 10px; font-weight: 800; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; letter-spacing: .4px; }
.tso-metric-strip { display: grid; gap: 10px; background: #f8fafc; padding: 12px; border-radius: 8px; border: 1px solid #e2e8f0; }
.tso-metric-box { text-align: center; }
.tso-metric-box strong { display: block; font-size: 16px; font-weight: 800; color: #08183a; }
.tso-metric-box span { font-size: 11px; color: #64748b; font-weight: 500; }

/* 6. Activation Block */
.tso-activation-yellow-block { background: #fbbf24; border-radius: 10px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; text-align: center; }
.tso-act-header { font-size: 14px; font-weight: 700; color: #08183a; margin-bottom: 10px; display: block; }
.tso-act-input-row { background: #ffffff; border-radius: 6px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 6px rgba(0,0,0,0.06); margin-bottom: 8px; }
.tso-act-code { font-size: 20px; font-weight: 800; color: #08183a; font-family: monospace; letter-spacing: 1px; }
.tso-copy-btn { color: #08183a; font-size: 16px; background: none; border: none; cursor: pointer; padding: 2px 6px; }
.tso-copy-btn:hover { color: #0066ff; }
.tso-act-note { font-size: 11px; color: #78350f; line-height: 1.35; margin: 0 0 12px; }
.tso-act-apps-box { background: rgba(255, 255, 255, 0.45); border: 1px solid rgba(120, 53, 15, 0.2); border-radius: 6px; padding: 10px; margin-bottom: 12px; text-align: left; }
.tso-act-apps-label { font-size: 10px; font-weight: 800; color: #78350f; text-transform: uppercase; display: block; margin-bottom: 6px; }
.tso-act-apps-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tso-act-app-pill { background: #ffffff; border: 1px solid rgba(120, 53, 15, 0.15); padding: 3px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; color: #08183a; display: inline-flex; align-items: center; gap: 5px; }
.tso-micro-logo { border-radius: 3px; object-fit: contain; }
.tso-btn-blue { background: #003882; color: #ffffff !important; font-size: 13px; font-weight: 700; padding: 10px 14px; border-radius: 6px; text-decoration: none !important; display: block; margin-bottom: 8px; transition: background .2s ease; }
.tso-btn-blue:hover { background: #00265c; }
.tso-btn-white { background: #ffffff; color: #08183a !important; border: 1px solid #d97706; font-size: 12px; font-weight: 700; padding: 8px 12px; border-radius: 6px; text-decoration: none !important; display: block; }

/* 7. Graph Card */
.tso-graph-card { display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.tso-graph-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; position: relative; z-index: 2; }
.tso-graph-header h2 { font-size: 14px; font-weight: 700; margin: 0; color: #08183a; }
.tso-graph-header span { font-size: 11px; color: #64748b; }
.tso-chart-wrap { flex: 1; min-height: 180px; position: relative; }
.tso-blurred-graph-container { position: relative; height: 180px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 8px; }
.tso-dummy-blurred-svg { position: absolute; width: 100%; height: 100%; filter: blur(4px); opacity: 0.35; pointer-events: none; }
.tso-blurred-overlay-card { position: relative; z-index: 3; background: rgba(255, 255, 255, 0.95); border: 1px solid #e2e8f0; box-shadow: 0 4px 16px rgba(8, 24, 58, 0.08); padding: 16px 20px; border-radius: 10px; text-align: center; max-width: 90%; }
.tso-blurred-overlay-card i { font-size: 20px; color: #0066ff; margin-bottom: 6px; }
.tso-blurred-overlay-card strong { display: block; font-size: 13px; color: #08183a; line-height: 1.3; }
.tso-blurred-overlay-card span { display: block; font-size: 11px; color: #64748b; margin-top: 3px; }

/* 8. Discount Box */
.tso-discount-box { margin-bottom: 20px; background: #fffdf5; border: 2px solid #fde68a; border-radius: 12px; padding: 16px 20px; box-shadow: 0 4px 12px rgba(245, 158, 11, 0.05); }
.tso-disc-badge { display: inline-block; background: #d97706; color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; padding: 3px 10px; border-radius: 4px; margin-bottom: 10px; }
.tso-disc-price-row { margin-bottom: 10px; display: flex; align-items: baseline; gap: 8px; }
.tso-disc-tag { font-size: 13px; color: #78350f; font-weight: 600; }
.tso-disc-val { font-size: 22px; color: #b45309; font-weight: 800; font-family: 'Poppins', sans-serif; }
.tso-disc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; font-size: 13px; }
.tso-disc-item span { display: block; color: #92400e; font-size: 11px; text-transform: uppercase; font-weight: 600; margin-bottom: 2px; }
.tso-disc-item strong { color: #451a03; }
.tso-disc-item code { background: #fef3c7; color: #b45309; padding: 3px 8px; border-radius: 4px; font-weight: 700; }

/* 9. Middle Grid Layout */
.tso-middle-grid {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 20px;
    align-items: start;
}
.tso-shot-table { width: 100%; border-collapse: collapse; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; }
.tso-shot-table td { padding: 12px 18px; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.tso-shot-table td:first-child { width: 38%; font-weight: 600; color: #08183a; background: #fbfcfd; }
.tso-shot-table code { background: #e0edff; color: #0066ff; padding: 3px 8px; border-radius: 4px; font-weight: 700; }
.tso-organic-content { margin-top: 28px; font-size: 15px; line-height: 1.85; color: #334155; }

/* 10. VFM Card & Price Alert */
.tso-vfm-card { background: #ffffff; border: 1px solid #fde68a; border-radius: 12px; padding: 20px; box-shadow: 0 4px 12px rgba(8, 24, 58, 0.03); margin-bottom: 20px; }
.tso-vfm-top-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid #fef3c7; }
.tso-vfm-icon { width: 44px; height: 44px; background: #e0edff; color: #003882; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.tso-vfm-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.tso-vfm-row { background: #fffdf5; padding: 8px 12px; border-radius: 6px; border: 1px solid #fef08a; }
.tso-vfm-metric { font-size: 15px; font-weight: 800; color: #08183a; font-family: 'Poppins', sans-serif; line-height: 1.2; }
.tso-vfm-desc { font-size: 11px; color: #78350f; margin-top: 2px; }
.tso-vfm-bar { height: 4px; background: #fbbf24; border-radius: 2px; }

.tso-price-alert-widget { background: #08183a; color: #fff; border-radius: 12px; padding: 20px; text-align: center; }
.tso-price-alert-widget h3 { color: #fff; font-size: 16px; margin: 0 0 8px; }
.tso-price-alert-widget p { font-size: 12px; color: #94a3b8; margin-bottom: 14px; line-height: 1.4; }
.tso-alert-form { display: flex; flex-direction: column; gap: 10px; }
.tso-alert-form input { padding: 10px 14px; border-radius: 6px; border: 1px solid #1e293b; background: #0f172a; color: #fff; font-size: 13px; outline: none; }
.tso-alert-form button { padding: 10px; border-radius: 6px; background: #0066ff; color: #fff; font-weight: 700; font-size: 13px; border: none; cursor: pointer; transition: background .2s; }
.tso-alert-form button:hover { background: #0052cc; }
.tso-alert-msg { font-size: 12px; margin-top: 10px; display: none; }
.tso-alert-msg.success { color: #4ade80; display: block; }
.tso-alert-msg.error { color: #f87171; display: block; }

/* 11. Compare Table & Accordion */
.tso-sec-title { font-size: 1.25rem; font-weight: 800; color: #08183a; margin: 0 0 16px; }
.tso-table-scroll { overflow-x: auto; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; }
.tso-compare-table { width: 100%; border-collapse: collapse; font-size: 13px; text-align: left; }
.tso-compare-table th { background: #f8fafc; color: #08183a; font-weight: 700; padding: 12px 16px; border-bottom: 1px solid #e2e8f0; white-space: nowrap; }
.tso-compare-table td { padding: 12px 16px; border-bottom: 1px solid #f1f5f9; white-space: nowrap; }
.tso-current-row td { background: #f0f7ff; }
.tso-badge-current { background: #0066ff; color: #ffffff; padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.tso-link-more { color: #0066ff; font-weight: 600; text-decoration: none; }

.tso-acc-item { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 10px; overflow: hidden; }
.tso-acc-head { padding: 14px 18px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; list-style: none; user-select: none; }
.tso-acc-head h3 { font-size: 14px; font-weight: 700; color: #08183a; margin: 0; }
.tso-acc-head::-webkit-details-marker { display: none; }
.tso-acc-body { padding: 0 18px 16px; font-size: 13px; color: #475569; line-height: 1.6; }

/* 12. Related Grid */
.tso-related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tso-related-card { background: #ffffff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 18px; box-shadow: 0 2px 8px rgba(8, 24, 58, 0.03); transition: transform .2s ease; }
.tso-related-card:hover { transform: translateY(-3px); box-shadow: 0 6px 18px rgba(8, 24, 58, 0.08); }
.tso-related-card h4 { font-size: 14px; font-weight: 700; margin: 0 0 8px; }
.tso-related-card h4 a { color: #08183a; text-decoration: none; }
.tso-related-card h4 a:hover { color: #0066ff; }
.tso-related-price { font-size: 18px; font-weight: 800; color: #08183a; font-family: 'Poppins', sans-serif; margin-bottom: 4px; }
.tso-related-valid { font-size: 11px; color: #64748b; display: block; margin-bottom: 12px; }
.tso-related-link { font-size: 12px; font-weight: 700; color: #0066ff; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }

/* 13. Responsive */
@media(max-width: 1024px) {
    .tso-top-summary-grid { grid-template-columns: 1fr !important; }
    .tso-summary-split { grid-template-columns: 1fr !important; gap: 20px; }
    .tso-disc-grid { grid-template-columns: 1fr !important; }
    .tso-middle-grid { grid-template-columns: 1fr !important; gap: 20px; }
    .tso-related-grid { grid-template-columns: repeat(2, 1fr); }
    /* Spacing between reordered blocks (JS moves them, gap won't apply across parent) */
    .tso-organic-content { margin-top: 0 !important; }
    .tso-vfm-card { margin-bottom: 20px !important; }
    .tso-price-alert-widget { margin-bottom: 20px !important; }
    .tso-calculator-wrap { margin-top: 0 !important; }
}
@media(max-width: 768px) {
    .tso-offer-layout-screenshot { padding: 12px 0 40px; }
    .tso-price-figure { font-size: 2rem; }
    .tso-shot-table td:first-child { width: 45%; }
    .tso-related-grid { grid-template-columns: 1fr; }
    .tso-card { padding: 16px; }
}