.itu-brands-popup-open,
.itu-brands-popup-open body {
  overflow: hidden;
}

.itu-brands-popup-wrap {
  display: inline-flex;
  align-items: center;
}

.itu-brands-popup-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid currentColor;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: opacity .18s ease, transform .18s ease;
}

.itu-brands-popup-trigger:hover {
  opacity: .78;
}

.itu-brands-popup-trigger:active {
  transform: translateY(1px);
}

.itu-brands-popup-trigger-icon {
  display: inline-flex;
}

.itu-brands-popup-overlay[hidden] {
  display: none !important;
}

.itu-brands-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0, 0, 0, .58);
  opacity: 0;
  transition: opacity .18s ease;
}

.itu-brands-popup-overlay.is-open {
  opacity: 1;
}

.itu-brands-popup-dialog {
  width: min(100%, 1080px);
  max-height: min(82vh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  color: #222;
  box-shadow: 0 24px 70px rgba(0,0,0,.28);
  transform: translateY(14px) scale(.985);
  transition: transform .18s ease;
}

.itu-brands-popup-overlay.is-open .itu-brands-popup-dialog {
  transform: translateY(0) scale(1);
}

.itu-brands-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid #ececec;
}

.itu-brands-popup-title {
  margin: 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.2;
}

.itu-brands-popup-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f3f3f3;
  color: #222;
  cursor: pointer;
}

.itu-brands-popup-search-wrap {
  padding: 18px 24px 0;
}

.itu-brands-popup-search {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid #d7d7d7;
  border-radius: 7px;
  background: #fff;
  color: #222;
  font-size: 16px;
}

.itu-brands-popup-content {
  overflow: auto;
  padding: 22px 24px 28px;
}

.itu-brands-popup-grid {
  display: grid;
  grid-template-columns: repeat(var(--itu-brand-columns, 4), minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.itu-brands-popup-link {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  padding: 9px 11px;
  border: 1px solid #ededed;
  border-radius: 8px;
  color: inherit;
  text-decoration: none;
  transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.itu-brands-popup-link:hover {
  border-color: #cfcfcf;
  background: #fafafa;
  transform: translateY(-1px);
}

.itu-brands-popup-initial {
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f0f0f0;
  font-weight: 700;
  font-size: 13px;
}

.itu-brands-popup-name {
  min-width: 0;
  overflow-wrap: anywhere;
}

.itu-brands-popup-empty {
  margin: 18px 0 0;
  text-align: center;
}

.itu-brands-popup-notice {
  padding: 10px 12px;
  border-left: 4px solid #d63638;
  background: #fff3f3;
}

@media (max-width: 900px) {
  .itu-brands-popup-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .itu-brands-popup-overlay {
    align-items: stretch;
    padding: 0;
  }

  .itu-brands-popup-dialog {
    width: 100%;
    max-height: 100%;
    min-height: 100%;
    border-radius: 0;
  }

  .itu-brands-popup-header {
    padding: 18px;
  }

  .itu-brands-popup-search-wrap {
    padding: 14px 18px 0;
  }

  .itu-brands-popup-content {
    padding: 18px;
  }

  .itu-brands-popup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .itu-brands-popup-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .itu-brands-popup-overlay,
  .itu-brands-popup-dialog,
  .itu-brands-popup-trigger,
  .itu-brands-popup-link {
    transition: none;
  }
}
