/*
Theme Name: BR Payments
Theme URI: https://payments.billyrockentertainment.com/
Author: Billy Rock Entertainment
Description: Classic checkout theme for Billy Rock Payments.
Version: 0.1.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 8.0
Text Domain: br-payments
*/

:root {
  --app-bg-top: #1b2030;
  --app-bg-bottom: #07090d;
  --app-text: #f6f8ff;
  --app-muted: #c7ccdd;
  --app-card: rgba(255, 255, 255, 0.05);
  --app-border: rgba(120, 168, 255, 0.28);
  --app-cyan: #00c8ff;
  --app-orange: #ff7452;
  --app-blue-strong: #1699ea;
  --app-blue-deep: #095e98;
  --app-success: #9ceab7;
  --app-danger: #ffb3c1;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: radial-gradient(circle at top, var(--app-bg-top), var(--app-bg-bottom));
  color: var(--app-text);
  font-family: "Segoe UI", "Inter", system-ui, sans-serif;
}

a {
  color: inherit;
}

.brp-site {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.brp-shell {
  width: min(1080px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 26px 0 42px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.brp-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(95px);
  opacity: 0.32;
  pointer-events: none;
}

.brp-glow-left {
  background: var(--app-cyan);
  left: -120px;
  top: -120px;
}

.brp-glow-right {
  background: var(--app-orange);
  right: -140px;
  bottom: -140px;
}

.brp-card {
  position: relative;
  z-index: 1;
  background: var(--app-card);
  border: 1px solid var(--app-border);
  border-radius: 24px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  padding: 24px;
}

.brp-eyebrow {
  margin: 0 0 6px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--app-muted);
}

.brp-title {
  margin: 0;
  font-size: clamp(31px, 3.8vw, 42px);
  line-height: 1.05;
}

.brp-subtitle {
  margin: 8px 0 0;
  color: var(--app-muted);
  font-size: 14px;
}

.brp-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 16px;
}

.brp-pricing-card,
.brp-checkout-stage {
  width: min(920px, 100%);
  margin: 0 auto;
}

.brp-section-title {
  margin: 0 0 10px;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

.brp-pricing-stack {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 14px;
  align-items: stretch;
}

.brp-pricing-card article {
  width: 100%;
}

.brp-pricing-header {
  margin: 0 0 18px;
  text-align: center;
}

.brp-pricing-header .brp-eyebrow {
  margin-bottom: 8px;
}

.brp-pricing-header .brp-title {
  margin-bottom: 0;
}

.brp-summary-grid {
  display: grid;
  gap: 12px;
}

.brp-summary-card,
.brp-event-card {
  border-radius: 22px;
  border: 1px solid rgba(116, 172, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(17, 28, 44, 0.96), rgba(9, 15, 26, 0.98)),
    rgba(7, 10, 15, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(0, 200, 255, 0.07),
    0 18px 34px rgba(0, 0, 0, 0.2);
}

.brp-summary-card {
  position: relative;
  overflow: hidden;
  padding: 18px 20px 17px;
  text-align: center;
}

.brp-summary-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 72px;
  background: linear-gradient(180deg, rgba(74, 128, 192, 0.16), rgba(74, 128, 192, 0));
  pointer-events: none;
}

.brp-summary-card-emphasis {
  border-color: rgba(0, 200, 255, 0.44);
  box-shadow:
    inset 0 0 0 1px rgba(0, 200, 255, 0.12),
    0 0 26px rgba(0, 200, 255, 0.08),
    0 18px 34px rgba(0, 0, 0, 0.24);
}

.brp-summary-label,
.brp-event-kicker {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--app-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  font-weight: 700;
}

.brp-summary-value {
  position: relative;
  z-index: 1;
  margin: 10px 0 6px;
  color: #f7fbff;
  font-size: clamp(24px, 2.3vw, 32px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.brp-summary-meta {
  position: relative;
  z-index: 1;
  margin: 0;
  color: rgba(221, 235, 255, 0.7);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.brp-event-card {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
}

.brp-event-kicker {
  text-align: center;
}

.brp-event-body {
  margin-top: 12px;
  color: #f2f8ff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.78;
  text-align: center;
  text-wrap: pretty;
}

.brp-event-review-badge {
  width: 100%;
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.brp-google-badge {
  width: min(252px, 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 18px 18px;
  border-radius: 18px;
  border: 1px solid rgba(116, 172, 255, 0.3);
  background:
    linear-gradient(180deg, rgba(18, 29, 46, 0.98), rgba(10, 17, 28, 0.98)),
    rgba(7, 10, 15, 0.92);
  box-shadow:
    inset 0 0 0 1px rgba(0, 200, 255, 0.06),
    0 16px 32px rgba(0, 0, 0, 0.24);
  text-decoration: none;
}

.brp-google-badge__brand {
  margin: 0;
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.brp-google-badge__letter--blue {
  color: #4285f4;
}

.brp-google-badge__letter--red {
  color: #ea4335;
}

.brp-google-badge__letter--yellow {
  color: #fbbc05;
}

.brp-google-badge__letter--green {
  color: #34a853;
}

.brp-google-badge__stars {
  color: #ffc93d;
  font-size: 26px;
  line-height: 1;
  letter-spacing: 0.12em;
  text-shadow: 0 0 18px rgba(255, 201, 61, 0.18);
}

.brp-google-badge__cta {
  color: #f7fbff;
  font-size: 20px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.brp-google-badge__reviews {
  color: rgba(221, 235, 255, 0.78);
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.brp-google-badge:hover,
.brp-google-badge:focus-visible {
  border-color: rgba(0, 200, 255, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(0, 200, 255, 0.08),
    0 0 24px rgba(0, 200, 255, 0.08),
    0 16px 32px rgba(0, 0, 0, 0.24);
  outline: none;
}

.brp-checkout-stage {
  padding: 28px 24px 24px;
}

.brp-payment-stage-header {
  max-width: 760px;
  margin: 0 auto 16px;
  text-align: center;
}

.brp-payment-stage-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.22;
}

.brp-amount-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 200, 255, 0.42);
  background: linear-gradient(135deg, rgba(8, 25, 44, 0.88), rgba(9, 94, 152, 0.55));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  color: #f7fbff;
  white-space: nowrap;
}

.brp-stage-subtitle {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.brp-methods-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 16px auto 0;
  align-items: stretch;
}

.brp-method-tile {
  appearance: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 216px;
  padding: 18px 18px 20px;
  border-radius: 22px;
  border: 1px solid rgba(132, 190, 255, 0.24);
  background:
    linear-gradient(180deg, rgba(20, 31, 49, 0.96), rgba(10, 17, 28, 0.98)),
    rgba(7, 10, 15, 0.92);
  color: #f5faff;
  text-align: center;
  cursor: pointer;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.brp-method-tile:hover,
.brp-method-tile:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(0, 200, 255, 0.54);
  box-shadow: 0 22px 34px rgba(0, 0, 0, 0.28);
  outline: none;
}

.brp-method-tile.is-active {
  border-color: rgba(0, 200, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(0, 200, 255, 0.34), 0 24px 38px rgba(0, 0, 0, 0.34);
  background:
    linear-gradient(180deg, rgba(17, 39, 61, 0.98), rgba(9, 17, 28, 0.98)),
    rgba(7, 10, 15, 0.92);
}

.brp-method-tile-hidden {
  display: none;
}

.brp-method-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brp-method-logo-image {
  display: block;
  width: min(138px, 72%);
  height: auto;
  margin: 2px auto 4px;
  object-fit: contain;
  filter: drop-shadow(0 0 14px rgba(0, 200, 255, 0.16));
}

.brp-method-logo-card {
  width: min(148px, 76%);
  filter: drop-shadow(0 0 16px rgba(0, 200, 255, 0.18));
}

.brp-method-tile strong {
  font-size: 17px;
  line-height: 1.24;
}

.brp-method-tile > span:last-child {
  color: var(--app-muted);
  font-size: 13px;
  line-height: 1.55;
}

.brp-support-note-centered,
.brp-checkbox-centered,
.brp-inline-links-centered,
.brp-wallet-note,
.brp-wallet-gate-note {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.brp-choice-panel {
  display: none;
  width: min(720px, 100%);
  margin: 18px auto 0;
  animation: brp-panel-rise 180ms ease;
}

.brp-choice-panel.is-visible {
  display: block;
}

.brp-wallet-panel-wrap,
.brp-manual-panel {
  padding: 22px 20px 20px;
  border-radius: 22px;
  border: 1px solid rgba(132, 190, 255, 0.22);
  background: linear-gradient(180deg, rgba(13, 22, 35, 0.9), rgba(8, 13, 22, 0.78));
}

.brp-checkbox-centered {
  position: relative;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  width: min(680px, 100%);
  padding: 16px 14px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.brp-checkbox-centered label {
  max-width: none;
}

.brp-checkbox-centered.brp-checkbox-alert {
  border-color: rgba(255, 96, 96, 0.92);
  box-shadow: 0 0 0 1px rgba(255, 96, 96, 0.18);
  background: rgba(74, 14, 14, 0.18);
}

.brp-wallet-consent-helper {
  display: none;
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;
  max-width: calc(100% - 40px);
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(196, 34, 34, 0.9);
  color: #fff4f4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.brp-wallet-consent-helper.is-visible {
  display: block;
}

.brp-wallet-selected-label {
  display: none;
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-align: center;
  color: var(--app-muted);
  font-weight: 700;
}

.brp-wallet-selected-label.is-visible {
  display: block;
}

.brp-inline-links-centered {
  text-align: center;
}

.brp-wallet-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: transparent;
}

.brp-wallet-choice-grid.brp-wallet-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 420px;
}

.brp-wallet-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 0;
  width: min(100%, 420px);
  margin: 0 auto;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transition: transform 140ms ease;
}

.brp-wallet-panel-hidden {
  display: none;
}

.brp-wallet-panel.is-focused,
.brp-manual-panel.is-focused {
  border-color: rgba(0, 200, 255, 0.92);
  box-shadow: 0 0 0 1px rgba(0, 200, 255, 0.3), 0 24px 40px rgba(0, 0, 0, 0.34);
  transform: translateY(-1px);
}

.brp-wallet-panel.is-focused {
  border-color: transparent;
  box-shadow: none;
}

.brp-manual-panel {
  max-width: none;
  margin: 18px auto 0;
  transition: transform 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
}

.brp-manual-form {
  max-width: 620px;
  margin: 0 auto;
}

.brp-lock {
  margin: 0 0 12px;
  color: #d7e4ff;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
}

.brp-wallet-heading {
  margin: 0 0 8px;
  color: var(--app-muted);
  text-align: center;
  font-size: 13px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.brp-wallet-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.brp-wallet-row-disabled {
  opacity: 1;
}

.brp-wallet-row-disabled .brp-wallet-slot {
  pointer-events: none;
}

.brp-wallet-row-disabled .brp-wallet-panel {
  opacity: 1;
}

.brp-wallet-gate-note {
  margin: 0 0 10px;
  color: #d9efff;
  font-size: 12px;
  text-align: center;
}

.brp-wallet-quick-title {
  margin: 0 0 2px;
  font-size: 12px;
  line-height: 1.2;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d6e9ff;
  font-weight: 700;
  text-align: center;
}

.brp-wallet-slot {
  width: min(100%, 340px);
  min-height: 56px;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  transition: transform 140ms ease;
}

.brp-wallet-callout {
  position: relative;
  width: min(100%, 420px);
  margin: 0 auto;
  padding: 16px 14px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  box-shadow: 0 0 18px rgba(0, 200, 255, 0.16);
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease;
}

.brp-wallet-callout.is-active {
  box-shadow: 0 0 24px rgba(0, 200, 255, 0.2);
}

.brp-wallet-callout.is-ready {
  border-color: rgba(111, 236, 148, 0.92);
  box-shadow: 0 0 0 1px rgba(111, 236, 148, 0.18), 0 0 26px rgba(111, 236, 148, 0.24);
  background: rgba(16, 52, 28, 0.16);
  margin-top: 18px;
  padding-top: 22px;
}

.brp-wallet-callout-helper {
  display: none;
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;
  max-width: calc(100% - 40px);
  margin: 0;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(34, 132, 68, 0.94);
  color: #f1fff3;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
}

.brp-wallet-callout-helper.is-visible {
  display: block;
}

.brp-wallet-row.brp-wallet-single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 400px;
}

.brp-wallet-slot:empty {
  display: none;
}

.brp-wallet-slot-hidden {
  display: none !important;
}

.brp-wallet-slot > * {
  width: 100% !important;
  max-width: 100% !important;
}

/* Apple Pay: use a soft neutral outline so it visually matches Google's native frame. */
#applepaybutton.brp-wallet-slot {
  border: 0;
  background: transparent;
  box-shadow: none;
}

/* Google Pay already renders its own branded border/hover treatment.
   Remove our outer frame on that slot to avoid a double-outline look. */
#googlepaybutton.brp-wallet-slot {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.brp-form {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.brp-form h3 {
  margin: 0 0 2px;
  font-size: 17px;
  text-align: center;
}

.brp-form label {
  color: var(--app-muted);
  font-size: 13px;
  display: block;
  text-align: left;
}

.brp-form input[type="text"],
.brp-form input[type="email"],
.brp-form input[type="tel"],
.brp-form select,
.brp-form textarea {
  width: 100%;
  margin-top: 6px;
  border-radius: 12px;
  border: 1px solid var(--app-border);
  background: rgba(8, 13, 22, 0.75);
  color: var(--app-text);
  padding: 11px 12px;
  outline: none;
  transition: border-color 130ms ease, box-shadow 130ms ease;
}

.brp-form input[type="text"]:focus,
.brp-form input[type="email"]:focus,
.brp-form input[type="tel"]:focus,
.brp-form select:focus,
.brp-form textarea:focus {
  border-color: rgba(0, 200, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(0, 200, 255, 0.2);
}

.brp-form input.brp-field-invalid,
.brp-form select.brp-field-invalid,
.brp-form textarea.brp-field-invalid,
.brp-checkbox-centered.brp-field-invalid {
  border-color: rgba(255, 96, 96, 0.92) !important;
  box-shadow: 0 0 0 1px rgba(255, 96, 96, 0.22), 0 0 0 3px rgba(96, 16, 16, 0.18);
}

.brp-form input.brp-field-invalid:focus,
.brp-form select.brp-field-invalid:focus,
.brp-form textarea.brp-field-invalid:focus {
  border-color: rgba(255, 96, 96, 0.96) !important;
  box-shadow: 0 0 0 1px rgba(255, 96, 96, 0.26), 0 0 0 4px rgba(96, 16, 16, 0.22);
}

.brp-checkbox {
  margin-top: 4px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.brp-checkbox input {
  margin-top: 5px;
  accent-color: var(--app-cyan);
}

.brp-checkbox label {
  margin: 0;
  line-height: 1.45;
}

.brp-checkbox a,
.brp-inline-links a,
.brp-support-note a,
.brp-terms-note a,
.brp-terms-section a {
  color: #9fdcff;
}

.brp-checkbox-wallet {
  margin-bottom: 8px;
}

.brp-support-note {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(159, 220, 255, 0.22);
  background: rgba(8, 18, 32, 0.55);
  color: #d9e8ff;
  font-size: 12px;
  line-height: 1.55;
  text-align: center;
}

.brp-inline-links {
  margin: 0 0 12px;
  color: var(--app-muted);
  font-size: 12px;
  line-height: 1.5;
}

.brp-card-cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.customPayButton,
.brp-btn {
  border: 1px solid rgba(0, 200, 255, 0.8);
  background: linear-gradient(135deg, var(--app-blue-strong), var(--app-blue-deep));
  color: #f5faff;
  border-radius: 12px;
  box-shadow: 0 14px 24px rgba(9, 94, 152, 0.38);
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 120ms ease, box-shadow 120ms ease;
}

.customPayButton:hover,
.brp-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(9, 94, 152, 0.46);
}

.brp-card-pay-button {
  width: min(360px, 100%);
  margin-top: 0;
  text-align: center;
}

.brp-status-message {
  margin: 10px auto 0;
  max-width: 620px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 161, 161, 0.7);
  background: rgba(96, 16, 16, 0.34);
  color: #ffd2d2;
  display: none;
}

.brp-status-message-manual {
  margin-top: 12px;
}

.brp-note {
  margin: 10px 0 0;
  max-width: 620px;
  font-size: 12px;
  color: var(--app-muted);
  text-align: center;
}

.brp-wallet-note {
  width: min(680px, 100%);
  max-width: 680px;
  margin-top: 0;
  margin-bottom: 8px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.brp-card-note {
  margin-top: 8px;
  margin-bottom: 12px;
}

.brp-wallet-gate-note {
  width: min(680px, 100%);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

@keyframes brp-panel-rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.brp-checkout-guidance {
  margin-bottom: 12px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(85, 172, 255, 0.55);
  background: rgba(12, 31, 64, 0.42);
  color: #d5eaff;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.br-wallet-priority {
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 12px;
  border: 1px dashed rgba(96, 190, 255, 0.52);
  background: rgba(7, 20, 41, 0.35);
}

.br-country-field {
  margin-bottom: 6px;
}

.br-country-field label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.br-country-other,
.br-state-intl {
  margin-top: 7px;
}

.brp-loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(7, 10, 14, 0.95);
  transition: opacity 320ms ease, visibility 320ms ease;
}

.brp-loading-screen-hidden {
  opacity: 0;
  visibility: hidden;
}

.brp-spinner {
  width: 66px;
  height: 66px;
  border: 8px solid rgba(255, 255, 255, 0.2);
  border-top-color: var(--app-cyan);
  border-radius: 999px;
  animation: brp-spin 1s linear infinite;
}

.brp-loading-copy {
  margin-top: 14px;
  font-weight: 700;
}

@keyframes brp-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 960px) {
  .brp-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .brp-pricing-stack,
  .brp-methods-grid,
  .brp-wallet-choice-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .brp-terms-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .brp-card {
    padding: 16px;
  }

  .brp-checkout-stage {
    padding: 22px 16px 18px;
  }

  .brp-method-tile {
    min-height: 0;
  }

  .brp-wallet-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 640px) {
  .brp-shell {
    width: min(calc(100vw - 18px), 1080px);
    padding-top: 18px;
  }

  .brp-title {
    font-size: 30px;
  }

  .brp-payment-stage-title {
    font-size: 24px;
  }

  .brp-amount-chip {
    display: inline-flex;
    margin-top: 10px;
  }

  .brp-manual-panel {
    padding: 18px 14px 16px;
  }

  .brp-checkbox-centered {
    width: 100%;
  }

  .brp-checkbox-wallet.brp-checkbox-alert {
    padding-top: 52px;
  }

  .brp-wallet-consent-helper,
  .brp-wallet-callout-helper {
    max-width: 100%;
    white-space: normal;
  }

  .brp-wallet-consent-helper {
    top: -14px;
    max-width: calc(100% - 84px);
    padding: 6px 14px;
    line-height: 1.12;
  }

  .brp-wallet-callout.is-ready {
    padding-top: 30px;
  }

  .brp-wallet-callout-helper {
    top: -14px;
    max-width: calc(100% - 84px);
    padding: 6px 14px;
    line-height: 1.12;
  }
}

body.brp-modal-open {
  overflow: hidden;
}

.brp-terms-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
}

.brp-terms-modal.is-open {
  display: block;
}

.brp-terms-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 8, 15, 0.82);
  backdrop-filter: blur(6px);
}

.brp-terms-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100vw - 28px));
  max-height: calc(100vh - 34px);
  margin: 17px auto;
  border-radius: 26px;
  border: 1px solid rgba(132, 190, 255, 0.26);
  background: linear-gradient(180deg, rgba(16, 24, 38, 0.98), rgba(8, 13, 22, 0.96));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.48);
  overflow: hidden;
}

.brp-terms-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 99, 99, 0.62);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(116, 19, 28, 0.96), rgba(72, 10, 17, 0.96));
  color: #fff3f3;
  box-shadow: 0 0 0 1px rgba(255, 126, 126, 0.22), 0 0 22px rgba(255, 73, 73, 0.22);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.brp-terms-modal__close:hover,
.brp-terms-modal__close:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 126, 126, 0.3), 0 0 28px rgba(255, 73, 73, 0.3);
  background: linear-gradient(180deg, rgba(136, 24, 35, 0.98), rgba(84, 12, 20, 0.98));
  outline: none;
}

.brp-terms-modal__scroll {
  max-height: calc(100vh - 34px);
  overflow-y: auto;
  padding: 34px 26px 24px;
}

.brp-terms-modal__title {
  margin: 0;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  text-align: center;
}

.brp-terms-modal__eyebrow {
  text-align: center;
}

.brp-terms-modal__subtitle {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.brp-terms-modal__actions {
  display: flex;
  justify-content: center;
}

.brp-terms-modal__actions-top {
  margin-top: 16px;
}

.brp-terms-modal__actions-bottom {
  margin-top: 24px;
  padding-top: 12px;
}

.brp-terms-modal__action-btn {
  min-width: 148px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 99, 99, 0.62);
  background: linear-gradient(180deg, rgba(116, 19, 28, 0.96), rgba(72, 10, 17, 0.96));
  color: #fff3f3;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 126, 126, 0.16), 0 12px 26px rgba(58, 6, 13, 0.32);
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.brp-terms-modal__action-btn:hover,
.brp-terms-modal__action-btn:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(255, 126, 126, 0.22), 0 16px 30px rgba(58, 6, 13, 0.38);
  background: linear-gradient(180deg, rgba(136, 24, 35, 0.98), rgba(84, 12, 20, 0.98));
  outline: none;
}

.brp-terms-modal__content {
  margin-top: 20px;
}

@media (max-width: 640px) {
  .brp-terms-modal__dialog {
    width: min(100vw - 16px, 980px);
    max-height: calc(100vh - 16px);
    margin: 8px auto;
    border-radius: 20px;
  }

  .brp-terms-modal__scroll {
    max-height: calc(100vh - 16px);
    padding: 26px 16px 16px;
  }
}

.brp-terms-shell {
  max-width: 980px;
}

.brp-terms-hero {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.brp-terms-card {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brp-terms-callout,
.brp-terms-note {
  margin: 0;
  padding: 14px 16px;
  border-radius: 16px;
  line-height: 1.65;
  text-align: center;
}

.brp-terms-callout {
  margin-bottom: 10px;
  border: 1px solid rgba(0, 200, 255, 0.4);
  background: rgba(0, 200, 255, 0.1);
  color: #e8f8ff;
}

.brp-terms-note {
  margin-top: 18px;
  border: 1px solid rgba(255, 116, 82, 0.35);
  background: rgba(255, 116, 82, 0.12);
  color: #ffe6df;
  text-align: center;
  font-weight: 600;
}

.brp-terms-note a {
  color: #ffe6df;
}

.brp-terms-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.brp-terms-section {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(120, 168, 255, 0.24);
  background: rgba(10, 18, 32, 0.55);
  box-shadow: inset 0 0 0 1px rgba(0, 200, 255, 0.08);
  text-align: center;
}

.brp-terms-section h2 {
  margin: 0 0 10px;
  font-size: 18px;
  line-height: 1.3;
  text-align: center;
}

.brp-terms-section p {
  margin: 0;
  color: var(--app-muted);
  line-height: 1.65;
  text-align: center;
}

.brp-terms-section p + p {
  margin-top: 10px;
}

@media (max-width: 767px) {
  .brp-terms-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
