.txw-toolbar {
  margin: 0 0 24px;
}

.txw-search-wrap {
  margin-bottom: 16px;
}

.txw-search {
  width: 100%;
  max-width: 520px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.2;
  border: 1px solid #d0d7de;
  border-radius: 8px;
  background: #fff;
}

.txw-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}

.txw-chip-title {
  width: 100%;
  font-weight: 700;
  font-size: 14px;
  margin: 4px 0 2px;
}

.txw-chip {
  appearance: none;
  border: 1px solid #c8d1dc;
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  cursor: pointer;
  color: #333;   /* ← fixes white-on-white */
}

.txw-chip.is-active {
  border-color: #0b57d0;
  background: #0b57d0;
  color: #fff;
}

.txw-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.txw-clear-btn {
  appearance: none;
  border: 1px solid #c8d1dc;
  background: #fff;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
}

.txw-results-count {
  font-size: 14px;
  color: #555;
}

.txw-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.txw-card__body {
  padding: 10px 12px;
}

.txw-card__size {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.txw-card__style {
  font-size: 13px;
  margin-bottom: 8px;
}

.txw-card__dimensions,
.txw-card__meta,
.txw-card__retail {
  font-size: 13px;
  margin-bottom: 4px;
  line-height: 1.35;
}

.txw-card__price {
  font-size: 18px;
  font-weight: 700;
  margin-top: 8px;
}

#txw-clear-filters {
  background: #fff;
  border: 1px solid #c8d1dc;
  color: #333;        /* fixes white text */
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
}

#txw-clear-filters:hover {
  background: #f3f6fa;
}

@media (max-width: 767px) {
  .txw-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .txw-card__image,
  .txw-card__image img {
    height: 95px !important;
    min-height: 95px !important;
    max-height: 95px !important;
  }

  .txw-card__body {
    padding: 8px 10px;
  }

  .txw-card__size {
    font-size: 15px;
  }

  .txw-card__style {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .txw-card__dimensions,
  .txw-card__meta,
  .txw-card__retail {
    font-size: 12px;
    margin-bottom: 3px;
  }

  .txw-card__price {
    font-size: 16px;
    margin-top: 6px;
  }
}

#txw-clear-filters,
.txw-clear-btn,
button#txw-clear-filters,
button.txw-clear-btn {
  background: #fff !important;
  border: 1px solid #c8d1dc !important;
  color: #333 !important;
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
}

#txw-clear-filters:hover,
.txw-clear-btn:hover,
button#txw-clear-filters:hover,
button.txw-clear-btn:hover {
  background: #f3f6fa !important;
  color: #111 !important;
}

.txw-image-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
}

.txw-image-modal.is-open {
  display: block;
}

.txw-image-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
}

.txw-image-modal__dialog {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 90vh;
  margin: 4vh auto 0;
  padding: 18px;
  text-align: center;
}

.txw-image-modal__title {
  color: #fff;
  font-size: 16px;
  margin-bottom: 10px;
}

.txw-image-modal__img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 8px;
  background: #fff;
}

.txw-image-modal__close {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(40%, -40%);
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

body.txw-modal-open {
  overflow: hidden;
}