/* ============================================================ Shipping click-through pretest — shared styles for the `decision` and `outro` apps. Adapted from studies/23-shipping/software/_static/global/css/shipping.css, with all voice-pill / busy-overlay / approval-panel styling dropped (nothing here records or transcribes) and a `.choice-buttons` / `.choice-btn` pair added for the click UI. ============================================================ */ @keyframes page-in { from { opacity: 0; } to { opacity: 1; } } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif; background: #f0f0f2; color: #111; animation: page-in 0.25s ease; } .otree-title { display: none !important; } /* ── Page wrapper ─────────────────────────────────────────── */ .r-page { max-width: 680px; margin: 0 auto; padding: 28px 16px 40px; } .r-progress { height: 3px; background: #e5e7eb; border-radius: 99px; overflow: hidden; margin-bottom: 6px; } .r-progress-fill { height: 100%; background: #3b82f6; border-radius: 99px; transition: width .3s; } .r-meta { display: flex; justify-content: space-between; font-size: .78rem; color: #9ca3af; margin-bottom: 20px; } /* ── Cards ────────────────────────────────────────────────── */ .r-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.05); padding: 24px; margin-bottom: 12px; } .r-card h2 { font-size: 1.1rem; font-weight: 700; color: #111; margin: 0 0 12px; } .r-card p { font-size: .92rem; color: #4b5563; line-height: 1.65; margin: 0 0 10px; } .r-card p:last-child { margin: 0; } .r-card-label { font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #9ca3af; margin-bottom: 14px; } .r-card.emphasis { border-left: 3px solid #3b82f6; background: #f8fbff; } .bonus-callout { font-weight: 700; color: #1d4ed8; } /* ── Results payoff breakdown ────────────────────────────── */ .payoff { margin-top: 4px; } .payoff-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid #f3f4f6; font-size: .92rem; color: #4b5563; } .payoff-row .amount { font-variant-numeric: tabular-nums; white-space: nowrap; } .payoff-row.total { border-bottom: none; border-top: 2px solid #e5e7eb; margin-top: 4px; padding-top: 12px; font-size: 1.1rem; font-weight: 800; color: #111; } .payoff-row.total .amount { color: #1d4ed8; } .payoff-note { margin-top: 14px; font-size: .85rem; color: #9ca3af; } /* ── Intro / step lists ──────────────────────────────────── */ .intro-card { background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 2px 8px rgba(0,0,0,.05); padding: 28px 24px; margin-bottom: 12px; } .intro-card h2 { font-size: 1.1rem; font-weight: 700; color: #111; margin: 0 0 12px; } .intro-card p { font-size: .92rem; color: #4b5563; line-height: 1.65; margin: 0 0 10px; } .step-list { list-style: none; padding: 0; margin: 12px 0 0; } .step-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-size: .9rem; color: #4b5563; border-bottom: 1px solid #f3f4f6; line-height: 1.5; } .step-list li:last-child { border-bottom: none; } .step-num { flex-shrink: 0; width: 20px; height: 20px; border-radius: 50%; background: #eff6ff; color: #3b82f6; font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-top: 2px; } /* ── Delivery-history chart + table ──────────────────────── */ .delivery-chart { width: 100%; height: 300px; margin: 4px 0 8px; } /* Compact reminder chart */ .example-mini { width: 100%; height: 130px; margin: 2px 0 6px; } .chart-caption { font-size: .8rem; color: #9ca3af; line-height: 1.5; margin: 0 0 4px; } .delivery-table { width: 100%; border-collapse: collapse; font-size: .86rem; } .delivery-table caption { caption-side: top; text-align: left; font-size: .7rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: #9ca3af; margin-bottom: 10px; } .delivery-table th, .delivery-table td { border: 1px solid #e5e7eb; padding: 8px 10px; text-align: center; } .delivery-table thead th { background: #f9fafb; font-weight: 600; color: #374151; } .delivery-table tbody th { background: #f9fafb; font-weight: 600; } .delivery-table td.unknown { color: #c7cad1; font-weight: 700; } /* Blank cell on the pre-reveal screen: no value, no "?" */ .delivery-table td.blank { background: #fafafb; } .delivery-table td.blank::after { content: "\00a0"; } .delivery-table td.revealed-new { background: #ecfdf5; color: #047857; font-weight: 700; } .company-a { color: #2563eb; } .company-b { color: #d97706; } /* ── Action banner (click instruction) ───────────────────── */ .action-banner { background: #dbeafe; border: 1px solid #93c5fd; border-radius: 10px; padding: 18px 22px; margin: 18px 0 4px; text-align: center; } .action-banner p { font-size: .82rem; color: #3b82f6; margin: 0 0 6px; } .action-banner p:last-child { margin: 0; } p.say-this { font-size: 1.5rem; font-weight: 700; line-height: 1.4; color: #3b82f6; } /* Quieter variant: used where the click instruction should not compete with the choice buttons for attention (e.g. FinalDecision). */ p.say-this-quiet { font-size: .92rem; font-weight: 500; line-height: 1.5; color: #6b7280; } /* Staged entrance on ChoiceSet: the blue instruction pops in first, the table card fades in about a second later. */ @keyframes vi-pop { 0% { opacity: 0; transform: scale(0.96) translateY(6px); } 100% { opacity: 1; transform: scale(1) translateY(0); } } @keyframes card-in { 0% { opacity: 0; transform: translateY(12px); } 100% { opacity: 1; transform: translateY(0); } } .action-banner.animate-in { animation: vi-pop 0.35s ease-out both; } .r-card.reveal-delayed { animation: card-in 0.45s ease-out 0.9s both; } @media (prefers-reduced-motion: reduce) { .action-banner.animate-in, .r-card.reveal-delayed { animation: none; } } /* ── Choice buttons (Company A / Company B) ──────────────── */ .choice-buttons { display: flex; gap: 12px; margin-top: 18px; } .choice-btn { flex: 1; padding: 14px 16px; border-radius: 8px; border: none; background: #3b82f6; color: #fff; font-size: .95rem; font-weight: 500; cursor: pointer; box-shadow: 0 1px 3px rgba(59,130,246,.45); transition: background .15s, box-shadow .15s; } .choice-btn:hover:not(:disabled) { background: #2563eb; } .choice-btn:active:not(:disabled) { transform: scale(.98); } .choice-btn:disabled { cursor: not-allowed; opacity: .5; } .choice-btn.selected { box-shadow: 0 3px 10px rgba(59,130,246,.6); } /* ── Ratings panel (7-point) ────────────────────────────── */ #ratings-panel { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -4px 24px rgba(0,0,0,.10); padding: 20px 64px 32px; transform: translateY(100%); transition: transform 0.15s ease; z-index: 1002; } #ratings-panel.visible { transform: translateY(0); } .ratings-progress { height: 3px; background: #e5e7eb; border-radius: 99px; overflow: hidden; margin-bottom: 20px; } .ratings-progress-fill { height: 100%; background: #3b82f6; border-radius: 99px; transition: width 0.25s ease; } .ratings-question { font-size: 1.15rem; font-weight: 700; color: #111; text-align: center; margin-bottom: 16px; line-height: 1.35; } .ratings-anchors { display: flex; justify-content: space-between; font-size: .78rem; font-weight: 500; color: #374151; margin-bottom: 8px; padding: 0 2px; } .ratings-scale { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; } .rating-btn { aspect-ratio: 1; border-radius: 6px; border: 1px solid #e5e7eb; background: #fff; font-size: .82rem; font-weight: 500; color: #6b7280; cursor: pointer; transition: all .12s; display: flex; align-items: center; justify-content: center; } .rating-btn:hover { background: #eff6ff; border-color: #93c5fd; color: #1d4ed8; } .rating-btn.selected { background: #3b82f6; border-color: #3b82f6; color: #fff; } /* ── Comprehension radios ───────────────────────────────── */ .cq-question { font-size: .95rem; font-weight: 700; color: #111; margin-bottom: 16px; line-height: 1.45; } .cq-options { display: flex; flex-direction: column; gap: 8px; } .cq-option { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border: 1.5px solid #e5e7eb; border-radius: 8px; cursor: pointer; font-size: .88rem; color: #374151; line-height: 1.45; transition: border-color .15s, background .15s; user-select: none; } .cq-option:hover { border-color: #93c5fd; background: #f0f7ff; } .cq-option.selected { border-color: #3b82f6; background: #eff6ff; color: #1d4ed8; } .cq-option input[type="radio"] { margin-top: 3px; flex-shrink: 0; accent-color: #3b82f6; } .r-field-group { margin-top: 20px; } .r-field-group:first-child { margin-top: 0; } /* ── Reveal options (InfoPurchase) ──────────────────────── */ .reveal-options { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; } .reveal-option { cursor: pointer; user-select: none; } .reveal-option input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; } .reveal-option-box { display: flex; align-items: center; justify-content: center; min-width: 46px; padding: 10px 14px; border: 1.5px solid #e5e7eb; border-radius: 8px; font-weight: 700; color: #374151; transition: all .12s; } .reveal-option:hover .reveal-option-box { border-color: #93c5fd; background: #f0f7ff; } .reveal-option.selected .reveal-option-box { border-color: #3b82f6; background: #3b82f6; color: #fff; } .running-bonus { margin-top: 18px; padding: 14px 18px; background: #f9fafb; border-radius: 8px; font-size: .9rem; color: #374151; } .running-bonus strong { color: #1d4ed8; } /* ── Text / number inputs (outro) ───────────────────────── */ .r-input, .r-textarea { width: 100%; padding: 10px 14px; border: 1.5px solid #e5e7eb; border-radius: 8px; font-size: .88rem; color: #111; background: #fff; box-sizing: border-box; outline: none; font-family: inherit; transition: border-color .15s; } .r-textarea { resize: vertical; min-height: 80px; } .r-input:focus, .r-textarea:focus { border-color: #3b82f6; } .r-label { display: block; font-size: .92rem; font-weight: 600; color: #111; margin-bottom: 10px; } /* ── Buttons ────────────────────────────────────────────── */ .btn-center { text-align: center; margin-top: 24px; } .text-center { text-align: center; } .otree-btn-next { display: inline-flex; align-items: center; padding: 10px 28px; border-radius: 8px; font-size: .88rem; font-weight: 500; border: none; cursor: pointer; background: #3b82f6; color: #fff; box-shadow: 0 1px 3px rgba(59,130,246,.45); transition: background .15s; } .otree-btn-next:hover { background: #2563eb; } .otree-btn-next:disabled { opacity: .5; cursor: not-allowed; } /* ── Responsive ─────────────────────────────────────────── */ @media (max-width: 480px) { #ratings-panel { padding: 20px 20px 28px; } .choice-buttons { flex-direction: column; } }