/* ds1 merchant UI — VENTOPIA soft purple */
.ds1-cred-popup {
  border-radius: 18px !important;
  border: 1px solid #ede9fe !important;
  box-shadow: 0 22px 50px rgba(99, 102, 241, 0.16) !important;
  padding: 8px 6px 16px !important;
}
.ds1-cred-popup .swal2-title,
.ds1-cred-title {
  color: #3730a3 !important;
  font-weight: 800 !important;
  font-size: 1.15rem !important;
}
.ds1-cred-popup .swal2-icon.swal2-success,
.ds1-cred-icon {
  border-color: #c4b5fd !important;
  margin-bottom: 8px !important;
}
.ds1-cred-popup .swal2-icon.swal2-success [class^=swal2-success-line],
.ds1-cred-popup .swal2-success-ring { border-color: #8b5cf6 !important; background-color: #8b5cf6 !important; }
.ds1-cred { text-align: left; margin-top: 4px; }
.ds1-cred-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  margin: 8px 0 0;
  background: linear-gradient(135deg, #faf5ff 0%, #eef2ff 100%);
  border: 1px solid #ede9fe;
  border-radius: 12px;
}
.ds1-cred-row i {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #7c3aed;
  font-size: 1rem;
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.12);
}
.ds1-cred-row code {
  font-size: 1.02rem;
  font-weight: 700;
  color: #1e1b4b;
  background: transparent;
  word-break: break-all;
}
.ds1-cred-hint {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 12px 0 0;
  color: #6d28d9;
  font-size: 0.86rem;
  line-height: 1.45;
}
.ds1-cred-hint i { margin-top: 2px; flex: none; }
.ds1-cred-ok,
.ds1-cred-popup .swal2-confirm {
  background: linear-gradient(135deg, #7c3aed 0%, #6366f1 100%) !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 8px 22px !important;
  font-weight: 700 !important;
  box-shadow: 0 8px 18px rgba(99, 102, 241, 0.28) !important;
}

.ds1-agent-card {
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #ede9fe;
  border-radius: 14px;
  background: linear-gradient(180deg, #faf5ff 0%, #ffffff 72%);
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: 0 10px 24px rgba(99, 102, 241, 0.08);
}
.ds1-agent-card img,
.ds1-agent-fallback {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  border: 2px solid #c4b5fd;
  background: #eef2ff;
}
.ds1-agent-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #6d28d9;
}
.ds1-agent-body { min-width: 0; flex: 1; }
.ds1-agent-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #7c3aed;
  margin-bottom: 2px;
}
.ds1-agent-role {
  display: inline-flex;
  padding: 1px 8px;
  border-radius: 999px;
  background: #ede9fe;
  color: #5b21b6;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
}
.ds1-agent-name {
  font-weight: 800;
  font-size: 1rem;
  color: #1e1b4b;
  line-height: 1.3;
}
.ds1-agent-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 6px;
  font-size: 0.88rem;
  color: #475569;
}
.ds1-agent-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.ds1-agent-meta i { color: #8b5cf6; font-size: 0.92rem; }

.ds1-force-notice {
  margin: 12px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, #faf5ff 0%, #eef2ff 100%);
  color: #5b21b6;
  border: 1px solid #c4b5fd;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.45;
  font-size: 0.92rem;
  font-weight: 600;
}
.ds1-force-notice::before {
  content: "\F33A";
  font-family: "bootstrap-icons", "Bootstrap Icons", sans-serif;
  font-weight: 400;
  color: #7c3aed;
  flex: none;
  margin-top: 1px;
}

#proxy_merchant_username_wrap small { display: none !important; }
.ag-hint[data-sm1="ag.f_username_hint"] { display: none !important; }

@media (max-width: 576px) {
  .ds1-agent-card { align-items: flex-start; padding: 12px; }
  .ds1-cred-row { padding: 10px 12px; }
  .ds1-cred-popup { width: calc(100% - 24px) !important; }
}
