.asm-payment{border:1px solid #dbe6ef;border-radius:12px;background:#fff;padding:18px;margin:12px 0;color:#294961;font:12px/1.6 Arial,sans-serif;box-shadow:0 3px 14px #163c6005}.asm-payment header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:20px}.asm-payment h2{font-size:15px;margin:0;color:#174b76}.asm-payment-state{font-size:11px;font-weight:600;padding:5px 9px;border-radius:6px;background:#fff3d6;color:#8c610c}.asm-payment-state.paid{background:#e4f5ec;color:#176b42}.asm-payment-state.expired{background:#fce9e6;color:#a1392a}.asm-payment-content{display:grid;grid-template-columns:240px minmax(0,1fr);gap:30px;align-items:center;max-width:650px;margin:0 auto 4px}.asm-qr-frame{position:relative;padding:10px;background:white;border:1px solid #c8dceb;border-radius:12px;box-shadow:0 5px 20px #1b4f7710}.asm-qr-frame img{display:block;width:100%;height:auto;aspect-ratio:1}.asm-payment-qr-brand{text-align:center;color:#22577d;font-size:16px;font-weight:800;margin-top:10px;letter-spacing:-.4px}.asm-payment-qr-brand span{font-size:12px;font-weight:500;letter-spacing:0;color:#788fa2}.asm-payment-amount span{display:block;font-size:11px;color:#7e91a1}.asm-payment-amount strong{display:block;font-size:30px;color:#174b76;font-weight:800;letter-spacing:-.7px;margin:2px 0 10px;font-variant-numeric:tabular-nums}.asm-payment-note{font-size:12px;line-height:1.85;color:#6c8296;margin:0 0 18px;max-width:280px}.asm-payment-timer{background:#f2f7fc;border:1px solid #e1ebf5;border-radius:9px;padding:12px 14px}.asm-payment-timer>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:15px}.asm-payment-timer span{font-size:11px;color:#6c8296}.asm-payment-timer strong{font-size:26px;font-weight:700;color:#174b76;letter-spacing:1px;font-variant-numeric:tabular-nums;line-height:1.2}.asm-payment-progress{height:4px;border-radius:4px;background:#dce7f1;margin-top:12px;overflow:hidden}.asm-payment-progress span{display:block;height:100%;width:100%;background:#2f84bc;border-radius:4px;transition:width 1s linear}.asm-payment-live{display:flex;align-items:center;gap:8px;margin-top:17px;font-size:11px;color:#28704f}.asm-payment-pulse{width:7px;height:7px;border-radius:50%;background:#2c9d6c;animation:payment-pulse 1.6s infinite;flex:none}.asm-payment-auto{font-size:10px;line-height:1.7;color:#8b9dab;margin:5px 0 0}.asm-payment-network{font-size:11px;color:#a36b17;margin:12px 0 0}.asm-payment-network:empty{display:none}.asm-payment-confirmed{background:#eff9f3;border:1px solid #d9efdf;border-radius:8px;padding:16px;color:#176b42;font-size:16px;font-weight:700;margin:0}.payment-order-summary{display:flex;justify-content:space-between;align-items:start;gap:15px;margin:0 0 10px;font-size:12px;color:#35566f}.payment-order-summary strong{color:#d65e06;white-space:nowrap}.asm-qr-expired{display:none;position:absolute;inset:0;margin:0;padding:20px;align-items:center;justify-content:center;text-align:center;font-size:12px;color:#9b5041;background:#fff8f5;border-radius:12px}.asm-payment.is-expired .asm-qr-frame img{visibility:hidden}.asm-payment.is-expired .asm-qr-expired{display:flex}.asm-payment.is-urgent .asm-payment-timer strong,.asm-payment.is-expired .asm-payment-timer strong{color:#c64f27}.asm-payment.is-urgent .asm-payment-progress span{background:#d16b32}.asm-payment.is-offline .asm-payment-pulse{background:#c78a31;animation:none}@keyframes payment-pulse{0%,100%{box-shadow:0 0 0 0 #2c9d6c22}50%{box-shadow:0 0 0 5px #2c9d6c0a}}@media(prefers-reduced-motion:reduce){.asm-payment-pulse{animation:none}.asm-payment-progress span{transition:none}}@media(max-width:540px){.asm-payment{padding:14px}.asm-payment-content{grid-template-columns:1fr;gap:16px}.asm-payment-qr{max-width:245px;width:100%;justify-self:center}.asm-payment-details{width:100%;max-width:320px;justify-self:center}.asm-payment-amount{text-align:center}.asm-payment-amount strong{font-size:27px}.asm-payment-note{text-align:center;margin:0 auto 15px}.asm-payment header{align-items:start;margin-bottom:17px}.asm-payment h2{font-size:14px}.asm-payment-state{max-width:48%;font-size:10px}.asm-payment-live{justify-content:center}.asm-payment-auto{text-align:center}}
.asm-payment-amount strong{color:#d92d20}.asm-payment-receipt{font-size:12px;line-height:1.8;color:#42657f;margin:16px 0 0;max-width:290px}@media(max-width:540px){.asm-payment-receipt{margin:14px auto 0;text-align:center}}
.asm-payment{padding:14px;margin:10px 0}.asm-payment header{margin-bottom:14px}.asm-payment-content{grid-template-columns:220px minmax(0,1fr);gap:22px;max-width:610px;margin-bottom:0}.asm-qr-frame{padding:8px;border-radius:9px}.asm-payment-qr-brand{margin-top:7px;font-size:14px}.asm-payment-amount strong{font-size:28px;margin-bottom:8px}.asm-payment-note{font-size:11px;line-height:1.75;margin-bottom:13px}.asm-payment-timer{padding:10px 12px}.asm-payment-timer strong{font-size:24px}.asm-payment-progress{margin-top:9px}.asm-payment-receipt{grid-column:1/-1;max-width:none;margin:12px 0 0;padding-top:10px;border-top:1px solid #edf2f7;text-align:center;font-size:12px;line-height:1.6;white-space:nowrap}@media(max-width:540px){.asm-payment-content{grid-template-columns:1fr;gap:12px}.asm-payment-qr{max-width:220px}.asm-payment-amount strong{font-size:25px}.asm-payment-receipt{white-space:normal;margin-top:10px;padding-top:9px}.asm-payment header{margin-bottom:13px}}
.asm-payment-content{align-items:start}.asm-payment-details{align-self:start;margin-top:0;padding-top:0}.asm-payment-amount{margin-top:0;padding-top:0}
.asm-payment{padding:13px;margin:9px 0}.asm-payment header{margin-bottom:12px}.asm-payment h2{font-size:14px}.asm-payment-content{grid-template-columns:180px minmax(0,1fr);gap:20px;max-width:none;align-items:start}.asm-qr-frame{padding:7px;border-radius:8px}.asm-payment-qr-brand{font-size:12px;margin-top:5px;line-height:1.4}.asm-payment-qr-brand span{font-size:10px}.asm-payment-amount strong{font-size:27px;margin:1px 0 7px}.asm-payment-note{margin:0 0 11px;font-size:11px;line-height:1.65;max-width:none}.asm-payment-timer{padding:9px 11px}.asm-payment-timer strong{font-size:22px}.asm-payment-progress{margin-top:8px;height:3px}.asm-payment-receipt{grid-column:auto;max-width:none;margin:11px 0 0;padding:0;border:0;font-size:11px;line-height:1.6;text-align:left;white-space:nowrap}@media(max-width:540px){.asm-payment-content{grid-template-columns:1fr;gap:12px}.asm-payment-qr{max-width:180px}.asm-payment-amount strong{font-size:25px}.asm-payment-receipt{white-space:normal;text-align:center}.asm-payment-note{text-align:center}.asm-payment-amount{text-align:center}}
/* QR Pay dùng chung Panel.php và stylesheet này cho mọi dịch vụ. Không sao chép bố cục QR vào CSS từng trang. */
.asm-payment { container-type: inline-size; min-width: 0; font-family: inherit; }
.asm-payment-details { min-width: 0; }
.asm-payment .asm-payment-receipt { white-space: normal; }
.asm-payment-note strong { overflow-wrap: anywhere; }
@container (max-width: 420px) {
  .asm-payment-content { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .asm-payment-qr { width: min(100%, 180px); justify-self: center; }
  .asm-payment-details { width: 100%; max-width: none; }
  .asm-payment-amount, .asm-payment-note, .asm-payment-receipt { text-align: center; }
  .asm-payment-amount strong { font-size: 19px; }
}
.asm-payment-methods { display: grid; gap: .75rem; }
.asm-payment-methods form { margin: 0; }
.asm-payment-methods button,
.asm-payment-methods summary { display: block; width: 100%; box-sizing: border-box; padding: .7rem 1rem; border: 1px solid #cbd9e8; border-radius: .5rem; background: #fff; color: #123858; font: inherit; font-weight: 650; text-align: center; cursor: pointer; }
.asm-payment-methods button { background: #123858; color: #fff; }
.asm-payment-methods details[open] summary { margin-bottom: .75rem; }
.asm-payment-method-field {
  display: grid;
  grid-column: 1 / -1;
  justify-self: start;
  width: min(100%, 12rem);
  gap: 3px;
  min-width: 0;
  color: #52708a;
  font-size: 11px;
  font-weight: 500;
}
.asm-payment-method-field select {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid #cfdeea;
  border-radius: 6px;
  background: #fcfdff;
  color: #23445e;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.asm-payment-method-field select:focus-visible {
  outline: 2px solid #4388be;
  outline-offset: 2px;
}
.esim-checkout-sheet .asm-checkout-footer {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 4px 12px;
}
.asm-checkout-items {
  display: flex;
  align-items: center;
  gap: 16px;
}
.asm-checkout-footer > .asm-checkout-amount {
  grid-column: 2;
  justify-self: end;
  text-align: right;
}
.asm-checkout-footer .sheet-payment-note { margin: 0; }
.esim-checkout-sheet .asm-checkout-footer > .asm-payment-actions {
  grid-column: 3;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
}
.asm-payment-actions .asm-payment-method-field {
  flex: 0 1 152px;
  width: 152px;
  max-width: 100%;
  white-space: nowrap;
}
.asm-payment-actions .asm-payment-method-field select,
.asm-payment-actions .sheet-submit { height: 36px; }
.asm-checkout-footer .asm-payment-actions .sheet-submit { flex: none; width: auto; white-space: nowrap; padding-inline: 14px; }
.esim-checkout-sheet .insurance-checkout-total.asm-checkout-footer {
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
}
.insurance-checkout-total.asm-checkout-footer > .asm-checkout-amount {
  grid-column: 1;
  justify-self: start;
  text-align: left;
}
.insurance-checkout-total.asm-checkout-footer > .asm-checkout-amount span {
  display: grid;
  gap: 3px;
  font-size: 11px;
}
.esim-checkout-sheet .insurance-checkout-total.asm-checkout-footer > .asm-payment-actions {
  grid-column: 2;
}
.esim-checkout-sheet .esim-buyer-payment {
  grid-template-columns: minmax(0,1fr) auto;
  align-items: end;
  gap: 5px 10px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #e5edf5;
}
.esim-package-quantity {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px solid #e5edf5;
}
.esim-checkout-sheet .sheet-content:has(.esim-package-quantity) { align-items: stretch; }
.esim-buyer-payment > .asm-checkout-amount { grid-column: 1; justify-self: start; }
.esim-buyer-payment .sheet-total { text-align: left; }
.esim-checkout-sheet .esim-buyer-payment > .asm-payment-actions {
  grid-column: 2;
}
.esim-buyer-payment .asm-payment-actions .asm-payment-method-field {
  flex-basis: 136px;
  width: 136px;
}
.esim-buyer-payment .asm-payment-method-field select {
  border-color: #cbdcec;
  background-color: #f5f9fd;
}
.esim-buyer-payment .sheet-payment-note { grid-column: 1 / -1; }
.esim-buyer-payment .sheet-total,
.esim-buyer-payment .sheet-price-line { gap: 4px; }
.esim-buyer-payment .sheet-total strong { font-size: 17px; }
@media (max-width: 570px) {
  .esim-checkout-sheet .asm-checkout-footer { grid-template-columns: auto minmax(0,1fr); }
  .esim-checkout-sheet .asm-checkout-footer > .asm-payment-actions { grid-column: 1 / -1; }
  .asm-payment-method-field select { min-height: 44px; font-size: 16px; }
  .asm-checkout-items { gap: 10px; }
  .asm-payment-actions .sheet-submit { min-height: 44px; }
}
@media (max-width: 385px) {
  .esim-checkout-sheet .esim-buyer-payment > .asm-payment-actions { grid-column: 1 / -1; }
  .esim-checkout-sheet .insurance-checkout-total.asm-checkout-footer > .asm-payment-actions { grid-column: 1 / -1; }
}
.asm-qr-checkout-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(560px, 94vw);
  height: min(520px, 88dvh);
  padding: 0;
  border: 1px solid #dbe6ef;
  border-radius: 12px;
  background: #fff;
}
.asm-qr-checkout-dialog::backdrop { background: #0b223a99; }
.asm-qr-checkout-dialog > button { display: block; margin: 6px 8px 6px auto; min-width: 36px; height: 32px; cursor: pointer; }
.asm-qr-checkout-dialog > iframe { display: block; width: 100%; height: calc(100% - 44px); border: 0; }
.asm-card-result {
  box-sizing: border-box;
  width: min(430px, calc(100% - 32px));
  margin: 12vh auto 0;
  padding: 22px;
  border: 1px solid #dbe6ef;
  border-radius: 12px;
  color: #174b76;
  font: 14px/1.5 Arial,sans-serif;
}
.asm-card-result h1 { margin: 0; font-size: 20px; }
.asm-card-result a { color: #174b76; font-weight: 700; }
