.dwl-lookup {
  --dwl-blue: #214d84;
  --dwl-blue-2: #2f6eae;
  --dwl-ink: #182230;
  --dwl-muted: #667085;
  --dwl-line: #d9e2ef;
  --dwl-soft: #f3f7fb;
  --dwl-card: #ffffff;
  max-width: 1080px;
  margin: 0 auto;
  color: var(--dwl-muted);
  font-family: Arial, sans-serif;
}

.dwl-lookup * {
  box-sizing: border-box;
}

.dwl-lookup-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 12px;
  margin-bottom: 22px;
  border: 1px solid rgba(33, 77, 132, 0.12);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f3f7fb);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.1);
}

.dwl-lookup-form input {
  width: 100%;
  min-width: 0;
  height: 50px;
  padding: 0 16px;
  border: 1px solid var(--dwl-line);
  border-radius: 9px;
  outline: none;
  background: #fff;
  color: var(--dwl-ink);
  font-size: 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.dwl-lookup-form input:focus {
  border-color: var(--dwl-blue-2);
  box-shadow: 0 0 0 4px rgba(47, 110, 174, 0.14);
}

.dwl-lookup-form button {
  height: 50px;
  padding: 0 24px;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(180deg, var(--dwl-blue-2), var(--dwl-blue));
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(33, 77, 132, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.dwl-lookup-form button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 14px 28px rgba(33, 77, 132, 0.32);
}

.dwl-lookup-empty,
.dwl-result {
  border: 1px solid rgba(33, 77, 132, 0.1);
  border-radius: 14px;
  background: #f5f8fc;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.08);
}

.dwl-lookup-empty {
  padding: 18px 20px;
  color: #9a3412;
  background: #fff7ed;
}

.dwl-result {
  padding: 16px;
  animation: dwlResultIn 0.24s ease-out;
}

@keyframes dwlResultIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dwl-card-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 26px;
}

.dwl-card-face {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid rgba(33, 77, 132, 0.08);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.dwl-card-face img {
  display: block;
  width: 100%;
  height: auto;
}

.dwl-card-placeholder {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 18px;
  color: var(--dwl-muted);
  background: #fff;
}

.dwl-overlay-text {
  position: absolute;
  max-width: 80%;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.72);
  transform: translateY(-50%);
  white-space: nowrap;
}

.dwl-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 34px;
  padding: 6px;
}

.dwl-info-item {
  display: grid;
  grid-template-columns: 26px 128px 1fr;
  align-items: start;
  min-height: 38px;
  padding: 10px 12px;
  border: 1px solid rgba(33, 77, 132, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.dwl-icon {
  display: inline-grid;
  width: 20px;
  height: 20px;
  place-items: center;
  color: var(--dwl-blue);
  font-size: 14px;
  line-height: 1;
}

.dwl-label {
  color: var(--dwl-muted);
}

.dwl-value {
  color: var(--dwl-blue);
  font-weight: 800;
  letter-spacing: 0.01em;
}

.dwl-position-public .dwl-position-matrix {
  border-collapse: separate;
  border-spacing: 5px;
  margin-top: -4px;
}

.dwl-position-public .dwl-position-matrix td {
  min-width: 86px;
  height: 22px;
  padding: 2px 10px;
  border: 0;
  border-radius: 7px;
  background: #ffd0b8;
  color: #172554;
  text-align: center;
  font-weight: 700;
}

@media (max-width: 760px) {
  .dwl-lookup {
    max-width: 100%;
  }

  .dwl-lookup-form,
  .dwl-card-images,
  .dwl-info-grid {
    grid-template-columns: 1fr;
  }

  .dwl-lookup-form button {
    width: 100%;
  }

  .dwl-info-item {
    grid-template-columns: 24px 112px 1fr;
    padding: 10px;
  }
}
