/* Comptoir du Robinet — premium search treatment aligned with the header actions. */

body.cdrt-theme .cdrt-search {
  position: relative;
}

body.cdrt-theme .cdrt-search__field {
  min-height: 48px;
  padding: 0 62px 0 18px;
  border: 1px solid #d9d2c5;
  border-radius: 8px;
  color: #142739;
  background: #faf8f3;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .92);
  transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}

body.cdrt-theme .cdrt-search__field::placeholder {
  color: #858a8e;
}

body.cdrt-theme .cdrt-search__field:hover {
  border-color: #c9c0b0;
  background: #fdfbf7;
}

body.cdrt-theme .cdrt-search__field:focus {
  border-color: #b99552;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(185, 149, 82, .11);
  outline: none;
}

body.cdrt-theme .cdrt-search__submit {
  top: 3px;
  right: 3px;
  width: 46px;
  height: 42px;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #10283d;
  border-radius: 6px;
  color: #e8d09a;
  background: #10283d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  cursor: pointer;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

body.cdrt-theme .cdrt-search__submit svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

body.cdrt-theme .cdrt-search__submit:hover {
  color: #fff;
  background: #1b3950;
  border-color: #1b3950;
}

body.cdrt-theme .cdrt-search__submit:active {
  background: #0b2031;
  border-color: #0b2031;
}

body.cdrt-theme .cdrt-search__submit:focus-visible {
  outline: 3px solid rgba(198, 161, 91, .45);
  outline-offset: 2px;
}

@media (max-width: 700px) {
  body.cdrt-theme .cdrt-search__field {
    min-height: 44px;
    padding-right: 56px;
    border-radius: 7px;
  }

  body.cdrt-theme .cdrt-search__submit {
    top: 3px;
    right: 3px;
    width: 42px;
    height: 38px;
    min-height: 38px;
    border-radius: 5px;
  }
}
