#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-block-form"],
[id^="location-blockform"] {
  width: 350px;
  position: absolute;
  top: 113px;
  right: 105px;
  /*  right: 0;
    margin: auto;*/
}

[id^="location-block-form"] label,
[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-block-form"] .form-item-location,
[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) {
  max-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;
  background-color: #fff;
}

.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-block-form"] .form-actions,
[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-block-form"] .form-actions:before,
[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-block-form"] .form-actions .form-submit:hover,
[id^="location-blockform"] .form-actions .form-submit:hover {
  text-decoration: none;
  border-color: rgb(0 0 0 / 30%);
}

[id^="location-block-form"] .form-actions .form-submit,
[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: 400;
}

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

body [id^="location-block-form"] .form-actions:before,
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-block-form"],
  [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-block-form"],
  [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-block-form"] .form-actions:before,
  [id^="location-blockform"] .form-actions:before {
    top: -31px;
    left: -196px;
    position: relative;
    display: block;
  }

  [id^="location-block-form"],
  [id^="location-blockform"] {
    left: 0;
    right: 0;
    margin: auto;
    width: 100%;
  }

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

  [id^="location-block-form"] .form-item-location,
  [id^="location-blockform"] .form-item-location {
    text-align: center;
  }

  [id^="location-block-form"] .form-actions,
  [id^="location-blockform"] .form-actions {
    position: relative;
    margin: auto;
    width: 70px;
    left: auto;
    right: -100px;
  }

  [id^="location-block-form"] .form-actions .form-submit,
  [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;
  }
} */

/*** CHANGES **/

[id^="location-block-form"] .form-actions:before,
[id^="location-blockform"] .form-actions:before {
  display: none;
}

[id^="location-block-form"] .locations-icon,
[id^="location-blockform"] .locations-icon {
  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;
  z-index: 3;
}

body [id^="location-block-form"] .form-actions,
body [id^="location-blockform"] .form-actions {
  top: 5px;
  left: unset;
  right: -1.5rem;
  z-index: 3;
  position: absolute;
  width: auto;
  margin-top: 0;
  margin-bottom: 0;
  font-size: var(--font-body-medium);
  line-height: var(--line-height-medium);
}

[id^="location-block-form"] .form-actions .form-submit,
[id^="location-blockform"] .form-actions .form-submit {
  width: auto;
  position: static;
  margin: 0;
}

/** general mobile */
@media all and (max-width: 1119px) {
  #locations .center {
    display: grid;
  }

  #locations h2 {
    position: static;
    grid-row: 1;
    grid-column: 1;
    z-index: 3;
  }

  [id^="location-block-form"],
  [id^="location-blockform"] {
    position: relative;
    grid-row: 2;
    grid-column: 1;
    z-index: 3;
    top: 0;
    left: 0;
  }

  #locations picture {
    grid-row: 1 / span 2;
    grid-column: 1;
  }

  body [id^="location-block-form"] .form-actions,
  body [id^="location-blockform"] .form-actions {
    top: 10px;
    width: auto;
    margin: 0;
    right: 2rem;
  }

  [id^="location-block-form"] .locations-icon,
  [id^="location-blockform"] .locations-icon {
    top: 20px;
    left: 2.5rem;
  }
}

/** tablet */
@media all and (min-width: 768px) and (max-width: 1119px) {
  #locations .center {
    grid-template-rows: 1fr 1fr;
  }

  [id^="location-block-form"],
  [id^="location-blockform"] {
    position: relative;
    width: 380px;
    height: 6rem;
  }

  body [id^="location-block-form"] .form-actions,
  body [id^="location-blockform"] .form-actions {
    top: 6px;
    right: 0.25rem;
  }

  [id^="location-block-form"] .locations-icon,
  [id^="location-blockform"] .locations-icon {
    top: 15px;
    left: 1rem;
  }
}

/** desktop */
@media all and (min-width: 1120px) {
  [id^="location-block-form"],
  [id^="location-blockform"] {
    width: 350px;
    position: absolute;
    top: unset;
    right: 105px;
    left: auto;
    height: 3rem;
  }

  #locations h2 {
    top: unset;
  }

  [id^="location-block-form"] .form-item-location,
  [id^="location-blockform"] .form-item-location {
    margin-top: 0;
    margin-bottom: 0;
    position: relative;
  }

  body [id^="location-block-form"] .form-actions,
  body [id^="location-blockform"] .form-actions {
    top: 5px;
    left: unset;
    right: -1.5rem;
    z-index: 3;
    position: absolute;
    width: auto;
    margin-top: 0;
    margin-bottom: 0;
    font-size: var(--font-body-medium);
    line-height: var(--line-height-medium);
  }

  [id^="location-block-form"] .form-actions .form-submit,
  [id^="location-blockform"] .form-actions .form-submit {
    width: auto;
    position: static;
    margin: 0;
  }

  [id^="location-block-form"] .form-actions:before,
  [id^="location-blockform"] .form-actions:before {
    display: none;
  }

  [id^="location-block-form"] .locations-icon,
  [id^="location-blockform"] .locations-icon {
    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;
    z-index: 3;
  }

  #locations .center {
    display: flex;
    align-items: center;
  }
}

/** HD **/
@media all and (min-width: 1921px) {
  .location-address {
    font-size: var(--font-body-small);
    line-height: var(--line-height-small);
  }

  #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;
    left: 5rem;
    width: 31rem;
  }

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

  [id^="location-block-form"],
  [id^="location-blockform"] {
    right: 7.25rem;
    width: 36.3125rem;
  }

  .ui-autocomplete.ui-front:not(.search-api-autocomplete-search) {
    max-width: 36.3125rem !important;
  }

  body [id^="location-block-form"] .form-actions,
  body [id^="location-blockform"] .form-actions {
    top: 8px;
    left: unset;
    right: 0.5rem;
  }

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

  [id^="location-block-form"] .locations-icon,
  [id^="location-blockform"] .locations-icon {
    height: 25px;
    width: 25px;
  }
}

/** 4k **/
@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;
  }

  .ui-autocomplete.ui-front:not(.search-api-autocomplete-search) {
    max-width: 46.5rem !important;
  }

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

  [id^="location-block-form"],
  [id^="location-blockform"] {
    right: 19.875rem;
    width: 54.5rem;
    top: 15rem;
  }

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

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

  body [id^="location-block-form"] .locations-icon,
  body [id^="location-blockform"] .locations-icon {
    top: 26px;
    height: 30px;
    width: 30px;
  }
}
