.credential-preview {
  box-sizing: border-box !important;
  width: 9cm !important;
  height: 4cm !important;
  display: grid !important;
  grid-template-columns: 3.15cm minmax(0, 1fr) !important;
  grid-template-rows: 1fr !important;
  align-items: center !important;
  justify-items: stretch !important;
  gap: .35cm !important;
  padding: .32cm !important;
  border: 1px solid #202020 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: #202020 !important;
  box-shadow: 0 12px 28px rgba(30, 20, 24, .14) !important;
  text-align: left !important;
}

.credential-preview .credential-qr {
  display: block !important;
  width: 3.05cm !important;
  height: 3.05cm !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
}

.credential-preview .credential-data {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: .08cm;
}

.credential-preview .credential-name {
  margin: 0 !important;
  color: #202020 !important;
  font: 800 15pt/1.05 Outfit, Arial, sans-serif !important;
  overflow-wrap: anywhere;
}

.credential-preview .credential-code,
.credential-preview .credential-role {
  display: block;
  margin: 0 !important;
  color: #202020 !important;
  font: 800 9.5pt/1.15 Outfit, Arial, sans-serif !important;
  text-transform: uppercase;
}

.credential-preview .credential-role {
  margin-top: .12cm !important;
}

.team-action-body .credential-preview {
  margin: 0 auto !important;
  transform: none !important;
}

#credentialPreviewArea {
  box-sizing: border-box;
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 30px 26px;
  border: 1px solid #e1e8e1;
  border-radius: 20px;
  background: linear-gradient(145deg, #f7faf6, #fffdfa);
}

#credentialPreviewArea > .primary-btn {
  width: auto !important;
  min-width: 190px;
  min-height: 44px;
  justify-content: center !important;
  margin: 0 !important;
  padding: 11px 22px !important;
  border-radius: 12px !important;
  font-size: 14px !important;
  box-shadow: 0 8px 18px rgba(113, 26, 57, .16) !important;
}

.team-action-body .credential-layout {
  align-items: stretch !important;
  gap: 32px !important;
}

@media (max-width: 520px) {
  .credential-preview {
    width: min(9cm, 100%) !important;
    height: auto !important;
    min-height: 4cm;
    grid-template-columns: 2.65cm minmax(0, 1fr) !important;
  }
  .credential-preview .credential-qr {
    width: 2.55cm !important;
    height: 2.55cm !important;
  }
  #credentialPreviewArea {
    min-height: 230px;
    padding: 24px 16px;
  }
  #credentialPreviewArea > .primary-btn {
    min-width: 170px;
  }
}
