/* PopShop™ — payment-runtime.css
   PSPayments — Payment method UI styles.
   PASS 11B (PS-4012B)
*/

/* ── Inline embed (booking-page.js renderCheckoutUI) ─────── */
.ps-pay-inline {
  margin-top: 16px;
  padding: 14px;
  background: var(--ps-surface, #141420);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.07);
}
.ps-pay-inline-header {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ps-text-muted, #8888a0);
  margin-bottom: 10px;
}
.ps-pay-inline-methods {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ── Method row (shared inline + panel) ─────────────────── */
.ps-pay-method-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--ps-surface-2, #1c1c30);
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color .15s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.ps-pay-method-row:has(input:checked),
.ps-pay-method-row input:checked ~ * {
  border-color: var(--ps-primary,#00e676);
}
.ps-pay-method-row:has(input:checked) {
  background: color-mix(in srgb,var(--ps-primary,#00e676) 8%,transparent);
  border-color: var(--ps-primary,#00e676);
}
.ps-pay-method-row input[type="radio"] {
  accent-color: var(--ps-primary,#00e676);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.ps-pay-method-icon  { font-size: 18px; flex-shrink: 0; }
.ps-pay-method-label { flex: 1; font-size: 14px; font-weight: 500; color: var(--ps-text, #f0f0f5); }
.ps-pay-handle {
  font-size: 12px;
  color: var(--ps-text-muted, #8888a0);
  font-weight: 400;
}

/* ── Inline instructions ─────────────────────────────────── */
.ps-pay-instructions {
  margin-top: 10px;
  padding: 10px 12px;
  background: rgba(255,255,255,.04);
  border-radius: 8px;
  font-size: 13px;
  color: var(--ps-text-muted, #8888a0);
  line-height: 1.5;
}

/* ── Full payment panel (overlay) ───────────────────────── */
.ps-pay-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9700;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.ps-pay-panel {
  width: 100%;
  max-width: 480px;
  background: var(--ps-surface, #141420);
  border-radius: 22px 22px 0 0;
  border: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 -12px 48px rgba(0,0,0,.6);
  max-height: 85vh;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translateY(100%);
  transition: transform .32s cubic-bezier(.22,1,.36,1);
}
.ps-pay-panel--visible { transform: translateY(0); }

.ps-pay-panel-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px 12px;
  background: var(--ps-surface, #141420);
  border-bottom: 1px solid rgba(255,255,255,.06);
  z-index: 1;
  flex-direction: column;
  gap: 0;
}
.ps-pay-panel-drag {
  width: 36px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255,255,255,.18);
  margin: 0 auto 10px;
}
.ps-pay-panel-header {
  flex-direction: row;
  padding-top: 8px;
}
/* Re-declare after the drag override so flex-direction sticks */
.ps-pay-panel > .ps-pay-panel-header {
  flex-direction: column;
  padding-top: 14px;
}
/* Simple approach: */
#psPayPanel .ps-pay-panel-header {
  display: grid;
  grid-template-rows: auto auto;
  padding: 14px 20px 10px;
}
#psPayPanel .ps-pay-panel-drag {
  grid-row: 1;
  margin-bottom: 8px;
}
.ps-pay-panel-title {
  font-family: var(--ps-font-display, 'Outfit', sans-serif);
  font-size: 17px;
  font-weight: 700;
  color: var(--ps-text, #f0f0f5);
}
.ps-pay-panel-close {
  background: none;
  border: none;
  color: rgba(255,255,255,.4);
  font-size: 20px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  line-height: 1;
}
.ps-pay-panel-body {
  padding: 18px 20px 24px;
}
.ps-pay-section {
  margin-bottom: 20px;
}
.ps-pay-section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ps-text-muted, #8888a0);
  margin-bottom: 10px;
}
.ps-pay-methods-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ps-pay-instructions-panel {
  padding: 12px;
  background: rgba(255,255,255,.04);
  border-radius: 10px;
  font-size: 13px;
  color: var(--ps-text-muted, #8888a0);
  line-height: 1.5;
}
.ps-pay-instr-text {
  font-size: 13px;
  color: var(--ps-text-muted, #8888a0);
  line-height: 1.5;
}

/* ── Tip buttons ─────────────────────────────────────────── */
.ps-tip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ps-tip-btn {
  padding: 8px 16px;
  background: var(--ps-surface-2, #1c1c30);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  color: var(--ps-text, #f0f0f5);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.ps-tip-btn.active,
.ps-tip-btn:hover {
  background: var(--ps-primary,#00e676);
  color: #000;
  border-color: var(--ps-primary,#00e676);
}
.ps-tip-custom {
  margin-top: 10px;
}
.ps-tip-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--ps-surface-2, #1c1c30);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  color: var(--ps-text, #f0f0f5);
  font-size: 15px;
  box-sizing: border-box;
}
.ps-tip-input:focus {
  outline: none;
  border-color: var(--ps-primary,#00e676);
}
.ps-tip-display {
  margin-top: 8px;
  font-size: 13px;
  color: var(--ps-primary,#00e676);
  font-weight: 600;
}
