.block-system-branding-block {
  display: block !important;
}

.main-header .cdp-header-shell {
  display: block;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

.main-header .main-header-left,
.main-header .main-header-right {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.main-header-right {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-end;
  padding-top: 10px;
}

.cdp-header-right-inner {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 6px;
  width: auto;
  max-width: 100%;
}

.main-header .university-branding {
  margin-bottom: 0 !important;
  text-align: right;
  font-size: 0.8rem;
  font-weight: 700;
  color: #333;
  letter-spacing: 0.05rem;
  line-height: 1.2;
}

.header-right-regions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.cdp-myusu-link {
  color: #1f245d;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.cdp-myusu-link:hover,
.cdp-myusu-link:focus {
  text-decoration: underline;
}

.main-header .cdp-header-search.search-block-form {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 0;
  width: auto;
  height: auto;
  max-width: 360px;
  margin: 0;
}

.main-header .cdp-header-search.search-block-form input[type="search"],
.main-header .cdp-header-search.search-block-form .form-search {
  display: block;
  width: 220px;
  min-width: 220px;
  max-width: 220px;
  border: 1px solid #c6ccd8;
  border-radius: 4px;
  padding: 8px 10px;
  line-height: 1.2;
  margin: 0;
  background: #fff;
}

.main-header .cdp-header-search.search-block-form button,
.main-header .cdp-header-search.search-block-form input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #1f245d;
  background-color: #1f245d;
  color: #fff;
  border-radius: 4px;
  padding: 8px 12px;
  line-height: 1.2;
  margin: 0 0 0 8px;
  white-space: nowrap;
  -webkit-appearance: none;
  appearance: none;
}

.main-header .cdp-header-search.search-block-form button:hover,
.main-header .cdp-header-search.search-block-form button:focus,
.main-header .cdp-header-search.search-block-form input[type="submit"]:hover,
.main-header .cdp-header-search.search-block-form input[type="submit"]:focus {
  background-color: #0f143f;
  border-color: #0f143f;
}

@media (max-width: 767px) {
  .main-header-right {
    min-width: 0;
    width: 100%;
    padding-top: 0;
    align-items: flex-start;
    margin-top: 12px;
  }

  .cdp-header-right-inner {
    align-items: flex-start;
    text-align: left;
    width: 100%;
  }

  .main-header .university-branding {
    text-align: left;
  }

  .header-right-regions {
    justify-content: flex-start;
  }

  .main-header .cdp-header-search.search-block-form {
    justify-content: flex-start;
    max-width: 100%;
    width: 100%;
  }

  .main-header .cdp-header-search.search-block-form input[type="search"],
  .main-header .cdp-header-search.search-block-form .form-search {
    width: 100%;
    min-width: 0;
    max-width: none;
  }
}
