#locations {
  background-color: transparent;
  position: relative;
}
#locations .center {
  width: 930px;
  padding: 0;
}
#locations h2 {
  position: absolute;
  font-family: var(--title-font);
  top: 110px;
  left: 94px;
  font-size: 32px;
  line-height: 36px;
  text-shadow: none;
  color: black;
  width: 340px;
  /* margin: auto; */
  text-align: right;
  right: 0;
}
.ui-menu.ui-autocomplete:not(.search-api-autocomplete-search)
  .ui-menu-item-wrapper {
  padding: 0;
}
.location-address {
  font-size: 12px;
  line-height: 14px;
  padding-bottom: 20px;
  padding: 0 20px;
}
[id^="location-blockform"] {
  width: 350px;
  position: absolute;
  top: 113px;
  right: 105px;
  /*  right: 0;
    margin: auto;*/
}
[id^="location-blockform"] label {
  height: 1px;
  overflow: hidden;
  width: 1px;
  position: absolute;
  clip: rect(1px 1px 1px 1px); /* IE6, IE7 */
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%); /* browsers in the future */
  white-space: nowrap;
}
[id^="location-blockform"] .form-item-location {
  margin-top: 0;
  margin-bottom: 0;
}
[id^="edit-location"] {
  box-sizing: border-box;
  width: 100%;
  border-radius: 20px;
  background-image: none;
  border-color: none !important;
  border: 0;
  padding: 10px 60px 10px 20px;
  height: 40px;
}
.ui-autocomplete:not(.search-api-autocomplete-search)
  .ui-menu-item-wrapper
  li:hover
  * {
  color: pink;
}
.page-front
  .ui-autocomplete:not(.search-api-autocomplete-search)
  .ui-menu-item-wrapper
  .location-address:hover {
  color: #000000;
  font-weight: bold;
}
#autocomplete-loc {
  max-height: 500px;
  width: 380px;
  overflow: hidden auto;
  border: 0;
  padding: 0;
}
#locations #autocomplete-loc ul {
  padding: 0;
  max-width: 350px;
  margin: 0;
  border: 0;
  width: 350px;
}
#main-content #autocomplete-loc a {
  font-weight: normal;
}
#main-content #autocomplete-loc a .location-address:hover {
  font-weight: bold;
}
.ui-autocomplete.ui-front:not(.search-api-autocomplete-search) {
  width: 380px !important;
  box-sizing: border-box;
  max-height: 500px;
  overflow-y: auto;
  padding-bottom: 20px;
  border-bottom-left-radius: 20px;
  border-bottom-right-radius: 20px;
}

.js input.form-autocomplete.ui-autocomplete-loading {
  background-image: none;
}

.js input.form-autocomplete#edit-location {
  background-image: none;
}
[id^="edit-location"] {
  font-family: var(--text-font);
  font-size: var(--font-body-small);
  line-height: var(--line-height-small);
  border-radius: 0px;
  height: 40px;
  width: 380px;
  text-indent: 25px;
  position: absolute;
  z-index: 3;
}
[id^="location-blockform"] {
  /*left: 405px;*/
}
[id^="location-blockform"] .form-actions {
  left: 0px;
  right: 0px;
  top: 2px;
  z-index: 3;
  position: absolute;
  width: 10px;
  margin-top: 0;
  margin-bottom: 0;
  font-size: var(--font-body-medium);
  line-height: var(--line-height-medium);
}
.block-givaudan-locations-cn,
.block-givaudan-locations,
#locations img {
  height: 260px;
  width: 930px;
  margin: auto;
}

input#edit-location::placeholder {
  color: var(--grey);
}

[id^="location-blockform"] .form-actions:before {
  content: " ";
  background-color: transparent;
  background-image: url(../images/ico_search.svg);
  border: 0;
  background-size: contain;
  height: 14px;
  width: 14px;
  background-repeat: no-repeat;
  top: 12px;
  left: 10px;
  position: absolute;
}
[id^="location-blockform"] .form-actions .form-submit:hover {
  text-decoration: none;
  border-color: rgb(0 0 0 / 30%);
}

[id^="location-blockform"] .form-actions .form-submit {
  width: 70px;
  height: 30px;
  font-family: var(--title-font);
  border: 1px solid black;
  border-radius: 0px;
  background: #fff;
  color: #000;
  left: 305px;
  position: relative;
  font-size: var(--font-body-medium);
  line-height: var(--line-height-medium);
  font-weight: 500;
}

body [id^="location-blockform"] .form-actions {
  top: 5px;
}

body [id^="location-blockform"] .form-actions:before {
  top: 9px;
}

@media (max-width: 1119px) {
  #locations {
    margin-top: 0;
  }
  .block-givaudan-locations-cn,
  .block-givaudan-locations,
  #locations img {
    width: 100%;
  }
  #locations .center {
    width: 100%;
    margin: auto;
    padding: 0;
  }
  #locations h2 {
    left: -450px;
    text-align: center;
    right: 0;
    left: 0;
    margin: auto;
    top: 50px;
  }
  [id^="location-blockform"] {
    left: 0;
    right: 0;
    margin: auto;
  }
  #locations img {
    width: 100%;
  }
}

@media (max-width: 767px) {
  #locations .center {
    width: 350px;
  }
  #locations img {
    width: 100%;
  }
  #locations h2 {
    font-size: 24px !important;
    line-height: 32px !important;
    top: 62px;
    display: block;
    left: 0;
  }
  [id^="location-blockform"] {
    top: 127px;
  }
  [id^="edit-location"] {
    font: 16px/19.2px var(--text-font);
    border-radius: 0px;
    height: 50px;
    width: 295px;
    text-indent: 25px;
    position: relative;
  }
  [id^="location-blockform"] .form-actions:before {
    top: -31px;
    left: -196px;
    position: relative;
    display: block;
  }
  [id^="location-blockform"] {
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
  }

  body [id^="location-blockform"] .form-actions:before {
    top: -35px;
  }

  [id^="location-blockform"] .form-item-location {
    text-align: center;
  }
  [id^="location-blockform"] .form-actions {
    position: relative;
    margin: auto;
    width: 70px;
    left: auto;
    right: -100px;
  }
  [id^="location-blockform"] .form-actions .form-submit {
    width: 70px;
    height: 30px;
    font-family: var(--title-font);
    border: 1px solid black;
    border-radius: 0px;
    background: black;
    color: white;
    right: 0;
    position: relative;
    left: auto !important;
    font-size: 14px;
    line-height: 24px;
    font-weight: 500;
    top: -59px;
    text-align: center;
  }
}

@media (max-width: 380px) {
  [id^="location-blockform"] {
    left: 0px;
    width: 300px;
  }
}

@media all and (min-width: 1921px) {
  #locations .center {
    width: var(--grid-wide);
  }
  .block-givaudan-locations-cn,
  .block-givaudan-locations,
  #locations img {
    height: 350px;
    width: var(--grid-wide);
  }

  #locations h2 {
    font-size: 3rem;
    line-height: 3.5rem;
    width: 31rem;
    left: 5rem;
    top: 9.5rem;
  }

  [id^="edit-location"] {
    width: 36.3125rem;
    height: 3.375rem;
  }

  [id^="location-blockform"] {
    right: 13.25rem;
    width: 30.2rem;
    top: 10rem;
  }

  [id^="location-blockform"] .form-actions .form-submit {
    left: 29rem;
    width: 100px;
    height: 40px;
  }

  [id^="location-blockform"] .form-actions:before {
    height: 25px;
    width: 25px;
  }
  /*
  body [id^="location-blockform"] .form-actions{
    top: 8px;
  }*/
}

@media all and (min-width: 3441px) {
  #locations .center {
    width: var(--grid-4k);
  }
  .block-givaudan-locations-cn,
  .block-givaudan-locations,
  #locations img {
    height: 525px;
    width: var(--grid-4k);
  }

  #locations h2 {
    font-size: 4.5rem;
    line-height: 5.25rem;
    width: 46.5rem;
    left: 7.5rem;
    top: 14.25rem;
  }

  [id^="edit-location"] {
    width: 54.5rem;
    height: 5rem;
  }

  [id^="location-blockform"] {
    right: 19.875rem;
    width: 45.3rem;
    top: 15rem;
  }

  [id^="location-blockform"] .form-actions .form-submit {
    left: 43.5rem;
    width: 150px;
    height: 60px;
  }

  body [id^="location-blockform"] .form-actions {
    top: 10px;
  }

  body [id^="location-blockform"] .form-actions:before {
    top: 16px;
    height: 30px;
    width: 30px;
  }
}
