.section-search .form-search div {
  display: flex;
}

.section-search .form-search div input {
  background-color: #fff;
  color: #503012;
  font-family: Montserrat;
  font-size: 13px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
}

.search-results {
  color: #FFEAD7;
  font-family: Montserrat;
  font-size: 28px;
  font-style: italic;
  font-weight: 400;
  line-height: 30px;
  /* 107.143% */
}

.section-search .sort-options label {
  font-size: 15px;
  color: #c39e6d;
  margin-right: 10px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.section-search .is-sp {
  display: none;
}

.section-search .group-tag {
  margin-top: 16px;
}

.sort-list .sort-item h3 a {
  color: #FFEAD7;
  font-family: Montserrat;
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 34px;
  /* 170% */
  text-decoration-line: underline;
  text-transform: capitalize;
}

.sort-list .sort-item .col-text-sort p {
  color: #939598;
  font-family: Corbel;
  font-size: 15px;
  font-style: normal;
  font-weight: 400;
  line-height: 145%;
}

.sort-list .sort-item .col-image-sort {
  width: 118px;
  height: 85px;
  flex-shrink: 0;
}

.group-tag .tag a,
.group-tag .tag {
  color: #F69D27 !important;
  text-align: right;
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  line-height: 170%;
  /* 22.1px */
  margin-right: 12px;
  text-decoration: underline !important;
  text-transform: uppercase;
}

.group-tag .date {
  color: #939598;
  text-align: right;
  font-family: Montserrat;
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  line-height: 170%;
  /* 22.1px */
}

.group-tag .time-read,
.group-tag .time-post {
  color: #939598;
  text-align: right;
  font-family: Montserrat;
  font-size: 13px;
  font-style: italic;
  font-weight: 400;
  line-height: 170%;
  /* 22.1px */
}

label[for^='edit-search-api-fulltext'],
input[data-drupal-selector^="edit-search-api-fulltext"] {
  display: none !important;
}

.header-search {
  color: #FFEAD7;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
}

fieldset[id^='edit-field-category'] .form-checkboxes>.form-item,
fieldset[id^='edit-field-tags'] .form-checkboxes>.form-item,
fieldset[id^='edit-field-type'] .form-checkboxes>.form-item {
  display: flex;
  gap: 6px;
  align-items: center;
}

fieldset[id^='edit-field-category'] label,
fieldset[id^='edit-field-tags'] label,
fieldset[id^='edit-field-type'] label {
  margin-bottom: 0;
}

fieldset[id^='edit-field-category'] input[type="checkbox"],
fieldset[id^='edit-field-tags'] input[type="checkbox"],
fieldset[id^='edit-field-type'] input[type="checkbox"] {
  appearance: none;
  background-color: #302B29;
  margin: 0;
  font: inherit;
  color: currentColor;
  width: 22px;
  height: 22px;
  border: 1px solid #C39E6D;
  transform: translateY(-0.075em);
  display: grid;
  place-content: center;
  flex-shrink: 0;
}

fieldset[id^='edit-field-category'] input[type="checkbox"]::before,
fieldset[id^='edit-field-tags'] input[type="checkbox"]::before,
fieldset[id^='edit-field-type'] input[type="checkbox"]::before {
  content: "";
  width: 12px;
  height: 12px;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  box-shadow: inset 1em 1em #F69D27;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
  transform-origin: bottom left;
}

fieldset[id^='edit-field-category'] input[type="checkbox"]:checked::before,
fieldset[id^='edit-field-tags'] input[type="checkbox"]:checked::before,
fieldset[id^='edit-field-type'] input[type="checkbox"]:checked::before {
  transform: scale(1);
}

fieldset[id^='edit-field-category'] .fieldset-wrapper,
fieldset[id^='edit-field-tags'] .fieldset-wrapper,
fieldset[id^='edit-field-type'] .fieldset-wrapper {
  margin-top: 12px;
  transition: ease 0.4s;
}

fieldset[id^='edit-field-category'] legend,
fieldset[id^='edit-field-tags'] legend,
fieldset[id^='edit-field-type'] legend {
  border-bottom: 1px solid #D9D9D9;
  padding-bottom: 5px;
  padding-right: 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: #FFEAD7;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 20px;
}

fieldset[id^='edit-items-per-page'] legend {
  color: #FFEAD7;
  font-family: Inter, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
}

fieldset[id^='edit-items-per-page'] .form-radios>.form-item {
  display: flex;
  gap: 6px;
  align-items: center;
}

fieldset[id^='edit-items-per-page'] label {
  margin-bottom: 0;
}

fieldset[id^='edit-items-per-page'] input[type="radio"] {
  appearance: none;
  background-color: #302B29;
  margin: 0;
  font: inherit;
  color: currentColor;
  width: 22px;
  height: 22px;
  border: 1px solid #C39E6D;
  transform: translateY(-0.075em);
  display: grid;
  place-content: center;
  border-radius: 50%;
}

fieldset[id^='edit-items-per-page'] input[type="radio"]::before {
  content: "";
  width: 12px;
  height: 12px;
  transform: scale(0);
  box-shadow: inset 1em 1em #F69D27;
  transform-origin: bottom left;
  border-radius: 50%;
}

fieldset[id^='edit-items-per-page'] input[type="radio"]:checked::before {
  transform: scale(1);
}

fieldset[id^='edit-field-category'] legend::after,
fieldset[id^='edit-field-tags'] legend::after,
fieldset[id^='edit-field-type'] legend::after {
  content: '';
  width: 12px;
  height: 12px;
  border: solid #FFEAD7;
  border-width: 0 3px 3px 0;
  display: inline-block;
  padding: 3px;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  transition: ease 0.4s;
}


fieldset[id^='edit-field-category'] legend.closed::after,
fieldset[id^='edit-field-tags'] legend.closed::after,
fieldset[id^='edit-field-type'] legend.closed::after {
  transform: rotate(-45deg);
  -webkit-transform: rotate(-45deg);
}

fieldset[id^='edit-field-category'] legend.closed+.fieldset-wrapper,
fieldset[id^='edit-field-tags'] legend.closed+.fieldset-wrapper,
fieldset[id^='edit-field-type'] legend.closed+.fieldset-wrapper {
  display: none;
}

.btn-filter-sp-wrapper,
.modal-filter-sp {
  display: none;
}

.btn-filter-sp {
  width: 100%;
  border-radius: 4px;
  border: 1px solid #FFEAD7;
  padding: 16px;
  color: #FFEAD7;
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 16px 0 24px;
}

.modal-filter-sp .close-modal-wrapper,
.modal-filter-sp .action-wrapper,
.modal-filter-sp form[id^='views-exposed-form-search'] {
  padding: 8px 16px;
}

.modal-filter-sp .action-wrapper {
  border-top: 1px solid #C1C1C1;
  background: #302B29;
  display: flex;
  justify-content: end;
  gap: 20px;
}

.modal-filter-sp .modal-filter-btn {
  height: 38px;
  padding: 16px;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  border-radius: 4px;
  border: 1px solid #FFEAD7;
  display: inline-flex;
  align-self: end;
}

.modal-filter-sp .close-modal-wrapper {
  display: flex;
  justify-content: end;
  margin-top: 31px;
}

.form-action-search {
  display: flex;
  gap: 10px;
  padding-top: 10px;
}

.form-action-search input[type=submit] {
  padding: 8px 25px;
  background: #F69D27;
  border-radius: 0;
  color: #1F1A18;
  font-family: Corbel;
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px;
}

.form-action-search #edit-submit-search {
  order: 2;
}

.form-action-search #edit-reset {
  order: 1;
  background: transparent;
  color: white;
  border: 1px solid #F69D27;
  font-weight: 100 !important;
}

#search-orderby-block-form {
  width: max-content;
}

#search-orderby-block-form .fancyselect {
  width: max-content;
}

@media screen and (max-width: 768px) {
  .sort-options form div {
    display: flex;
  }

  .btn-filter-sp-wrapper {
    display: block;
  }

  .modal-filter-sp.opened {
    display: flex;
    position: fixed;
    background: rgba(0, 0, 0, 1);
    width: 100%;
    height: 100%;
    flex-direction: column;
    top: 64px;
    overflow-y: scroll;
    max-height: 780px;
    padding-bottom: 10px;
    z-index: 999;
  }

  fieldset[id^='edit-field-tags'] div[id^='edit-field-tags'],
  fieldset[id^='edit-field-category'] div[id^='edit-field-category'] {
    display: flex;
    flex-wrap: wrap;
  }

  fieldset[id^='edit-field-tags'] .form-checkboxes>.form-item,
  fieldset[id^='edit-field-category'] .form-checkboxes>.form-item {
    width: 50%;
  }

  .section-search .is-pc {
    display: none;
  }

  .section-search .is-sp {
    display: block;
  }

  h4.font-monster {
    color: #FFEAD7;
    font-family: Montserrat;
    font-size: 13px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
  }

  fieldset[id^='edit-items-per-page'] legend {
    border-bottom: 1px solid #D9D9D9;
    padding-bottom: 5px;
    padding-right: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: #FFEAD7;
    font-family: Inter, sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
  }

  .section-search {
    padding-top: 32px;
  }

  .modal-filter-sp .content-search input[type=submit] {
    display: none;
  }
}
