.ew-resellers[hidden] {
  display: none !important;
}

.ew-resellers-modal {
  position: fixed;
  z-index: 99999;
  inset: 0;
  display: none;
  padding: 20px;
}

.ew-resellers-modal.is-open {
  display: flex;
  align-items: center;
  justify-content: center;
}

.ew-resellers-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
}

.ew-resellers-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
  max-height: min(850px, calc(100vh - 40px));
  overflow-y: auto;
  padding: 46px;
  background: #fff;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.28);
}

.ew-resellers-modal__close {
  position: absolute;
  top: 16px;
  right: 18px;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
}

.ew-resellers-modal__eyebrow {
  margin: 0 0 7px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ew-resellers-modal__header h2 {
  margin: 0 0 30px;
  font-size: clamp(28px, 4vw, 42px);
}

.ew-resellers-switcher__nav {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
  border-bottom: 1px solid #d9d9d9;
}

.ew-resellers-switcher__button {
  position: relative;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.ew-resellers-switcher__button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: currentColor;
  content: '';
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.ew-resellers-switcher__button.is-active::after {
  transform: scaleX(1);
}

.ew-resellers-online,
.ew-resellers-stores {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ew-resellers-online__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 125px;
  padding: 20px;
  border: 1px solid #e2e2e2;
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.ew-resellers-online__item:hover,
.ew-resellers-online__item:focus-visible {
  border-color: currentColor;
  transform: translateY(-2px);
}

.ew-resellers-online__item img {
  display: block;
  max-width: 100%;
  max-height: 78px;
  object-fit: contain;
}

.ew-resellers-online__logo-text {
  display: block;
  font-weight: 700;
  text-align: center;
}

.ew-resellers-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 25px;
}

.ew-resellers-filter label {
  font-weight: 700;
}

.ew-resellers-filter__select {
  min-width: 260px;
  padding: 12px 38px 12px 14px;
  border: 1px solid #bdbdbd;
  border-radius: 0;
  background: #fff;
  color: inherit;
  font: inherit;
}

.ew-resellers-store-card {
  padding: 24px;
  border: 1px solid #e2e2e2;
}

.ew-resellers-store-card[hidden] {
  display: none;
}

.ew-resellers-store-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.ew-resellers-store-card address {
  margin: 0 0 14px;
  font-style: normal;
  line-height: 1.55;
}

.ew-resellers-store-card a {
  font-weight: 700;
  text-decoration: none;
}

.ew-resellers-store-card__website {
  display: inline-block;
  margin-top: 10px;
}

.ew-resellers-empty {
  margin: 24px 0 0;
  font-weight: 700;
}

body.ew-resellers-modal-open {
  overflow: hidden;
}

@media (max-width: 650px) {
  .ew-resellers-modal {
    padding: 10px;
  }

  .ew-resellers-modal__dialog {
    max-height: calc(100vh - 20px);
    padding: 42px 22px 26px;
  }

  .ew-resellers-switcher__nav {
    gap: 0;
  }

  .ew-resellers-switcher__button {
    flex: 1 1 50%;
    padding: 12px 8px;
    font-size: 14px;
  }

  .ew-resellers-online,
  .ew-resellers-stores {
    grid-template-columns: 1fr;
  }

  .ew-resellers-filter__select {
    width: 100%;
    min-width: 0;
  }
}
