.pamphlet-selection-dialog {
  background: transparent;
  border: 0;
  max-height: calc(100vh - 2rem);
  max-width: 46rem;
  padding: 0;
  width: calc(100% - 2rem);
}

.pamphlet-selection-dialog::backdrop {
  background: rgba(12, 12, 30, 0.62);
}

.pamphlet-selection-dialog__surface {
  background: #fff;
  border-radius: 1.1rem;
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 40, 0.28);
  color: #202027;
  overflow: hidden;
}

.pamphlet-selection-dialog__header,
.pamphlet-selection-dialog__footer {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.2rem;
}

.pamphlet-selection-dialog__header {
  border-bottom: 1px solid #dddde5;
}

.pamphlet-selection-dialog__header h2 {
  color: #000066 !important;
  font-size: 1.35rem;
  margin: 0;
}

.pamphlet-selection-dialog__header button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 50%;
  color: #4f4f62;
  display: inline-flex;
  font-size: 1.7rem;
  height: 2.25rem;
  justify-content: center;
  width: 2.25rem;
}

.pamphlet-selection-dialog__controls {
  display: flex;
  gap: 0.5rem;
  padding: 0.8rem 1.2rem;
}

.pamphlet-selection-dialog__controls button {
  background: #fff;
  border: 1px solid rgba(0, 0, 102, 0.28);
  border-radius: 999px;
  color: #000066;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 0.75rem;
}

.pamphlet-selection-dialog__list {
  border-block: 1px solid #dddde5;
  max-height: min(55vh, 31rem);
  overflow-y: auto;
}

.pamphlet-selection-row {
  align-items: center;
  border-bottom: 1px solid #ededf2;
  cursor: pointer;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin: 0;
  padding: 0.8rem 1.2rem;
}

.pamphlet-selection-row:last-child { border-bottom: 0; }
.pamphlet-selection-row:hover { background: #f6f7fb; }

.pamphlet-selection-row input {
  accent-color: #000066;
  height: 1.15rem;
  width: 1.15rem;
}

.pamphlet-selection-row__copy,
.pamphlet-selection-row__copy strong,
.pamphlet-selection-row__copy span {
  display: block;
}

.pamphlet-selection-row__copy strong {
  color: #000066;
  line-height: 1.25;
}

.pamphlet-selection-row__copy span {
  color: #5b5b70;
  font-size: 0.78rem;
  margin-top: 0.15rem;
}

.pamphlet-selection-row__book { color: #587951 !important; }
.pamphlet-selection-row__price { font-size: 0.85rem; font-weight: 700; }

.pamphlet-selection-dialog__footer {
  background: #f6f7fb;
}

.pamphlet-selection-dialog__footer p {
  color: #5b5b70;
  margin: 0;
}

.pamphlet-selection-dialog__footer button {
  background: #000066;
  border: 0;
  border-radius: 0.75rem;
  color: #fff;
  font: inherit;
  font-weight: 700;
  min-height: 2.8rem;
  padding: 0.65rem 1rem;
}

.pamphlet-selection-dialog__footer button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

@media (max-width: 36rem) {
  .pamphlet-selection-dialog { max-height: calc(100vh - 1rem); width: calc(100% - 1rem); }
  .pamphlet-selection-dialog__footer { align-items: stretch; flex-direction: column; }
  .pamphlet-selection-dialog__footer button { width: 100%; }
}
