/* Base style */
.ibk-dropdown {
  width: 100%;
  box-sizing: border-box;
  position: relative;
  color: var(--grayText);
}

.ibk-dropdown * { box-sizing: border-box; }

.ibk-dropdown__label {
  font-family: var(--fontGeometria);
  font-size: 14px;
  padding-bottom: 5px;
  display: block;
  font-weight: 500;
  color: var(--gray1);
}

.ibk-dropdown__subtitle {
  font-family: var(--fontMontserrat);
  font-size: 14px;
  font-weight: 500;
  padding-bottom: 7px;
  display: block;
}

.ibk-dropdown__input {
  display: flex;
  align-items: center;
  width: 100%;
  border: 1px solid var(--gray4);
  border-radius: 4px;
  height: 48px;
  transition: var(--fast);
  overflow: hidden;
  background-color: white;
  cursor: pointer;
}

@media screen and (max-width: 360px) {
  .ibk-dropdown__input { height: 44px; }
}

.ibk-dropdown__input:hover { border-color: var(--gray3); }

.ibk-dropdown__value {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  outline: none;
  display: block;
  height: 100%;
  padding: 0 0 0 15px;
  font-family: var(--fontGeometria);
  font-size: 16px;
  font-weight: 500;
  background-color: transparent;
  cursor: pointer;
  text-overflow: ellipsis;
}

.ibk-dropdown__value::placeholder {
  color: var(--gray2);
  font-weight: 400;
}

/* Card image */
.ibk-dropdown__card-image {
  display: inline-block;
  width: 40px;
  margin-left: 15px;
}

/* Icons */
.ibk-dropdown__icon-down {
  padding: 15px;
  color: var(--primaryGreen1);
  pointer-events: none;
  font-size: 7px;
  transition: var(--fast);
}

/* Device mode (select) */
.ibk-dropdown__mobile { position: relative; }
.ibk-dropdown__mobile .ibk-dropdown__icon-down {
  position: absolute;
  top: calc(50% - (32px / 2));
  right: 0;
}

.ibk-dropdown__select {
  display: block;
  height: 48px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  border: 1px solid var(--gray4);
  width: 100%;
  border-radius: 4px;
  padding: 0 15px;
  font-family: var(--fontGeometria);
  font-size: 16px;
}

.ibk-dropdown__select-option {
  font-size: 14px;
}

@media screen and (max-width: 360px) {
  .ibk-dropdown__select { height: 44px; }
}

/* Error */
.ibk-dropdown--error .ibk-dropdown__input,
.ibk-dropdown--error .ibk-dropdown__select { border-color: var(--extendedWatermelon1); }
.ibk-dropdown--error.ibk-dropdown--focus .ibk-dropdown__input { box-shadow: inset 0 0 0 0.5px var(--extendedWatermelon1); }

.ibk-dropdown--error .ibk-dropdown__trailing-icon,
.ibk-dropdown--error .ibk-dropdown__leading-icon { color: var(--extendedWatermelon1); }

.ibk-dropdown__error-message {
  font-family: var(--fontMontserrat);
  font-size: 12px;
  color: var(--extendedWatermelon1);
  font-weight: 500;
  margin-top: 7px;
  display: block;
  min-height: 15px;
}

/* Disable */
.ibk-dropdown--disabled {
  cursor: default;
  pointer-events: none;
}

.ibk-dropdown--disabled .ibk-dropdown__input,
.ibk-dropdown--disabled .ibk-dropdown__select { background-color: var(--gray5); }
.ibk-dropdown--disabled .ibk-dropdown__icon-down { color: var(--gray2); }

.ibk-dropdown--disabled .ibk-dropdown__select {
  color: var(--gray2);
}

/* Dropitems */
.ibk-dropdown__dropitems {
  width: 100%;
  position: absolute;
  top: calc(100% - 23px);
  border: 1px solid var(--gray4);
  border-radius: 0 0 4px 4px;
  display: none;
  z-index: 1;
  box-shadow: 0 2px 4px 0 var(--gray4);
  overflow: hidden;
  background-color: white;
}

.ibk-dropdown__dropitems ibk-dropdown-item:last-child .ibk-dropdown-item {
  border-bottom: 0;
  line-height: 48px;
}

@media screen and (max-width: 360px) {
  .ibk-dropdown__dropitems { top: 43px; }
  .ibk-dropdown__dropitems ibk-dropdown-item:last-child .ibk-dropdown-item { line-height: 44px; }
}

/* Dropitems list */
.ibk-dropdown__dropitems-list {
  margin: 0;
  padding: 0;
  max-height: 240px;
  overflow: auto;
}

.ibk-dropdown__dropitems-list::-webkit-scrollbar {
  width: 5px;
  background-color: white;
}

.ibk-dropdown__dropitems-list::-webkit-scrollbar-thumb {
  background-color: var(--primaryGreen1);
  border-radius: 3px;
}

@media screen and (max-width: 360px) {
  .ibk-dropdown__dropitems-list { max-height: 220px; }
}

/* Open */
.ibk-dropdown--open .ibk-dropdown__input {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
  box-shadow: 0 2px 4px 0 var(--gray4);
}
.ibk-dropdown--open .ibk-dropdown__dropitems { display: block; }
.ibk-dropdown--open .ibk-dropdown__icon-down { transform: rotate(-180deg); }

/* Searcher */
.ibk-dropdown__searcher {
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  border-bottom: 1px solid var(--gray4);
}

.ibk-dropdown__searcher-value {
  width: 100%;
  margin: 0 10px;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  border: none;
  outline: none;
  height: 47px;
  font-family: var(--fontGeometria);
  font-size: 14px;
  font-weight: 500;
}

@media screen and (max-width: 360px) {
  .ibk-dropdown__searcher-value { height: 43px; }
}

.ibk-dropdown__searcher-value::placeholder {
  color: var(--gray2);
  font-weight: 400;
}

.ibk-dropdown__searcher-icon { color: var(--gray2); }
.ibk-dropdown__searcher-erase {
  color: var(--gray1);
  cursor: pointer;
}

.ibk-dropdown__searcher-erase:active { transform: translateY(1px); }

/* Trigger */
.ibk-dropdown__trigger {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  outline: none;
  border: none;
  background-color: transparent;
  cursor: pointer;
  transition: background-color var(--fast);
}

.ibk-dropdown__trigger:hover { background-color: rgba(0,0,0,0.025); }
.ibk-dropdown__trigger:active { transform: translateY(1px); }

.ibk-dropdown__trigger-icon {
  pointer-events: none;
  font-size: 18px;
  color: var(--primaryGreen1);
}

.ibk-dropdown--trigger-round,
.ibk-dropdown--trigger-box {
  display: inline-block;
  width: auto;
}

.ibk-dropdown--trigger-round .ibk-dropdown__dropitems,
.ibk-dropdown--trigger-box .ibk-dropdown__dropitems {
  border-top-right-radius: 4px;
  border-top-left-radius: 4px;
  top: 100%;
}
.ibk-dropdown--trigger-round .ibk-dropdown-item,
.ibk-dropdown--trigger-box .ibk-dropdown-item { padding-right: 50px; }

.ibk-dropdown--trigger-round .ibk-dropdown__trigger {
  width: 48px;
  border-radius: 50%;
}

.ibk-dropdown--trigger-box .ibk-dropdown__trigger {
  border-radius: 4px;
  padding: 0 10px;
}

.ibk-dropdown__trigger-text {
  color: var(--primaryGreen1);
  font-size: 14px;
  font-weight: 500;
  font-family: var(--fontGeometria);
}

.ibk-dropdown__trigger-space { padding-left: 7px; }

/* No handling error */
.ibk-dropdown--no-handling-error .ibk-dropdown__dropitems {
  top: calc(100% - 1px);
}