.zs-modal-wrapper {
  /* display: (block or none) set in the inline style */
}

.zs-autocomplete {
  /* display: (block or none) set in the inline style */
  /* width: set in the inline style */
  /* top: set in the inline style */
  /* left: set in the inline style */

  position: absolute;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
  z-index: 9999;
  background-color: white;
}

.zs-selected {
  background-color: pink;
}


.zs-modal{
  position: fixed;
  z-index: 1000;
  background-color: #fff;
  padding-top: 15px;
}

@media screen and (min-width: 768px) {
  .zs-modal{
    top: 10%;
    height: 80%;
    left: 0;
    right: 0;
    margin: auto;
    width: 90%;
    max-width: 980px;
    overflow-y: scroll;
    border-radius: 5px;
  }
}

@media screen and (max-width: 767px) {
  .zs-modal {
      top: 0;
      left: 0;
      right: 0;
      min-height: 100%;
      width: 100%;
      overflow: scroll;
      height: 100%;
  }
}

.zs-modal-dimmer {
  position: fixed;
  z-index: 999;
  background-color: #000;
  opacity: 0.7;
  top: -10%;
  left: -10%;
  right: -10%;
  height: 120%;
  width: 120%;
  cursor: pointer;
}

.zs-modal-header {
  display: flex;
  justify-content: space-between;
  margin: 0 10px 5px;
}
.zs-modal-header-link-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}
.zs-modal-header-link-item {
  display: flex;
  list-style: none;
  margin-right: 5px;
}

.zs-modal-search-form {
  display: block;
  flex-grow: 1;
  margin: 10px;
}
.zs-modal-close-button {
  display: block;
  border-radius: 5px;
  order: 100;
  flex-basis: 60px;
  background-color: #fff;
  box-sizing: border-box;
  border: solid 1px #ccc;
  cursor: pointer;
  outline: none;
  appearance: none;
}

.zs-modal-close-button::before {
  display: block;
  color: #555;
  content: '閉じる';
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}


.zs-modal-h5 {
  background-color: #f3f3f3;
  font-size: 12px;
  color: #888;
  padding: 8px 10px;
  border: solid 1px #e9e9e9;
  margin: 0;
}

.zs-suggest-component {
  position: relative;
  box-sizing: border-box;
}

.zs-suggest-search-box {
  display: flex;
  overflow: hidden;
  box-sizing: border-box;
}


.zs-suggest-component > .zs-autocomplete {
  width: 100%;
  border-radius: 5px;
  box-sizing: border-box;
  border: solid 1px #ddd;
}

.zs-suggest-search-input-box {
  padding: 5px;
  flex-grow: 1;
  position: relative;
  border: solid 1px #aaa;
  border-radius: 5px;

  display: flex;
}

.zs-suggest-search-input {
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  border-radius: 0;
  outline: none;
  background: none;
  font-size: 16px;
  line-height: 20px;
}

.zs-suggest-search-input-clear-button {
  position: absolute;
  right: 10px;
}
.zs-suggest-search-input-clear-button::after {
  content: 'x';
  columns: #aaa;;
}
.zs-suggest-search-input-barcode-button {
  position: absolute;
  right: 10px;
}
.icon.barcode::after {
  content: '■';
  columns: #aaa;;
}

.zs-suggest-search-link-item {
  padding: 5px;
  border: none;
  cursor: pointer;
  outline: none;
  appearance: none;
  width: 50px;
}
.zs-suggest-search-link-item:hover {
}
.zs-suggest-search-icon::after {
  content: '検索';
  color: white;
}

.zs-history-list {
  margin: 0;
  padding: 0;
  list-style: none;
  overflow: hidden;
}

.zs-history-item {
  display: flex;
}

.zs-history-keyword-box {
  flex-grow: 1;
  margin-right: 10px;
}
.zs-history-keyword {
  cursor: pointer;
  width: 100%;
  display: inline-block;
}

.zs-history-header {
  display: flex;
}
.zs-history-remove-all {
  margin-left: auto;
}

.zs-history-remove-all::after {
  cursor: pointer;
  content: 'すべて削除';
  display: inline-block;
}
.zs-word-apply-icon::after {
  cursor: pointer;
  content: '↑';
  display: inline-block;
}

.zs-autocomplete-item {
  padding: 5px;
}
.zs-history-item {
  padding: 5px 10px;
}
.zs-history-item:not(:last-child), .zs-autocomplete-item:not(:last-child) {
  border-bottom: solid 1px #ddd;
}

.zs-autocomplete-item-container {
  display: flex;
}

.zs-modal-ranking-list {
  list-style: none;
  margin: 0;
  padding: 0;

  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
}

.zs-modal-ranking-item {
  display: inline-block;
  overflow: hidden;
  width: 120px;
  height: 120px;
  margin: 5px;
}

.zs-modal-ranking-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.zs-modal {
  padding: 12px;
}
.zs-modal .zs-header {
  margin-bottom: 15px;
}
@media only screen and (max-width:767px) {
  .zs-modal .zs-header {
    margin-top: -8px;
    margin-left: -12px;
    margin-right: -12px;
  }
}
.zs-modal .zs-header .zs-submit {
  white-space: nowrap;
}
@media only screen and (max-width:767px) {
  .zs-modal .zs-header .zs-submit {
    padding: 0 7px;
    display: none;
  }
}
.zs-modal .zs-header .zs-input-box .zs-icon {
  padding: 7px 0px 0px 7px;
  transform: translateY(-7px);
}
.zs-modal .zs-header .zs-cancel {
  white-space: nowrap;
}
.zs-modal .zs-section {
  margin-left: -8px;
  margin-right: -8px;
}
.zs-modal .zs-section h3 {
  padding: 8px 15px;
  background-color: #007236;
  color: #fff;
  font-weight: bold;
  font-size: 16px;
  font-size: 1rem;
  margin-bottom: 0px;
}
.zs-modal .zs-list.zs-trend {
  padding: 15px;
}
.zs-modal .zs-list.zs-trend li {
  padding: 0;
  border: 0;
}
.zs-modal .zs-list.zs-trend li a {
  display: block;
  padding: 6px 15px;
  background-color: #f5f5f7;
  color: #007236;
  text-decoration: none;
  line-height: 1.5;
  border-radius: 4px;
  border: 2px solid #f5f5f7;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
  transition: all 0.3s ease-in-out;
}
@media only screen and (min-width:768px), tv, print {
  .zs-modal .zs-list.zs-trend li a:hover {
    border: 2px solid #50ac59;
    color: #50ac59;
    box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
  }
}
.zs-modal .zs-list .zs-candidate {
  padding: 3px 15px;
}
.zs-modal .zs-list .zs-candidate a {
  align-items: center;
}
.zs-modal .zs-list .zs-candidate a .zs-icon {
  transform: translateY(3px);
}
.zs-modal .zs-list .zs-candidate a .zs-label {
  display: inline-block;
  line-height: 1;
}
.zs-modal .zs-list li {
  margin: 0;
  padding: 8px 15px;
  border-bottom: 1px solid #eee;
}