html,
body {
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif !important;
  background: #f3f4f6;
  color: #111827;
  -webkit-text-size-adjust: 100%;
}

input {
  font-size: 13px !important
}

.pp-shell {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 16px 10px 104px;
}

.pp-card {
  max-width: 520px;
  margin: 0 auto;
  width: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 12px;
  overflow: hidden;
}

.pp-card--result {
  max-width: 620px;
}

.pp-brand {
  margin-bottom: 10px;
}

.pp-brand__main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.pp-brand__txt {
  min-width: 0;
}

.pp-brand__title {
  font-size: 22px;
  font-weight: 800;
  color: #111827;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.pp-brand__sub {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: #7b8798;
}

.pp-brand__badges {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pp-brand__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  min-width: 72px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.pp-brand__badge:last-child {
  min-width: 88px;
}

.pp-brand__badge img {
  height: 30px;
  max-width: 140px;
  width: auto;
  display: block;
}

.pp-alert {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10001;
  width: calc(100% - 24px);
  max-width: 520px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #111827;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.18);
}

.pp-alert.is-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

.pp-alert.is-success {
  background: #ecfdf5;
  border-color: #bbf7d0;
  color: #065f46;
}

.pp-panel,
.pp-section--captcha {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  /* padding: 10px; */
  background: #fff;
  margin-bottom: 12px;
}

.pp-panel__head {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f9fafb;
  padding: 10px 12px;

}

.pp-panel__title,
.pp-section__title,
.pp-modal__title {
  font-size: 13px;
  font-weight: 700;
  color: #1f2937;
  letter-spacing: 0.01em;
}

.pp-reject {
  border: 1px solid #ef4444;
  background: #ef4444;
  color: #fff;
  border-radius: 10px;
  padding: 6px 8px;
  font-weight: 600;
  cursor: pointer;
}

.pp-accordion {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
}

.pp-accordion__mark {
  display: inline-block;
  font-size: 16px;
  opacity: .8;
}

.pp-invoice {
  padding-top: 10px;
}

.pp-grid {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.pp-grid--1 {
  grid-template-columns: 1fr;
  padding: 0px 10px 5px 10px
}

.pp-grid--2 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  padding: 0px 10px 10px 10px
}

.pp-grid--3 {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(88px, .72fr);
  padding: 0px 10px 10px 10px
}

.pp-grid--tutar {
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 10px;
  align-items: stretch;
  padding: 10px;
}

.pp-field-group--amount {
  display: grid;
  grid-template-columns: minmax(0, 100px) 1fr;
  gap: 10px;
  min-width: 0;
}

.pp-field {
  position: relative;
  display: grid;
  gap: 0;
  padding-top: 0;
  margin-top: 8px;
  min-width: 0;
}

.pp-field span {
  position: absolute;
  left: 5px;
  top: 0;
  transform: translateY(-50%);
  z-index: 1;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 600;
  color: #4b5563;
  background: #fff;
  pointer-events: none;
  transition: color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.pp-field input,
.pp-field textarea,
.pp-field select {
  width: 100%;
  border: 1px solid #cfd8e3;
  border-radius: 4px;
  min-height: 42px;
  padding: 12px 12px;
  outline: none;
  font-weight: 600;
  background: #fff;
  color: #1f2937;
  font-size: 14px;
  line-height: 1.2;
}

.pp-field textarea {
  resize: vertical;
  min-height: 68px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.pp-field input::placeholder,
.pp-field textarea::placeholder,
.pp-field select:invalid {
  color: #b6beca;
}

.pp-field:focus-within>span,
.pp-field.has-value>span {
  color: #2563eb;
}

.pp-required {
  color: #dc2626;
  margin-right: 4px;
  font-weight: 700;
}

.pp-field input:focus,
.pp-field textarea:focus,
.pp-field select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.pp-field.is-error input,
.pp-field.is-error textarea,
.pp-field.is-error select {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.10);
}

.pp-field.is-error>span {
  color: #dc2626;
}

.pp-field.is-error input::placeholder,
.pp-field.is-error textarea::placeholder {
  color: #c4c9d3;
}

.pp-field--button {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 0;
}

.pp-field--currency select {
  text-transform: uppercase;
}

.pp-field--button>span {
  display: none;
}

.pp-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 4px;
  min-height: 42px;
  padding: 11px 12px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
}

.pp-btn:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.pp-btn--ghost {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.pp-btn--primary {
  background: #9ca3af;
  color: #fff;
  border-color: #9ca3af;
}

.pp-btn--block {
  width: 100%;
}

.pp-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 6px auto 10px 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #111827;
  font-weight: 600;
}

.pp-paybar {
  position: sticky;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 9;
  padding: 10px;
  margin-top: 6px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), #fff 18%);
  border-top: 1px solid #eef2f7;
}

.pp-check input {
  margin-top: 2px;
}

.pp-mini {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #7b8798;
}

#pp-bin-bank {
  margin-top: 4px;
}

.pp-installments {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pp-installment {
  flex: 1 1 120px;
  min-width: 120px;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.pp-installment.is-active {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
}

.pp-installment__top {
  font-weight: 800;
  color: #1f2937;
  font-size: 12px;
}

.pp-installment__sub {
  margin-top: 2px;
  font-weight: 700;
  color: #334155;
  font-size: 13px;
}

.pp-captcha__question {
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 800;
  color: #111827;
}

.pp-captcha-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  padding: 10px;
}

.pp-captcha-box {
  min-width: 0;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  min-height: 52px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pp-captcha-field {
  margin: 0;
}

.pp-field--message {
  padding: 10px;
}

.pp-modal[hidden] {
  display: none;
}

.pp-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
}

.pp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .45);
}

.pp-modal__card {
  position: relative;
  width: calc(100% - 24px);
  max-width: 560px;
  max-height: calc(100vh - 24px);
  margin: 12px auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, .22);
}

.pp-modal__head {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pp-modal__body {
  padding: 12px;
  overflow: auto;
}

.pp-x {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  font-size: 20px;
  line-height: 1;
}

.pp-bank {
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

.pp-bank+.pp-bank {
  margin-top: 12px;
}

.pp-bank__name {
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
  font-weight: 800;
  color: #1f2937;
  font-size: 15px;
}

.pp-bank__table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.pp-bank__table th,
.pp-bank__table td {
  padding: 10px 8px;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  white-space: nowrap;
}

.pp-bank__table th {
  color: #6b7280;
  font-weight: 800;
  background: #fff;
}

.mono {
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.pp-result__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 900;
  background: #e2e8f0;
  color: #0f172a;
}

.pp-result__icon.ok {
  background: #16a34a;
  color: #fff;
}

.pp-result__icon.fail {
  background: #dc2626;
  color: #fff;
}

.pp-result__title {
  text-align: center;
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.pp-result__text {
  margin-top: 8px;
  text-align: center;
  color: #5f7493;
}

.pp-result__table {
  margin-top: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
}

.pp-result__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
}

.pp-result__row:last-child {
  border-bottom: 0;
}

.pp-result__actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
}

.pp-result__actions .pp-btn {
  min-width: 180px;
}

@media (max-width: 420px) {

  .pp-grid--2:not(.pp-grid--invoice),
  .pp-grid--tutar {
    grid-template-columns: 1fr;
  }

  .pp-field-group--amount {
    grid-template-columns: minmax(0, 104px) 1fr;
  }

  .pp-brand__main {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: nowrap;
  }

  .pp-brand__txt {
    flex: 1 1 auto;
    min-width: 0;
  }

  .pp-brand__title {
    font-size: 16px;
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pp-brand__sub {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .pp-brand__badges {
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 0;
  }

  .pp-brand__badge {
    min-width: 52px;
    height: 38px;
    padding: 0 8px;
    border-radius: 10px;
  }

  .pp-brand__badge:last-child {
    min-width: 60px;
  }

  .pp-brand__badge img {
    height: 22px;
    max-width: 72px;
  }

  .pp-panel__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .pp-reject {
    width: 100%;
  }

  .pp-result__row {
    flex-direction: column;
  }

  .pp-result__actions .pp-btn {
    width: 100%;
  }

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

  .pp-grid--cardmeta {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(72px, .62fr);
  }

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