body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #1f2933;
}

.page {
  max-width: 1200px;
  margin: 40px auto;
  padding: 20px;
}

.page-header {
  margin-bottom: 25px;
}

.eyebrow {
  margin: 0 0 6px 0;
  font-size: 13px;
  font-weight: bold;
  color: #2563eb;
  text-transform: uppercase;
}

.page-header h1 {
  margin: 0 0 8px 0;
}

.subtitle {
  margin: 0;
  color: #52606d;
}

.bap-layout {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.panel {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.panel-header h2 {
  margin: 0 0 6px 0;
}

.panel-header p {
  margin: 0;
  color: #66788a;
}

.role-badge {
  background: #e0ecff;
  color: #1d4ed8;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
  white-space: nowrap;
}

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 28px;
}

.search-box input {
  flex: 1;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #cbd2d9;
  border-radius: 8px;
}

.search-box button,
.select-button {
  padding: 12px 18px;
  font-size: 15px;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: white;
  font-weight: bold;
}

.select-button:disabled {
  background: #9ca3af;
  cursor: not-allowed;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.medicine-card,
.selected-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px;
}

.medicine-card h3,
.selected-card h3 {
  margin-top: 0;
}

.medicine-card p,
.selected-card p {
  margin: 6px 0;
}

.selected-panel {
  position: sticky;
  top: 20px;
}

.selected-label {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 9px;
  background: #dcfce7;
  color: #166534;
  border-radius: 999px;
  font-size: 13px;
  font-weight: bold;
}

@media (max-width: 900px) {
  .bap-layout {
    grid-template-columns: 1fr;
  }

  .selected-panel {
    position: static;
  }

  .panel-header {
    flex-direction: column;
  }

  .search-box {
    flex-direction: column;
  }
}


.order-button,
.init-button,
.confirm-button {
  margin-top: 14px;
  padding: 12px 18px;
  font-size: 15px;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: white;
  font-weight: 700;
}

.order-button:hover,
.init-button:hover,
.confirm-button:hover {
  background: #1d4ed8;
}

.checkout-select {
  display: block;
  width: 100%;
  margin: 8px 0 14px 0;
  padding: 10px;
  border: 1px solid #cbd2d9;
  border-radius: 8px;
  font-size: 15px;
}

.confirmed-card {
  border: 1px solid #d1fae5;
  background: #f0fdf4;
}
