@custom-media --tablet-viewport (min-width: 1300px);

:root {
  --drawerWidth: 286px;
  --flyoutItemHeight: 39px;
  --navHeight: 48px;
  --locationLookupHeight: 40px;
  --iconSizeMedium: 24px;
}

.uc-corpNav {
  display: flex;
  justify-content: space-between;
  position: relative;
  border-bottom: 1px solid var(--cx-color-dropShadow);
  width: 100%;
  height: var(--navHeight);
  color: var(--cx-color-textStrong);
  background-color: var(--cx-color-background);
  user-select: none;
  z-index: var(--cx-zIndex-10);
}

.uc-corpNav,
.uc-corpNav * {
  box-sizing: border-box;
}

.uc-corpNav-a {
  text-decoration: none;
}

.uc-corpNav-button {
  background-color: transparent;
}

.uc-corpNav-svg {
  display: block;
  margin: auto;
  color: inherit;
  fill: currentColor;
}

.uc-corpNav-iconSizeMedium {
  width: var(--iconSizeMedium);
  height: var(--iconSizeMedium);
}

.uc-corpNav-header {
  display: flex;
  align-items: center;
  flex-grow: 1;
  height: 100%;
}

.uc-corpNav-hamburger {
  display: flex;
  align-items: center;
  width: 48px;
  height: 100%;
  cursor: pointer;
}

.uc-corpNav-logotype {
  display: flex;
  align-items: center;
  padding-right: 24px;
  width: 123px;
  height: 100%;
  color: inherit;
}

.uc-corpNav-logotype svg {
  width: 98px;
  height: 14px;
}

.uc-corpNav-menuWrapper {
  display: flex;
  height: 100%;
}

.uc-corpNav-menu {
  display: none;
  padding: 0 10px;
  height: 100%;
}

.uc-corpNav-menu > .uc-corpNav-a,
.uc-corpNav-menu > .uc-corpNav-button {
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
}

.uc-corpNav-userMenu {
  display: flex;
}

.uc-corpNav-menuItem {
  display: flex;
  align-items: center;
  border: none;
  padding: 0 10px;
  height: 100%;
  outline: none;
  appearance: none;
  color: inherit;
  font-weight: var(--cx-font-weightMedium);
  cursor: pointer;
  transition: all 0.1s ease;
}

.uc-corpNav-menuItem--disabled {
  cursor: default;
}

.uc-corpNav-dropdown {
  display: flex;
  position: relative;
}

.uc-corpNav-dropdownIcon {
  margin-left: 4px;
}

.uc-corpNav-dropdown-checkbox {
  display: none;
}

.uc-corpNav-flyout {
  display: none;
  position: absolute;
  top: calc(var(--navHeight) - 1px);
  padding-top: 14px;
  padding-bottom: 18px;
  min-width: 100%;
  max-height: calc(7 * var(--flyoutItemHeight) + 34px);
  overflow-y: auto;
  white-space: nowrap;
  background-color: var(--cx-color-background);
  transform: translateX(-10px);
}

.uc-corpNav-flyout--flipped {
  right: -10px;
}

.uc-corpNav-dropdown-checkbox:checked ~ .uc-corpNav-dropdown > .uc-corpNav-flyout,
.uc-corpNav-dropdown.is-active > .uc-corpNav-flyout {
  display: block;
}

.uc-corpNav-flyoutItem {
  padding: 0 30px 0 16px;
  height: var(--flyoutItemHeight);
  font-weight: var(--cx-font-weightRegular);
  color: var(--cx-color-textStrong);
  cursor: pointer;
}

.uc-corpNav-avatar {
  width: 44px;
}

.uc-corpNav-drawer {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: calc(var(--drawerWidth) * -1);
  width: var(--drawerWidth);
  height: 100vh;
  background-color: inherit;
  overflow-y: auto;
  transition: left 0.3s ease;
  z-index: var(--cx-zIndex-10);
  -webkit-overflow-scrolling: touch;
}

.uc-corpNav-drawerOpen {
  overflow-y: hidden;
}

.uc-corpNav-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: var(--cx-color-backgroundDark);
  opacity: 0.5;
  cursor: pointer;
  visibility: hidden;
  z-index: var(--cx-zIndex-9);
}

.uc-corpNav-drawer.is-active {
  left: 0;
}

.uc-corpNav-drawer.is-active ~ .uc-corpNav-backdrop {
  visibility: visible;
}

.uc-corpNav-drawerTop {
  display: flex;
  justify-content: space-between;
  margin: 16px 16px 32px;
  flex-shrink: 0;
}

.uc-corpNav-logo {
  color: inherit;
  fill: currentColor;
}

.uc-corpNav-close {
  padding: 4px;
  width: 24px;
  height: 24px;
  color: inherit;
  fill: currentColor;
  cursor: pointer;
}

.uc-corpNav-drawer .uc-corpNav-menuItem {
  padding-left: 16px;
  height: 40px;
  min-height: 40px;
  font-weight: var(--cx-font-weightRegular);
}

.uc-corpNav-label {
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.uc-corpNav-accordion {
  display: none;
}

.uc-corpNav-accordionHeader {
  position: relative;
  cursor: pointer;
}

.uc-corpNav-accordionHeader:after {
  content: '';
  position: absolute;
  top: 50%;
  right: 16px;
  margin-top: -8px;
  width: 16px;
  height: 16px;

  @mixin svgBgImg cx-icon-chevronDown_16x16 {
    path {
      fill: var(--cx-color-actionableLowEmph);
    }
  }
}

.uc-corpNav-accordion:checked ~ .uc-corpNav-accordionHeader:after {
  @mixin svgBgImg cx-icon-chevronUp_16x16 {
    path {
      fill: var(--cx-color-actionableActive);
    }
  }
}

.uc-corpNav-accordionMenu {
  height: 0;
  opacity: 0;
  overflow-y: hidden;
  -webkit-transition: opacity 200ms ease-out;
  transition: opacity 200ms ease-out;
}

.uc-corpNav-accordion:checked ~ .uc-corpNav-accordionMenu {
  height: auto;
  opacity: 1;
}

.uc-corpNav-auth {
  display: flex;
  margin: 16px;
}

.uc-corpNav-auth .uc-corpNav-authBtn:last-child {
  margin-left: 16px;
}

.uc-corpNav-auth button {
  flex: 1;
}

.uc-corpNav-phoneNumberMobile {
  display: none;
}

/* Start transparent styles block */
.uc-corpNav--transparent {
  position: absolute;
  border-color: transparent;
  color: var(--cx-color-onDarkTextStrong);
  background-color: transparent;
}

.uc-corpNav--transparent::before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  right: 0;
  bottom: -80%;
  left: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent);
}

.uc-corpNav--transparent .uc-corpNav-drawer {
  color: var(--cx-color-textStrong);
  background-color: var(--cx-color-background);
}

/* End transparent styles block */

/* Start location-lookup styles block */
.uc-locationLookup {
  margin: 4px 0 0;
  /* needed so statically positioned results is placed properly */
  align-self: flex-start;
  /* Sizes the component to a static width */
  /* Particularly so that flex wrapping tokens later still keeps consistent component width */
  width: 100%;
  min-width: 308px;
  max-width: 420px;
  /* needed so that inner clicks don't trigger on elements "underneath" the static location list */
  z-index: var(--cx-zIndex-3);
}

.uc-locationLookup-contentWrapper {
  display: flex;
  align-items: center;
  border: none;
  height: var(--locationLookupHeight);
  box-shadow: none;
}

.uc-locationLookup-inputContainer {
  display: flex;
  border-radius: 0px;
  padding: 0;
  flex: 1;
  height: 100%;
  overflow: hidden;
}

/* Modify font-size on tablet + desktop, to fit large amount of placeholder content */
/* The mobile view uses a different/shorter placeholder, so this is unneeded there */
@media (--mq-minWidth--md) {
  .uc-locationLookup-tokenContainer + .uc-locationLookup-input::placeholder {
    font-size: var(--cx-font-sizeSm);
  }
}

/* Start with hiding the inline magnifying glass that appears when the input is focused */
.uc-locationLookup-expandedSearchIcon {
  display: none;
  margin: 8px 8px 8px 16px;
}

/* Start with hiding the 'x' button that appears when the input is non-zero length and focused */
.uc-locationLookup-clearButton {
  display: none;
  border: 0;
  opacity: 0;
  visibility: hidden;
}

/*
 * Target {containerClass} button to override .uc-corpNav button
 */
.uc-locationLookup-searchButton {
  display: flex;
  justify-content: center;
  align-items: center;
  border: none;
  border-radius: 0px;
  padding: 0;
  width: 40px;
  height: var(--locationLookupHeight);
}

.uc-locationLookup-searchButton>.cx-icon {
  width: var(--cx-btn-iconWidth);
  height: var(--cx-btn-iconHeight);
}

.uc-locationLookup-inlineSearchIcon {
  width: var(--cx-btn-iconWidth);
  height: var(--cx-btn-iconHeight);
}

.uc-locationLookup-mobileInput {
  display: flex;
  justify-content: space-between;
  position: relative;
  border: none;
  border-radius: 0;
  flex-grow: 1;
  height: 40px;
}

/* Mobile styles */
@media (--mq-maxWidth--sm) {
  .uc-locationLookup {
    position: fixed;
    max-width: 100vw;
    opacity: 0;
    visibility: hidden;
  }

  .uc-locationLookup-mobileInput {
    display: flex;
    margin: auto;
  }

  .uc-locationLookup-searchButton {
    position: absolute;
    right: 0;
  }

  .uc-corpNav-menuItem {
    font-size: 16px;
  }

  .uc-corpNav-phoneNumberMobile {
    display: inherit;
  }
}

/* Mobile styles with location lookup enabled */
.uc-corpNav--lookupLocationLookupEnabled {
  .uc-corpNav-menuWrapper,
  .uc-corpNav-a.uc-corpNav-logotype {
    @media (--mq-maxWidth--sm) { /* stylelint-disable-line max-nesting-depth */
      display: none;
    }
  }

  .uc-corpNav-hamburger {
    @media (--mq-maxWidth--sm) { /* stylelint-disable-line max-nesting-depth */
      border-right: 1px solid rgba(0, 0, 0, 0.15);
    }
  }
}

.uc-corpNav--transparent {
  .uc-locationLookup-mobileInput .uc-locationLookup-mobileContent {
    color: var(--cx-color-mediumLightNeutral);
  }

  .uc-locationLookup-mobileInput .uc-locationLookup-searchButton .cx-icon {
    fill: var(--cx-color-onDarkActionableLowEmph);
  }
}

/* critical CSS for hiding mobile/non mobile DOM content as needed */
/* Hide the element when window is above mobile breakpoint */
@media not all and (--mq-maxWidth--sm) {
  .uc-typeahead-hideOnNonMobile {
    display: none !important;
  }
}

/* Hide the element when window is below mobile breakpoint */
@media all and (--mq-maxWidth--sm) {
  .uc-typeahead-hideOnMobile {
    display: none !important;
  }
}

.uc-locationLookup-mobileContent {
  position: absolute;
  margin: 0;
  border: none;
  padding: var(--cx-verticalPadding--md) var(--cx-horizontalPadding--md);
  width: calc(100% - 40px);
  height: 100%;
  background: none;
  color: var(--cx-color-mediumNeutral); /* placeholder color */
  outline: none;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
  text-align: left;
}

/* End location-lookup styles block */

@media (--tablet-viewport) {
  .uc-corpNav-logotype {
    padding-left: 16px;
    width: 152px; /* 16px left padding + 112px svg + 24px right padding */
  }

  /* inherit size from svg width & height attrs */
  .uc-corpNav-logotype svg {
    width: auto;
    height: auto;
  }

  .uc-corpNav-menu {
    display: flex;
  }

  .uc-corpNav-userMenu::before {
    content: '';
    position: relative;
    top: 17px;
    left: -10px;
    border-left: 1px solid;
    height: 16px;
    opacity: 0.15;
  }

  .uc-corpNav-drawer,
  .uc-corpNav-hamburger {
    display: none;
  }
}

@media (hover: hover) {
  .uc-corpNav-menuItem:hover {
    color: var(--cx-color-actionableLowEmphHover);
    background: var(--cx-color-faintNeutral);
  }

  .uc-corpNav-menuItem--disabled:hover {
    color: inherit;
    background-color: transparent;
  }
}

/*
 * Fix clicks on the documentElement (used to close dropdowns) not being detected on iOS
 * See: https://gravitydept.com/blog/js-click-event-bubbling-on-ios &
 * https://stackoverflow.com/a/47818418
 */
@supports (-webkit-overflow-scrolling: touch) {
  body {
    cursor: pointer;
  }
}

.uc-corpNav-menuItem:active,
.uc-corpNav-menuItem.is-active,
.uc-corpNav-flyoutItem.is-selected {
  color: var(--cx-color-selectedText);
  background-color: var(--cx-color-selectedBackground);
}

.uc-corpNav-menu > .uc-corpNav-a:active,
.uc-corpNav-menu > .uc-corpNav-a.is-active,
.uc-corpNav-menu > .uc-corpNav-button:active,
.uc-corpNav-menu > .uc-corpNav-button.is-active {
  border-bottom-color: var(--cx-color-actionableActive);
  color: var(--cx-color-actionableActive);
  background-color: transparent;
}

@media (--mq-hover) {
  .uc-corpNav-menu > .uc-corpNav-a:hover:active,
  .uc-corpNav-menu > .uc-corpNav-a:hover.is-active,
  .uc-corpNav-menu > .uc-corpNav-button:hover:active,
  .uc-corpNav-menu > .uc-corpNav-button:hover.is-active {
    background-color: var(--cx-color-faintNeutral);
  }
}

.uc-corpNav-menuItem--disabled:active {
  color: var(--cx-color-textStrong);
  background-color: var(--cx-color-white);
}

.uc-corpNav-dropdown-checkbox:checked ~ .uc-corpNav-dropdown,
.uc-corpNav-dropdown:active,
.uc-corpNav-dropdown.is-active {
  color: var(--cx-color-actionableActive);
  background-color: var(--cx-color-white);
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.2));
}

.uc-corpNav-menuItem.is-active,
.uc-corpNav-menuItem.is-selected,
.uc-corpNav-accordion:checked ~ .uc-corpNav-accordionHeader {
  font-weight: var(--cx-font-weightMedium);
}

.uc-corpNav-accordion:checked ~ .uc-corpNav-accordionHeader,
.uc-corpNav-accordion:checked ~ .uc-corpNav-accordionMenu {
  background-color: var(--cx-color-faintNeutral);
}

.uc-corpNav-accordion:checked ~ .uc-corpNav-accordionHeader {
  color: var(--cx-color-actionableActive);
}


@media (min-width: 500px) {
  .uc-corpNav-menu {
    display: flex;
  }
}

.uc-corpNav-logotype {
  padding-left: 16px;
}

.uc-corpNav-flyout.Agents {
  transform: translateX(-84px);
}
