.gwft-kontakte-detail {
  position: fixed;
  top: 60px;
  right: 0;
  bottom: 0;
  z-index: 25;
  display: flex;
  flex-direction: column;
  width: min(520px, calc(100vw - 54px));
  transform: translateX(100%);
  border-left: 1px solid rgba(86, 86, 86, 0.24);
  background: rgba(244, 244, 244, 0.96);
  box-shadow: -18px 0 44px rgba(0, 0, 0, 0.14);
  transition: transform 160ms ease;
}

.gwft-kontakte-detail.is-open {
  transform: translateX(0);
}

.gwft-kontakte-detail__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  padding: 16px 20px 12px;
  border-bottom: 1px solid rgba(86, 86, 86, 0.24);
}

.gwft-kontakte-detail__title {
  max-width: 380px;
  overflow: hidden;
  color: var(--gwft-primary);
  font-size: 18px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gwft-kontakte-detail__subtitle {
  margin-top: 2px;
  color: var(--gwft-secondary);
  font-size: 13px;
  font-weight: 600;
}

.gwft-kontakte-detail__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--gwft-primary);
  border-radius: 8px;
  background: var(--gwft-primary-gradient);
  color: var(--gwft-neutral-white);
}

.gwft-kontakte-detail__body {
  display: grid;
  gap: 14px;
  min-height: 0;
  padding: 16px 20px 24px;
  overflow: auto;
  scrollbar-width: none;
}

.gwft-kontakte-detail__body::-webkit-scrollbar {
  display: none;
}

.gwft-detail-section {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(152, 152, 152, 0.72);
  border-radius: 12px;
  background: var(--gwft-neutral-white);
}

.gwft-detail-section h3 {
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(86, 86, 86, 0.18);
  color: var(--gwft-secondary);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
}

.gwft-detail-field {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 22px;
}

.gwft-detail-field span {
  color: var(--gwft-primary-light);
  font-size: 12px;
  font-weight: 400;
}

.gwft-detail-field strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--gwft-primary);
  font-size: 13px;
  font-weight: 500;
}

.gwft-detail-list {
  display: grid;
  gap: 8px;
}

.gwft-detail-list-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(90px, 0.6fr);
  gap: 10px;
  align-items: center;
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid rgba(152, 152, 152, 0.7);
  border-radius: 10px;
  background: var(--gwft-neutral-light);
}

.gwft-detail-list-card strong,
.gwft-detail-list-card span,
.gwft-detail-empty,
.gwft-detail-error {
  overflow: hidden;
  color: var(--gwft-primary);
  font-size: 13px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gwft-detail-list-card span {
  color: var(--gwft-primary-light);
  text-align: right;
}

.gwft-detail-empty {
  color: var(--gwft-primary-light);
  white-space: normal;
}

.gwft-detail-error {
  color: var(--gwft-secondary);
  white-space: normal;
}

@media (max-width: 820px) {
  .gwft-kontakte-detail {
    left: 54px;
    width: auto;
  }

  .gwft-detail-field {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .gwft-detail-list-card {
    grid-template-columns: 1fr;
  }

  .gwft-detail-list-card span {
    text-align: left;
  }
}
