.gbft-product-finder-section[hidden] {
  display: none !important;
}

.gbft-product-finder-section {
  margin: 24px 0;
}

.gbft-product-finder {
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #222;
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Hiragino Kaku Gothic ProN",
    "Yu Gothic",
    Meiryo,
    sans-serif;
}

.gbft-product-finder *,
.gbft-product-finder *::before,
.gbft-product-finder *::after {
  box-sizing: border-box;
}

.gbft-product-finder__header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 24px;
  border-bottom: 1px solid #d7d7d7;
}

.gbft-product-finder__header h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.45;
}

.gbft-product-finder__reset {
  flex: 0 0 auto;
  padding: 9px 14px;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #222;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
}

.gbft-product-finder .gbft-product-finder__question {
  display: block;
  width: 100%;
  margin: 0;
  padding: 20px 24px;
  border: 0;
  border-bottom: 1px solid #d7d7d7;
  background: #fff;
}

.gbft-product-finder .gbft-product-finder__question.is-disabled {
  opacity: 0.42;
  pointer-events: none;
}

.gbft-product-finder .gbft-product-finder__question-title {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
  padding: 0;
  color: #222;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.5;
}

.gbft-product-finder .gbft-product-finder__question-title span {
  display: inline-grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 13px;
  line-height: 1;
}

.gbft-product-finder__help {
  margin: -8px 0 14px;
  color: #666;
  font-size: 13px;
}

.gbft-product-finder .gbft-product-finder__options {
  display: grid !important;
  width: 100% !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  align-items: stretch;
}

.gbft-product-finder__option {
  min-height: 60px;
  padding: 10px 12px;
  border: 1px solid #d7d7d7;
  background: #fff;
  color: #222;
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.gbft-product-finder__option:hover:not(:disabled) {
  border-color: #777;
}

.gbft-product-finder__option.is-active {
  border-color: #111;
  background: #111;
  color: #fff;
}

.gbft-product-finder__option:disabled {
  background: #f5f5f5;
  color: #aaa;
  cursor: not-allowed;
}

.gbft-product-finder__option span,
.gbft-product-finder__option small {
  display: block;
}

.gbft-product-finder__option span {
  font-size: 14px;
  font-weight: 700;
}

.gbft-product-finder__option small {
  margin-top: 4px;
  opacity: 0.72;
  font-size: 11px;
}

.gbft-product-finder__results {
  padding: 30px 32px 36px;
  background: #f6f6f6;
}

.gbft-product-finder__results-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  margin-bottom: 18px;
}

.gbft-product-finder__condition {
  margin: 0 0 5px;
  color: #666;
  font-size: 13px;
}

.gbft-product-finder__results h3 {
  margin: 0;
  font-size: 21px;
}

.gbft-product-finder__sort {
  display: flex;
  gap: 8px;
  align-items: center;
  color: #666;
  font-size: 12px;
}

.gbft-product-finder__sort select {
  min-height: 38px;
  padding: 0 32px 0 10px;
  border: 1px solid #cfcfcf;
  background: #fff;
  color: #222;
  font: inherit;
}

.gbft-product-finder__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.gbft-product-finder__card {
  min-width: 0;
  border: 1px solid #d7d7d7;
  background: #fff;
}

.gbft-product-finder__card a {
  display: block;
  height: 100%;
  color: inherit;
  text-decoration: none;
}

.gbft-product-finder__image {
  position: relative;
  padding-top: 72%;
  overflow: hidden;
  background: #fff;
}

.gbft-product-finder__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding-top:1%;
}

.gbft-product-finder__card-body {
  padding: 14px;
}

.gbft-product-finder__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 22px;
  margin-bottom: 9px;
}

.gbft-product-finder__badge {
  padding: 3px 6px;
  background: #f2f2f2;
  color: #555;
  font-size: 10px;
}

.gbft-product-finder__card h4 {
  display: -webkit-box;
  min-height: 61px;
  margin: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  font-size: 13px;
  line-height: 1.55;
}

.gbft-product-finder__price {
  margin: 12px 0 0;
  font-size: 16px;
  font-weight: 700;
}

.gbft-product-finder__price small {
  font-size: 10px;
  font-weight: 400;
}

.gbft-product-finder__link {
  margin: 12px 0 0;
  padding-top: 10px;
  border-top: 1px solid #d7d7d7;
  font-size: 12px;
  font-weight: 700;
}

.gbft-product-finder__more {
  display: block;
  width: min(360px, 100%);
  margin: 24px auto 0;
  padding: 13px 20px;
  border: 1px solid #111;
  background: #fff;
  color: #222;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

@media (max-width: 900px) {
  .gbft-product-finder .gbft-product-finder__options {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .gbft-product-finder__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .gbft-product-finder-section {
    margin: 24px 0;
  }

  .gbft-product-finder {
    border-right: 0;
    border-left: 0;
  }

  .gbft-product-finder__header {
    display: block;
    padding: 14px 16px;
  }

  .gbft-product-finder__header h2 {
    font-size: 20px;
  }

  .gbft-product-finder__reset {
    margin-top: 16px;
  }

  .gbft-product-finder .gbft-product-finder__question,
  .gbft-product-finder__results {
    padding: 18px 16px;
  }

  .gbft-product-finder__grid {
    gap: 8px;
  }

  .gbft-product-finder__card-body {
    padding: 10px;
  }

  .gbft-product-finder__card h4 {
    min-height: 78px;
    font-size: 12px;
    -webkit-line-clamp: 4;
  }

  .gbft-product-finder__results-head {
    display: block;
  }

  .gbft-product-finder__sort {
    margin-top: 12px;
  }
}
