/* Prescription updates landing page (/scriptupdate, views/patient/order-status.ejs).
   Branded as the pharmacy network: every brand colour arrives as a custom property on <body class="os">
   (--os-color accent, --os-btn button, --os-dark ink, --os-tint ground, --os-line borders, --os-bar the striped
   strip) from server/lead_gate_brand.js NETWORK — none are written here. Neutrals + tones are the house literals. */
* { box-sizing: border-box; }
body.os { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
          background: var(--os-tint); color: var(--os-dark); line-height: 1.5; }
.os-bar { height: 6px; background: var(--os-bar); }
.os-wrap { max-width: 520px; margin: 0 auto; padding: 32px 16px 48px; }

.os-logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 26px; margin: 0 0 22px; }
.os-logos img { display: block; max-height: 40px; max-width: 150px; width: auto; }
.os-title { margin: 0; text-align: center; font-size: 24px; font-weight: 800; letter-spacing: -.2px; }
.os-lead { margin: 4px 0 20px; text-align: center; color: #6c757d; font-size: 15px; }

.os-card { background: #fff; border: 1px solid var(--os-line); border-radius: 14px; padding: 24px;
           box-shadow: 0 1px 2px rgba(16, 24, 40, .05); }
.os-step h2 { margin: 0 0 4px; font-size: 18px; }
.os-step h3 { margin: 22px 0 8px; font-size: 15px; }
.os-sub { margin: 0 0 16px; color: #6c757d; font-size: 14px; }
.os-note { margin: 0 0 4px; color: #6c757d; font-size: 13px; }
.os-step label { display: block; margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.os-step input[type=tel], .os-step input[type=text], .os-step select {
    width: 100%; padding: 11px 12px; border: 1px solid var(--os-line); border-radius: 10px; font: inherit; font-size: 16px;
    background: #fff; color: var(--os-dark); }
.os-step input:focus, .os-step select:focus { outline: none; border-color: var(--os-btn); box-shadow: 0 0 0 .25rem rgba(var(--theme-primary-rgb), .15); }

.os-btn { appearance: none; display: block; width: 100%; margin-top: 16px; padding: 12px 16px; border: 0; border-radius: 10px;
          background: var(--os-btn); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
.os-btn:disabled { opacity: .55; cursor: default; }
.os-btn-ghost { background: transparent; color: #6c757d; border: 1px solid var(--os-line); }
.os-btn-ghost:hover { color: var(--os-dark); }
.os-err { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: #fdf2f4; border: 1px solid #f5c2cb; color: #a1202e; font-size: 14px; }

/* Pick lists (clinic, script, other scripts): rows cloned from #os_choice_tpl. */
.os-list { display: flex; flex-direction: column; gap: 10px; }
.os-choice { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 1px solid var(--os-line); border-radius: 12px;
             background: #fff; color: var(--os-dark); font: inherit; text-align: left; cursor: pointer; transition: border-color .12s ease; }
.os-choice:hover, .os-choice:focus-visible { border-color: var(--os-btn); outline: none; }
.os-choice.is-current { border-color: var(--os-btn); background: rgba(var(--theme-primary-rgb), .10); }
.os-choice-logo { flex: none; height: 32px; width: auto; max-width: 110px; object-fit: contain; }
.os-choice-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.os-choice-name { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.os-choice-meta { color: #6c757d; font-size: 13px; }
.os-choice-arrow { flex: none; color: #8a9199; font-size: 22px; line-height: 1; }

.os-rx { margin-bottom: 14px; }
.os-track { margin: -8px 0 0; font-size: 14px; }
.os-track a { color: var(--os-btn); font-weight: 600; word-break: break-all; }

.os-foot { margin: 22px 0 0; text-align: center; color: #6c757d; font-size: 12px; }

.os-step:not([hidden]) { animation: os-enter .18s ease-out backwards; }
@keyframes os-enter { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .os-step:not([hidden]) { animation: none; } .os-choice { transition: none; } }
@media (max-width: 480px) {
    .os-wrap { padding: 22px 12px 40px; }
    .os-card { padding: 18px; }
    .os-logos { gap: 10px 18px; }
    .os-logos img { max-height: 32px; max-width: 120px; }
}
