input[type=checkbox] {
  margin: 0px 10px 0px 0px;
  width: 20px;
}

.text-input input {
  font-family: "Inter", sans-serif;
  position: relative;
  cursor: pointer;
  user-select: none;
  border-radius: 0px;
  background-color: transparent;
}
.text-input.size--Large {
  margin-right: 1rem;
}
.text-input.size--Large input {
  height: 45px;
  min-width: 380px;
  max-width: 450px;
  width: auto;
  padding: 0 1.25rem;
  font-size: 0.938rem;
  line-height: 140%;
  position: static;
}
@media (max-width: 576px) {
  .text-input.size--Large input {
    min-width: auto;
  }
}
.text-input.type--OutlineBlack input {
  background-color: transparent;
  border: 1px solid #040e1d;
}
.text-input.type--OutlineWhite input {
  background-color: transparent;
  border: 1px solid #f2f2f2;
  color: #f2f2f2;
}
.text-input.type--OutlineWhite input::placeholder {
  color: #f2f2f2;
}
.text-input.icon--Search, .text-input.icon--SearchWhite {
  position: relative;
}
.text-input.icon--Search::after, .text-input.icon--SearchWhite::after {
  content: "";
  display: inline-block;
  position: absolute;
  top: calc(50% - 14px);
  right: 8px;
  width: 28px;
  height: 28px;
  border-radius: 100%;
  background-color: transparent;
  cursor: pointer;
}
.text-input.icon--Search input, .text-input.icon--SearchWhite input {
  padding-right: 36px;
}
.text-input.icon--Search::after {
  background: url("../../UI/search_black.svg") no-repeat center;
}
.text-input.icon--Search.is--after-hover::after {
  background-color: #f2f2f2;
}
.text-input.icon--SearchWhite::after {
  background: url("../../UI/search_white.svg") no-repeat center;
}
.text-input.icon--SearchWhite.is--after-hover::after {
  background-color: #4a4a4a;
}

.select-container {
  position: relative;
  width: 250px;
  margin-right: 1rem;
}
.select-container .select-multiselect {
  display: none; /* ukrywamy oryginalny select */
}
.select-container .custom-multiselect {
  position: relative;
  cursor: pointer;
  user-select: none;
  background: #fff url("../../UI/chevron-down-small.svg") no-repeat right 0.5rem center;
  background-size: 1.6rem;
  border: 1px solid #040e1d;
  color: #040e1d;
  height: 45px;
  min-height: 45px;
  padding: 0 4.25rem 0 1.25rem;
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 45px;
  max-width: 300px;
  box-sizing: border-box;
}
.select-container .custom-multiselect-options {
  position: absolute;
  top: 100%;
  left: 0;
  z-index: 1000;
  width: 100%;
  background: white;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 6px 6px;
  max-height: 250px;
  overflow-y: auto;
  display: none;
  box-sizing: border-box;
}
.select-container .custom-multiselect-options.active {
  display: block;
}
.select-container .custom-multiselect-options label {
  display: block;
  padding: 0.3rem 1rem;
  cursor: pointer;
  font-size: 0.875rem;
}
.select-container .custom-multiselect-options input[type=checkbox] {
  margin-right: 0.5em;
}

.datefilter-wrapper {
  position: relative;
  display: flex;
}
@media (max-width: 576px) {
  .datefilter-wrapper {
    flex-direction: column;
  }
}
.datefilter-wrapper input {
  width: 250px;
  font-family: "Inter", sans-serif;
  position: relative;
  cursor: pointer;
  user-select: none;
  background: #fff url("../../UI/chevron-down-small.svg") no-repeat right 0.5rem center;
  background-size: 1.6rem;
  border: 1px solid #040e1d;
  color: #040e1d;
  height: 45px;
  min-height: 45px;
  padding: 0 4.25rem 0 1.25rem;
  font-size: 1.1rem;
  font-weight: 650;
  line-height: 45px;
  margin-right: 1rem;
  box-sizing: border-box;
}
@media (max-width: 576px) {
  .datefilter-wrapper input:last-child {
    margin-top: 1rem;
  }
}
.datefilter-wrapper input[type=date] {
  padding-right: 0.5rem;
  background: #fff;
}

.checkbox.switch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0.5rem;
  margin-right: 2rem;
}
.checkbox.switch label {
  font-size: 0.938rem !important;
  font-weight: 400 !important;
  margin-bottom: 0px !important;
}
.checkbox.switch input[type=checkbox] {
  appearance: none;
  -webkit-appearance: none;
  min-width: 34px;
  width: 34px;
  max-width: 34px;
  min-height: 18px;
  height: 18px;
  max-height: 18px;
  background-color: #dddddd;
  border-radius: 16px;
  position: relative;
  outline: none;
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.checkbox.switch input[type=checkbox]::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  top: 3px;
  left: 4px;
  background-color: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
}
.checkbox.switch input[type=checkbox]:checked {
  background-color: #040e1d;
}
.checkbox.switch input[type=checkbox]:checked::before {
  transform: translateX(14px);
}

.info-sign {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 0.6rem;
  margin-right: 10px;
  text-align: center;
  font-size: 0.76rem;
  font-weight: 650;
  background-color: #040e1d;
  color: #f2f2f2;
  font-style: italic;
}

.search-main-field {
  display: flex;
  align-items: center;
  justify-content: start;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  row-gap: 1rem;
}
.search-main-field .megamenuSearch__label {
  margin-bottom: 0;
}
.search-main-field label {
  font-size: 1.1rem;
  font-weight: 400;
  margin-right: 1.6rem;
}
@media (max-width: 1536px) {
  .search-main-field:has(> label[for=search]) > label[for=search] {
    flex-basis: 100%;
  }
}
@media (max-width: 1024px) {
  .search-main-field:has(> label[for=search]) {
    flex-direction: column;
    align-items: flex-start;
  }
}
@media (max-width: 768px) {
  .search-main-field {
    flex-direction: column;
    align-items: flex-start;
  }
  .search-main-field:has(> label[for=search]) {
    flex-direction: row;
    align-items: flex-start;
  }
  .search-main-field > .search-input {
    width: 100%;
  }
  .search-main-field > .search-input > input {
    box-sizing: border-box;
    min-width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 660px) {
  .search-main-field:has(> label[for=search]) {
    flex-direction: column;
    align-items: flex-start;
  }
}

.filters-wrapper {
  margin-top: 1.2rem;
}
.filters-wrapper .filters-title {
  display: none;
}
.filters-wrapper .filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.filters-wrapper .filters .filter {
  margin-bottom: 1rem;
}
.filters-wrapper .filters .filter .select-container {
  width: 250px;
}
.filters-wrapper .filters .filter label.header {
  display: block;
  font-size: 1.1rem;
  font-weight: 650;
  margin-bottom: 0.7rem;
}
.filters-wrapper .filters .filter.select-with-header .custom-multiselect {
  font-size: 1rem;
  font-weight: 330;
}
.filters-wrapper .filters .filter.studies-unit .custom-multiselect {
  font-size: 1rem;
  font-weight: 330;
}
.filters-wrapper .type--OutlineBlack {
  font-weight: 400;
}
@media (max-width: 768px) {
  .filters-wrapper.type--Horizontal .filters-title, .filters-wrapper.type--FieldsOfStudy .filters-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 16px;
    cursor: pointer;
  }
  .filters-wrapper.type--Horizontal .filters-title .search-results__filters-title, .filters-wrapper.type--FieldsOfStudy .filters-title .search-results__filters-title {
    font-size: 1.25rem;
    font-weight: 800;
  }
  .filters-wrapper.type--Horizontal .filters-title .search-results__filters-title::before, .filters-wrapper.type--FieldsOfStudy .filters-title .search-results__filters-title::before {
    display: inline-block;
    content: "";
    width: 16px;
    height: 16px;
    margin-right: 14px;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url("../../UI/filter.svg");
    transform: translate(2px, 1px);
  }
  .filters-wrapper.type--Horizontal > .filters, .filters-wrapper.type--FieldsOfStudy > .filters {
    transition: height 0.5s ease-out;
    height: 0;
    overflow: hidden;
  }
  .filters-wrapper.type--Horizontal:not(.is--open) #closeFilters, .filters-wrapper.type--FieldsOfStudy:not(.is--open) #closeFilters {
    background-image: url("../../UI/chevron-down-small.svg");
    border: 0;
    padding: 0;
    min-width: 32px;
    min-height: 32px;
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    text-indent: -9999px;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 25.6px;
    cursor: pointer;
  }
  .filters-wrapper.type--Horizontal:not(.is--open) #closeFilters > *, .filters-wrapper.type--FieldsOfStudy:not(.is--open) #closeFilters > * {
    display: none;
  }
  .filters-wrapper.type--Horizontal:not(.is--open) #closeFilters::after, .filters-wrapper.type--FieldsOfStudy:not(.is--open) #closeFilters::after {
    display: none;
  }
  .filters-wrapper.type--Horizontal.is--open #closeFilters, .filters-wrapper.type--FieldsOfStudy.is--open #closeFilters {
    background-image: url("../../UI/chevron-up-small.svg");
    border: 0;
    padding: 0;
    min-width: 32px;
    min-height: 32px;
    width: 32px;
    height: 32px;
    max-width: 32px;
    max-height: 32px;
    text-indent: -9999px;
    background-color: transparent;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 25.6px;
    cursor: pointer;
  }
  .filters-wrapper.type--Horizontal.is--open #closeFilters > *, .filters-wrapper.type--FieldsOfStudy.is--open #closeFilters > * {
    display: none;
  }
  .filters-wrapper.type--Horizontal.is--open #closeFilters::after, .filters-wrapper.type--FieldsOfStudy.is--open #closeFilters::after {
    display: none;
  }
}
@media (min-width: calc(768px + 1px)) {
  .filters-wrapper.type--Horizontal > .filters, .filters-wrapper.type--FieldsOfStudy > .filters {
    height: auto !important;
  }
}
.filters-wrapper.type--Horizontal {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}
.filters-wrapper.type--Horizontal .filters {
  display: flex;
  align-items: center;
  margin-right: 1rem;
}
@media (max-width: 768px) {
  .filters-wrapper.type--Horizontal {
    flex-direction: column;
    align-items: flex-start;
  }
  .filters-wrapper.type--Horizontal > .filters {
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
  }
  .filters-wrapper.type--Horizontal > .filters > .filter {
    width: 100%;
    margin-bottom: 24px;
  }
  .filters-wrapper.type--Horizontal > .filters > .filter:first-of-type {
    margin-top: 8px;
  }
  .filters-wrapper.type--Horizontal > .filters > .filter > .checkbox.switch {
    margin-bottom: 0;
  }
  .filters-wrapper.type--Horizontal > .filters > .filter > .select-container {
    min-width: 100%;
    max-width: 100%;
  }
  .filters-wrapper.type--Horizontal > .filters > .filter > .select-container > .custom-multiselect {
    min-width: 100%;
    max-width: 100%;
  }
  .filters-wrapper.type--Horizontal > .filters > .filter > .datefilter-wrapper > input {
    min-width: 100%;
    max-width: 100%;
  }
  .filters-wrapper.type--Horizontal .search-results__filters-mobile {
    display: none;
  }
  .filters-wrapper.type--Horizontal:not(.is--open) .filters-buttons {
    display: none;
  }
  .filters-wrapper.type--Horizontal.is--open .filters-buttons {
    opacity: 0;
    animation: opacity-show 0.5s ease forwards;
    animation-delay: 0.5s;
  }
  @keyframes opacity-show {
    from {
      opacity: 0;
    }
    to {
      opacity: 1;
    }
  }
}
.filters-wrapper.type--FieldsOfStudy {
  margin-top: 4rem;
}
@media (max-width: 1024px) {
  .filters-wrapper.type--FieldsOfStudy {
    margin-top: 2rem;
  }
}
.filters-wrapper.type--FieldsOfStudy .filters {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 3rem;
  align-items: flex-start;
}
.filters-wrapper.type--FieldsOfStudy .filters .filter {
  margin-bottom: 2rem;
}
.filters-wrapper.type--FieldsOfStudy .filters .filter .select-container {
  width: 300px;
}
.filters-wrapper.type--FieldsOfStudy .filters .filter.studies-unit .custom-multiselect {
  font-size: 1rem;
  font-weight: 330;
}
.filters-wrapper.type--FieldsOfStudy .filters .filter.studies-legend .legend {
  justify-content: flex-start;
  align-items: flex-start;
  margin-bottom: 0.4rem;
}
.filters-wrapper.type--FieldsOfStudy .filters .filter.studies-legend .legend .study-mode-sign {
  justify-content: flex-start;
  margin-left: 0px;
  margin-right: 1rem;
  background-color: unset;
  width: 1.5rem;
  height: unset;
}
.filters-wrapper.type--FieldsOfStudy .filters .filter.studies-legend .legend .study-mode-name {
  font-size: 0.938rem;
}
@media (max-width: 1536px) {
  .filters-wrapper.type--FieldsOfStudy .filters .first-grid-column {
    grid-row: 1;
    grid-column: 1;
  }
  .filters-wrapper.type--FieldsOfStudy .filters .filter.studies-types {
    grid-row: 1;
    grid-column: 2/span 2;
  }
  .filters-wrapper.type--FieldsOfStudy .filters .filter.studies-legend {
    grid-row: 2;
    grid-column: 1/span 3;
  }
}
@media (max-width: 1024px) {
  .filters-wrapper.type--FieldsOfStudy .filters {
    grid-gap: 0;
  }
  .filters-wrapper.type--FieldsOfStudy .filters .first-grid-column {
    grid-row: 1;
    grid-column: 1/span 3;
  }
  .filters-wrapper.type--FieldsOfStudy .filters .filter.studies-types {
    grid-row: 2;
    grid-column: 1/span 3;
  }
  .filters-wrapper.type--FieldsOfStudy .filters .filter.studies-legend {
    grid-row: 3;
    grid-column: 1/span 3;
  }
}
@media (min-width: calc(768px + 1px)) {
  .filters-wrapper.type--FieldsOfStudy .filter.studies-legend {
    display: block !important;
  }
  .filters-wrapper.type--FieldsOfStudy .filter.studies-legend.is--mobile-clone {
    display: none !important;
  }
}
@media (max-width: 768px) {
  .filters-wrapper.type--FieldsOfStudy .filter.studies-legend {
    display: none !important;
  }
  .filters-wrapper.type--FieldsOfStudy .filter.studies-legend.is--mobile-clone {
    display: block !important;
  }
}
.filters-wrapper.type--BulResources .filters {
  display: grid;
  grid-template-columns: 1fr 2fr;
  grid-gap: 3rem;
  align-items: flex-start;
}
.filters-wrapper.type--BulResources .filters .first-grid-column {
  min-width: 250px;
}
.filters-wrapper.type--BulResources .filters .letters {
  display: flex;
  flex-wrap: wrap;
}
.filters-wrapper.type--BulResources .filters .letters .letter {
  border: 1px solid #040e1d;
  color: #040e1d;
  height: 40px;
  width: 40px;
  font-size: 1rem;
  font-weight: 330;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  margin-right: 0.8rem;
  margin-bottom: 0.8rem;
  opacity: 0.3;
}
.filters-wrapper.type--BulResources .filters .letters .letter.active {
  opacity: 1;
}
.filters-wrapper.type--BulResources .filters .letters .letter:hover, .filters-wrapper.type--BulResources .filters .letters .letter.selected {
  color: #f2f2f2;
  background-color: #040e1d;
}
@media (max-width: 768px) {
  .filters-wrapper.type--BulResources .filters {
    display: grid;
    grid-template-columns: 1fr;
  }
}
.filters-wrapper .filters-buttons {
  display: grid;
  grid-template-columns: auto auto;
  grid-template-rows: auto auto;
  margin-bottom: 1rem;
}
.filters-wrapper .filters-buttons .search-results__filters-checked {
  grid-column: 1/span 2;
  margin-bottom: 1rem;
}
.filters-wrapper .filters-buttons a, .filters-wrapper .filters-buttons input {
  margin: 0 1rem 0 0;
}

@media (max-width: 768px) {
  .content-search:has(+ .filters-wrapper.type--Horizontal) .search-main-field {
    margin-bottom: 0;
  }
  .content-search:has(+ .filters-wrapper.type--Horizontal) .search-buttons {
    display: none;
  }
}
.search-results-wrapper .pagination-wrapper {
  margin-top: 2rem;
  margin-bottom: 4rem;
}

.default-search-results {
  margin-top: 2rem;
  border-bottom: 1px solid #c0c0c0;
}
.default-search-results .item {
  display: grid;
  grid-template-columns: 35px auto;
  width: 100%;
  align-items: center;
  padding: 1.25rem 0 1.25rem 0;
  border-top: 1px solid #c0c0c0;
}
.default-search-results .item .color-dot {
  border-radius: 50%;
  width: 15px;
  height: 15px;
  margin-top: 30px;
  align-self: self-start;
}
.default-search-results .item .department {
  opacity: 0.75;
}
.default-search-results .item .result {
  padding-bottom: 5px;
}
.default-search-results .item .result a {
  font-weight: 650;
  text-decoration: none;
}
.default-search-results .item .result a:hover {
  text-decoration: underline;
}
.default-search-results .item .teaser {
  max-width: 1200px;
}

.search-overlay {
  visibility: hidden;
  position: fixed;
  z-index: 9999;
  width: 100%;
  height: 100vh;
  max-height: 100vh;
  top: 0;
  overflow-y: scroll;
  background-color: #ffffff;
}
.search-overlay.show {
  visibility: visible;
}
.search-overlay .header {
  position: static;
}
.search-overlay .searchbox-form {
  display: flex;
  flex-direction: column;
  max-width: 750px;
  margin: 3rem auto;
}
.search-overlay .searchbox-form h3 {
  margin-bottom: 1rem;
}
.search-overlay .searchbox-form .text-input {
  display: flex;
  margin-right: 0;
}
.search-overlay .searchbox-form .text-input input {
  width: 100%;
  max-width: unset;
  height: 50px;
}
.search-overlay .searchbox-form .megamenuSearch__input-wrapper-icon {
  display: none;
}
.search-overlay .searched-items {
  max-width: 750px;
  margin: 3rem auto;
  font-size: 1rem;
  font-weight: 650;
}
.search-overlay .searched-items ul {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.6rem;
}
.search-overlay .searched-items ul li {
  margin-right: 1rem;
  font-weight: 330;
  padding-bottom: 5px;
}

.mod-news_newssearchform {
  margin-bottom: 1rem !important;
}

.selected-filters-container {
  margin-top: 1.6rem;
}
.selected-filters-container .selected-filters {
  display: flex;
  align-items: center;
}
.selected-filters-container .selected-filters .filter-title {
  margin-right: 1rem;
  margin-bottom: 1rem;
  font-size: 0.938rem;
}
.selected-filters-container .selected-filters .filter-tag {
  font-size: 0.938rem;
  padding: 0.3rem 2.3rem 0.3rem 1rem;
  margin-right: 0.7rem;
  margin-bottom: 1rem;
  cursor: pointer;
  user-select: none;
  background: #eeeeee url(../../UI/close.svg) no-repeat right 0.7rem center;
  background-size: 0.7rem;
}

.filters-wrapper-mobile {
  display: none;
}

.search-bul-wrapper {
  background-color: #f2f2f2;
  padding: 3rem 4vw;
}
.search-bul-wrapper .tabs {
  display: flex;
  align-items: center;
}
.search-bul-wrapper .tabs .item {
  text-transform: uppercase;
  margin-right: 1rem;
  margin-bottom: 0.7rem;
}
.search-bul-wrapper .tabs .item.selected {
  font-weight: 650;
}
.search-bul-wrapper .tabs .item:first-child {
  border-right: 1px solid #040e1d;
  padding-right: 1rem;
}
.search-bul-wrapper .tabs .item a {
  text-decoration: none;
}
.search-bul-wrapper .tabs .item a:hover {
  font-weight: 650;
}
.search-bul-wrapper .search-main-field {
  margin-bottom: 1rem;
}
.search-bul-wrapper .search-main-field select {
  display: none;
}
.search-bul-wrapper .info-links {
  display: flex;
  align-items: center;
}
.search-bul-wrapper .info-links .item {
  display: flex;
  align-items: center;
  margin-right: 3rem;
}
.search-bul-wrapper .info-links a {
  text-decoration: none;
}
.search-bul-wrapper .info-links a:hover {
  text-decoration: underline;
}

.bul-res-related-links {
  margin-bottom: 2rem;
}

.bul-res.results_container .accordion-units .body-content {
  margin-left: 2rem;
  margin-bottom: 1.5rem;
  display: grid;
  grid-template-columns: 120px 3fr;
  grid-gap: 3rem;
  align-items: flex-start;
}
.bul-res.results_container .accordion-units .body-content .content.buttons {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}
@media (max-width: 1024px) {
  .bul-res.results_container .accordion-units .body-content {
    grid-template-columns: 1fr;
  }
}