:root {
  --lc-primary: #1C2E5D;
  --lc-cta: #F5CC00;
  --lc-cta-text: #1C2E5D;
  --lc-bg: #ffffff;
  --lc-border: #dde3ef;
  --lc-shadow: 0 0 12px rgba(0,0,0,0.125);
  --lc-radius: 8px;
  --lc-muted: #6b7a99;
  --lc-success-bg: #d6f0e0;
  --lc-success-text: #1a6b35;
  --lc-step-bg: #eef0f5;
  --lc-step-text: #6b7a99;
  --lc-overlay: rgba(0,0,0,0.5);
}

/* ── Trigger Button ─────────────────────────────────────────── */
.lc-trigger {
  width: 100%;
  padding: 14px;
  background: var(--lc-cta);
  color: var(--lc-cta-text);
  border: none;
  border-radius: var(--lc-radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--lc-shadow);
  margin-top: 1rem;
}
.lc-trigger:hover { opacity: 0.92; }

/* ── Modal Overlay ──────────────────────────────────────────── */
.lc-overlay {
  position: fixed;
  inset: 0;
  background: var(--lc-overlay);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.lc-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Modal Box ──────────────────────────────────────────────── */
.lc-modal {
  background: var(--lc-bg);
  border-radius: var(--lc-radius);
  box-shadow: var(--lc-shadow);
  width: 520px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: translateY(12px);
  transition: transform 0.2s;
}
.lc-overlay.open .lc-modal {
  transform: translateY(0);
}

/* Mobile full screen */
@media (max-width: 600px) {
  .lc-modal {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  .lc-overlay {
    align-items: flex-start;
  }
}

/* ── Modal Header ───────────────────────────────────────────── */
.lc-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid var(--lc-border);
  position: sticky;
  top: 0;
  background: var(--lc-bg);
  z-index: 1;
}
.lc-modal-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--lc-primary);
  margin: 0;
}
.lc-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--lc-muted);
  line-height: 1;
  padding: 0;
}
.lc-close:hover { color: var(--lc-primary); }

/* ── Modal Body ─────────────────────────────────────────────── */
.lc-modal-body {
  padding: 1.25rem 1.5rem;
  flex: 1;
}

/* ── Step Pills ─────────────────────────────────────────────── */
.lc-steps {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.lc-step-pill {
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 12px;
  background: var(--lc-step-bg);
  color: var(--lc-step-text);
  cursor: default;
}
.lc-step-pill.active {
  background: var(--lc-primary);
  color: #fff;
}
.lc-step-pill.done {
  background: var(--lc-success-bg);
  color: var(--lc-success-text);
  cursor: pointer;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Completed Step Summary ─────────────────────────────────── */
.lc-completed {
  margin-bottom: 0.75rem;
  border: 1px solid var(--lc-border);
  border-radius: var(--lc-radius);
  overflow: hidden;
}
.lc-completed-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--lc-bg);
  cursor: pointer;
}
.lc-completed-row:hover { background: #f5f7fc; }
.lc-completed-label {
  font-size: 12px;
  color: var(--lc-muted);
  margin: 0 0 2px;
}
.lc-completed-value {
  font-size: 14px;
  font-weight: 500;
  color: var(--lc-primary);
  margin: 0;
}
.lc-completed-price {
  font-size: 13px;
  color: var(--lc-muted);
}
.lc-completed-edit {
  font-size: 12px;
  color: var(--lc-primary);
  text-decoration: underline;
}

/* ── Review Divider ─────────────────────────────────────────── */
.lc-review-divider {
  border-top: 1px solid var(--lc-border);
  margin: 1.25rem 0;
}

/* ── Section Label ──────────────────────────────────────────── */
.lc-section-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--lc-muted);
  margin: 0 0 0.6rem;
}

/* ── Option Cards ───────────────────────────────────────────── */
.lc-card {
  background: var(--lc-bg);
  border: 1.5px solid var(--lc-border);
  border-radius: var(--lc-radius);
  box-shadow: var(--lc-shadow);
  padding: 14px 16px;
  cursor: pointer;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.15s;
}
.lc-card:hover { border-color: var(--lc-primary); }
.lc-card.sel {
  border-color: var(--lc-primary);
  box-shadow: 0 0 0 3px rgba(28,46,93,0.12);
}
.lc-card-left {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lc-card-name {
  font-size: 15px;
  font-weight: 500;
  color: #1a2340;
}
.lc-card-desc {
  font-size: 12px;
  color: var(--lc-muted);
}
.lc-card-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.lc-card-price {
  font-size: 13px;
  font-weight: 500;
  color: var(--lc-primary);
  white-space: nowrap;
}
.lc-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--lc-border);
  background: var(--lc-bg);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lc-card.sel .lc-radio {
  border-color: var(--lc-primary);
  background: var(--lc-primary);
}
.lc-radio-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
  display: none;
}
.lc-card.sel .lc-radio-dot { display: block; }

/* ── Prescription Form ──────────────────────────────────────── */
.lc-rx-saved {
  margin-bottom: 1rem;
}
.lc-rx-saved-label {
  font-size: 12px;
  color: var(--lc-muted);
  margin: 0 0 6px;
}
.lc-rx-select {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--lc-border);
  border-radius: var(--lc-radius);
  font-size: 14px;
  color: #1a2340;
  background: var(--lc-bg);
  cursor: pointer;
}
.lc-rx-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 10px;
}
.lc-rx-eye {
  background: var(--lc-bg);
  border: 1.5px solid var(--lc-border);
  border-radius: var(--lc-radius);
  box-shadow: var(--lc-shadow);
  padding: 14px;
}
.lc-rx-eye-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--lc-primary);
  margin: 0 0 10px;
}
.lc-rx-field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 8px;
}
.lc-rx-field-group:last-child { margin-bottom: 0; }
.lc-rx-field-label {
  font-size: 11px;
  color: var(--lc-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lc-rx-field {
  padding: 7px 10px;
  border: 1px solid var(--lc-border);
  border-radius: 6px;
  font-size: 13px;
  color: #1a2340;
  width: 100%;
  background: var(--lc-bg);
}
.lc-rx-field:focus {
  outline: none;
  border-color: var(--lc-primary);
}
.lc-rx-pd {
  margin-bottom: 1rem;
}
.lc-rx-pd label {
  font-size: 12px;
  color: var(--lc-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.lc-rx-actions {
  display: flex;
  gap: 8px;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

/* ── Prescription Upload ─────────────────────────────────────── */
.lc-rx-upload-area {
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--lc-border);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}
.lc-rx-upload-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1.5px dashed var(--lc-primary);
  border-radius: var(--lc-radius);
  background: var(--lc-bg);
  color: var(--lc-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.lc-rx-upload-btn:hover { background: #f0f3fa; }
.lc-rx-upload-hint {
  font-size: 11px;
  color: var(--lc-muted);
  margin: 0;
}
.lc-rx-upload-file {
  display: flex;
  align-items: center;
  gap: 10px;
}
.lc-rx-upload-filename {
  flex: 1;
  font-size: 13px;
  font-weight: 500;
  color: var(--lc-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lc-rx-upload-remove {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--lc-muted);
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}
.lc-rx-upload-remove:hover { color: var(--lc-primary); }
.lc-rx-manual-link {
  background: none;
  border: none;
  padding: 0;
  margin-top: 8px;
  font-size: 12px;
  color: var(--lc-primary);
  text-decoration: underline;
  cursor: pointer;
}
.lc-rx-save-btn {
  padding: 9px 16px;
  border: 1.5px solid var(--lc-primary);
  border-radius: var(--lc-radius);
  background: var(--lc-bg);
  color: var(--lc-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.lc-rx-save-btn:hover { background: #f0f3fa; }

/* ── Modal Footer ───────────────────────────────────────────── */
.lc-modal-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--lc-border);
  display: flex;
  gap: 10px;
  position: sticky;
  bottom: 0;
  background: var(--lc-bg);
}
.lc-back-btn {
  padding: 12px 20px;
  border: 1.5px solid var(--lc-border);
  border-radius: var(--lc-radius);
  background: var(--lc-bg);
  color: var(--lc-muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.lc-back-btn:hover { border-color: var(--lc-primary); color: var(--lc-primary); }
.lc-cta-btn {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: var(--lc-radius);
  background: var(--lc-cta);
  color: var(--lc-cta-text);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--lc-shadow);
}
.lc-cta-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ── Prescription Manager (account page) ───────────────────── */
.lc-rx-manager {
  font-family: inherit;
  max-width: 800px;
  margin: 0 auto;
  padding: 1.5rem 0;
}
.lc-rx-manager-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.lc-rx-manager-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--lc-primary);
  margin: 0;
}
.lc-rx-manager-loading {
  color: var(--lc-muted);
  font-size: 14px;
}
.lc-rx-manager-empty {
  color: var(--lc-muted);
  font-size: 14px;
}
.lc-rx-card {
  border: 1.5px solid var(--lc-border);
  border-radius: var(--lc-radius);
  margin-bottom: 1rem;
  overflow: hidden;
}
.lc-rx-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--lc-step-bg);
  gap: 0.5rem;
  flex-wrap: wrap;
}
.lc-rx-card-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--lc-primary);
}
.lc-rx-card-actions {
  display: flex;
  gap: 8px;
}
.lc-rx-card-btn {
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid var(--lc-border);
  background: var(--lc-bg);
  color: var(--lc-primary);
}
.lc-rx-card-btn:hover { background: #f0f3fa; }
.lc-rx-card-btn.delete { color: #c0392b; border-color: #e8b4af; }
.lc-rx-card-btn.delete:hover { background: #fdf3f2; }
.lc-rx-card-body {
  padding: 14px 16px;
}
.lc-rx-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 0.5rem;
}
.lc-rx-summary-eye {
  font-size: 13px;
}
.lc-rx-summary-eye strong {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--lc-muted);
  margin-bottom: 4px;
}
.lc-rx-summary-pd {
  font-size: 13px;
  color: var(--lc-muted);
  margin-top: 6px;
}
.lc-rx-summary-file {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.lc-rx-summary-file-link {
  color: var(--lc-primary);
  text-decoration: underline;
  word-break: break-all;
}
.lc-rx-edit-form {
  padding: 14px 16px;
  border-top: 1px solid var(--lc-border);
  background: #fafbfd;
}
.lc-rx-card .lc-rx-edit-form { display: none; }
.lc-rx-card.lc-expanded .lc-rx-edit-form { display: block; }
.lc-rx-card.lc-expanded .lc-rx-card-body { display: none; }
.lc-rx-card-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  padding: 4px 16px 8px;
}
.lc-rx-expand-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--lc-muted);
  padding: 4px;
  border-radius: 4px;
  transition: color 0.15s;
}
.lc-rx-expand-btn:hover { color: var(--lc-primary); }
.lc-rx-card-footer .lc-rx-edit-save,
.lc-rx-card-footer .lc-rx-edit-cancel { display: none; }
.lc-rx-card.lc-expanded .lc-rx-card-footer .lc-rx-expand-btn { display: none; }
.lc-rx-card.lc-expanded .lc-rx-card-footer .lc-rx-edit-save { display: inline-block; }
.lc-rx-card.lc-expanded .lc-rx-card-footer .lc-rx-edit-cancel { display: inline-block; }
.lc-rx-card-footer .lc-rx-card-btn.delete { display: none; }
.lc-rx-card.lc-expanded .lc-rx-card-footer .lc-rx-card-btn.delete { display: inline-block; }
.lc-rx-edit-name {
  width: 100%;
  padding: 8px 12px;
  border: 1.5px solid var(--lc-border);
  border-radius: var(--lc-radius);
  font-size: 14px;
  margin-bottom: 1rem;
  color: #1a2340;
}
.lc-rx-edit-name:focus { outline: none; border-color: var(--lc-primary); }
.lc-rx-edit-actions {
  display: flex;
  gap: 8px;
  margin-top: 1rem;
}
.lc-rx-edit-save {
  padding: 9px 18px;
  background: var(--lc-cta);
  color: var(--lc-cta-text);
  border: none;
  border-radius: var(--lc-radius);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.lc-rx-edit-save:hover { opacity: 0.9; }
.lc-rx-edit-cancel {
  padding: 9px 18px;
  border: 1.5px solid var(--lc-border);
  border-radius: var(--lc-radius);
  background: var(--lc-bg);
  font-size: 13px;
  color: var(--lc-muted);
  cursor: pointer;
}
.lc-rx-edit-cancel:hover { background: #f0f3fa; }

/* ── Utility ────────────────────────────────────────────────── */
.lc-hidden { display: none !important; }

/* ── Floating Cart Button ───────────────────────────────────── */
.lc-cart-btn {
  position: fixed;
  top: 40px;
  right: 24px;
  z-index: 9997;
  background: var(--lc-primary);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.25);
  transition: opacity 0.15s;
}
.lc-cart-btn:hover { opacity: 0.9; }
@media (max-width: 600px) {
  .lc-cart-btn { top: auto; bottom: 16px; }
}

.lc-cart-badge {
  background: var(--lc-cta);
  color: var(--lc-cta-text);
  border-radius: 50%;
  min-width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  padding: 0 4px;
}

/* ── Cart Drawer Overlay ────────────────────────────────────── */
.lc-cart-overlay {
  position: fixed;
  inset: 0;
  background: var(--lc-overlay);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.lc-cart-overlay.open {
  opacity: 1;
  pointer-events: all;
}

/* ── Cart Drawer ────────────────────────────────────────────── */
.lc-cart-drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--lc-bg);
  display: flex;
  flex-direction: column;
  box-shadow: -4px 0 24px rgba(0,0,0,0.1);
  transform: translateX(100%);
  transition: transform 0.25s ease;
}
.lc-cart-overlay.open .lc-cart-drawer {
  transform: translateX(0);
}

.lc-cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--lc-border);
}
.lc-cart-title {
  font-size: 17px;
  font-weight: 500;
  color: var(--lc-primary);
}
.lc-cart-close {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: var(--lc-muted);
  line-height: 1;
  padding: 0;
}
.lc-cart-close:hover { color: var(--lc-primary); }

.lc-cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
}
.lc-cart-empty {
  color: var(--lc-muted);
  font-size: 14px;
  text-align: center;
  margin-top: 2rem;
}

.lc-cart-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--lc-border);
}
.lc-cart-item:last-child { border-bottom: none; }

.lc-cart-item-info { flex: 1; min-width: 0; }
.lc-cart-item-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--lc-primary);
  margin: 0 0 2px;
}
.lc-cart-item-variant {
  font-size: 12px;
  color: var(--lc-muted);
  margin: 0 0 6px;
}
.lc-cart-item-sels {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.lc-cart-sel {
  font-size: 12px;
  color: var(--lc-muted);
}

.lc-cart-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}
.lc-cart-item-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--lc-primary);
  white-space: nowrap;
}
.lc-cart-remove {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--lc-muted);
  line-height: 1;
  padding: 0;
}
.lc-cart-remove:hover { color: var(--lc-primary); }

.lc-cart-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--lc-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lc-cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
  font-weight: 600;
  color: var(--lc-primary);
  margin-bottom: 4px;
}
