/* Right-Side Lens Configuration Drawer */
.lens-drawer {
  position: fixed;
  top: 0;
  right: -500px;
  width: 450px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.1);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  z-index: 100001;
}

@media (max-width: 600px) {
  .lens-drawer {
    width: 100%;
    right: -100%;
  }
}

.lens-drawer.open {
  right: 0;
}

/* Header & Stepper */
.drawer-header {
  padding: 20px 25px;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}

.drawer-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
}

.step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.step-indicator.active {
  opacity: 1;
}

.step-indicator.completed .step-circle {
  background: #10b981;
  color: #fff;
  border-color: #10b981;
}

.step-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #cbd5e1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  color: #64748b;
  transition: all 0.3s ease;
}

.step-indicator.active .step-circle {
  border-color: #0f2747;
  color: #0f2747;
  background: #e0e7ff;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #475569;
}

.step-line {
  flex-grow: 1;
  height: 2px;
  background: #e2e8f0;
  margin: 0 10px;
  transform: translateY(-10px);
}

/* Content Area */
.drawer-content {
  flex-grow: 1;
  overflow-y: auto;
  padding: 25px;
  position: relative;
}

.drawer-step-panel {
  display: none;
  animation: slideInFade 0.3s ease forwards;
}

.drawer-step-panel.active {
  display: block;
}

@keyframes slideInFade {
  from {
    opacity: 0;
    transform: translateX(10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.step-title {
  color: #0f2747;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 5px;
}

/* Footer Navigation */
.drawer-footer {
  padding: 20px 25px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.drawer-footer button {
  flex: 1;
}

/* Prescription Option Cards */
.presc-methods-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.presc-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}

.presc-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.presc-card.active {
  border-color: #d4af37;
  box-shadow: 0 0 0 1px #d4af37;
}

.presc-card-header {
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.presc-card-header strong {
  display: block;
  font-size: 0.95rem;
  color: #0f2747;
  margin-bottom: 2px;
}

.presc-check {
  margin-left: auto;
  font-size: 1.2rem;
  color: #cbd5e1;
  transition: color 0.2s;
}

.presc-card.active .presc-check {
  font-weight: 900; /* Solid check icon */
  color: #10b981;
}

.presc-card-content {
  padding: 0 16px 16px 16px;
  border-top: 1px solid #f1f5f9;
  background: #fafafa;
}

