/* Google Places autocomplete used by search_widget_behavior. */
.pac-icon {
  display: none !important;
}

.pac-container {
  padding: 10px !important;
}

.pac-container .pac-item {
  border-top: none !important;
}

.pac-item-query,
.pac-matched {
  font-size: 15px !important;
}

/* Main search widgets. */
.search-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px;
  background-color: white;
  padding: 0;
  width: 500px;
  box-sizing: border-box;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  margin: 0 auto;
  height: 80px;
}

.search-container .input-container {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  padding: 20px;
}

.input-container-commentcamarche {
  padding: 20px 0 20px 20px;
}

#searchForm {
  position: relative;
}

#searchLabel,
#searchLabelCommentCaMarche {
  font-size: 18px;
  font-weight: 400;
  color: #01314b;
  margin-bottom: 0;
  margin-top: 5px;
  margin-left: 5px;
}

#searchLabelCommentCaMarche {
  margin: 0;
}

#searchField,
#searchFieldCommentCaMarche {
  font-size: 23px;
  font-weight: 700;
  border: none;
  background: transparent;
  color: #01314b;
  height: auto;
  margin: 0;
  padding: 5px;
  outline: none;
}

#searchFieldCommentCaMarche {
  padding: 0;
}

#searchField::placeholder,
#searchFieldCommentCaMarche::placeholder {
  color: #bec3c6;
  cursor: pointer;
}

.search-container .icon-container,
#searchForm .icon-container,
#searchFormCommentCaMarche .icon-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 4px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  background: #ff7f58;
  cursor: pointer;
  border: none;
  height: 100%;
}

.search-container .elementor-icon-wrapper {
  display: flex;
  flex: 0 0 60px;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 100%;
  background-color: #ff7f58;
}

.search-container .elementor-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 5px;
  color: white;
  cursor: pointer;
}

.search-container .elementor-icon img,
#searchForm .elementor-icon img,
#searchFormCommentCaMarche .elementor-icon img {
  max-width: 30px;
}

.search-container .elementor-icon img:hover,
#searchForm .elementor-icon img:hover,
#searchFormCommentCaMarche .elementor-icon img:hover {
  opacity: 0.8;
}

#errorMessage {
  position: absolute;
  background-color: #ff5858;
  color: white;
  padding: 5px 10px;
  border-radius: 10px;
  width: 500px;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  z-index: 1;
  display: none;
  font-size: 18px;
  top: 100px;
  left: 50%;
  transform: translateX(-50%);
}

#searchForm .error-container {
  position: absolute;
  bottom: 5px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
}

@media (max-width: 1024px) {
  .search-container {
    width: 80%;
    max-width: 500px;
  }

  #errorMessage {
    width: 80%;
  }
}

@media (max-width: 767px) {
  .search-container {
    width: 100%;
    height: 60px;
  }

  #searchLabel,
  #searchLabelCommentCaMarche {
    font-size: 12px;
    font-weight: 500;
  }

  #searchField,
  #searchFieldCommentCaMarche {
    font-size: 13px;
  }

  #errorMessage {
    width: 95%;
    font-size: 16px;
  }
}

/* Header search widget. */
.search-container-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 10px;
  padding: 0;
  width: 330px;
  box-sizing: border-box;
  overflow: hidden;
  margin: 0 auto;
  height: 35px;
  box-shadow: none;
}

.search-container-header .input-container {
  position: relative;
  display: flex;
  flex-grow: 1;
  height: 100%;
  align-items: center;
  width: 100%;
  padding: 20px 0 20px 10px;
}

.search-container-header #searchFieldHeader {
  margin: 0;
  padding-left: 0;
  border: none;
  box-shadow: none;
  background-color: transparent;
  color: #01314b;
  font-weight: 400;
  width: 100% !important;
  box-sizing: border-box !important;
}

.search-container-header #searchFieldHeader:focus {
  background-color: transparent;
  outline: none;
}

.search-container-header .input-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
}

.icon-container-header {
  display: flex;
  justify-content: center;
  align-items: center;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  background: white;
  padding-left: 10px;
  cursor: pointer;
  border: none;
  height: 100%;
}

.elementor-icon-wrapper-header {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 23px;
  height: 100%;
  color: #01314b;
}

.searchField-header::placeholder {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #01314b;
  opacity: 1;
}

.searchField-header:-ms-input-placeholder {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #01314b;
}

.searchField-header::-webkit-input-placeholder {
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #01314b;
}

.scrolled .search-container-header {
  background-color: #ff8147;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.scrolled .search-container-header .icon-container-header {
  background-color: #ff7f58;
}

.scrolled .search-container-header .elementor-icon-wrapper-header {
  color: #01314b;
}

.scrolled .searchField-header {
  color: white;
  font-weight: 400;
}

.focus-style .search-container-header,
.focus-style .search-container-header .icon-container-header {
  background-color: #ff7f58;
}

.focus-style .search-container-header .elementor-icon-wrapper-header,
.focus-style .searchField-header::placeholder {
  color: white;
}

.scrolled #searchFieldHeader {
  color: white;
}

.searchField-header.scrolled::placeholder,
.search-container-header.mh-swbh-header-managed.mh-swbh-header-scrolled .searchField-header::placeholder {
  color: white;
}

.searchField-header.scrolled:-ms-input-placeholder,
.search-container-header.mh-swbh-header-managed.mh-swbh-header-scrolled .searchField-header:-ms-input-placeholder {
  color: white;
}

.searchField-header.scrolled::-webkit-input-placeholder,
.search-container-header.mh-swbh-header-managed.mh-swbh-header-scrolled .searchField-header::-webkit-input-placeholder {
  color: white;
}

.search-container-header.mh-swbh-header-managed {
  box-shadow: none;
}

.search-container-header.mh-swbh-header-managed .elementor-icon-wrapper-header {
  color: #01314b;
}

.search-container-header.mh-swbh-header-managed .icon-container-header {
  background: white;
}

.search-container-header.mh-swbh-header-managed #searchFieldHeader {
  color: #01314b;
}

.search-container-header.mh-swbh-header-managed .input-container {
  background: transparent;
}

.search-container-header.mh-swbh-header-managed.mh-swbh-header-scrolled {
  background-color: #ff8147;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.search-container-header.mh-swbh-header-managed.mh-swbh-header-scrolled .elementor-icon-wrapper-header {
  color: #ffffff;
}

.search-container-header.mh-swbh-header-managed.mh-swbh-header-scrolled .icon-container-header {
  background: #ff8147;
}

.search-container-header.mh-swbh-header-managed.mh-swbh-header-scrolled #searchFieldHeader {
  color: #ffffff;
}

.search-container-header.mh-swbh-header-managed.mh-swbh-header-scrolled .input-container {
  background: #ff8147;
}
