#block-macewan-library-macewansearchblock {
  background-color: var(--bg-gray);
}

[id^=macewan-search-form] {
  max-width: var(--narrow);
  margin-right: auto;
  margin-left: auto;  
  padding-top: 0 !important;
}

.search-box-label {
  display: inline-block;
  width: 100%;
}

.sb-desc {
  font-weight: 600;
  font-size: 1.4rem;
  width: 100%;
  margin-bottom: 6px;
  display: inline-block;
}

#searchbox_wrapper {
  border: none;
  padding:0;
}

#searchbox_wrapper legend {
  font-size: 2rem;
  font-weight: bold;
  color: var(--font-dark-gray);
  margin: 6px 0;
}

#search-selection, #search-input-wrapper {
  padding: 0px;
  border: none;
}

#search-input-wrapper {
  height: 0px;
  display: none;
}

.search-inputs {
  width: 100%;
  border: none;
  padding: 0 0 10px 0;
}

.search-inputs .fieldset-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.search-input-wrapper {
  width: 100%;
  display: flex;
}

.search-inputs label {
  display: none;
}

.search-inputs .fieldset-wrapper div:has(.search-text-field) {
  flex-grow: 2;
}

.search-inputs .search-text-field {
  width: calc(100% - 24px);
}

.search-inputs .fieldset-wrapper select {
  height: 50px;
  padding: 0 20px 0 10px;
  background-color: white;
  border-right: 1px solid var(--border-gray);
  border-top: 1px solid var(--border-gray);
  border-bottom: 1px solid var(--border-gray);
  border-left: none;
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  border-radius: 0px;
  color: var(--font-gray);
  cursor: pointer;
}

.search-inputs .fieldset-wrapper .search-submit {
  color: white;
  background-color: var(--button-red);
  padding: 0 20px;
  border: 1px solid var(--button-red);
  -webkit-border-radius: 0px;
  -moz-border-radius: 0px;
  border-radius: 0px;
  cursor: pointer;
}

#search-selection .form-radios {
  display: flex;
  align-content: flex-start;
  gap: 40px;
  margin-top: 0 !important;
}

#search-selection .form-radios div {
  display: inline-block;
  flex-grow: 0;
  color: #454545;
  font-size: 1.25rem;
  font-weight: normal;
  padding: 0;
  max-width: 25%;
}

#search-selection .form-radios div label {
  cursor: pointer;
  display: inline-block;
  padding: 0;
  text-align: left;
  font-weight: normal;
  text-align: center;
  line-height: 1.3rem;
}

#search-selection .form-radios div:has(input[type="radio"]:checked) label {
    text-decoration: underline;
    text-decoration-color: #8b2331;
    text-decoration-thickness: 2px;
    text-underline-offset: 6px;
  }

#search-selection .form-radios div:has(input[type=radio]:checked) label {
  font-weight: bold;
}

#search-selection input {
  display: none;
}

#search-selection label {

}

#edit-type-options, #edit-subject-options {
  width: 160px;
}

.form-item--error-message {
  position: absolute;
}

#search-links {
  height: 100% !important;
  margin-top: 10px;
  padding: 10px 0;
  height: 24px;
  display: flex;
  gap: 10px;
  align-content: space-evenly;
  justify-content: start;
}

#search-links a {
  padding: 6px 20px;
  background-color: white;
  border-radius: 48px;
  border: 1px solid #8b2331;
  color: #8b2331;
  text-decoration: none;
}

#search-links a:visited {
  color: #8b2331;
}

.my-account-info {
  cursor: pointer;
  display: inline-block;
  height: 24px;
  width: 24px;
  background-image: url('./my_account_info.svg');
  background-repeat: no-repeat;
  background-position: right bottom;
  background-size: 24px;
}

#my-account-info-modal .modal-text {
  font-size: 0.9rem;
}

.db-link {
  text-decoration: none;
  color: white !important;
}

@media screen and (max-width: 1348px) {

}

@media screen and (max-width: 1178px) {
  #search-links {
    flex-wrap: wrap;
    gap: 30px 10px;
  }
  
  #search-links div {
    flex-basis: 40%;
  }
}

@media screen and (max-width: 958px) {

  #search-selection .form-radios div:has(input[type="radio"]) label {
    line-height: 1.8rem;
  }

}

@media screen and (max-width: 768px) {
  #search-selection .form-radios {
    gap: 20px;
  }

  #search-links {
    flex-direction: column;
    flex-wrap: initial;
    align-items: center;
  }

}

@media screen and (max-width: 565px) {
}
