/* ==========================================================================
   PRESCRIPTION FLOW — modal + checkout panels (pharmacy-rx.css)
   Shown only when ordering Rx medicines, not on general browsing
   ========================================================================== */

.modal-box--rx { max-width: 440px; }

.rx-modal__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.rx-modal__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, #059669, #10b981);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rx-modal__icon svg { width: 24px; height: 24px; }

.rx-modal__head h2 {
  font-size: 18px;
  margin-bottom: 4px;
  color: var(--navy-900);
}

.rx-modal__head p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.rx-modal__product {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
  font-size: 12px;
  font-weight: 600;
}

.rx-modal__dropzone {
  border: 2px dashed var(--border-default);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
  margin-bottom: 16px;
  cursor: pointer;
  background: var(--gray-50);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.rx-modal__dropzone:hover {
  border-color: #059669;
  background: #ecfdf5;
}

.rx-modal__dropzone svg {
  width: 32px;
  height: 32px;
  color: #059669;
  margin-bottom: 10px;
}

.rx-modal__dropzone strong {
  display: block;
  font-size: 14px;
  color: var(--navy-900);
  margin-bottom: 4px;
}

.rx-modal__dropzone span {
  font-size: 12px;
  color: var(--text-muted);
}

.rx-modal__tips {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
}

.rx-modal__tips li {
  position: relative;
  padding-left: 18px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 8px;
}

.rx-modal__tips li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #059669;
}

/* Checkout / cart Rx panel — only when Rx items in order */
.rx-order-panel {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid rgba(217, 119, 6, 0.28);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 18px;
}

.rx-order-panel[hidden] { display: none !important; }

.rx-order-panel__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.rx-order-panel__icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgba(217, 119, 6, 0.15);
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.rx-order-panel__icon svg { width: 20px; height: 20px; }

.rx-order-panel__head strong {
  display: block;
  font-size: 14px;
  color: #92400e;
  margin-bottom: 4px;
}

.rx-order-panel__head p {
  font-size: 12.5px;
  color: #78350f;
  line-height: 1.5;
  margin: 0;
}

.rx-order-panel__upload {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.rx-order-panel__upload .btn { flex-shrink: 0; }

.rx-order-panel__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #047857;
}

.rx-order-panel__status svg { width: 18px; height: 18px; }

.rx-order-panel.is-uploaded {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: rgba(5, 150, 105, 0.3);
}

.rx-order-panel.is-uploaded .rx-order-panel__head strong { color: #065f46; }
.rx-order-panel.is-uploaded .rx-order-panel__head p { color: #047857; }

@media (max-width: 768px) {
  .rx-order-panel__upload {
    flex-direction: column;
    align-items: stretch;
  }

  .rx-order-panel__upload .btn { width: 100%; }
}
