/*
 * This file is part of the TagExtendedSearch Plugin
 *
 * Copyright (C) 2022 Diezon.
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

.button-gray {
  background: #aaa;
}
.ec-headerNaviRole {
  align-items: flex-start;
}
.ec-headerNaviRole:after {
  content: none !important;
}
.header-left > .ec-headerNaviRole__search {
  width: 100%;
  margin-top: 0;
}
.header-left .product-detail-button {
  font-size: 14px;
  color: #fff;
  font-weight: normal;
  padding: 7.5px 15px;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 10px;
}
.hamburger-menu-button {
  display: none;
}
.header-left {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
@media screen and (max-width: 1100px) {
  .header-left {
    flex-direction: column;
    align-items: flex-start;
  }
  .header-left .product-detail-button {
    margin-left: 0;
    margin-top: 8px;
  }
}
@media screen and (max-width: 980px) {
  .ec-headerNaviRole {
    align-items: flex-start;
  }
}
@media screen and (max-width: 767px) {
  .header-left .product-detail-button {
    display: none;
  }
  .hamburger-menu-button {
    font-size: 14px;
    color: #fff;
    font-weight: normal;
    border: 1px solid #ccc;
    padding: 9px 0;
    text-align: center;
    margin-top: 10px;
    display: block !important;
  }
}
/* 商品詳細モーダル　コンテンツ*/
.search-detail {
  background: #f7f7f7;
  height: 100%;
  z-index: 2000;
  padding: 0 0 40px;
}
.modal-container .search-detail-wrap {
  height: 100%;
  padding-bottom: 90px;
}
.modal-container .ec-headerNaviRole__search {
  margin: 0 auto;
}
.search-detail__form .form {
  position: fixed;
  padding-top: 20px;
  padding-bottom: 15px;
  padding-right: 15px;
  padding-left: 15px;
  top: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #ccc;
  z-index: 2100;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  flex-wrap: nowrap;
}
.search-detail__form .form .search-sp__form {
  width: calc(100vw - 80px);
}
.search-detail__title {
  width: 100%;
  color: #5F5F5F;
  font-size: 1.4rem;
  font-weight: normal;
  font-weight: bold;
  margin-bottom: 16px;
}
.search-detail__taglist {
  display: flex;
  justify-content: flex-start;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.search-detail__taglist .search-tag {
  margin: 0;
}
.search-detail__taglist .search-tag--inactive {
  margin: 0;
  pointer-events: none;
}
.search-detail__tagitem {
  margin-bottom: 5px;
  margin-right: 5px;
}
.search-detail__input {
  padding-top: 8px;
  padding-bottom: 8px;
  padding-right: 15px;
  padding-left: 15px;
  margin-bottom: 5px;
  margin-right: 10px;
  width: 45%;
  max-width: 270px;
  border: 1px solid #888;
  font-size: 1.4rem;
  -webkit-appearance: none;
  color: #525263;
  height: 40px;
}
.search-detail__price {
  margin-bottom: 15px;
}
.search-detail__searchbox {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 10px;
  padding-bottom: 20px;
  padding-right: 0px;
  padding-left: 0px;
  bottom: 0;
  left: 0;
  width: 100%;
}
.detail-contents .ec-headerSearch__keyword {
  background: #fff;
}
.search-detail__button {
  width: 260px;
  height: 46px;
  background: #000;
  border: none;
  color: #fff;
  font-weight: bold;
  vertical-align: middle;
}
.search-detail__taglist {
  list-style-type: none;
  padding-left: 0;
}
.search-tag {
  padding-right: 8px;
  padding-left: 8px;
  margin-bottom: 10px;
  margin-right: 10px;
  padding-top: 3px;
  padding-bottom: 3px;
  transition: 0.3s;
  color: #5F5F5F;
  background: #fff;
  border: 1px solid #d3d3d3;
  border-radius: 5px;
  font-weight: 400;
  background: #fff;
}
.search-tag .number ,.total_number {
  font-size: 12px;
  margin-left: 5px;
}
.search-detail__taglist .search-detail__tagitem input {
  display: none;
}
.caption--alert {
  color: #FF0017;
  font-size: 12px;
}
input[type=checkbox]:checked + .search-tag {
  color: #fff;
  background: #000;
  border: 1px solid #000;
}
.search-tag--inactive {
  padding: 5px 10px;
  margin-bottom: 10px;
  transition: 0.3s;
  background: #f5f5f5;
  border: 1px solid #d3d3d3;
  color: #aaa;
  font-size: 1.4rem;
  font-weight: 400;
  border-radius: 5px;
}
.tag {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-right: 5px;
  padding-left: 8px;
  margin-bottom: 5px;
  margin-right: 5px;
  font-size: 1rem;
  color: #000;
  background: #fff;
  border: 1px solid #eee;
}
.list-item .tag {
  padding-top: 2px;
  padding-bottom: 2px;
  padding-right: 5px;
  padding-left: 8px;
  margin-bottom: 5px;
  margin-right: 5px;
  font-size: 1rem;
  color: #fff;
  background: #FF5B89;
  border: 1px solid #FF5B89;
}
.ec-headerSearch-contents {
  width: 100%;
  max-width: 350px;
  margin-bottom: 24px;
}
.search-detail__button .number {
  font-size: 1.2rem;
  font-weight: 400;
  margin-left: 5px;
}
.search-detail-wrap {
  overflow-y: auto;
  width: 100%;
  max-width: 1130px;
  margin-left: auto;
  margin-right: auto;
}
.search-detail-contents .search-detail-wrap {
  max-height: 450px;
}
.search-detail-contents {
  padding: 48px 16px;
  margin: 30px 0;
}
.search-detail-contents .search-detail-wrap {
  padding-bottom: 0;
}
@media screen and (min-width: 1024px) {
  .search-detail-contents {
    padding: 48px;
  }
  .modal-close:hover {
    opacity: 0.5;
    cursor: pointer;
    transition: all 0.2s ease;
  }
  .search-detail__taglist .search-tag:hover {
    cursor: pointer;
  }
}
@media screen and (min-width: 768px) {
  .modal-container .search-detail__form {
    display: none;
  }
}
@media screen and (max-width: 767px) {
  .search-detail-contents .detail-contents {
    margin: 0 auto 24px auto;
  }
  .modal-container .search-detail {
    padding-top: 120px;
  }
  .search-detail-wrap {
    padding: 0 0 30px 0;
  }
}
/* モーダルのみ適用　コンテンツにある商品検索には適用しない */
.modal-container {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  height: calc(100vh - 80px);
  z-index: 9999;
  overflow: auto;
  opacity: 0;
  visibility: hidden;
  transition: .3s;
  box-sizing: border-box;
}
@media screen and (max-width: 1100px) {
  .modal-container {
    height: calc(100vh - 120px);
  }
}
.modal-container .search-detail-wrap {
  padding-top: 30px;
}
.modal-container .search-detail__searchbox {
  position: fixed;
  background: #fff;
  z-index: 2100;
  border-top: 1px solid #ccc;
}
.modal-add-class {
  overflow-y: hidden;
}
.modal-body {
  padding-left: 15px;
  padding-right: 15px;
}
.modal-container .ec-headerNaviRole__search {
  margin-left: 0;
  width: calc(100% - 60px);
}
@media screen and (max-width: 980px) {
  .modal-container {
    height: calc(100vh - 120px);
  }
}
@media screen and (max-width: 767px) {
  .modal-container {
    height: 100vh;
    height: 100dvh;
  }
  .modal-container .search-detail-wrap {
    padding-top: 0;
  }
}
/* モーダルクローズボタン */
.modal-close-add {
  position: absolute;
  z-index: 11111;
  top: 20px;
  right: 20px;
  left: auto;
  background: #b1b1b1;
  width: 40px;
  height: 40px;
  border-radius: 50px;
  cursor: pointer;
  box-sizing: border-box;
  padding: 10px;
  font-size: 18px;
  text-align: center;
}
.modal-close-add .fas{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.modal-close-add i {
  color: #fff;
}
.modal-close-add::before {
  content: none !important;
}
.modal-close-add::after {
  content: none !important;
}
.ec-drawerRole.is_active {
  z-index: 1000 !important;
}
/*モーダル本体に「active」クラス付与した時のスタイル*/
.modal-container.active{
  opacity: 1;
  visibility: visible;
}
/* 検索ボタン */
.search-detail__searchbox .search-detail__in {
  display: inline-block;
  text-align: center;
  position: relative;
}
.search-detail__searchbox .search-detail__in i {
  font-size: 20px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 10px;
}
