.djc-dna-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.kefu .djc-dna-kefu-item {
  background: #4ea37a;
}

.kefu .djc-dna-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  cursor: pointer;
}

.kefu .djc-dna-trigger svg {
  display: block;
  width: 28px;
  height: 28px;
  margin: 0 auto 5px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kefu .djc-dna-trigger p {
  color: #fff;
}

.djc-dna-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  visibility: hidden;
  background: rgba(16, 32, 51, .52);
  opacity: 0;
  transition: opacity .22s ease, visibility 0s linear .22s;
}

.djc-dna-panel {
  --djc-dna-blue: #1a76d1;
  --djc-dna-blue-dark: #105ca8;
  --djc-dna-pale: #f7fbff;
  --djc-dna-green: #4ea37a;
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  width: min(430px, 100vw);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  color: #24384d;
  background: #fff;
  box-shadow: -12px 0 38px rgba(16, 32, 51, .2);
  transform: translateX(104%);
  transition: transform .26s ease;
}

.djc-dna-widget.djc-dna-is-open .djc-dna-overlay {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

.djc-dna-widget.djc-dna-is-open .djc-dna-panel {
  transform: translateX(0);
}

.djc-dna-panel * {
  box-sizing: border-box;
}

.djc-dna-header {
  position: relative;
  flex: 0 0 auto;
  padding: 22px 62px 18px 22px;
  color: #fff;
  background: linear-gradient(135deg, #1a76d1 0%, #105ca8 72%, #4ea37a 145%);
}

.djc-dna-kicker {
  margin: 0 0 5px;
  color: rgba(255, 255, 255, .84);
  font-size: 12px;
  letter-spacing: .08em;
}

.djc-dna-title {
  margin: 0;
  color: #fff;
  font-size: 23px;
  line-height: 1.3;
}

.djc-dna-title:focus {
  outline: none;
}

.djc-dna-intro {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .9);
  font-size: 13px;
  line-height: 1.65;
}

.djc-dna-close {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, .14);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

.djc-dna-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 18px 20px 22px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--djc-dna-pale);
}

.djc-dna-privacy {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin: 0 0 14px;
  padding: 10px 12px;
  border: 1px solid #d7e7f8;
  border-radius: 10px;
  color: #48627c;
  background: #fff;
  font-size: 12px;
  line-height: 1.55;
}

.djc-dna-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 18px;
}

.djc-dna-input {
  min-width: 0;
  height: 46px;
  padding: 0 13px;
  border: 1px solid #c7dcef;
  border-radius: 10px;
  outline: 0;
  color: #24384d;
  background: #fff;
  font: inherit;
  font-size: 14px;
}

.djc-dna-input:focus {
  border-color: var(--djc-dna-blue);
  box-shadow: 0 0 0 3px rgba(26, 118, 209, .14);
}

.djc-dna-search-button {
  min-width: 72px;
  height: 46px;
  padding: 0 15px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: var(--djc-dna-blue);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.djc-dna-section-title {
  margin: 0 0 10px;
  color: #102033;
  font-size: 15px;
  line-height: 1.4;
}

.djc-dna-section-title:not(:first-child) {
  margin-top: 17px;
}

.djc-dna-chips {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.djc-dna-chip {
  min-height: 44px;
  padding: 9px 10px;
  border: 1px solid #d7e7f8;
  border-radius: 10px;
  color: #31516f;
  background: #fff;
  font: inherit;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
  cursor: pointer;
}

.djc-dna-chip:hover,
.djc-dna-chip[aria-pressed="true"] {
  border-color: var(--djc-dna-blue);
  color: var(--djc-dna-blue-dark);
  background: #edf5ff;
}

.djc-dna-regions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.djc-dna-regions .djc-dna-chip {
  min-height: 40px;
  padding: 7px 12px;
  text-align: center;
}

.djc-dna-status {
  min-height: 20px;
  margin: 18px 0 10px;
  color: #556575;
  font-size: 13px;
  line-height: 1.5;
}

.djc-dna-results {
  display: grid;
  gap: 12px;
}

.djc-dna-result,
.djc-dna-empty {
  padding: 15px;
  border: 1px solid #d7e7f8;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(16, 32, 51, .05);
}

.djc-dna-result-category {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  color: #105ca8;
  background: #edf5ff;
  font-size: 11px;
  line-height: 1.4;
}

.djc-dna-result-title {
  margin: 0 0 8px;
  color: #102033;
  font-size: 16px;
  line-height: 1.5;
}

.djc-dna-result-answer,
.djc-dna-empty p {
  margin: 0;
  color: #48627c;
  font-size: 13px;
  line-height: 1.75;
}

.djc-dna-risk {
  margin: 11px 0 0;
  padding: 9px 10px;
  border-left: 3px solid #d69b2d;
  border-radius: 4px;
  color: #6f5015;
  background: #fff8ec;
  font-size: 12px;
  line-height: 1.65;
}

.djc-dna-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.djc-dna-detail,
.djc-dna-human {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.djc-dna-detail {
  border: 1px solid var(--djc-dna-blue);
  color: var(--djc-dna-blue-dark);
  background: #fff;
}

.djc-dna-human {
  border: 1px solid var(--djc-dna-green);
  color: #fff;
  background: var(--djc-dna-green);
}

.djc-dna-boundary {
  margin-top: 17px;
  border: 1px solid #d7e7f8;
  border-radius: 10px;
  background: #fff;
}

.djc-dna-boundary summary {
  padding: 12px 13px;
  color: #31516f;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.djc-dna-boundary-content {
  padding: 0 14px 13px;
  color: #556575;
  font-size: 12px;
  line-height: 1.7;
}

.djc-dna-boundary-content p {
  margin: 7px 0 0;
}

.djc-dna-human-note {
  margin: 15px 0 0;
  color: #667b90;
  font-size: 12px;
  line-height: 1.65;
}

.djc-dna-footer {
  flex: 0 0 auto;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid #d7e7f8;
  background: #fff;
  box-shadow: 0 -8px 20px rgba(16, 32, 51, .06);
}

.djc-dna-qr {
  display: none;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: #48627c;
  font-size: 12px;
}

.djc-dna-qr img {
  width: 54px;
  height: 54px;
  object-fit: cover;
}

.djc-dna-footer-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.djc-dna-footer-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 7px;
  border: 1px solid #c7dcef;
  border-radius: 9px;
  color: #31516f;
  background: #fff;
  font: inherit;
  font-size: 11px;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.djc-dna-footer-action-primary {
  border-color: var(--djc-dna-blue);
  color: #fff;
  background: var(--djc-dna-blue);
}

.djc-dna-close:focus-visible,
.djc-dna-trigger:focus-visible,
.djc-dna-chip:focus-visible,
.djc-dna-search-button:focus-visible,
.djc-dna-detail:focus-visible,
.djc-dna-human:focus-visible,
.djc-dna-footer-action:focus-visible {
  outline: 3px solid #ffd166;
  outline-offset: 2px;
}

@media (min-width: 768px) {
  .djc-dna-qr {
    display: flex;
  }
}

@media (max-width: 767px) {
  .kefu .djc-dna-kefu-item {
    position: fixed;
    right: 14px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    z-index: 9997;
    width: auto;
    padding: 0;
    border: 0;
    border-radius: 999px;
    box-shadow: 0 8px 24px rgba(16, 32, 51, .22);
  }

  .kefu .djc-dna-trigger {
    display: flex;
    align-items: center;
    gap: 7px;
    min-height: 48px;
    padding: 8px 15px;
  }

  .kefu .djc-dna-trigger svg {
    width: 24px;
    height: 24px;
    margin: 0;
  }

  .kefu .djc-dna-trigger p {
    margin: 0;
    font-size: 13px;
    line-height: 1.2;
  }

  .djc-dna-panel {
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: 88vh;
    max-height: 88dvh;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 38px rgba(16, 32, 51, .22);
    transform: translateY(104%);
  }

  .djc-dna-widget.djc-dna-is-open .djc-dna-panel {
    transform: translateY(0);
  }

  .djc-dna-header {
    padding: 17px 58px 14px 17px;
  }

  .djc-dna-title {
    font-size: 20px;
  }

  .djc-dna-intro {
    font-size: 12px;
    line-height: 1.55;
  }

  .djc-dna-body {
    padding: 14px 14px 18px;
  }

  .djc-dna-footer {
    padding-right: 10px;
    padding-left: 10px;
  }
}

@media (max-width: 379px) {
  .djc-dna-chips {
    grid-template-columns: 1fr;
  }

  .djc-dna-footer-actions {
    grid-template-columns: 1fr 1fr;
  }

  .djc-dna-footer-action:last-child {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .djc-dna-overlay,
  .djc-dna-panel {
    transition: none;
  }
}
