/* OnlySecurity course promotions: card line, course page box, trainer page. */

/* The chip on its own (learner Rewards Hub rows). Inside a Ticket it turns gold, below. */
.os-cp-chip { font: 700 11.5px/1.3 ui-monospace, Menlo, monospace; letter-spacing: .03em; background: #fff; border: 1px solid #f59e0b; border-radius: 4px; padding: 1px 5px; }

/*
 * DEV-524 Ticket design (operator, 2026-11-25: "A Ticket (Recommended)"): navy
 * with the gold edge of the Black Friday gold ticket, a gold percentage and
 * code, one sheen pass when it first comes into view (promos.js adds is-seen),
 * a meter that empties as places go. Reads on the light archive and the dark
 * homepage stage alike. No loops; reduced motion turns all motion off.
 */
.os-cp-line, .os-cp-box { position: relative; overflow: hidden; border-radius: 10px; background: linear-gradient(150deg, #0b1020, #1c2547); border: 1px solid rgba(252,185,0,.55); color: #e6edf6; }
.os-a-card .os-cp-line { margin: 8px 0 2px; padding: 9px 11px 10px; font-size: 12.5px; line-height: 1.35; font-weight: 500; }
.os-cp-top, .os-cp-box .os-cp-bh { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.os-cp-ic { flex: 0 0 auto; display: inline-flex; color: #fcb900; }
.os-cp-ic svg { display: block; }
.os-cp-top b, .os-cp-bh b { font-weight: 800; font-size: 15px; color: #fcb900; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.os-cp-line .os-cp-chip, .os-cp-box .os-cp-chip { letter-spacing: .05em; color: #fde68a; background: rgba(252,185,0,.12); border: 1px solid rgba(252,185,0,.6); border-radius: 5px; padding: 1px 6px; }
.os-cp-foot { display: flex; align-items: center; gap: 8px; margin-top: 7px; color: #b6c2d4; font-size: 12px; }
.os-cp-foot b { color: #fff; font-variant-numeric: tabular-nums; }
.os-cp-foot span { white-space: nowrap; }
.os-cp-foot .os-cp-when { margin-left: auto; }
.os-cp-when { font-variant-numeric: tabular-nums; }
.os-cp-meter { flex: 1 1 40px; min-width: 40px; height: 4px; border-radius: 99px; overflow: hidden; background: rgba(255,255,255,.14); }
.os-cp-meter i { display: block; height: 100%; border-radius: inherit; background: #fcb900; }
.os-cp-line::after, .os-cp-box::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,.16) 50%, transparent 65%); transform: translateX(-120%); pointer-events: none; }
.os-cp-line.is-seen::after, .os-cp-box.is-seen::after { animation: os-cp-sheen 3.2s ease-out .4s 2; }
.is-seen .os-cp-meter i { animation: os-cp-fill .7s cubic-bezier(.2,.7,.2,1) .15s both; }
@keyframes os-cp-sheen { to { transform: translateX(120%); } }
@keyframes os-cp-fill { from { width: 0; } }

.os-cp-box { margin-top: 14px; padding: 13px 14px; font-size: 13px; line-height: 1.45; }
.os-cp-box .os-cp-bh b { font-size: 20px; }
.os-cp-box .os-cp-chip { font-size: 13px; padding: 2px 7px; }
.os-cp-body { margin-top: 6px; color: #dbe4f0; }
.os-cp-body b { color: #fff; }
.os-cp-box .os-cp-small { margin-top: 7px; font-size: 12px; color: #b6c2d4; }
.os-h-dark .os-cp-line { box-shadow: 0 0 0 4px rgba(252,185,0,.08); }

.os-cp-expired { display: none !important; }

.os-cp-dash .os-cp-h { margin: 0 0 6px; }
.os-cp-dash .os-cp-sub { color: #5d6574; margin: 0 0 16px; }
.os-cp-panel { background: #fff; color: #1f2430; border: 1px solid #e1e5eb; border-radius: 12px; padding: 22px 24px; max-width: 760px; }
/* The trainer dashboard runs a dark theme that sets light text on headings and labels; the panel is light, so pin its text dark. */
.os-cp-panel h3, .os-cp-panel b, .os-cp-panel label, .os-cp-panel .os-cp-sub,
[data-tutor-theme] .tutor-dashboard-page .os-cp-panel h3 { color: #1f2430; } /* the second selector outranks the dark theme's heading rule */
.os-cp-panel small, .os-cp-panel .os-cp-f { color: #5d6574; }
.os-cp-panel h3 { margin: 0 0 4px; font-size: 18px; }
.os-cp-opt { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #e1e5eb; border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; }
.os-cp-opt:has(input:checked) { border-color: #1660d6; background: #f3f7ff; box-shadow: 0 0 0 1px #1660d6 inset; }
.os-cp-opt input[type="radio"] { margin-top: 4px; }
.os-cp-opt b { display: block; }
.os-cp-opt small { display: block; color: #5d6574; }
.os-cp-fields { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.os-cp-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #5d6574; }
.os-cp-f select, .os-cp-f input { min-width: 130px; min-height: 40px; padding: 7px 10px; border: 1px solid #cfd5de; border-radius: 7px; font-size: 14px; color: #1f2430; }
.os-cp-code { text-transform: uppercase; font-family: ui-monospace, Menlo, monospace; letter-spacing: .04em; }
.os-cp-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; font-size: 12px; color: #5d6574; }
.os-cp-quick button { border: 1px solid #cfd5de; border-radius: 999px; padding: 4px 10px; background: #fff; color: #1f2430; font-size: 12px; cursor: pointer; }
.os-cp-quick button:focus-visible { outline: 2px solid #1660d6; outline-offset: 2px; }
.os-cp-note { margin: 14px 0; font-size: 12.5px; color: #5d6574; background: #f7f8fa; border-radius: 8px; padding: 10px 12px; }
.os-cp-msg { border-radius: 8px; padding: 10px 12px; margin: 0 0 14px; font-size: 13.5px; }
.os-cp-msg.is-ok { background: #ecfdf5; color: #065f46; }
.os-cp-msg.is-err { background: #fdecea; color: #b42318; }
.os-cp-lock { display: flex; gap: 14px; align-items: flex-start; }
.os-cp-lock-ic { font-size: 22px; }
.os-cp-list { list-style: none; margin: 0; padding: 0; max-width: 760px; }
.os-cp-list li a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid #e1e5eb; border-radius: 10px; margin-bottom: 8px; background: #fff; text-decoration: none; color: #1f2430; }
.os-cp-list .os-cp-s { color: #5d6574; font-size: 13px; white-space: nowrap; }
.os-cp-list .os-cp-s.is-on { color: #92400e; font-weight: 600; }
/* DEV-449: link results line on its own row under the title and status, and the Share this link box. */
.os-cp-list li a { flex-wrap: wrap; }
.os-cp-list .os-cp-r { flex: 0 0 100%; font-size: 12.5px; color: #5d6574; }
.os-cp-num { font-variant-numeric: tabular-nums; }
.os-cp-share { margin: 0 0 16px; padding: 12px; border: 1px solid #c9dbf5; border-radius: 8px; background: #eef4fd; color: #1f3a63; }
.os-cp-share-h { display: block; font-weight: 600; margin-bottom: 6px; }
.os-cp-share-row { display: flex; gap: 6px; }
.os-cp-share-row input { flex: 1; min-width: 0; font-size: 13px; padding: 6px 8px; border: 1px solid #d7dde8; border-radius: 6px; background: #fff; color: #212327; }
.os-cp-copy { font-size: 13px; font-weight: 600; padding: 6px 12px; border: 0; border-radius: 6px; background: #3E64DE; color: #fff; cursor: pointer; }
.os-cp-copy:focus-visible { outline: 2px solid #1f3a63; outline-offset: 2px; }
.os-cp-share-n { font-size: 13px; margin-top: 6px; }
/* The promotions list sits on the dark dashboard shell, so the white bars become dark panels there. */
html[data-tutor-theme="dark"] .os-cp-list li a { background: #1c2333; border-color: rgba(255,255,255,.10); color: #e6edf6; }
html[data-tutor-theme="dark"] .os-cp-list li a:hover { border-color: rgba(255,255,255,.22); }
html[data-tutor-theme="dark"] .os-cp-list .os-cp-s { color: #9fb0c6; }
html[data-tutor-theme="dark"] .os-cp-list .os-cp-s.is-on { color: #fcd34d; }
html[data-tutor-theme="dark"] .os-cp-list .os-cp-r { color: #9fb0c6; }
@media (max-width: 600px) {
	.os-cp-panel { padding: 16px; }
	.os-cp-list li a { flex-direction: column; }
	.os-cp-list .os-cp-s { white-space: normal; }
}

/* House presets (1b): a KSEC store offer takes a green edge; a plain message stays quiet grey, no sheen, so a code still stands out. */
.os-cp-line.is-ksec, .os-cp-box.is-ksec { border-color: rgba(16,185,129,.65); }
.is-ksec .os-cp-ic, .is-ksec .os-cp-top b, .is-ksec .os-cp-bh b { color: #6ee7b7; }
.os-cp-box.is-ksec .os-cp-bh b { font-size: 15px; }
.os-cp-box.is-ksec .os-cp-chip { color: #bbf7d0; border-color: rgba(16,185,129,.65); background: rgba(16,185,129,.12); }
.os-cp-line.is-msg, .os-cp-box.is-msg { background: #f1f5f9; color: #334155; border: 1px solid #cbd5e1; }
.os-a-card .os-cp-line.is-msg { padding: 7px 10px; }
.is-msg .os-cp-ic { color: #475569; }
.os-cp-line.is-msg::after, .os-cp-box.is-msg::after { display: none; }
.os-h-dark .os-cp-line.is-msg { color: #cbd5e1; background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); box-shadow: none; }
.os-h-dark .os-cp-line.is-msg .os-cp-ic { color: #cbd5e1; }
.os-cp-box a { color: inherit; text-decoration: underline; }
@media (prefers-reduced-motion: reduce) {
	.os-cp-line::after, .os-cp-box::after { display: none; }
	.is-seen .os-cp-meter i { animation: none; }
}

/* Learner Rewards Hub: "Your course offers". */
.os-cp-rewards { margin: 0 0 24px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.os-cp-rewards h2, .os-cp-rw-foot { grid-column: 1 / -1; }
.os-cp-rewards h2 { margin: 0 0 4px; font-size: 18px; }
.os-cp-rw { display: flex; flex-direction: column; justify-content: space-between; align-items: stretch; gap: 12px; padding: 16px; overflow-wrap: anywhere; border: 1px solid #e1e5eb; border-radius: 10px; background: #fff; color: #1f2430; }
.os-cp-rw.is-ksec { border-left: 4px solid #10b981; }
.os-cp-rw.is-code { border-left: 4px solid #f59e0b; }
.os-cp-rw-t { font-weight: 700; }
.os-cp-rw-m { color: #5d6574; font-size: 13px; margin-top: 2px; }
.os-cp-rw-foot { color: #5d6574; font-size: 12.5px; margin: 0; }
.os-cp-rw > .tutor-btn { align-self: flex-start; }
@media (max-width: 960px) { .os-cp-rewards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .os-cp-rewards { grid-template-columns: minmax(0, 1fr); } }

/* Phase 2: plan tag on an option, locked reward row. */
.os-cp-tag { display: inline-block; font-size: 11px; font-weight: 600; border-radius: 999px; padding: 2px 8px; background: #eef2f7; color: #3b4452; margin-left: 6px; vertical-align: middle; }
.os-cp-opt input:disabled + span { opacity: .65; }
.os-cp-rw.is-locked { border-left-color: #cbd5e1; background: #fafbfc; }
