/*
 * Search result card UI
 * Component version: 1.3.10
 *
 * AJAX検索では tmp/entry-card.php の先頭に置いた <style> が
 * appendCards() の a.entry-card-wrap 抽出時に捨てられるため、
 * カード自身から読み込む独立CSSとして配置する。
 * サムネイル側の既存仕様には触れず、#list 内の本文側だけを整える。
 * v1.3.00: 実ソースを確認し、PricePeek実出力 .pricepeek-title-sale-badge をA案モック値で上書き。
 *            タグは sale-history-grid.css の実値へ合わせる。
 * v1.3.01: 配色は維持したまま、SALEラベルとタグをタイトルとのバランスに合わせて1段階拡大。
 * v1.3.02: セール履歴と同じ分類で、カテゴリ=ピンク、場所=青系、排泄=黄系、その他=グレー系へ。
 * v1.3.05: トイレ場所とその他タグを見分けやすくするため、場所色を #a398e1 へ強調。
 * v1.3.06: 場所・排泄タグもカテゴリ同様に、種別色の背景と枠線を付けて判別しやすくする。
 * v1.3.08: チップの背景・枠線を外し、現行サイトの fa-th-large / fa-tag アイコンはそのまま使用。
 * v1.3.09: タグ文字・間隔をCocoon現行の12px基準へ寄せ、アイコン間隔もtax-icon既定値へ戻す。
 * v1.3.10: 現行サイトと同じ単位指定に合わせ、タグ文字サイズ上限を1.2remへ固定。
 */

#list .tn-search-result-card-v2 {
  display: block;
  margin-bottom: 2.25em;
  padding-bottom: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#list .tn-search-result-card-v2 .entry-card-content {
  box-sizing: border-box;
  margin: 0;
  padding: 24px 26px 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#list .tn-search-result-card-v2 .entry-card-title {
  margin: 0 0 15px;
  color: #f2f2f4;
  font-size: 2.15rem;
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: .01em;
}

/*
 * SALEラベル。
 * PricePeek Bridge の実出力は .pricepeek-title-sale-badge。
 * A案の色・角丸は維持しつつ、タイトルとのバランスに合わせて拡大する。
 */
#list .tn-search-result-card-v2 .pricepeek-title-sale-badge,
#list .tn-search-result-card-v2 .sale {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  box-sizing: border-box !important;
  margin: 0 14px 0 0 !important;
  padding: 10px 14px !important;
  overflow: hidden !important;
  border: 0 !important;
  border-radius: 8px !important;
  -webkit-border-radius: 8px !important;
  background: linear-gradient(180deg, #f21883 0%, #be0068 100%) !important;
  box-shadow: 0 8px 20px rgba(190, 0, 104, .22) !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 14px !important;
  font-style: normal !important;
  font-weight: 900 !important;
  line-height: 1 !important;
  letter-spacing: .02em !important;
  text-decoration: none !important;
  text-transform: none !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

#list .tn-search-result-card-v2 .pricepeek-title-sale-label {
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  letter-spacing: .03em !important;
  opacity: 1 !important;
}

#list .tn-search-result-card-v2 .pricepeek-title-sale-badge strong,
#list .tn-search-result-card-v2 .sale strong,
#list .tn-search-result-card-v2 .sale b {
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

#list .tn-search-result-card-v2 .entry-categories-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0;
  color: #d7cfd7;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
}

#list .tn-search-result-card-v2 .entry-categories,
#list .tn-search-result-card-v2 .entry-tags,
#list .tn-search-result-card-v2 .entry-categories > object,
#list .tn-search-result-card-v2 .entry-tags > object {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 5px;
}

/*
 * 現行サイトと同じアイコンをそのまま使い、チップ装飾だけ外す。
 * category: <span class="fa fa-th-large cat-icon tax-icon">
 * tag:      <span class="fa fa-tag tag-icon tax-icon">
 * Cocoon標準の cat-link / tag-link は1.2rem、tax-iconは右0.4em。
 */
#list .tn-search-result-card-v2 .entry-categories a,
#list .tn-search-result-card-v2 .entry-categories .cat-link,
#list .tn-search-result-card-v2 .entry-tags a {
  display: inline-flex;
  align-items: center;
  gap: 0;
  box-sizing: border-box;
  min-width: 0;
  margin: 0 !important;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #d7cfd7 !important;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  transition: color .15s ease;
}

#list .tn-search-result-card-v2 .entry-categories .tax-icon,
#list .tn-search-result-card-v2 .entry-tags .tax-icon {
  margin-right: .4em;
  font-size: 1em;
}

#list .tn-search-result-card-v2 .entry-categories a,
#list .tn-search-result-card-v2 .entry-categories .cat-link {
  color: #ffb4d8 !important;
}

#list .tn-search-result-card-v2 .entry-categories a .fa,
#list .tn-search-result-card-v2 .entry-categories a .tax-icon,
#list .tn-search-result-card-v2 .entry-categories .cat-link .fa,
#list .tn-search-result-card-v2 .entry-categories .cat-link .tax-icon {
  color: #ffb4d8 !important;
}

#list .tn-search-result-card-v2 .entry-tags a.tn-tag-place {
  color: #a398e1 !important;
}

#list .tn-search-result-card-v2 .entry-tags a.tn-tag-place .fa,
#list .tn-search-result-card-v2 .entry-tags a.tn-tag-place .tax-icon {
  color: #a398e1 !important;
}

#list .tn-search-result-card-v2 .entry-tags a.tn-tag-excretion {
  color: #e9d1b9 !important;
}

#list .tn-search-result-card-v2 .entry-tags a.tn-tag-excretion .fa,
#list .tn-search-result-card-v2 .entry-tags a.tn-tag-excretion .tax-icon {
  color: #e9d1b9 !important;
}

#list .tn-search-result-card-v2 .entry-tags a.tn-tag-other,
#list .tn-search-result-card-v2 .entry-tags a:not(.tn-tag-place):not(.tn-tag-excretion) {
  color: #d7cfd7 !important;
}

#list .tn-search-result-card-v2 .entry-tags a.tn-tag-other .fa,
#list .tn-search-result-card-v2 .entry-tags a.tn-tag-other .tax-icon,
#list .tn-search-result-card-v2 .entry-tags a:not(.tn-tag-place):not(.tn-tag-excretion) .fa,
#list .tn-search-result-card-v2 .entry-tags a:not(.tn-tag-place):not(.tn-tag-excretion) .tax-icon {
  color: #d7cfd7 !important;
}

#list .tn-search-result-card-v2 .entry-categories a:hover,
#list .tn-search-result-card-v2 .entry-categories a:focus,
#list .tn-search-result-card-v2 .entry-categories .cat-link:hover,
#list .tn-search-result-card-v2 .entry-categories .cat-link:focus,
#list .tn-search-result-card-v2 .entry-tags a:hover,
#list .tn-search-result-card-v2 .entry-tags a:focus {
  color: #fff !important;
}

#list .tn-search-result-card-v2 .entry-categories a:hover .fa,
#list .tn-search-result-card-v2 .entry-categories a:hover .tax-icon,
#list .tn-search-result-card-v2 .entry-categories a:focus .fa,
#list .tn-search-result-card-v2 .entry-categories a:focus .tax-icon,
#list .tn-search-result-card-v2 .entry-tags a:hover .fa,
#list .tn-search-result-card-v2 .entry-tags a:hover .tax-icon,
#list .tn-search-result-card-v2 .entry-tags a:focus .fa,
#list .tn-search-result-card-v2 .entry-tags a:focus .tax-icon {
  color: #fff !important;
}

#list .tn-search-result-card-v2 .entry-card-snippet {
  display: -webkit-box;
  overflow: hidden;
  margin: 18px 0 0;
  color: #9f9fa8;
  font-size: 14px;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

#list .tn-search-result-card-v2 .tn-card-favorite {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

#list .tn-search-result-card-v2 button.simplefavorite-button {
  width: auto !important;
  min-width: 190px;
  margin-left: auto;
  padding: 9px 14px;
  border: 1px solid #303038;
  border-radius: 9px;
  background: #101014 !important;
  color: #f0f0f2;
  font-weight: 700;
}

#list .tn-search-result-card-v2 button.simplefavorite-button:hover,
#list .tn-search-result-card-v2 button.simplefavorite-button:focus {
  border-color: #e4007f;
  color: #fff;
}

#list .tn-search-result-card-v2 .admin-pv {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #202027;
  background: transparent;
  color: #bfc0c7;
}

#list .tn-search-result-card-v2 .entry-card-meta {
  margin-top: 12px;
  color: #8f8f98;
}

@media screen and (max-width: 835px) {
  #list .tn-search-result-card-v2 .entry-card-content {
    padding: 18px 17px;
  }

  #list .tn-search-result-card-v2 .entry-card-title {
    margin-bottom: 13px;
    font-size: 1.75rem;
  }

  #list .tn-search-result-card-v2 .pricepeek-title-sale-badge,
  #list .tn-search-result-card-v2 .sale {
    gap: 7px !important;
    margin-right: 10px !important;
    padding: 8px 11px !important;
    font-size: 12px !important;
  }

  #list .tn-search-result-card-v2 .pricepeek-title-sale-label {
    font-size: 12px !important;
  }

  #list .tn-search-result-card-v2 .pricepeek-title-sale-badge strong,
  #list .tn-search-result-card-v2 .sale strong,
  #list .tn-search-result-card-v2 .sale b {
    font-size: 14px !important;
  }

  #list .tn-search-result-card-v2 .entry-categories-tags {
    gap: 5px 9px;
    font-size: 1.1rem;
  }

  #list .tn-search-result-card-v2 .entry-categories,
  #list .tn-search-result-card-v2 .entry-tags,
  #list .tn-search-result-card-v2 .entry-categories > object,
  #list .tn-search-result-card-v2 .entry-tags > object {
    gap: 5px;
  }

  #list .tn-search-result-card-v2 .entry-categories a,
  #list .tn-search-result-card-v2 .entry-categories .cat-link,
  #list .tn-search-result-card-v2 .entry-tags a {
    gap: 0;
    padding: 0;
    font-size: 1.1rem;
  }

  #list .tn-search-result-card-v2 button.simplefavorite-button {
    width: 100% !important;
  }
}
