jcrafts-dropdown {
  position: relative;
  width: min(400px, 30vw);
  margin: 2rem 0;
  position: relative;
  display: inline-block;
  min-width: 400px;
  max-width: 100%;
  width: 30vw;
  input {
    width: 100%;
  }
}

.chosen-value,
.value-list {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding-inline-start: 0;
}

.chosen-value {
  /* font-family: "Ek Mukta"; */
  /* text-transform: uppercase; */
  /* font-weight: 600; */
  /* letter-spacing: 4px; */
  height: 4rem;
  /* font-size: 1.1rem; */
  padding: 1rem;
  /* background-color: #FAFCFD; */
  border: 3px solid transparent;
  transition: 0.3s ease-in-out;
}
.chosen-value::-webkit-input-placeholder {
  /* color: #333; */
}
.chosen-value:hover {
  background-color: color-mix(in srgb, var(--text-interactive-hover-bg) 55%, var(--color-neutral-300));
  color: var(--text-interactive-hover, #000);
  cursor: pointer;
}
.chosen-value:hover::-webkit-input-placeholder {
  color: #333;
}
.chosen-value:focus, .chosen-value.open {
  box-shadow: 0px 5px 8px 0px rgba(0, 0, 0, 0.2);
  outline: 0;
  background-color: color-mix(in srgb, var(--text-interactive-hover-bg) 80%, var(--color-neutral-300));
  color: var(--text-interactive-hover, #000);
}
.chosen-value:focus::-webkit-input-placeholder, .chosen-value.open::-webkit-input-placeholder {
  color: var(--text-interactive-hover, #000);
}

.value-list {
  list-style: none;
  margin-top: 4rem;
  box-shadow: 0px 5px 8px 0px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  max-height: 0;
  transition: 0.3s ease-in-out;
}
.value-list.open {
  max-height: 320px;
  overflow: auto;
}
.value-list li {
  position: relative;
  height: 4rem;
  background-color: var(--form-input-color-bg);
  padding: 1rem;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s;
  opacity: 1;
}
.value-list li:hover {
  background-color: color-mix(in srgb, var(--text-interactive-hover-bg) 55%, var(--color-neutral-300));
  color: var(--text-interactive-hover);
}
.value-list li.closed {
  max-height: 0;
  overflow: hidden;
  padding: 0;
  opacity: 0;
}
/* joomla-dialog — extracted from Joomla 5 Cassiopeia template CSS */

joomla-dialog dialog {
  border: 1px solid var(--border-color-translucent, rgb(0 0 0 / 18%));
  border-radius: 0.3rem;
  width: 96vw;
  max-width: 1700px;
  height: 96vh;
  padding: 0;
  box-shadow: 0 0.5rem 1rem rgb(0 0 0 / 15%);
}

@media (width >= 1400px) {
  joomla-dialog dialog {
    width: 80vw;
    height: 80vh;
  }
}

joomla-dialog dialog[open] {
  display: flex;
}

joomla-dialog[type="image"] dialog {
  width: fit-content;
  height: fit-content;
  max-width: 96vw;
  max-height: 96vh;
}

joomla-dialog dialog[open] {
  animation: 0.4s dialog-show;
}

@media (prefers-reduced-motion: reduce) {
  joomla-dialog dialog[open] {
    animation: none;
  }
}

@keyframes dialog-show {
  0% { opacity: 0; transform: translateY(-50px); }
  30% { opacity: 1; }
  100% { transform: translateY(0); }
}

.joomla-dialog-container {
  box-sizing: border-box;
  display: flex;
  flex-flow: column;
  width: 100%;
  position: relative;
}

.joomla-dialog-container .buttons-holder {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-inline-start: auto;
}

.joomla-dialog-container .buttons-holder button {
  margin-inline: 0.375rem;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}

.joomla-dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--border-color, #dee2e6);
  position: relative;
}

.joomla-dialog-header h3 {
  margin: 0;
}

.joomla-dialog-header.empty {
  display: none;
}

.joomla-dialog-body {
  box-sizing: border-box;
  flex: auto;
  position: relative;
  overflow: auto;
  padding: 1rem;
}

.joomla-dialog-body .buttons-holder {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.joomla-dialog-body img {
  display: block;
  max-width: 100%;
  max-height: 90vh;
  height: auto;
}

.joomla-dialog-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-color, #dee2e6);
  position: relative;
}

.joomla-dialog-footer.empty {
  display: none;
}

/* Close button — Bootstrap's btn-close is not loaded in the DS */
.btn-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  font-size: 1.5rem;
  line-height: 1;
  background: transparent;
  border: none;
  border-radius: 0.25rem;
  cursor: pointer;
  opacity: 0.65;
  color: currentColor;
}

.btn-close::after {
  content: '×';
}

.btn-close:hover {
  opacity: 1;
}

.btn-close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  opacity: 1;
}