/**
 * Auth (login/register/OTP), prescription upload wizard + review status,
 * and order tracking timeline.
 */

/* ---------- Auth ---------- */
.apc-auth { max-width: 400px; margin: 40px auto; padding: 0 20px 80px; }
.apc-auth__card { border: 1px solid var(--apc-color-border); border-radius: 18px; padding: 32px; }
.apc-auth__tabs { display: flex; gap: 6px; background: #F5F7F6; border-radius: 10px; padding: 4px; margin-bottom: 24px; }
.apc-auth__tab { flex: 1; border: none; border-radius: 8px; padding: 9px; font-weight: 700; font-size: 13px; cursor: pointer; background: transparent; color: var(--apc-color-text-muted); }
.apc-auth__tab.is-active { background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.08); color: var(--apc-color-text); }
.apc-auth label { font-size: 12.5px; font-weight: 700; color: var(--apc-color-text-muted); display: block; margin-bottom: 6px; }
.apc-auth input[type="text"], .apc-auth input[type="tel"], .apc-auth input[type="password"], .apc-auth input[type="email"] {
	width: 100%; border: 1px solid var(--apc-color-border-strong); border-radius: 9px; padding: 13px 14px; font-size: 13.5px; outline: none; margin-bottom: 16px;
}
.apc-auth__footnote { text-align: center; font-size: 12.5px; color: var(--apc-color-text-muted); }
.apc-otp-row { display: flex; gap: 8px; margin-bottom: 20px; }
.apc-otp-row input {
	width: 44px; height: 50px; text-align: center; font-size: 18px; font-weight: 700;
	border: 1px solid var(--apc-color-border-strong); border-radius: 9px; outline: none;
}
.apc-otp-row input.is-error { border-color: var(--apc-color-danger); }

/* ---------- Prescription upload wizard ---------- */
.apc-rx-flow { max-width: 640px; margin: 0 auto; padding: 30px 20px 80px; }
.apc-rx-flow__title { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.apc-rx-flow__step-label { font-size: 13px; color: var(--apc-color-text-muted); margin: 0 0 28px; }
.apc-rx-flow__bars { display: flex; gap: 6px; margin-bottom: 30px; }
.apc-rx-flow__bar { height: 5px; flex: 1; border-radius: 999px; background: var(--apc-color-border-strong); }
.apc-rx-flow__bar.is-done { background: var(--apc-color-primary); }

.apc-rx-upload-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.apc-rx-upload-tile {
	border: 1.5px dashed #B9DDD3; border-radius: 12px; padding: 26px 12px; text-align: center; cursor: pointer;
	background: var(--apc-color-tint); display: block; width: 100%;
}
.apc-rx-upload-tile:hover, .apc-rx-upload-tile:focus-visible { background: var(--apc-color-tint-2); }
.apc-rx-upload-tile__icon { font-size: 24px; margin-bottom: 8px; }
.apc-rx-upload-tile__label { font-size: 12.5px; font-weight: 700; }
.apc-rx-flow__hint { background: #F5F7F6; border-radius: 10px; padding: 14px 16px; font-size: 12px; color: var(--apc-color-text-muted); line-height: 1.6; margin-bottom: 24px; }

.apc-rx-file-row { display: flex; align-items: center; gap: 12px; border: 1px solid var(--apc-color-border); border-radius: 10px; padding: 12px 14px; margin-bottom: 10px; }
.apc-rx-file-row__icon { width: 44px; height: 44px; border-radius: 8px; background: var(--apc-color-tint); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.apc-rx-file-row__thumb { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; flex-shrink: 0; }
.apc-rx-file-row__name { font-size: 13px; font-weight: 700; word-break: break-word; }
.apc-rx-file-row__size { font-size: 11px; color: var(--apc-color-text-faint); }
.apc-rx-file-row__action { cursor: pointer; font-size: 12px; font-weight: 700; background: none; border: none; padding: 0; margin-right: 10px; }
.apc-rx-file-row__action--replace { color: var(--apc-color-info); }
.apc-rx-file-row__action--delete { color: var(--apc-color-danger); }
.apc-rx-add-more { font-size: 13px; font-weight: 700; color: var(--apc-color-primary); cursor: pointer; margin: 10px 0 26px; background: none; border: none; padding: 0; display: block; }
.apc-rx-upload-progress { height: 4px; background: var(--apc-color-border); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.apc-rx-upload-progress__fill { height: 100%; background: var(--apc-color-primary); transition: width 0.2s ease; }

.apc-rx-success { text-align: center; padding: 20px 0; }
.apc-rx-success__icon { width: 70px; height: 70px; border-radius: 999px; background: var(--apc-color-success-bg); display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.apc-rx-success__icon svg { stroke: var(--apc-color-success); }
.apc-rx-success__title { font-size: 19px; font-weight: 800; margin: 0 0 8px; }
.apc-rx-success__desc { font-size: 13.5px; color: var(--apc-color-text-muted); line-height: 1.6; max-width: 420px; margin: 0 auto 26px; }

/* ---------- Prescription review status ---------- */
.apc-rx-status { max-width: 640px; margin: 0 auto; padding: 30px 20px 80px; }
.apc-rx-status__card { border: 1px solid var(--apc-color-border); border-radius: 16px; padding: 26px; margin-bottom: 20px; }
.apc-rx-status__file { display: flex; gap: 14px; align-items: center; margin-bottom: 22px; }
.apc-rx-status__file-icon { width: 52px; height: 52px; border-radius: 10px; background: var(--apc-color-tint); display: flex; align-items: center; justify-content: center; font-size: 22px; }
.apc-rx-timeline { display: flex; flex-direction: column; gap: 0; }
.apc-rx-timeline__row { display: flex; gap: 14px; }
.apc-rx-timeline__dot-col { display: flex; flex-direction: column; align-items: center; }
.apc-rx-timeline__dot { width: 22px; height: 22px; border-radius: 999px; flex-shrink: 0; }
.apc-rx-timeline__line { width: 2px; flex: 1; min-height: 34px; }
.apc-rx-timeline__body { padding-bottom: 26px; }
.apc-rx-timeline__label { font-weight: 700; font-size: 13.5px; }
.apc-rx-timeline__sub { font-size: 12px; color: var(--apc-color-text-faint); }

/* ---------- Order tracking ---------- */
.apc-tracking { max-width: 720px; margin: 0 auto; padding: 36px 20px 80px; }
.apc-tracking__title { font-size: 22px; font-weight: 800; margin: 0 0 4px; }
.apc-tracking__sub { font-size: 13px; color: var(--apc-color-text-muted); margin: 0 0 26px; }
.apc-tracking__card { border: 1px solid var(--apc-color-border); border-radius: 16px; padding: 28px; margin-bottom: 20px; }
.apc-tracking__row { display: flex; justify-content: space-between; position: relative; }
.apc-tracking__track { position: absolute; top: 14px; left: 6%; right: 6%; height: 3px; background: var(--apc-color-border); z-index: 0; }
.apc-tracking__track-fill { height: 100%; background: var(--apc-color-primary); transition: width 0.6s ease; }
.apc-tracking__step { display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; z-index: 1; flex: 1; }
.apc-tracking__step-dot { width: 28px; height: 28px; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; }
.apc-tracking__step-label { font-size: 10.5px; font-weight: 700; text-align: center; max-width: 64px; }
.apc-tracking__detail-card { border: 1px solid var(--apc-color-border); border-radius: 14px; padding: 20px; }
.apc-tracking__detail-title { font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.apc-tracking__line-item { display: flex; justify-content: space-between; font-size: 13px; padding: 6px 0; color: var(--apc-color-text-soft); }
.apc-tracking__support-link { margin-top: 14px; font-size: 12.5px; color: var(--apc-color-info); font-weight: 600; cursor: pointer; display: inline-block; }
