
.ticket-page-shell {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 28px 16px 40px;
}

.ticket-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #f1dfd0;
  border-radius: 20px;
  box-shadow: 0 10px 28px rgba(78, 52, 46, 0.08);
  padding: 18px;
}

.ticket-brand {
  display: flex;
  align-items: center;
  min-height: 44px;
}

.ticket-brand-logo {
  display: block;
  width: min(230px, 72vw);
  height: auto;
}

.ticket-group {
  margin: 12px 0 0;
  color: #6e5c52;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.ticket-venue,
.ticket-note {
  color: #6e5c52;
  font-weight: 700;
  line-height: 1.6;
}

.cancellation-policy-link {
  display: inline-block;
  margin: 4px 0 2px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a54831;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.5;
  text-decoration: underline;
  cursor: pointer;
  overflow-wrap: anywhere;
}

.cancellation-policy-link.hidden {
  display: none;
}

.cancellation-policy-controls {
  display: grid;
  justify-items: start;
  gap: 6px;
  min-width: 0;
  margin: 4px 0 12px;
}

.cancellation-policy-controls.hidden {
  display: none;
}

.cancellation-policy-dialog {
  width: min(620px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-radius: 20px;
  color: #4a342d;
  background: #fffdf9;
  box-shadow: 0 18px 48px rgba(74, 52, 45, 0.25);
}

.cancellation-policy-dialog::backdrop {
  background: rgba(48, 34, 29, 0.5);
}

.cancellation-policy-dialog-content {
  padding: 24px;
}

.cancellation-policy-dialog-content h2 {
  margin: 0 0 18px;
  font-size: 20px;
}

.cancellation-policy-dialog-content p {
  margin: 0 0 22px;
  line-height: 1.75;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.cancellation-policy-dialog-consent {
  margin: 0 0 22px;
  color: #4e342e;
  font-weight: 900;
}

.ticket-note {
  margin: 12px 0 0;
  padding: 12px;
  border-radius: 14px;
  background: #fff8ef;
  border: 1px solid #f1dfd0;
  white-space: pre-wrap;
}

.reservation-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.reservation-form.hidden {
  display: none;
}

.reservation-form label {
  display: grid;
  gap: 7px;
  color: #4e342e;
  font-size: 13px;
  font-weight: 900;
}

.reservation-form input,
.reservation-form select,
.reservation-form textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid #ead8c7;
  border-radius: 14px;
  padding: 10px 12px;
  background: white;
  color: #4e342e;
  font: inherit;
  font-size: 16px;
}

.custom-questions {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.custom-questions.hidden {
  display: none;
}

.custom-questions h2 {
  margin: 4px 0 0;
  color: #3b2a20;
  font-size: 18px;
  line-height: 1.45;
}

.custom-questions-list {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.custom-question {
  min-width: 0;
  margin: 0;
  padding: 14px;
  border: 1px solid #ead8c7;
  border-radius: 14px;
  background: #fffaf4;
}

.custom-question legend {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 100%;
  padding: 0 4px;
  color: #4e342e;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.55;
}

.custom-question-label {
  min-width: 0;
  overflow-wrap: anywhere;
}

.custom-question-badge {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.5;
}

.custom-question-required {
  background: #ffe7df;
  color: #b44a34;
}

.custom-question-optional {
  background: #eee8e1;
  color: #6e5c52;
}

.custom-question-choices {
  display: grid;
  gap: 8px;
  min-width: 0;
  margin-top: 6px;
}

.reservation-form .custom-question-option {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid #f1dfd0;
  border-radius: 12px;
  background: white;
  cursor: pointer;
}

.reservation-form .custom-question-option input {
  flex: 0 0 auto;
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin: 1px 0 0;
  padding: 0;
  accent-color: #c65d3b;
}

.custom-question-option span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
}

.custom-question > select,
.custom-question > textarea {
  margin-top: 8px;
}

.custom-question-error {
  margin: 8px 2px 0;
  color: #b44a34;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.5;
}

.custom-question-error.hidden {
  display: none;
}

.custom-question-invalid {
  border-color: #c65d3b;
  background: #fff7f3;
}

.cancellation-policy-consent {
  min-width: 0;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ead8c7;
  border-radius: 14px;
  background: #fffaf4;
}

.cancellation-policy-consent.hidden {
  display: none;
}

.cancellation-policy-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
}

.cancellation-policy-consent-label input {
  flex: 0 0 auto;
  width: 20px;
  min-height: 20px;
  margin-top: 1px;
}

.cancellation-policy-consent-label span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cancellation-policy-consent-hint {
  margin: 6px 0 0 30px;
  color: #8a6c61;
  font-size: 12px;
  line-height: 1.5;
}

.cancellation-policy-consent-hint.hidden {
  display: none;
}

.cancellation-policy-consent-error {
  margin: 8px 0 0 30px;
  color: #b44a34;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.5;
}

.cancellation-policy-consent-error.hidden {
  display: none;
}

.reservation-form select option:disabled {
  color: #9b8178;
}

.reservation-form textarea {
  min-height: 96px;
  resize: vertical;
}

.reservation-form .primary-action {
  border: 0;
  cursor: pointer;
  margin-top: 6px;
}

.reservation-form .primary-action:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.reservation-confirmation {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #f1dfd0;
  border-radius: 18px;
  background: #fff8ef;
}

.reservation-confirmation h2 {
  margin: 0 0 14px;
  color: #3b2a20;
  font-size: 20px;
  line-height: 1.4;
}

.confirmation-list {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 10px 12px;
  margin: 0;
  color: #4e342e;
  line-height: 1.55;
}

.confirmation-list dt {
  font-size: 13px;
  font-weight: 900;
  color: #8d6e63;
}

.confirmation-list dd {
  margin: 0;
  font-weight: 800;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.confirmation-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid #c65d3b;
  border-radius: 999px;
  background: white;
  color: #c65d3b;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.reservation-confirmation .primary-action {
  border: 0;
  cursor: pointer;
}

.reservation-confirmation button:disabled {
  opacity: 0.65;
  cursor: progress;
}

.reservation-complete {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #cfe8d5;
  border-radius: 18px;
  background: #f3fbf4;
  color: #2f7d46;
  font-weight: 900;
  line-height: 1.7;
}

.reservation-completion-link {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: #c65d3b;
  color: #fff;
  text-align: center;
  text-decoration: none;
  line-height: 1.5;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

.reservation-completion-link:hover,
.reservation-completion-link:focus-visible {
  background: #a9482d;
}

.ticket-message {
  margin: 16px 0 0;
  color: #2f7d46;
  font-weight: 900;
  line-height: 1.6;
  white-space: pre-wrap;
}

.ticket-message-error {
  color: #b44a34;
}

.email-settings h1 {
  margin: 18px 0 8px;
  color: #3b2a20;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
}

.email-settings-help {
  margin: 10px 0 0;
  color: #6e5c52;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.7;
}

.email-settings .reservation-form label {
  font-weight: 600;
}

.email-settings .reservation-form input,
.email-settings .reservation-form textarea {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans",
    "Yu Gothic", "Noto Sans JP", sans-serif;
  font-weight: 400;
}

.email-settings textarea {
  min-height: 520px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.email-settings .primary-action:disabled {
  opacity: 0.65;
  cursor: progress;
}

.email-reset-button {
  width: 100%;
  margin-top: 12px;
}

.cancellation-policy-template-button {
  width: 100%;
  margin-bottom: 12px;
}

.placeholder-help-card {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #f1dfd0;
  border-radius: 16px;
  background: #fff8ef;
}

.placeholder-help-card h2 {
  margin: 0 0 10px;
  color: #3b2a20;
  font-size: 16px;
}

.placeholder-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.placeholder-help-note {
  margin: 10px 0 0;
  color: #6e5c52;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.placeholder-list span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff1f6;
  color: #8b4a3b;
  font-size: 13px;
  font-weight: 900;
}

@media (max-width: 420px) {
  .ticket-page-shell {
    padding-right: 10px;
    padding-left: 10px;
  }

  .ticket-card {
    padding: 14px;
  }

  .custom-question {
    padding: 12px;
  }

  .custom-question legend {
    width: 100%;
  }
}
