.jy-esd {
  --jy-esd-brand: #AE0734;
  --jy-esd-dark: #111111;
  --jy-esd-radius: 0px;
  width: 100%;
  font-family: inherit;
  box-sizing: border-box;
}

.jy-esd *, .jy-esd *::before, .jy-esd *::after { box-sizing: border-box; }
.jy-esd .es-search-form,
.jy-esd form,
.jy-esd .es-search__wrapper,
.jy-esd .es-search-form__fields,
.jy-esd .es-search__fields {
  width: 100%;
}

.jy-esd form,
.jy-esd .es-search__wrapper,
.jy-esd .es-search-form__fields,
.jy-esd .es-search__fields {
  display: flex !important;
  align-items: flex-end !important;
  gap: 14px !important;
  margin: 0 !important;
}

.jy-esd .es-field,
.jy-esd .es-search__field,
.jy-esd .es-search-form__field,
.jy-esd .es-field-wrap {
  flex: 1 1 220px !important;
  min-width: 0 !important;
  margin: 0 !important;
}

.jy-esd label,
.jy-esd .es-field__label,
.jy-esd .es-search__label {
  display: block !important;
  margin: 0 0 8px !important;
  font: inherit !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  letter-spacing: .01em !important;
}

.jy-esd input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.jy-esd select,
.jy-esd .select2-selection,
.jy-esd .es-field__input,
.jy-esd .es-field__select {
  width: 100% !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 0 18px !important;
  border: 1px solid #d9dce1 !important;
  border-radius: var(--jy-esd-radius) !important;
  background: #fff !important;
  color: #171717 !important;
  font: inherit !important;
  font-size: 16px !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.jy-esd input:focus,
.jy-esd select:focus,
.jy-esd .select2-container--focus .select2-selection {
  border-color: var(--jy-esd-brand) !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--jy-esd-brand) 14%, transparent) !important;
}

.jy-esd button,
.jy-esd input[type="submit"],
.jy-esd .es-button,
.jy-esd .es-search__submit,
.jy-esd .es-search-form__submit {
  flex: 0 0 auto !important;
  min-width: 190px !important;
  min-height: 54px !important;
  margin: 0 !important;
  padding: 0 28px !important;
  border: 1px solid transparent !important;
  border-radius: var(--jy-esd-radius) !important;
  background: var(--jy-esd-dark) !important;
  color: #fff !important;
  font: inherit !important;
  font-size: 15px !important;
  font-weight: 650 !important;
  line-height: 1 !important;
  letter-spacing: .01em !important;
  text-transform: none !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: transform .2s ease, background-color .2s ease, opacity .2s ease;
}

.jy-esd button:hover,
.jy-esd input[type="submit"]:hover,
.jy-esd .es-button:hover { transform: translateY(-1px); opacity: .92; }
.jy-esd button:focus-visible,
.jy-esd input[type="submit"]:focus-visible { outline: 3px solid color-mix(in srgb, var(--jy-esd-brand) 36%, white); outline-offset: 3px; }

.jy-esd--luxury {
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(17,17,17,.08);
  box-shadow: 0 14px 42px rgba(17,17,17,.08);
}

.jy-esd--brand {
  padding: 20px;
  background: #fff;
  border-top: 3px solid var(--jy-esd-brand);
  box-shadow: 0 16px 50px rgba(50,20,30,.10);
}
.jy-esd--brand button,
.jy-esd--brand input[type="submit"],
.jy-esd--brand .es-button,
.jy-esd--brand .es-search__submit,
.jy-esd--brand .es-search-form__submit { background: var(--jy-esd-brand) !important; }

.jy-esd--glass {
  padding: 20px;
  background: rgba(12,12,12,.44);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: max(var(--jy-esd-radius), 2px);
  box-shadow: 0 18px 55px rgba(0,0,0,.22);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}
.jy-esd--glass label,
.jy-esd--glass .es-field__label,
.jy-esd--glass .es-search__label { color: #fff !important; }
.jy-esd--glass input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.jy-esd--glass select,
.jy-esd--glass .select2-selection {
  border-color: rgba(255,255,255,.34) !important;
  background: rgba(255,255,255,.94) !important;
}
.jy-esd--glass button,
.jy-esd--glass input[type="submit"],
.jy-esd--glass .es-button,
.jy-esd--glass .es-search__submit,
.jy-esd--glass .es-search-form__submit { background: var(--jy-esd-brand) !important; }

.jy-esd--compact {
  padding: 8px;
  background: #fff;
  border: 1px solid rgba(17,17,17,.10);
  border-radius: max(var(--jy-esd-radius), 999px);
  box-shadow: 0 10px 35px rgba(17,17,17,.08);
}
.jy-esd--compact form,
.jy-esd--compact .es-search__wrapper,
.jy-esd--compact .es-search-form__fields,
.jy-esd--compact .es-search__fields { align-items: center !important; gap: 6px !important; }
.jy-esd--compact label,
.jy-esd--compact .es-field__label,
.jy-esd--compact .es-search__label { display: none !important; }
.jy-esd--compact input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.jy-esd--compact select,
.jy-esd--compact .select2-selection {
  min-height: 48px !important;
  border-color: transparent !important;
  border-radius: 999px !important;
  background: #f7f7f7 !important;
}
.jy-esd--compact button,
.jy-esd--compact input[type="submit"],
.jy-esd--compact .es-button,
.jy-esd--compact .es-search__submit,
.jy-esd--compact .es-search-form__submit {
  min-width: 145px !important;
  min-height: 48px !important;
  border-radius: 999px !important;
  background: var(--jy-esd-brand) !important;
}

.jy-esd-alert { padding: 14px 16px; border-left: 4px solid #d63638; background: #fff4f4; color: #5a1a1a; }

@media (max-width: 900px) {
  .jy-esd form,
  .jy-esd .es-search__wrapper,
  .jy-esd .es-search-form__fields,
  .jy-esd .es-search__fields { flex-wrap: wrap !important; }
  .jy-esd .es-field,
  .jy-esd .es-search__field,
  .jy-esd .es-search-form__field,
  .jy-esd .es-field-wrap { flex: 1 1 calc(50% - 7px) !important; }
  .jy-esd button,
  .jy-esd input[type="submit"],
  .jy-esd .es-button,
  .jy-esd .es-search__submit,
  .jy-esd .es-search-form__submit { flex: 1 1 100% !important; width: 100% !important; }
  .jy-esd--compact { border-radius: max(var(--jy-esd-radius), 22px); }
}

@media (max-width: 600px) {
  .jy-esd { padding: 14px; }
  .jy-esd form,
  .jy-esd .es-search__wrapper,
  .jy-esd .es-search-form__fields,
  .jy-esd .es-search__fields { display: block !important; }
  .jy-esd .es-field,
  .jy-esd .es-search__field,
  .jy-esd .es-search-form__field,
  .jy-esd .es-field-wrap { width: 100% !important; margin-bottom: 12px !important; }
  .jy-esd button,
  .jy-esd input[type="submit"],
  .jy-esd .es-button,
  .jy-esd .es-search__submit,
  .jy-esd .es-search-form__submit { width: 100% !important; min-width: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  .jy-esd * { transition: none !important; }
}
