/* ==========================================================================
   WooPW — Prescriber Single Rx
   Covers: onboarding form, prescription form, and order-pay add-ons for prescriber generated Rx's
   ========================================================================== */

.woopw-prx-wrap {
  --prx-primary:        var(--theme-primary-color, #2c3e6b);
  --prx-primary-dark:   #1e2d52;
  --prx-success:        #2e7d32;
  --prx-success-bg:     #f0faf0;
  --prx-success-border: #a5d6a7;
  --prx-info-bg:        #e8f4fd;
  --prx-info-border:    #90caf9;
  --prx-error:          #c62828;
  --prx-error-bg:       #fff5f5;
  --prx-error-border:   #ef9a9a;
  --prx-border:         #dde1e7;
  --prx-border-input:   #c5cad3;
  --prx-bg:             #f8f9fb;
  --prx-radius:         10px;
  --prx-radius-sm:      6px;
  --prx-shadow:         0 2px 16px rgba(0,0,0,.08), 0 1px 4px rgba(0,0,0,.04);

  max-width: 820px;
  margin: 0 auto;
  font-family: inherit;
  box-sizing: border-box;
}

.woopw-prx-wrap *, .woopw-prx-wrap *::before, .woopw-prx-wrap *::after {
  box-sizing: inherit;
}

/* -------------------------------------------------------------------------
   Card
   ------------------------------------------------------------------------- */

.woopw-prx-card {
  background: #fff;
  border: 1px solid var(--prx-border);
  border-radius: var(--prx-radius);
  padding: 40px 44px;
  box-shadow: var(--prx-shadow);
}

.woopw-prx-card__title {
  font-size: 24px;
  font-weight: 700;
  color: var(--prx-primary);
  margin: 0 0 8px;
  padding: 0;
}

.woopw-prx-card__subtitle {
  font-size: 14px;
  color: #666;
  margin: 0 0 32px;
  line-height: 1.6;
}

/* -------------------------------------------------------------------------
   Section headers (numbered badge + title)
   ------------------------------------------------------------------------- */

.woopw-prx-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 36px 0 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--prx-border);
}

.woopw-prx-section-header:first-of-type {
  margin-top: 4px;
}

.woopw-prx-section-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--prx-primary);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.woopw-prx-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--prx-primary);
  margin: 0;
  padding: 0;
  border: none;
}

.woopw-prx-help-text {
  font-size: 13px;
  color: #777;
  margin: -4px 0 18px;
  line-height: 1.5;
}

/* -------------------------------------------------------------------------
   Row + Fields
   ------------------------------------------------------------------------- */

.woopw-prx-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.woopw-prx-row--3 {
  grid-template-columns: 1fr 1fr 1fr;
}

.woopw-prx-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.woopw-prx-field label {
  font-size: 13px;
  font-weight: 600;
  color: #444;
}

.woopw-prx-required {
  color: var(--prx-error);
}

.woopw-prx-field input[type="text"],
.woopw-prx-field input[type="email"],
.woopw-prx-field input[type="tel"],
.woopw-prx-field input[type="password"],
.woopw-prx-field input[type="number"],
.woopw-prx-field input[type="date"],
.woopw-prx-field select,
.woopw-prx-field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--prx-border-input);
  border-radius: var(--prx-radius-sm);
  font-size: 14px;
  color: #333;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
  line-height: 1.4;
}

/* iOS Safari renders date inputs with native chrome that ignores width:100%.
   Resetting appearance forces it to honour our box model. */
.woopw-prx-field input[type="date"] {
  -webkit-appearance: none;
  appearance: none;
}

.woopw-prx-field input:focus,
.woopw-prx-field select:focus,
.woopw-prx-field textarea:focus {
  outline: none;
  border-color: var(--prx-primary);
  box-shadow: 0 0 0 3px rgba(44,62,107,.12);
}

.woopw-prx-field input[readonly] {
  background: #f5f5f5;
  color: #888;
  cursor: not-allowed;
}

.woopw-prx-field textarea {
  resize: vertical;
  min-height: 80px;
}

/* -------------------------------------------------------------------------
   File upload
   ------------------------------------------------------------------------- */

.woopw-prx-field {
  margin-bottom: 4px;
}

.woopw-prx-file-upload {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.woopw-prx-field input[type="file"] {
  font-size: 13px;
  color: #555;
  padding: 7px 0;
  cursor: pointer;
}

.woopw-prx-file-hint {
  font-size: 12px;
  color: #999;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* -------------------------------------------------------------------------
   Radio group
   ------------------------------------------------------------------------- */

.woopw-prx-radio-group {
  display: flex;
  gap: 20px;
  align-items: center;
  padding: 9px 0;
}

.woopw-prx-radio-label {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 14px;
  font-weight: normal !important;
  color: #333;
  line-height: 1;
}

.woopw-prx-radio-label input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--prx-primary);
  cursor: pointer;
  flex-shrink: 0;
  margin: 0;
}

/* -------------------------------------------------------------------------
   Declarations / checkboxes
   ------------------------------------------------------------------------- */

.woopw-prx-declarations {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
  padding: 20px;
  background: var(--prx-bg);
  border: 1px solid var(--prx-border);
  border-radius: var(--prx-radius-sm);
}

.woopw-prx-declarations__list {
  margin: 0 0 12px 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: #333;
  line-height: 1.55;
}

.woopw-prx-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: normal !important;
  color: #333;
  line-height: 1.55;
}

.woopw-prx-checkbox-label input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--prx-primary);
  cursor: pointer;
}

.woopw-prx-checkbox-label a {
  color: var(--prx-primary);
  text-decoration: underline;
}

.woopw-prx-checkbox-label a:hover {
  color: var(--prx-primary-dark);
}

/* -------------------------------------------------------------------------
   Required note
   ------------------------------------------------------------------------- */

.woopw-prx-required-note {
  font-size: 13px;
  color: #777;
  margin: -18px 0 24px;
}

/* -------------------------------------------------------------------------
   Inline field errors
   ------------------------------------------------------------------------- */

.woopw-prx-field-error {
  display: block;
  font-size: 12px;
  color: var(--prx-error);
  margin-top: 4px;
  line-height: 1.4;
}

.woopw-prx-field .woopw-prx-input--error,
.woopw-prx-field input.woopw-prx-input--error,
.woopw-prx-field select.woopw-prx-input--error,
.woopw-prx-field textarea.woopw-prx-input--error {
  border-color: var(--prx-error) !important;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, .10);
}

/* Readonly patient fields — locked when existing patient is selected */
.woopw-prx-input--readonly,
input.woopw-prx-input--readonly,
textarea.woopw-prx-input--readonly {
  background: #f4f5f7 !important;
  color: #666 !important;
  cursor: not-allowed !important;
  border-color: #dde1e9 !important;
}

/* Loading text shown while patient AJAX is in-flight */
.woopw-prx-loading-text {
  color: #888;
  font-style: italic;
}

/* Patient ID badge shown in search results */
.woopw-prx-patient-uid {
  font-size: 12px;
  color: #888;
  font-weight: 400;
}

/* Confirm details table in success screen */
.woopw-prx-confirm-details {
  text-align: left;
  max-width: 520px;
  margin: 0 auto;
}
.woopw-prx-confirm-ref {
  font-size: 18px;
  margin-bottom: 4px;
}

/* Full-width field */
.woopw-prx-field--full {
  grid-column: 1 / -1;
}

/* -------------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------------- */

.woopw-prx-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: var(--prx-radius-sm);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s, opacity .15s;
  text-decoration: none;
}

.woopw-prx-btn--primary {
  background: var(--prx-primary);
  color: #fff;
}

.woopw-prx-btn--primary:hover {
  background: var(--prx-primary-dark);
  color: #fff;
}

.woopw-prx-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* Spinner inside button */
.woopw-prx-btn__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: woopw-prx-spin .7s linear infinite;
  flex-shrink: 0;
}

@keyframes woopw-prx-spin {
  to { transform: rotate(360deg); }
}

/* -------------------------------------------------------------------------
   Submit row
   ------------------------------------------------------------------------- */

.woopw-prx-submit-row {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--prx-border);
}

.woopw-prx-submit-note {
  font-size: 13px;
  color: #777;
  margin: 12px 0 0;
  line-height: 1.5;
}

/* -------------------------------------------------------------------------
   Notices
   ------------------------------------------------------------------------- */

.woopw-prx-notice {
  padding: 14px 18px;
  border-radius: var(--prx-radius-sm);
  border-left: 4px solid transparent;
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.woopw-prx-notice strong {
  display: block;
  margin-bottom: 4px;
}

.woopw-prx-notice p {
  margin: 4px 0 0;
}

.woopw-prx-notice--success {
  background: var(--prx-success-bg);
  border-color: var(--prx-success);
  color: var(--prx-success);
}

.woopw-prx-notice--info {
  background: var(--prx-info-bg);
  border-color: #1565c0;
  color: #1565c0;
}

.woopw-prx-notice--error {
  background: var(--prx-error-bg);
  border-color: var(--prx-error);
  color: var(--prx-error);
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

/* -------------------------------------------------------------------------
   Step indicator (prescription form)
   ------------------------------------------------------------------------- */

.woopw-prx-step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 0 0 32px;
  padding: 16px 0;
  border-bottom: 1px solid var(--prx-border);
}

.woopw-prx-step-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
}

.woopw-prx-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #c5cad3;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: background .2s;
}

.woopw-prx-step-label {
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: .4px;
  transition: color .2s;
  white-space: nowrap;
}

.woopw-prx-step-connector {
  flex: 1;
  height: 2px;
  background: #e0e4ea;
  margin: 0 8px;
  margin-bottom: 18px;
  transition: background .2s;
}

/* Active step */
.woopw-prx-step-item.active .woopw-prx-step-num {
  background: var(--prx-primary);
}
.woopw-prx-step-item.active .woopw-prx-step-label {
  color: var(--prx-primary);
}

/* Completed steps */
.woopw-prx-step-item.done .woopw-prx-step-num {
  background: var(--prx-success);
}
.woopw-prx-step-item.done .woopw-prx-step-label {
  color: var(--prx-success);
}

/* -------------------------------------------------------------------------
   Patient search
   ------------------------------------------------------------------------- */

.woopw-prx-patient-search-wrap {
  max-width: 480px;
}

.woopw-prx-patient-search-row {
  position: relative;
  display: flex;
  align-items: center;
}

.woopw-prx-patient-search-row input[type="text"] {
  width: 100%;
  padding: 10px 40px 10px 12px;
  border: 1px solid var(--prx-border-input);
  border-radius: var(--prx-radius-sm);
  font-size: 14px;
  color: #333;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}

.woopw-prx-patient-search-row input[type="text"]:focus {
  outline: none;
  border-color: var(--prx-primary);
  box-shadow: 0 0 0 3px rgba(44,62,107,.12);
}

.woopw-prx-search-spinner {
  position: absolute;
  right: 12px;
  width: 16px;
  height: 16px;
  border: 2px solid #ddd;
  border-top-color: var(--prx-primary);
  border-radius: 50%;
  animation: woopw-prx-spin .7s linear infinite;
}

.woopw-prx-patient-results {
  margin-top: 4px;
  border: 1px solid var(--prx-border);
  border-radius: var(--prx-radius-sm);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.1);
  overflow: hidden;
}

.woopw-prx-patient-result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--prx-border);
  gap: 12px;
}

.woopw-prx-patient-result:last-child {
  border-bottom: none;
}

.woopw-prx-patient-result:hover {
  background: var(--prx-bg);
}

.woopw-prx-patient-result-name {
  font-size: 14px;
  color: #333;
}

.woopw-prx-no-results {
  padding: 12px 14px;
  font-size: 13px;
  color: #999;
  margin: 0;
}

.woopw-prx-patient-search-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.woopw-prx-search-or {
  font-size: 13px;
  color: #999;
}

/* -------------------------------------------------------------------------
   Buttons — extra variants
   ------------------------------------------------------------------------- */

.woopw-prx-btn--outline {
  background: transparent;
  color: var(--prx-primary);
  border: 2px solid var(--prx-primary);
}

.woopw-prx-btn--outline:hover {
  background: var(--prx-primary);
  color: #fff;
}

.woopw-prx-btn--ghost {
  background: transparent;
  color: #666;
  border: 1px solid #ccc;
}

.woopw-prx-btn--ghost:hover {
  background: #f0f2f5;
  color: #333;
}

.woopw-prx-btn--xs {
  padding: 5px 12px;
  font-size: 12px;
  border-radius: 4px;
}

.woopw-prx-btn--lg {
  padding: 14px 36px;
  font-size: 16px;
}

/* -------------------------------------------------------------------------
   Step navigation bar
   ------------------------------------------------------------------------- */

.woopw-prx-step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--prx-border);
}

.woopw-prx-step-nav button:only-child {
  margin-left: auto;
}

/* -------------------------------------------------------------------------
   Prescription summary table (step 4)
   ------------------------------------------------------------------------- */

.woopw-prx-rx-summary {
  margin-bottom: 24px;
}

.woopw-prx-rx-summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  border: 1px solid var(--prx-border);
  border-radius: var(--prx-radius-sm);
  overflow: hidden;
}

.woopw-prx-rx-summary-table th,
.woopw-prx-rx-summary-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--prx-border);
  text-align: left;
  vertical-align: top;
}

.woopw-prx-rx-summary-table th {
  background: var(--prx-bg);
  font-weight: 600;
  color: #555;
  width: 36%;
  white-space: nowrap;
}

.woopw-prx-rx-summary-table td {
  color: #333;
}

.woopw-prx-rx-summary-table tr:last-child th,
.woopw-prx-rx-summary-table tr:last-child td {
  border-bottom: none;
}

/* -------------------------------------------------------------------------
   PIN panel
   ------------------------------------------------------------------------- */

.woopw-prx-pin-panel {
  margin-bottom: 20px;
}

.woopw-prx-pin-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
}

.woopw-prx-pin-input {
  width: 140px;
  padding: 10px 14px;
  border: 1px solid var(--prx-border-input);
  border-radius: var(--prx-radius-sm);
  font-size: 20px;
  letter-spacing: 6px;
  text-align: center;
  color: #333;
  transition: border-color .15s, box-shadow .15s;
}

.woopw-prx-pin-input:focus {
  outline: none;
  border-color: var(--prx-primary);
  box-shadow: 0 0 0 3px rgba(44,62,107,.12);
}

/* -------------------------------------------------------------------------
   Success state
   ------------------------------------------------------------------------- */

.woopw-prx-rx-success-wrap {
  text-align: center;
  padding: 48px 24px;
}

.woopw-prx-rx-success-icon {
  display: block;
  color: var(--prx-success);
  font-size: 64px;
  line-height: 1;
  margin-bottom: 20px;
}

.woopw-prx-rx-success-wrap h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--prx-success);
  margin: 0 0 12px;
}

.woopw-prx-rx-success-wrap p {
  font-size: 15px;
  color: #555;
  text-align: center;
  max-width: 420px;
  margin: 0 auto;
  line-height: 1.6;
}

/* -------------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------------- */

@media (max-width: 700px) {
  .woopw-prx-card {
    padding: 24px 20px;
  }

  .woopw-prx-row,
  .woopw-prx-row--3 {
    grid-template-columns: 1fr;
  }

  .woopw-prx-section-header {
    margin-top: 28px;
  }

  .woopw-prx-step-label {
    display: none;
  }

  .woopw-prx-step-num {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .woopw-prx-patient-search-wrap {
    max-width: 100%;
  }

  .woopw-prx-pin-row {
    flex-wrap: wrap;
  }

  .woopw-prx-step-nav {
    flex-direction: column-reverse;
    gap: 10px;
  }

  .woopw-prx-step-nav button {
    width: 100%;
    justify-content: center;
  }
}

/* -------------------------------------------------------------------------
   Prescriber access gate (shown when user is not logged in on the Rx form)
   ------------------------------------------------------------------------- */

.woopw-prx-gate {
  max-width: 520px;
  margin: 40px auto;
  padding: 40px 32px;
  background: #fff;
  border: 1px solid #e0e6ef;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(44, 62, 107, .07);
}

.woopw-prx-gate__icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.woopw-prx-gate__title {
  font-size: 22px;
  font-weight: 700;
  color: #2c3e6b;
  margin: 0 0 12px;
}

.woopw-prx-gate__text {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin: 0 0 24px;
}

.woopw-prx-gate__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.woopw-prx-gate__btn {
  display: inline-block;
  padding: 11px 28px;
  border-radius: 5px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: opacity .15s;
}

.woopw-prx-gate__btn--primary {
  background: #2c3e6b;
  color: #fff;
}

.woopw-prx-gate__btn--primary:hover {
  opacity: .88;
  color: #fff;
}

.woopw-prx-gate__btn--secondary {
  background: #f0f3fa;
  color: #2c3e6b;
  border: 1px solid #c5d0e8;
}

.woopw-prx-gate__btn--secondary:hover {
  background: #e0e8f5;
  color: #2c3e6b;
}

.woopw-prx-gate__note {
  font-size: 13px;
  color: #888;
  margin: 0;
}

/* -------------------------------------------------------------------------
   Patient Rx add-ons (optional products on the order-pay page)
   ------------------------------------------------------------------------- */

.woopw-prx-addons {
  margin: 0 0 28px;
  padding: 20px;
  background: #f7f9fc;
  border: 1px solid #e0e6ef;
  border-radius: 6px;
}

.woopw-prx-addons__title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 6px;
  color: #222;
}

.woopw-prx-addons__intro {
  font-size: 14px;
  color: #666;
  margin: 0 0 14px;
}

.woopw-prx-addons__list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.woopw-prx-addon-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #dde3ec;
  border-radius: 5px;
  cursor: pointer;
  transition: border-color .15s;
}

.woopw-prx-addon-item:has(.woopw-prx-addon-item__checkbox:checked) {
  border-color: #2c3e6b;
  background: #f0f3fa;
}

.woopw-prx-addon-item__checkbox {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  cursor: pointer;
}

.woopw-prx-addon-item__thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}

.woopw-prx-addon-item__name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

.woopw-prx-addon-item__price {
  font-size: 14px;
  font-weight: 600;
  color: #2c3e6b;
  flex-shrink: 0;
}

/* ==========================================================================
   Prescriber-generated order — Thank-you page
   ========================================================================== */
body.woopw-rx-thankyou-page {
  overflow-x: hidden;
}
body.woopw-rx-thankyou-page .woo-page-banner-section {
  display: none !important;
}
body.woopw-rx-thankyou-page .page-content-section {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body.woopw-rx-thankyou-page .page-content-section > .container,
body.woopw-rx-thankyou-page .page-content-section .row,
body.woopw-rx-thankyou-page .page-content-section [class*="col-"] {
  padding-left: 0 !important;
  padding-right: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
  flex: none !important;
}
body.woopw-rx-thankyou-page .page-content {
  padding: 0 !important;
  margin: 0 !important;
}

/* ── Root variables — wired to theme customizer with sensible hard fallbacks ── */
.woopw-rx-thankyou {
  --ty-navy:        var(--theme-dark-background,       #1f3a4d);
  --ty-navy-deep:   var(--theme-dark-background2,      #16293a);
  --ty-teal:        var(--theme-secondary-color,       #2dd4bf);
  --ty-teal-deep:   var(--theme-secondary-dark-color,  #14b8a6);
  --ty-btn-bg:      var(--theme-btn-primary-color,     #1f3a4d);
  --ty-btn-txt:     var(--theme-primary-btn-txt-color, #ffffff);
  --ty-ink:         var(--theme-text-color,            #0f1f2c);
  --ty-card-radius: var(--card-radius,                 16px);
  --ty-btn-radius:  var(--btn-radius,                  10px);
  --ty-mint:        #d1faf3;
  --ty-cream:       #f7f5f0;
  --ty-muted:       #5a6b78;
  --ty-line:        #e6ebef;
  --ty-white:       #ffffff;
  --ty-amber:       #f5a524;
  --ty-amber-soft:  #fff4dd;

  font-family: inherit;
  color: var(--ty-ink);
  line-height: 1.55;
}

/* ── Hero ── */
.woopw-rx-ty-hero {
  background: linear-gradient(180deg, var(--ty-navy-deep) 0%, var(--ty-navy) 100%);
  color: white;
  padding: 56px 24px 110px;
  position: relative;
  overflow: hidden;
}
.woopw-rx-ty-hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(45,212,191,0.18) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.woopw-rx-ty-hero::after {
  content: '';
  position: absolute;
  bottom: -180px; left: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(45,212,191,0.10) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.woopw-rx-ty-container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 16px;
  position: relative;
  z-index: 1;
}

/* ── Status pill ── */
.woopw-rx-ty-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(45,212,191,0.15);
  border: 1px solid rgba(45,212,191,0.35);
  color: var(--ty-teal);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 24px;
}
.woopw-rx-ty-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ty-teal);
  display: inline-block;
  animation: woopw-ty-pulse 2s infinite;
}
@keyframes woopw-ty-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(45,212,191,0.6); }
  70%  { box-shadow: 0 0 0 10px rgba(45,212,191,0); }
  100% { box-shadow: 0 0 0 0 rgba(45,212,191,0); }
}

/* ── Hero text ── */
.woopw-rx-ty-headline {
  font-size: clamp(28px, 5vw, 46px) !important;
  font-weight: 500 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 16px !important;
  max-width: 720px;
  color: white !important;
}
.woopw-rx-ty-headline em {
  font-style: italic;
  color: var(--ty-teal);
}
.woopw-rx-ty-sub {
  font-size: 16px;
  color: rgba(255,255,255,0.78);
  max-width: 640px;
  line-height: 1.6;
  margin: 0;
}

/* ── Order meta strip ── */
.woopw-rx-ty-order-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.woopw-rx-ty-meta-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.55);
  margin-bottom: 4px;
}
.woopw-rx-ty-meta-value {
  font-size: 16px;
  font-weight: 600;
  color: white;
}

/* ── Content wrap ── */
.woopw-rx-ty-content {
  max-width: 920px;
  margin: -68px auto 0;
  padding: 0 24px 64px;
  position: relative;
  z-index: 2;
}

/* ── Info card (teal accent — prescriber flow variant) ── */
.woopw-rx-ty-info-card {
  background: var(--ty-white);
  border-radius: var(--ty-card-radius);
  padding: 28px 32px;
  box-shadow: 0 20px 50px -20px rgba(15,31,44,0.25);
  border: 1px solid var(--ty-line);
  border-left: 4px solid var(--ty-teal);
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.woopw-rx-ty-info-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--ty-mint);
  color: var(--ty-teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}
.woopw-rx-ty-info-card h2 {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: var(--ty-navy) !important;
  margin: 0 0 6px !important;
  letter-spacing: -0.01em;
}
.woopw-rx-ty-info-card p {
  color: var(--ty-muted);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

/* ── Section card ── */
.woopw-rx-ty-section {
  background: var(--ty-white);
  border-radius: var(--ty-card-radius);
  padding: 36px 32px;
  margin-top: 24px;
  border: 1px solid var(--ty-line);
}
.woopw-rx-ty-section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ty-teal-deep);
  font-weight: 600;
  margin-bottom: 8px;
}
.woopw-rx-ty-section-title {
  font-size: 26px !important;
  font-weight: 500 !important;
  color: var(--ty-navy) !important;
  letter-spacing: -0.015em !important;
  margin-bottom: 28px !important;
}

/* ── Steps ── */
.woopw-rx-ty-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}
.woopw-rx-ty-step {
  padding: 24px 22px;
  background: var(--ty-cream);
  border-radius: 14px;
  border: 1px solid var(--ty-line);
}
.woopw-rx-ty-step--active {
  background: linear-gradient(135deg, var(--ty-navy-deep) 0%, var(--ty-navy) 100%);
  border-color: transparent;
}
.woopw-rx-ty-step-num {
  display: block;
  font-size: 30px;
  font-weight: 500;
  line-height: 1;
  margin-bottom: 14px;
  color: var(--ty-teal-deep);
}
.woopw-rx-ty-step--active .woopw-rx-ty-step-num {
  color: var(--ty-teal);
}
.woopw-rx-ty-step h3 {
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--ty-navy) !important;
  margin: 0 0 8px !important;
}
.woopw-rx-ty-step--active h3 {
  color: white !important;
}
.woopw-rx-ty-step p {
  font-size: 13px;
  color: var(--ty-muted);
  line-height: 1.55;
  margin: 0;
}
.woopw-rx-ty-step--active p {
  color: rgba(255,255,255,0.78);
}

/* ── Prescriber attribution block ── */
.woopw-rx-ty-prescriber-block {
  margin-top: 24px;
  padding: 20px 24px;
  border: 2px dashed var(--ty-teal);
  border-radius: 12px;
  background: var(--ty-mint);
  display: flex;
  align-items: center;
  gap: 14px;
}
.woopw-rx-ty-prescriber-block svg {
  flex-shrink: 0;
  color: var(--ty-teal-deep);
}
.woopw-rx-ty-prescriber-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--ty-teal-deep);
  margin-bottom: 2px;
}
.woopw-rx-ty-prescriber-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--ty-ink);
}

/* ── Order table ── */
.woopw-rx-ty-order-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
}
.woopw-rx-ty-order-table th,
.woopw-rx-ty-order-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--ty-line);
}
.woopw-rx-ty-order-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ty-muted);
  font-weight: 600;
  background: var(--ty-cream);
}
.woopw-rx-ty-order-table th:last-child,
.woopw-rx-ty-order-table td:last-child {
  text-align: right;
}
.woopw-rx-ty-order-table td {
  font-size: 14px;
  color: var(--ty-navy);
}
.woopw-rx-ty-qty {
  color: var(--ty-muted);
  font-size: 13px;
}
.woopw-rx-ty-row-subtotal td {
  font-weight: 700;
  color: var(--ty-navy);
  background: var(--ty-cream);
}
.woopw-rx-ty-row-payment td {
  color: var(--ty-muted);
  border-bottom: 0;
}

/* ── Billing block ── */
.woopw-rx-ty-billing-block {
  padding: 20px 22px;
  background: var(--ty-cream);
  border-radius: 12px;
  font-size: 14px;
  color: var(--ty-navy);
  line-height: 1.7;
}
.woopw-rx-ty-billing-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ty-muted);
  font-weight: 600;
  margin-bottom: 8px;
}

/* ── Help card ── */
.woopw-rx-ty-help-card {
  background: linear-gradient(135deg, var(--ty-navy-deep) 0%, var(--ty-navy) 100%);
  color: white;
  border-radius: var(--ty-card-radius);
  padding: 32px;
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.woopw-rx-ty-help-card h3 {
  font-size: 22px !important;
  font-weight: 500 !important;
  color: white !important;
  margin: 0 0 6px !important;
  letter-spacing: -0.01em;
}
.woopw-rx-ty-help-card p {
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  margin: 0;
}
.woopw-rx-ty-help-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.woopw-rx-ty-help-btn {
  background: var(--ty-teal);
  color: var(--ty-navy-deep);
  border: 0;
  padding: 12px 22px;
  border-radius: var(--ty-btn-radius);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.woopw-rx-ty-help-btn:hover {
  opacity: 0.9;
  color: var(--ty-navy-deep);
}
.woopw-rx-ty-help-btn--secondary {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}
.woopw-rx-ty-help-btn--secondary:hover {
  color: white;
  background: rgba(255,255,255,0.1);
}

/* ── Action bar ── */
.woopw-rx-ty-action-bar {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.woopw-rx-ty-btn-primary,
.woopw-rx-ty-btn-secondary {
  padding: 13px 28px;
  border-radius: var(--ty-btn-radius);
  font-family: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  border: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
}
.woopw-rx-ty-btn-primary {
  background: var(--ty-btn-bg);
  color: var(--ty-btn-txt);
}
.woopw-rx-ty-btn-primary:hover {
  opacity: 0.85;
  color: var(--ty-btn-txt);
}
.woopw-rx-ty-btn-secondary {
  background: var(--ty-white);
  color: var(--ty-navy);
  border: 1px solid var(--ty-line);
}
.woopw-rx-ty-btn-secondary:hover {
  background: var(--ty-cream);
  color: var(--ty-navy);
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .woopw-rx-ty-hero    { padding: 40px 20px 90px; }
  .woopw-rx-ty-content { padding: 0 16px 48px; }
  .woopw-rx-ty-info-card { flex-direction: column; padding: 24px 20px; }
  .woopw-rx-ty-section { padding: 28px 20px; }
  .woopw-rx-ty-steps   { grid-template-columns: 1fr; }
  .woopw-rx-ty-help-card { flex-direction: column; align-items: flex-start; padding: 24px 20px; }
  .woopw-rx-ty-order-meta { gap: 20px; }
}
@media (max-width: 480px) {
  .woopw-rx-ty-headline { font-size: 26px !important; }
  .woopw-rx-ty-action-bar { flex-direction: column; align-items: stretch; }
  .woopw-rx-ty-btn-primary,
  .woopw-rx-ty-btn-secondary { justify-content: center; }
}

/* -------------------------------------------------------------------------
   Password show/hide toggle
   ------------------------------------------------------------------------- */

.woopw-prx-pw-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.woopw-prx-pw-wrap input[type="password"],
.woopw-prx-pw-wrap input[type="text"] {
  flex: 1;
  padding-right: 44px;
}

.woopw-prx-pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  padding: 4px;
  margin: 0;
  cursor: pointer;
  color: #888;
  line-height: 0;
  transition: color 0.15s;
}

.woopw-prx-pw-toggle:hover,
.woopw-prx-pw-toggle:focus-visible {
  color: var(--prx-primary);
  outline: none;
}

/* -------------------------------------------------------------------------
   Password strength meter
   ------------------------------------------------------------------------- */

.woopw-prx-pw-strength {
  margin-top: 8px;
  margin-bottom: 2px;
}

.woopw-prx-pw-strength-bar {
  display: flex;
  gap: 4px;
  height: 5px;
  margin-bottom: 5px;
}

.woopw-prx-pw-strength-segment {
  flex: 1;
  border-radius: 3px;
  background: #e5e7eb;
  transition: background 0.25s ease;
}

.woopw-prx-pw-strength-label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

/* Segment colours per strength level */
.woopw-prx-pw-strength--weak   .woopw-prx-pw-strength-segment.active { background: var(--prx-error, #c62828); }
.woopw-prx-pw-strength--fair   .woopw-prx-pw-strength-segment.active { background: #e67e22; }
.woopw-prx-pw-strength--good   .woopw-prx-pw-strength-segment.active { background: #f59e0b; }
.woopw-prx-pw-strength--strong .woopw-prx-pw-strength-segment.active { background: var(--prx-success, #2e7d32); }

/* Label colours */
.woopw-prx-pw-strength--weak   .woopw-prx-pw-strength-label { color: var(--prx-error, #c62828); }
.woopw-prx-pw-strength--fair   .woopw-prx-pw-strength-label { color: #e67e22; }
.woopw-prx-pw-strength--good   .woopw-prx-pw-strength-label { color: #f59e0b; }
.woopw-prx-pw-strength--strong .woopw-prx-pw-strength-label { color: var(--prx-success, #2e7d32); }
