/**
 * Court Database - CDB Component styles.
 */

.ecl-message.cdb-textId {
  padding: 0 0 0 10px;
}

.cdb-mandatory-input-msg-wrapper {
  padding: 20px 0;
  color: red;
}

.form-item--error-message em.placeholder {
  padding: 0 5px;
}

form.ejp-cdb-component-form .error {
  background-image: none;
}

form.ejp-cdb-component-form .hidden {
  display: none;
}

form.ejp-cdb-component-form {
  border-color: gray;
  border-style: solid;
  border-width: 2px 0 0;
  padding: 10px 0;
  margin: 10px 0;
}

@media (min-width: 768px) {
  form.ejp-cdb-component-form {
    position: relative;
  }

  form.ejp-cdb-component-form #edit-actions {
    text-align: right;
    padding-top: 35px;
    position: absolute;
    bottom: 35px;
  }
}

form.ejp-cdb-component-form .form-item .description {
  padding: 10px;
  margin-top: 25px;
}

form.ejp-cdb-component-form .form-item.form-item-cdb-params-competencetype .description {
  padding: 10px;
  margin-top: 75px;
}

/* API autocomplete text field */
form.ejp-cdb-component-form .webform-component-autocompleteapi .field-suffix {
  display: none;
}

form.ejp-cdb-component-form .webform-component-autocompleteapi span.input-group-addon {
  background: none;
  border: none;
}

form.ejp-cdb-component-form .webform-component-autocompleteapi.active .field-suffix {
  background: white;
  border: 0.1rem solid #979797;
  border-top: 0;
  box-sizing: border-box;
  display: block;
  left: 0;
  max-height: 220px;
  max-width: 100%;
  overflow-y: auto;
  padding: 0;
  top: 44px;
  transition: height .2s, border .2s, opacity .1s;
  width: 330px;
  z-index: 20;
}

form.ejp-cdb-component-form .webform-component-autocompleteapi.active .field-suffix ul {
  display: block;
  list-style: none;
  padding: 0;
  position: relative;
}

form.ejp-cdb-component-form .webform-component-autocompleteapi.active .field-suffix ul li {
  color: #9b9b9b;
  padding: 5px;
  text-align: left;
  white-space: nowrap;
}

form.ejp-cdb-component-form .webform-component-autocompleteapi.active .field-suffix ul li:hover {
  background: #f0f0f0;
}

/* CDB search based on instrument and competence type. */
.ejp-cdb-component-court-find {
  border: 0;
  font-size: 16px;
  font-family: inherit;
  margin: 0 0 20px;
  padding: 0;
  vertical-align: baseline;
}

.ejp-cdb-component-court-find .cdb-no-result {
  padding: 20px 0;
}

.ejp-cdb-component-court-find .js-toggle-trigger {
  background: #eeeeee;
  cursor: pointer;
  font-weight: 800;
  padding: 15px 10px;
  position: relative;
}

.ejp-cdb-component-court-find .js-toggle-trigger .subtitle {
  margin-bottom: 0;
  display: inline-block;
  font-size: 20px;
  font-weight: 100;
  line-height: 100%;
  margin-left: 10px;
  position: relative;
  vertical-align: middle;
}

.cdb-court-results-list-wrapper .description {
  background: #eeeeee;
  margin: 0;
  overflow: hidden;
  padding: 5px 10px;
}

.ejp-cdb-component-court-find .info {
  margin: 0 0 0 10px;
}

.ejp-cdb-component-court-find .info--item {
  margin-bottom: 15px;
  overflow: hidden;
}

.ejp-cdb-component-court-find .info--item input {
  background-color: #fff;
  background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABHklEQVQ4EaVTO26DQBD1ohQWaS2lg9JybZ+AK7hNwx2oIoVf4UPQ0Lj1FdKktevIpel8AKNUkDcWMxpgSaIEaTVv3sx7uztiTdu2s/98DywOw3Dued4Who/M2aIx5lZV1aEsy0+qiwHELyi+Ytl0PQ69SxAxkWIA4RMRTdNsKE59juMcuZd6xIAFeZ6fGCdJ8kY4y7KAuTRNGd7jyEBXsdOPE3a0QGPsniOnnYMO67LgSQN9T41F2QGrQRRFCwyzoIF2qyBuKKbcOgPXdVeY9rMWgNsjf9ccYesJhk3f5dYT1HX9gR0LLQR30TnjkUEcx2uIuS4RnI+aj6sJR0AM8AaumPaM/rRehyWhXqbFAA9kh3/8/NvHxAYGAsZ/il8IalkCLBfNVAAAAABJRU5ErkJggg==);
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-size: 16px 18px;
  background-position: 98% 50%;
  border: 1px solid #979797;
  border-radius: 0;
  box-shadow: none;
  box-sizing: border-box;
  cursor: auto;
  margin-bottom: 1rem;
  padding: 0.6rem;
  transition: border-color .3s ease;
  width: 310px;
}

/*.ejp-cdb-component-court-find .info--item label {*/
/*  display: inline-block;*/
/*  float: left;*/
/*  font-weight: normal;*/
/*  vertical-align: middle;*/
/*  width: 180px;*/
/*}*/

.ejp-cdb-component-court-find .cdb-autocomplete-wrapper .autocomplete-results {
  position: absolute;
  z-index: 999;
  padding: 0 10px 1px;
  margin-top: -15px;
  width: 310px;
  max-height: 250px;
}

.ejp-cdb-component-court-find .cdb-autocomplete-wrapper .autocomplete-results.active {
  background: white;
  overflow-y: scroll;
  border: 1px solid #979797;
  border-top: none;
}

.ejp-cdb-component-court-find .cdb-autocomplete-wrapper .autocomplete-results ul {
  list-style: none;
  margin: 0;
  padding: 10px;
  padding-top: 30px;
}

.ejp-cdb-component-court-find .cdb-autocomplete-wrapper .autocomplete-results ul li {
  padding: 2px;
}

.ejp-cdb-component-court-find .cdb-autocomplete-wrapper .autocomplete-results ul li:hover {
  font-weight: bold;
  cursor: pointer;
  background-color: #e1e1e1;
}

.ejp-cdb-component-court-find .cdb-autocomplete-wrapper .autocomplete-results ul li.keyboard-focus {
  font-weight: bold;
  cursor: pointer;
  background-color: #e1e1e1;
  outline: 2px solid #004494;
  outline-offset: -2px;
}

.ejp-cdb-component-court-find .results-list {
  display: none;
  margin: 20px 0;
}

.ejp-cdb-component-court-find.active .results-list {
  display: block;
}

.ejp-cdb-component-court-find ul.nested-expand-list {
  display: none;
  list-style: none;
  margin: 1.5rem 0;
  padding: 0;
  border-radius: 5px 5px 0 0;
  margin-top: 50px;
  box-shadow: 6px 6px 5px 0px rgba(0, 0, 0, 0.1);
}

.ejp-cdb-component-court-find ul.nested-expand-list.active {
  display: block;
  border-top: 1px solid #f3f3f3;
  border-left: 1px solid #f3f3f3;
  border-radius: 5px 5px 0 0;
}

.ejp-cdb-component-court-find ul.nested-expand-list > li {
  background: white;
  border-bottom: 1px solid #b9c5e9;
}

.ejp-cdb-component-court-find ul.nested-expand-list > li .trig-key-nav {
  display: inline-block;
  width: 50px;
  border-radius: 5px 5px 0 0;
}

.ejp-cdb-component-court-find ul.nested-expand-list > li .court-label {
  cursor: default;
  font-weight: 700;
  padding: 0.8rem 5rem 0.8rem 1rem;
  word-wrap: break-word;
}

.ejp-cdb-component-court-find ul.nested-expand-list > li .court-label input {
  margin-right: 1rem;
}

.ejp-cdb-component-court-find ul.nested-expand-list > li .court-label span {
  width: 100%;
}

.ejp-cdb-component-court-find ul.nested-expand-list li .court-info .icon-wrapper {
  display: inline-block;
  width: 20px;
}

.ejp-cdb-component-court-find ul.nested-expand-list li .court-info {
  display: none;
  padding: 10px 20px 20px;
  overflow-x: hidden;
  word-wrap: break-word;
}

.ejp-cdb-component-court-find ul.nested-expand-list li.open .court-info {
  display: block;
  border-left: 4px solid #0e47cb;
}

.ejp-cdb-component-court-find ul.nested-expand-list .court-info .court-info--item {
  line-height: 25px;
}

.ejp-cdb-component-court-find ul.nested-expand-list .court-info .court-info--item .icon {
  position: absolute;
  top: 0;
  left: 0;
}

.ejp-cdb-component-court-find ul.nested-expand-list .court-info .court-info--item .icon-content {
  padding-left: 30px;
  word-wrap: break-word;
}

.cdb-text-warning {
  background: #fffcc9;
  padding: 10px 5px;
}

.cdb-text-warning p:first-child {
  margin-top: 0;
}

.cdb-text-warning p:last-child {
  margin-bottom: 0;
}

.cdb-text-warning svg {
  color: #ff9933;
  height: 25px;
  margin-bottom: -4px;
  margin-right: 5px;
}

/*CDB functionality*/
.select-cdb-court-search .js-toggle-trigger {
  display: none;
}

.select-cdb-court-search.open .js-toggle-trigger {
  display: block;
}

.cdb-court-results-list-wrapper .description {
  display: none;
}

.select-cdb-court-search.open .ejp-cdb-component-court-find.active .description {
  display: block;
}

.ejp-cdb-component-court-find .fa-chevron-right {
  display: block;
  float: right;
}
.ejp-cdb-component-court-find .fa-chevron-down {
  display: none;
  float: right;
}

.ejp-cdb-component-court-find.active .fa-chevron-down {
  display: block;
}
.ejp-cdb-component-court-find.active .fa-chevron-right {
  display: none;
}

/* API autocomplete text field */
.ejp-cdb-component-court-find.active .cdb-required-parameters {
  margin-top: 20px;
}

.ejp-cdb-component-court-find.active .cdb-required-parameters .autocomplete-results {
  display: none;
}

.ejp-cdb-component-court-find.active .cdb-required-parameters .autocomplete-results span.input-group-addon {
  background: none;
  border: none;
}

.ejp-cdb-component-court-find.active .cdb-required-parameters .autocomplete-results.active {
  background: white;
  border: 0.1rem solid #979797;
  border-top: 0;
  box-sizing: border-box;
  display: block;
  left: 0;
  margin-left: 180px;
  margin-top: -18px;
  max-height: 220px;
  max-width: 100%;
  overflow-y: auto;
  padding: 0;
  top: 44px;
  transition: height .2s, border .2s, opacity .1s;
  z-index: 20;
  width: 310px;
}

.ejp-cdb-component-court-find.active .cdb-required-parameters .info--item:not(:last-child) {
  margin: 0;
}

.ejp-cdb-component-court-find.active .cdb-required-parameters .autocomplete-results ul {
  display: block;
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.ejp-cdb-component-court-find.active .cdb-required-parameters .autocomplete-results ul li {
  color: #9b9b9b;
  cursor: default;
  padding: 5px;
  text-align: left;
  white-space: nowrap;
}

/*Icons*/
.ejp-cdb-component-court-find .results-list li {
  position: relative;
}
.ejp-cdb-component-court-find .results-list li .trig-key-nav {
  cursor: pointer;
  width: 40px;
  height: 100%;
  padding-top: 0;
  box-sizing: border-box;
  position: absolute;
  right: 0;
  top: 0;
  text-align: center;
}

#edit-cdb-params-search-results-required-params-amount {
  width: 310px;
}

.ejp-cdb-component-court-find .results-list li .trig-key-nav .fa-chevron-up {
  display: none;
  margin-top: 14px;
  right: 20px;
  position: absolute;
}
.ejp-cdb-component-court-find .results-list li .trig-key-nav .fa-chevron-down {
  display: block;
  margin-top: 14px;
  right: 20px;
  position: absolute;
}

.ejp-cdb-component-court-find .results-list li.open .trig-key-nav .fa-chevron-up {
  display: block;
}
.ejp-cdb-component-court-find .results-list li.open .trig-key-nav .fa-chevron-down {
  display: none;
}

.ejp-cdb-component-court-find.active .cdb-required-parameters .autocomplete-results ul li:hover {
  background: #f0f0f0;
}
.ejp-cdb-component-court-find .item-content .item-content--icon {
  flex-basis: 30px;
}

.cdb-icon {
  display: inline-block;
  width: 30px;
  font-style: normal;
  font-variant: normal;
  font-weight: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}

.cdb-text {
  background: #ddecf6;
  padding: 10px 5px;
}

.cdb-text p {
  margin: 0;
}

/*CDB Pager*/
.cdb-results-pager {
  margin: 20px auto;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.cdb-results-pager span.page {
  background: white;
  cursor: pointer;
  padding: 8px 12px;
  margin: 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  font-weight: 500;
  transition: all 0.2s ease;
  min-width: 40px;
  text-align: center;
}

.cdb-results-pager span.page:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

.cdb-results-pager span.page.active {
  background: #fdd340;
  border-color: #fdd340;
  color: #333;
  font-weight: 600;
}

.cdb-results-pager span.page-nav {
  background: white;
  cursor: pointer;
  padding: 8px 16px;
  margin: 0;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #333;
  font-weight: 500;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cdb-results-pager span.page-nav:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

.cdb-results-pager span.page-nav.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.cdb-results-pager span.page-ellipsis {
  padding: 8px 4px;
  color: #666;
  font-weight: 500;
  cursor: default;
}

.cdb-results-pager .pagination-info {
  margin-left: 0;
  margin-top: 16px;
  padding-left: 0;
  border-left: none;
  border-top: 1px solid #ddd;
  padding-top: 12px;
  color: #666;
  font-size: 14px;
  width: 100%;
  text-align: center;
}

.cdb-results-pager .pagination-info .results-count {
  font-weight: 500;
}

@media (max-width: 768px) {
  .cdb-results-pager {
    flex-direction: column;
    gap: 12px;
  }

  .cdb-results-pager .pagination-info {
    margin-top: 12px;
    padding-top: 8px;
  }
}

#cdb_results_wrapper {
  margin-bottom: 20px;
}

.cdb-spinner {
  width: 25px;
  --b: 5px; /* the border thickness */
  aspect-ratio: 1;
  border-radius: 50%;
  display: none;
  padding: 1px;
  background: conic-gradient(#0000 10%, var(--color-blue)) content-box;
  -webkit-mask: repeating-conic-gradient(#0000 0deg,#000 1deg 20deg,#0000 21deg 36deg), radial-gradient(farthest-side,#0000 calc(100% - var(--b) - 1px),#000 calc(100% - var(--b)));
  -webkit-mask-composite: destination-in;
  mask-composite: intersect;
  animation: spin 1s infinite steps(10);
  margin: 10px auto;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 100;
}
@keyframes spin {
  to {
    transform: rotate(1turn);
  }
}

.cdb-spinner.active {
  display: block;
}

.webform-submission-information {
  display: none;
}

/* Required to use !important because of another ECL class that is enforcing margin-top value */
.webform-submission-frit-add-form #edit-taxonomy-country--wrapper .form-item-taxonomy-country:first-of-type {
  margin-top: 0 !important;
}

.ejp-cdb-component-court-find #cdb_component_no_results_wrapper {
  padding: 10px;
}

.ecl-select__container .ajax-progress {
  background: white;
  font-weight: bold;
  position: absolute;
  height: 45px;
  width: 100%;
}

.fa-location-dot,
.fa-phone,
.fa-envelope,
.fa-desktop,
.fa-fax {
  color: #0e47cb;
}

#cdb_component_warning_wrapper {
  margin-bottom: 20px;
}
