.play-toolbar select {
  max-width: 480px;
  width: 100%;
  min-width: 280px;
}
.playground .field-row :is(input, select, textarea) {
  width: 100%;
  min-width: 0;
  border: 1px solid #dde5e0;
  border-radius: 5px;
  padding: 8px;
  font: 11px/1.5 var(--mono);
  color: var(--ink);
  background: white;
}
.playground .field-row :is(input, select) {
  height: 35px;
}
.playground textarea[data-field] {
  min-height: 90px;
  height: 110px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 8px;
  font: 11px/1.5 var(--mono);
}
.fields {
  max-height: 510px;
  overflow: auto;
}
.playground [data-credentials] {
  font: 10px/1.8 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.sandbox-bottom {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 13px 18px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--green);
  flex-wrap: wrap;
}
.sandbox-bottom span {
  margin-left: auto;
}
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 15px;
}
.result-actions .button {
  font-size: 11px;
}
.result-actions .text-link {
  white-space: normal;
  font-size: 10px;
}
.experience-page {
  padding-block: 40px 70px;
}
.experience-page h1 {
  font-size: 38px;
  letter-spacing: -1.5px;
}
.experience-controls {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 18px;
  margin-bottom: 24px;
}
.experience-controls .tabs {
  border: 0;
  padding: 0;
}
.experience-controls label {
  font-size: 10px;
  margin-left: auto;
}
.device-switch {
  display: flex;
  gap: 4px;
}
.device-switch button {
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: 10px;
  padding: 7px 10px;
  border-radius: 6px;
}
.device-switch button[aria-pressed="true"] {
  color: var(--green);
  border-color: var(--green);
}
.experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr);
  gap: 22px;
  align-items: start;
  margin-bottom: 30px;
}
.demo-browser {
  border: 1px solid #cddbd3;
  border-radius: 12px;
  overflow: hidden;
  transition: width 0.2s;
  width: 100%;
  background: #f5f8f6;
}
.demo-browser.mobile-preview {
  max-width: 390px;
  margin: auto;
}
.browser-bar code {
  flex: 1;
  text-align: center;
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.merchant-view {
  position: relative;
  min-height: 700px;
  padding: 24px;
}
.merchant-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.merchant-title small {
  font-size: 9px;
  color: var(--muted);
}
.merchant-title h2 {
  font-size: 22px;
  margin-top: 5px;
}
.merchant-title .button {
  font-size: 11px;
  padding: 11px;
}
.merchant-card {
  display: flex;
  gap: 16px;
  align-items: center;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  padding: 17px;
  margin: 15px 0;
}
.merchant-card strong {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.merchant-card p {
  font-size: 11px;
  margin: 3px 0;
}
.merchant-card small {
  font-size: 9px;
  color: var(--muted);
}
.merchant-card button {
  margin-left: auto;
  white-space: nowrap;
}
.merchant-card > span:last-child {
  font-size: 10px;
}
.bank-badge {
  display: grid;
  place-items: center;
  min-width: 48px;
  height: 45px;
  background: #f0f7fd;
  border-radius: 8px;
  color: #185893;
  font-weight: 700;
  font-size: 13px;
}
.embedded-modal {
  position: absolute;
  inset: 12px;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid #d4e2d9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 0 0 35px #12382666,
    0 12px 30px #22483022;
  z-index: 4;
}
.embedded-head {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  font-size: 11px;
}
.embedded-head button {
  border: 0;
  background: #f4f6f5;
  border-radius: 50%;
  height: 25px;
  width: 25px;
}
.embedded-modal iframe {
  border: 0;
  flex: 1;
  width: 100%;
  background: white;
  min-height: 590px;
}
.event-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.event-tabs {
  gap: 16px;
}
.event-tabs button {
  font-size: 10px;
}
.event-explainer {
  font-size: 10px;
  margin: 16px;
  padding: 12px;
  background: #eff8f3;
  border: 1px solid #dbece2;
  border-radius: 6px;
}
#event-log {
  max-height: 605px;
  overflow: auto;
  padding: 0 15px 18px;
}
.log-entry {
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 10px 0;
  padding: 12px;
}
.log-entry summary {
  cursor: pointer;
  list-style: none;
}
.log-entry summary b {
  display: block;
  font: 10px var(--mono);
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.log-entry small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 7px;
}
.log-entry pre {
  font: 9px/1.6 var(--mono);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--soft);
  padding: 10px;
  border-radius: 5px;
  max-height: 360px;
  overflow: auto;
}
.log-entry p,
.log-entry h4 {
  font-size: 10px;
}
.log-error {
  color: #b56828;
  background: #fff3df;
}
#demo-error,
#checkout-error,
#hosted-error {
  color: #bf443e;
  font-size: 12px;
  white-space: pre-wrap;
}
.embedded-page .header,
.embedded-page .footer {
  display: none;
}
.checkout-shell,
.hosted-shell {
  max-width: 730px;
  margin: auto;
  padding: 25px 28px;
}
.checkout-brand {
  display: flex;
  gap: 13px;
  align-items: center;
}
.checkout-brand h1 {
  font-size: 22px;
  letter-spacing: -0.7px;
  margin: 0;
}
.checkout-brand p {
  font-size: 11px;
  margin: 4px 0;
}
.checkout-brand .tag {
  margin-left: auto;
}
.checkout-amount {
  padding: 20px;
  background: #edf8f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 25px 0;
  border-radius: 9px;
  font-size: 12px;
}
.checkout-amount b {
  font-size: 29px;
  color: var(--green);
}
.checkout-columns {
  display: grid;
  grid-template-columns: 250px 1fr;
  gap: 25px;
}
.checkout-columns select {
  width: 100%;
}
.qr-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin: 14px 0;
  background: white;
}
.qr-card img {
  display: block;
  width: 100%;
}
.qr-card span {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: white;
  color: var(--green);
  border: 1px solid #c7ddcd;
  font-size: 8px;
  font-weight: 700;
  padding: 3px;
  border-radius: 3px;
}
.download {
  display: block;
  text-align: center;
}
.transfer-details h3 {
  margin-top: 0;
}
.transfer-details label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
}
.transfer-details strong {
  display: block;
  color: var(--ink);
  font-size: 12px;
  margin-top: 4px;
}
.transfer-details .button {
  display: flex;
  width: 100%;
  margin-top: 10px;
  font-size: 11px;
  white-space: normal;
}
.transfer-details > p {
  font-size: 11px;
}
.checkout-note,
.sandbox-disclaimer {
  font-size: 10px;
  color: var(--muted);
  background: var(--soft);
  padding: 12px;
  border-radius: 5px;
  margin-top: 20px;
}
.result-screen {
  text-align: center;
  padding: 35px 0;
}
.result-screen h2 {
  font-size: 23px;
}
.result-screen p {
  font-size: 12px;
}
.result-symbol {
  display: grid;
  place-items: center;
  width: 75px;
  height: 75px;
  margin: auto;
  border: 3px solid #36bd80;
  color: #36bd80;
  border-radius: 50%;
  font-size: 40px;
}
.result-symbol.cancelled {
  border-color: #de9476;
  color: #c8795d;
}
.result-screen .button {
  margin-top: 20px;
}
.cancel-dialog {
  padding: 25px;
  max-width: 440px;
}
.cancel-dialog h2 {
  font-size: 22px;
}
.cancel-dialog p {
  font-size: 12px;
}
.hosted-shell h1 {
  font-size: 24px;
  line-height: 1.4;
  letter-spacing: -0.8px;
  margin-top: 12px;
}
.host-progress {
  display: flex;
  gap: 7px;
  margin: 24px 0;
}
.host-progress span {
  height: 4px;
  background: #e4ece7;
  flex: 1;
  border-radius: 4px;
}
.host-progress .active {
  background: var(--green);
}
.host-bank-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.host-bank-grid button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  padding: 15px 8px;
  color: #176598;
}
.host-bank-grid b {
  display: block;
  font-size: 20px;
}
.host-bank-grid small {
  display: block;
  font-size: 9px;
  height: 15px;
  color: var(--green);
  margin-top: 7px;
}
.host-account-tabs {
  display: flex;
  gap: 10px;
  margin: 18px 0;
}
.host-account-tabs button {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: white;
  font-size: 11px;
}
.hosted-shell button.selected {
  border-color: var(--green);
  background: #eef9f2;
  color: var(--green);
}
.hosted-shell > .button,
#bank-next {
  width: 100%;
}
.selected-bank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.hosted-shell form label {
  display: block;
  font-size: 11px;
  margin: 16px 0;
}
.hosted-shell input:not([type="checkbox"]),
.hosted-shell select {
  display: block;
  width: 100%;
  border: 1px solid #d6e2da;
  border-radius: 7px;
  padding: 10px;
  margin-top: 6px;
  background: white;
}
.hosted-shell form .primary {
  width: 100%;
  margin-top: 14px;
}
.hosted-shell .consent {
  display: flex;
  align-items: start;
  gap: 8px;
  font-size: 10px;
}
.consent input {
  accent-color: var(--green);
  margin-top: 4px;
}
.hosted-shell #cancel-hosted {
  display: block;
  margin: 18px auto;
}
.try-button {
  margin: 0 4px 8px 0;
}
.result-screen code {
  display: block;
  margin: 12px;
  color: #b95843;
}
.mobile-preview .merchant-title {
  flex-direction: column;
  align-items: start;
}
.mobile-preview .merchant-view {
  padding: 16px;
}
@media (max-width: 1000px) {
  .experience-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(260px, 1fr);
  }
  .checkout-columns {
    grid-template-columns: 200px 1fr;
    gap: 20px;
  }
  .checkout-shell {
    padding: 20px;
  }
}
@media (max-width: 760px) {
  .experience-grid {
    grid-template-columns: 1fr;
  }
  .experience-page h1 {
    font-size: 29px;
  }
  .experience-controls {
    gap: 14px;
    padding: 10px;
  }
  .experience-controls label {
    margin-left: 0;
  }
  .merchant-view {
    padding: 18px;
    min-height: 800px;
  }
  .embedded-modal {
    inset: 6px;
  }
  .event-panel {
    max-height: 650px;
  }
  .play-toolbar select {
    min-width: 0;
    max-width: 270px;
  }
  .play-toolbar label {
    width: 100%;
  }
  .play-toolbar > a {
    margin-left: 0;
  }
  .checkout-columns {
    grid-template-columns: 1fr;
  }
  .checkout-columns > div:first-child {
    max-width: 220px;
    margin: auto;
  }
  .checkout-shell,
  .hosted-shell {
    padding: 20px;
  }
  .checkout-brand h1 {
    font-size: 18px;
  }
  .checkout-brand .icon {
    display: none;
  }
  .checkout-amount {
    margin: 20px 0;
  }
  .checkout-amount b {
    font-size: 25px;
  }
  .checkout-note {
    font-size: 9px;
  }
  .hosted-shell h1 {
    font-size: 21px;
  }
  .host-bank-grid {
    gap: 8px;
  }
  .host-bank-grid b {
    font-size: 18px;
  }
  .sandbox-bottom span {
    margin-left: 0;
  }
  .merchant-title h2 {
    font-size: 19px;
  }
  .merchant-title .button {
    font-size: 10px;
  }
  .cancel-dialog .actions {
    flex-direction: column;
  }
}

.demo-payment-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: #eefaf5;
  border-bottom: 1px solid #d4e2d9;
  flex-shrink: 0;
}
.demo-payment-controls[hidden] {
  display: none;
}
.demo-payment-controls strong {
  font-size: 13px;
}
.demo-payment-controls p {
  font-size: 12px;
  margin: 4px 0 0;
}
.demo-payment-controls button {
  flex-shrink: 0;
}
.embedded-modal iframe {
  min-height: 0;
}
@media (max-width: 540px) {
  .demo-payment-controls {
    flex-wrap: wrap;
  }
  .demo-payment-controls button {
    width: 100%;
  }
}

.demo-payment-result {
  flex: 1;
  padding: 48px 24px;
  text-align: center;
  background: white;
}
.demo-payment-result[hidden],
.embedded-modal iframe[hidden],
.event-tabs button[hidden] {
  display: none;
}

.ipn-experience[hidden],
.play-columns[hidden],
.sandbox-bottom[hidden] {
  display: none;
}
.ipn-controls {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: end;
  padding: 20px;
}
.ipn-controls label {
  display: grid;
  gap: 8px;
  max-width: 100%;
}
.ipn-controls select {
  max-width: 100%;
  padding: 10px;
}
.ipn-experience > p,
.ipn-experience details,
.ipn-experience .response-pane > p {
  padding: 12px 20px;
}
.ipn-experience pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 580px;
  overflow: auto;
  padding: 20px;
}

#webhook-inbox pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  padding: 16px;
  max-height: 500px;
  overflow: auto;
}
#webhook-inbox .play-columns > section {
  min-width: 0;
  padding: 16px;
}

.demo-inbox-setup {
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.demo-inbox-setup input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.demo-inbox-setup h3 {
  margin-top: 24px;
}
.demo-inbox-setup select {
  padding: 8px;
}
.webhook-presets { display:flex; flex-wrap:wrap; align-items:center; gap:10px; padding:14px 20px; border-bottom:1px solid var(--line); font-size:12px; }
.webhook-presets select { max-width:100%; padding:8px; background:white; border:1px solid var(--line); border-radius:6px; font:inherit; }
.webhook-presets small { color:var(--muted); }
.play-code-samples { border-top:1px solid var(--line); padding:18px 20px; }
.play-code-samples summary { cursor:pointer; font-size:14px; font-weight:600; color:var(--green); }
.sample-code-toolbar { display:flex; flex-wrap:wrap; align-items:center; gap:14px; margin-top:16px; font-size:12px; }
.sample-code-toolbar select { font:inherit; padding:7px; border:1px solid var(--line); border-radius:5px; background:white; }
.sample-code-toolbar a { color:var(--green); }
.play-code-samples p,.play-code-samples [role=status] { font-size:12px; }
.play-code-samples pre { background:#112823; color:#d6e5df; padding:18px; border-radius:8px; overflow:auto; max-height:500px; font:12px/1.7 var(--mono); }
.play-code-samples code { font:inherit; }

.vietqr-preview{padding:20px;border-top:1px solid var(--line);display:grid;justify-items:center;gap:12px}.vietqr-preview img{max-width:100%;width:300px;height:auto}.vietqr-preview p{font-size:12px;color:var(--muted)}
