.tlpay-payment-methods {
  display: grid;
  grid-column: 1 / -1;
  gap: 10px;
  min-width: 0;
  margin: 4px 0;
}

.tlpay-payment-methods > h4 {
  margin: 0 0 2px;
  font-size: 15px;
}

.tlpay-payment-methods .tlpay-method {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(22, 49, 38, .15);
  border-radius: 15px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.tlpay-method.is-selected {
  border-color: var(--ssb-accent, var(--tlp-accent, #1fa968));
  background: #f3fff8;
  box-shadow: 0 0 0 3px rgba(31, 169, 104, .1);
}

.tlpay-payment-methods .tlpay-method input {
  flex: 0 0 auto;
  width: 20px !important;
  height: 20px !important;
  min-height: 0 !important;
  margin: 2px 0 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  box-shadow: none !important;
  accent-color: var(--ssb-accent, var(--tlp-accent, #1fa968));
}

.tlpay-payment-methods .tlpay-method > span {
  min-width: 0;
  margin: 0;
  font-size: inherit;
  font-weight: inherit;
}

.tlpay-payment-methods .tlpay-method strong,
.tlpay-payment-methods .tlpay-method small {
  display: block;
}

.tlpay-payment-methods .tlpay-method strong {
  color: #163126;
  font-size: 14px;
  line-height: 1.3;
}

.tlpay-payment-methods .tlpay-method small {
  margin-top: 4px;
  color: #678074;
  font-size: 12px;
  line-height: 1.45;
}

.tlpay-crypto-options {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(22, 49, 38, .12);
  border-radius: 14px;
  background: #f7fbf8;
}

.tlpay-crypto-options[hidden],
.tlpay-confirmation[hidden],
.tlpay-crypto-panel[hidden],
.tlpay-external-panel[hidden] {
  display: none !important;
}

.tlpay-crypto-options > label {
  display: block;
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 800;
}

.tlpay-crypto-options select {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-height: 48px;
  padding: 0 38px 0 12px;
  border: 1px solid rgba(22, 49, 38, .18);
  border-radius: 12px;
  background: #fff;
  color: #163126;
  font: inherit;
}

.tlpay-crypto-options p {
  margin: 8px 0 0;
  color: #678074;
  font-size: 12px;
  line-height: 1.45;
}

.tlpay-confirmation {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 18px 0 0;
  padding: 16px;
  border: 1px solid rgba(22, 49, 38, .12);
  border-radius: 18px;
  background: #f7fbf8;
  color: #163126;
  text-align: left;
}

.tlpay-confirmation *,
.tlpay-payment-methods * {
  box-sizing: border-box;
}

.tlpay-confirmation-head,
.tlpay-fee-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
}

.tlpay-confirmation-head span,
.tlpay-external-panel > span {
  color: #1a8a56;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tlpay-confirmation-head strong {
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff2c7;
  color: #664f00;
  font-size: 12px;
}

.tlpay-confirmation[data-status="confirmed"] .tlpay-confirmation-head strong {
  background: #dff8e9;
  color: #176638;
}

.tlpay-payment-layout {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  min-width: 0;
  margin: 15px 0;
}

.tlpay-payment-layout > img {
  display: block;
  width: 132px;
  height: 132px;
  padding: 7px;
  border: 1px solid rgba(22, 49, 38, .1);
  border-radius: 14px;
  background: #fff;
}

.tlpay-payment-layout > div {
  min-width: 0;
}

.tlpay-payment-layout p {
  margin: 6px 0;
  color: #678074;
  font-size: 12px;
}

.tlpay-copy-value {
  display: flex;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  align-items: center;
  gap: 7px;
  padding: 10px 11px;
  border: 1px solid rgba(22, 49, 38, .14);
  border-radius: 12px;
  background: #fff;
  color: #163126;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.tlpay-copy-value strong {
  font-size: clamp(18px, 4vw, 23px);
}

.tlpay-copy-value span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tlpay-copy-value i {
  flex: 0 0 auto;
  margin-left: auto;
  color: #1a8a56;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.tlpay-address span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
}

.tlpay-fee-line {
  padding: 10px 0;
  border-top: 1px solid rgba(22, 49, 38, .1);
  border-bottom: 1px solid rgba(22, 49, 38, .1);
  color: #678074;
  font-size: 11px;
}

.tlpay-fee-line span {
  display: flex;
  gap: 5px;
}

.tlpay-fee-line b {
  color: #163126;
}

.tlpay-warning,
.tlpay-live-message,
.tlpay-countdown {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.5;
}

.tlpay-warning {
  color: #8a4824;
}

.tlpay-live-message {
  font-weight: 800;
}

.tlpay-external-panel h3 {
  margin: 6px 0;
  color: #163126;
  font-size: 20px;
}

.tlpay-external-panel p,
.tlpay-external-panel small {
  color: #678074;
  line-height: 1.5;
}

.tlpay-external-panel p {
  margin: 0 0 13px;
}

.tlpay-external-panel small {
  display: block;
  margin-top: 10px;
  font-size: 11px;
}

.tlpay-external-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 10px 18px;
  border-radius: 14px;
  background: var(--ssb-accent, var(--tlp-accent, #1fa968));
  color: #fff !important;
  font-weight: 900;
  text-decoration: none !important;
}

@media (max-width: 520px) {
  .tlpay-confirmation {
    padding: 12px;
    border-radius: 14px;
  }

  .tlpay-payment-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .tlpay-payment-layout > img {
    width: min(145px, 48vw);
    height: min(145px, 48vw);
    margin: 0 auto;
  }

  .tlpay-address {
    align-items: flex-start;
  }

  .tlpay-address span {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
    word-break: break-all;
  }

  .tlpay-fee-line {
    align-items: flex-start;
    flex-direction: column;
  }
}
