/* オンライン購入（/buy/<orderId>・/buy/thanks）と特定商取引法の表記。トークン・result.css の世界観に合わせる */

.shop {
  gap: 22px;
}

.shop-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  text-align: center;
}

.shop-logo {
  width: 34px;
  height: auto;
  opacity: 0.9;
}

.shop-kicker {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--cream-3);
}

.shop-lead {
  margin: 0;
  font-size: 0.9375rem;
  letter-spacing: 0.16em;
  color: var(--cream-2);
}

/* 一杯の名札: 縦書きの名前 + 占いの冒頭 */
.shop-blend {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.shop-blend .r-name-wrap {
  display: flex;
  flex-direction: row-reverse;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
}

.shop-fortune {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 2;
  color: var(--cream-2);
  text-align: center;
}

.shop-teas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-main {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--cream-3);
  letter-spacing: 0.12em;
}

/* フォーム */
.shop-form {
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.shop-fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.shop-legend {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 6px;
  padding: 0 0 6px;
  border-bottom: 1px solid var(--line-strong);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.shop-legend .roman {
  font-size: 0.625rem;
  color: var(--cream-4);
}

.shop-choice {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 64px;
  padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background-color 0.25s var(--ease);
}

.shop-choice:hover {
  background: var(--wash);
}

.shop-choice input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--cream);
}

.shop-choice-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shop-choice-name {
  font-weight: 600;
  letter-spacing: 0.1em;
}

.shop-choice-note {
  font-size: 0.8125rem;
  color: var(--cream-3);
}

.shop-price {
  flex: none;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
}

.shop-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
}

.shop-select,
.shop-input,
.shop-textarea {
  min-height: 48px;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: rgba(1, 29, 33, 0.5);
  font-size: 1rem; /* 16px（iOS のズーム防止） */
}

.shop-select {
  min-width: 6em;
}

.shop-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.shop-field-label {
  font-size: 0.875rem;
  letter-spacing: 0.14em;
  color: var(--cream-2);
}

.shop-field-hint {
  font-size: 0.75rem;
  color: var(--cream-3);
}

.shop-input,
.shop-textarea {
  width: 100%;
}

.shop-textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.7;
}

.shop-gift[hidden] {
  display: none;
}

.shop-summary {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 0;
  margin: 0;
  padding: 16px 4px 0;
  font-size: 0.9375rem;
}

.shop-summary dt {
  color: var(--cream-2);
}

.shop-summary dd {
  margin: 0;
  padding-left: 16px;
  text-align: right;
}

.shop-summary .shop-total {
  padding-top: 8px;
  border-top: 1px solid var(--line-strong);
  font-size: 1.125rem;
  font-weight: 700;
}

.shop-note {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.9;
  color: var(--cream-3);
}

.shop-error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--danger);
  color: var(--danger);
  font-size: 0.9375rem;
}

.shop-notice {
  margin: 0;
  padding: 18px 16px;
  border: 1px solid var(--line-strong);
  background: var(--wash);
  text-align: center;
  line-height: 2;
}

.shop-submit {
  width: 100%;
}

.shop-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  margin-top: auto;
  padding-top: 12px;
  font-size: 0.8125rem;
}

.shop-foot a {
  color: var(--cream-3);
}

.shop-thanks {
  align-items: center;
  text-align: center;
  gap: 24px;
  padding-top: 10vh;
}

.shop-thanks-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.24em;
}

/* ---------- 特定商取引法の表記 ---------- */

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.legal-table th,
.legal-table td {
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table th {
  width: 9em;
  font-weight: 600;
  color: var(--cream-2);
  letter-spacing: 0.08em;
}

.legal-tbd {
  display: inline-block;
  padding: 0 0.4em;
  background: var(--bengara-soft);
  border: 1px solid var(--bengara);
  color: #f0b9a6;
  font-weight: 700;
}

@media (max-width: 400px) {
  .legal-table th,
  .legal-table td {
    display: block;
    width: auto;
  }

  .legal-table th {
    padding-bottom: 0;
    border-bottom: 0;
  }
}

.shop-seller {
  flex-basis: 100%;
  margin: 0;
  text-align: center;
  color: var(--cream-3);
  letter-spacing: 0.12em;
}
