.payments-panel {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid #e4eaf5;
  color: #3c5274;
}

.payments-heading h3 {
  margin-top: 5px;
  font-size: 19px;
  font-weight: 550;
}

.payments-kicker {
  color: #849ab9;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.payments-intro,
.payments-catalog-status,
.payments-empty,
.payments-live,
.payments-order-note,
.payments-order-date {
  color: #748bac;
  font-size: 11px;
  line-height: 1.7;
}

.payments-intro {
  margin-top: 7px;
}

.payments-live {
  min-height: 20px;
  margin-top: 10px;
}

.payments-catalog-status {
  margin-top: 16px;
}

.payments-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.payments-product {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 68px;
  padding: 12px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  cursor: pointer;
}

.payments-product:has(input:checked) {
  border-color: #9eb4d2;
  background: #f8faff;
  box-shadow: 0 0 0 2px #edf3fb;
}

.payments-product input {
  accent-color: #526f9c;
}

.payments-product-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.payments-product-copy strong {
  overflow-wrap: anywhere;
  font-size: 12px;
  font-weight: 600;
}

.payments-product-copy span {
  color: #8296b6;
  font-size: 10px;
}

.payments-product-price {
  white-space: nowrap;
  font-size: 15px;
  font-weight: 600;
}

.payments-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 15px;
}

.payments-actions button,
.payments-link-button {
  min-height: 34px;
  border: 1px solid #e1e7f0;
  border-radius: 7px;
  padding: 7px 13px;
  color: #52698f;
  background: #f5f7fc;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

.payments-actions .payments-primary {
  border-color: #526f9c;
  color: #fff;
  background: #526f9c;
}

.payments-actions button:disabled,
.payments-link-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.payments-actions button:focus-visible,
.payments-link-button:focus-visible,
.payments-product:has(input:focus-visible) {
  outline: 2px solid #9eb4d2;
  outline-offset: 2px;
}

.payments-orders-title {
  margin-top: 24px;
  font-size: 13px;
  font-weight: 600;
}

.payments-orders {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.payments-order {
  padding: 13px;
  border: 1px solid #e1e7f0;
  border-radius: 8px;
  background: #fff;
}

.payments-order-top,
.payments-code-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.payments-order-id {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 600;
}

.payments-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 22px;
  margin-top: 0;
  padding: 2px 8px;
  border-radius: 11px;
  background: #f0f3f8;
  color: #7284a0;
  font-size: 10px;
}

.payments-status--paid {
  background: #edf7f1;
  color: #3b835c;
}

.payments-status--pending {
  background: #fff8e9;
  color: #9a7434;
}

.payments-status--refund_review,
.payments-status--closed {
  background: #f5f0f1;
  color: #956d76;
}

.payments-order-details {
  margin-top: 9px;
  color: #52698f;
  font-size: 11px;
}

.payments-order-date {
  margin-top: 4px;
}

.payments-order-note,
.payments-order-success {
  margin-top: 8px;
}

.payments-order-success {
  color: #3b835c;
  font-size: 11px;
  line-height: 1.7;
}

.payments-link-button {
  margin-top: 8px;
  margin-right: 7px;
}

.payments-code-row {
  justify-content: flex-start;
  align-items: flex-start;
  margin-top: 5px;
}

.payments-code {
  flex: 1 1 auto;
  min-width: 0;
  padding: 9px;
  overflow-wrap: anywhere;
  border: 1px solid #e1e7f0;
  border-radius: 6px;
  background: #f8faff;
  color: #3c5274;
  font-size: 11px;
  line-height: 1.5;
}

@media (max-width: 560px) {
  .payments-catalog {
    grid-template-columns: 1fr;
  }

  .payments-product {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .payments-order-top,
  .payments-code-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .payments-code-row .payments-link-button {
    margin-top: 0;
  }
}
.unified-portal.has-payments[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
}

.unified-portal.has-payments .unified-portal__body {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
