/* "Before you pay" consent pop-up (#2202). Uses the site tokens from style.css. */

.pc-modal .modal-dialog { max-width: 620px; padding: 0 16px; margin-left: auto; margin-right: auto; }

.pc-card {
  border: 0;
  border-radius: var(--radius-lg, 22px);
  background: var(--surface, #fff);
  box-shadow: var(--shadow-lg);
  padding: 36px 36px 32px;
}

.pc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pc-title {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.75rem;
  line-height: 1.25;
  color: var(--ink-2);
  margin: 0;
}
.pc-close {
  border: 0; background: none; padding: 4px; line-height: 1;
  color: var(--muted); font-size: 1.15rem; border-radius: 8px;
}
.pc-close:hover { color: var(--ink-2); }

.pc-body { padding: 0; }
.pc-lead { color: var(--muted); margin: 10px 0 20px; font-size: 1rem; }

.pc-option {
  position: relative;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm, 10px);
  padding: 18px 20px;
  margin-bottom: 18px;
  cursor: pointer;
  transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.pc-option:hover { border-color: var(--muted-2); }
.pc-option:has(.pc-check:checked) { border-color: var(--brand); background: var(--brand-soft); }

/* real checkbox stays in the tab order, visually replaced by .pc-box */
.pc-check { position: absolute; opacity: 0; width: 22px; height: 22px; margin: 0; left: 20px; top: 19px; }
.pc-box {
  flex: 0 0 22px; width: 22px; height: 22px; margin-top: 1px;
  border: 1.5px solid var(--muted-2); border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-2, #fff); color: #fff; font-size: .9rem;
}
.pc-box i { opacity: 0; }
.pc-check:checked + .pc-box { background: var(--brand); border-color: var(--brand); }
.pc-check:checked + .pc-box i { opacity: 1; }
.pc-check:focus-visible + .pc-box { outline: 3px solid var(--brand-tint); outline-offset: 2px; }

.pc-text { color: var(--ink-2); font-size: 1rem; line-height: 1.55; }
.pc-link {
  display: block; margin-top: 4px;
  font-size: .85rem; font-weight: 500;
  color: var(--brand-ink-deep); text-decoration: underline;
}
.pc-link:hover { color: var(--brand-ink); }

.pc-record {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--bg-soft); border-radius: var(--radius-sm, 10px);
  padding: 14px 16px; margin: 0;
  color: var(--muted); font-size: .85rem; line-height: 1.6;
}
.pc-record i { font-size: 1.05rem; color: var(--ink-3); margin-top: -1px; }

.pc-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px 16px; flex-wrap: wrap; margin-top: 24px;
}
.pc-status { margin: 0; font-size: .85rem; color: var(--muted-2); }
.pc-status.is-ready { color: #1f9d55; font-weight: 600; }
.pc-actions { display: flex; gap: 12px; }

.pc-btn {
  border-radius: var(--radius-sm, 10px);
  font-weight: 600; font-size: 1rem;
  padding: 12px 22px; border: 1px solid transparent; line-height: 1.2;
}
.pc-btn--ghost { background: var(--surface-2, #fff); border-color: var(--line); color: var(--ink-2); }
.pc-btn--ghost:hover { border-color: var(--muted-2); }
.pc-btn--pay { background: var(--brand); color: #fff; }
.pc-btn--pay:hover:not(:disabled) { background: var(--brand-dark); }
.pc-btn--pay:disabled { background: var(--line); color: var(--muted-2); cursor: not-allowed; }
.pc-btn:focus-visible, .pc-close:focus-visible, .pc-link:focus-visible {
  outline: 3px solid var(--brand-tint); outline-offset: 2px;
}

@media (max-width: 575.98px) {
  .pc-modal .modal-dialog { padding: 0 12px; }
  .pc-card { padding: 24px 20px 20px; }
  .pc-title { font-size: 1.4rem; }
  .pc-option { padding: 16px; }
  .pc-check { left: 16px; top: 17px; }
  .pc-foot { flex-direction: column-reverse; align-items: stretch; }
  .pc-status { text-align: center; }
  .pc-actions { flex-direction: column-reverse; }
  .pc-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .pc-option { transition: none; }
}

/* Shown under the Cloudflare check when the form is sent before it is ticked */
.pc-verify-msg {
  margin: -4px 0 16px; padding: 10px 14px; border-radius: 10px;
  background: #FDECEE; color: #B0161F; font-size: .92rem; font-weight: 500;
}
