.tpv-shell {
  display: grid;
  gap: 1.5rem;
}

.tpv-card {
  background:
    linear-gradient(180deg, rgba(18, 26, 45, 0.98), rgba(9, 14, 26, 0.98)),
    #0a0f1b;
  border: 1px solid rgba(96, 122, 170, 0.35);
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  color: #eef4ff;
  overflow: hidden;
}

.tpv-card__header {
  border-bottom: 1px solid rgba(96, 122, 170, 0.25);
  padding: 1.25rem 1.5rem;
  background: linear-gradient(90deg, rgba(23, 40, 74, 0.94), rgba(12, 18, 32, 0.94));
}

.tpv-card__body {
  padding: 1.5rem;
}

.tpv-summary {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tpv-summary__item {
  border: 1px solid rgba(112, 144, 197, 0.2);
  border-radius: 18px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
}

.tpv-summary__label {
  display: block;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9aa9c7;
  margin-bottom: 0.3rem;
}

.tpv-summary__value {
  font-size: 1.55rem;
  font-weight: 800;
  color: #f5fbff;
}

.tpv-summary__value--accent {
  color: #59f6b6;
}

.tpv-summary__meta {
  margin-top: 0.35rem;
  color: #9aa9c7;
  font-size: 0.92rem;
}

.tpv-payment-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.tpv-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 48px;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(122, 145, 184, 0.25);
  background: rgba(255, 255, 255, 0.04);
  color: #f7fbff;
  font-weight: 700;
}

.tpv-brand__visa {
  color: #9ec6ff;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
}

.tpv-brand__mastercard {
  position: relative;
  width: 32px;
  height: 20px;
}

.tpv-brand__mastercard::before,
.tpv-brand__mastercard::after {
  content: "";
  position: absolute;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.tpv-brand__mastercard::before {
  left: 0;
  background: rgba(235, 68, 53, 0.95);
}

.tpv-brand__mastercard::after {
  right: 0;
  background: rgba(251, 188, 5, 0.95);
  mix-blend-mode: screen;
}

.tpv-legal-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tpv-legal-card {
  border: 1px solid rgba(112, 144, 197, 0.2);
  border-radius: 20px;
  padding: 1rem 1.1rem;
  background: rgba(255, 255, 255, 0.03);
}

.tpv-legal-card h5 {
  margin-bottom: 0.55rem;
  font-size: 1rem;
  color: #ffffff;
}

.tpv-legal-card p,
.tpv-legal-card li,
.tpv-legal-card a {
  color: #c8d3ea;
  font-size: 0.94rem;
  line-height: 1.55;
}

.tpv-legal-card a {
  color: #8fd9ff;
}

.tpv-legal-card a:hover,
.tpv-legal-card a:focus-visible {
  color: #c2f2ff;
}

.tpv-merchant {
  border: 1px solid rgba(112, 144, 197, 0.2);
  border-radius: 20px;
  padding: 1rem 1.1rem;
  background: rgba(10, 17, 30, 0.75);
}

.tpv-merchant ul {
  margin: 0;
  padding-left: 1.1rem;
  color: #d7e1f4;
}

.tpv-consent {
  border: 1px solid rgba(89, 246, 182, 0.28);
  border-radius: 20px;
  padding: 1rem 1.1rem;
  background: rgba(7, 33, 26, 0.72);
}

.tpv-consent .form-check-label {
  color: #edfdf7;
  line-height: 1.55;
}

.tpv-consent .form-check-input {
  width: 1.15rem;
  height: 1.15rem;
  border-color: rgba(135, 240, 204, 0.6);
  background-color: rgba(255, 255, 255, 0.06);
}

.tpv-consent .form-check-input:checked {
  background-color: #2ad59c;
  border-color: #2ad59c;
}

.tpv-consent .form-check-input:focus-visible,
.tpv-consent .form-check-input:focus {
  box-shadow: 0 0 0 0.25rem rgba(42, 213, 156, 0.22);
}

.tpv-submit {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

.tpv-submit .btn {
  min-width: 260px;
}

.tpv-submit-note {
  color: #9aa9c7;
  font-size: 0.92rem;
}

.tpv-submit .btn:focus-visible {
  box-shadow: 0 0 0 0.25rem rgba(89, 246, 182, 0.22);
}

@media (max-width: 767.98px) {
  .tpv-summary,
  .tpv-legal-grid {
    grid-template-columns: 1fr;
  }

  .tpv-card__header,
  .tpv-card__body {
    padding: 1.1rem;
  }

  .tpv-submit {
    align-items: stretch;
  }

  .tpv-submit .btn {
    width: 100%;
    min-width: 0;
  }
}
