/* Legacy styles */
.css-79elbk {
  margin-top: 60px;
}

.mdl-layout__container {
  height: initial !important;
}

.sqs-block.code-block.sqs-block-code {
  z-index: 999;
}

.header-logo__wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.header-logo__link {
  margin-left: 4px;
  color: #005472;
}

.header-logo__link:hover {
  color: #e41c62;
  -webkit-transition: all 0.7s;
  -o-transition: all 0.7s;
  transition: all 0.7s;
}

.location-topic-picker__container {
  z-index: 999;
  background-color: #ffffff;
  padding: 10px 5vw;
  vertical-align: middle;
  font-family: "Helvetica", "Arial", sans-serif;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
}

.location-topic-picker__container.square-space-cms {
  background-color: transparent;
  padding: 0;
}

.square-space-cms *::-moz-selection {
  background: #b3d4fc;
  text-shadow: none;
}

.square-space-cms *::selection {
  background: #b3d4fc;
  text-shadow: none;
}

/* Add a background color to the top navigation */
.location-topic-picker__wrapper {
  background-color: #ffffff;
  background-color: transparent;
}

.square-space-cms .location-topic-picker__wrapper {
  margin: 0 auto;
  z-index: 9999;
}

/* Style the links inside the navigation bar */
.location-topic-picker__wrapper a {
  float: left;
  display: block;
  text-align: center;
  text-decoration: none;
  color: #484747;
  font-size: 16px;
  -webkit-transition: all 0.7s;
  -o-transition: all 0.7s;
  transition: all 0.7s;
}

.location-topic-picker__form-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  width: 100%;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  margin: 0 auto;
  background-color: #ffffff;
  color: #484747;
  font-size: 14px;
}

.square-space-cms .location-topic-picker__form-wrapper {
  background: transparent;
}

.location-topic-picker__location-picker {
  width: 220px;
  border: 1px solid #119eb9;
  color: #484747;
  margin: 0 15px;
  border-radius: 8px;
  -webkit-box-shadow: none;
  box-shadow: none;
  height: 33px;
  line-height: 33px;
  padding: 0 10px;
  font-size: 14px;
}

.location-topic-picker__location-picker:focus {
  outline: none;
}

.location-topic-picker__location-picker::-moz-selection {
  background-color: transparent;
  color: #484747;
}

.location-topic-picker__location-picker::selection {
  color: #484747;
}

.location-topic-picker__location-picker::-webkit-input-placeholder {
  color: #484747;
}

.location-topic-picker__location-picker::-moz-placeholder {
  color: #484747;
}

.location-topic-picker__location-picker:-ms-input-placeholder {
  color: #484747;
}

.location-topic-picker__location-picker::-ms-input-placeholder {
  color: #484747;
}

.location-topic-picker__location-picker::placeholder {
  color: #484747;
}

.location-topic-picker__picker-label {
  padding-left: 15px;
  margin: 0;
  color: #119eb9;
}

.location-topic-picker__topic-picker {
  width: 285px;
  height: 33px;
  border: 1px solid #119eb9;
  background-color: #ffffff;
  border-radius: 8px;
  -webkit-box-shadow: none;
  box-shadow: none;
}

.location-topic-picker__submit-btn {
  border: none;
  height: 33px;
  border-radius: 8px;
  background-color: #119eb9;
  color: white;
  font-weight: 600;
  font-size: 16px;
  margin-left: 15px;
  padding: 8px 15px;
}

.location-topic-picker__submit-btn:hover,
.location-topic-picker__submit-btn:focus {
  cursor: pointer;
  background-color: #0f8298;
  outline: none;
}

/* Location autocomplete drawdown styles */
.location-topic-picker__autocomplete-suggestions {
  display: none;
  position: absolute;
  white-space: nowrap;
  overflow-y: scroll;
  overflow-x: hidden;
  max-height: 45vh;
  -o-text-overflow: ellipsis;
  text-overflow: ellipsis;
  text-align: left;
  cursor: default;
  border-top: 0;
  background: #fff;
  font-size: 14px;
  -webkit-box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.1);
  box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.1);
  line-height: 1.5em;
  font-weight: 400;
  z-index: 9999;
}

.location-topic-picker__autocomplete-suggestions .autocomplete-suggestion {
  line-height: 33px;
  padding-left: 10px;
}

.location-topic-picker__autocomplete-suggestions b {
  font-weight: normal;
  color: #119eb9;
}
.location-topic-picker__autocomplete-suggestions .selected {
  background: #f0f0f0;
}

/* all Topics dropdown Input styling */
.location-topic-picker__topic-picker .input {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  height: 33px;
  width: 100%;
}

.location-topic-picker__topic-picker .input__active {
  border-color: #119eb9;
  border-bottom-left-radius: 0px !important;
  border-bottom-right-radius: 0px !important;
}

.location-topic-picker__topic-picker .input__placeholder {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
  -ms-flex-direction: row;
  flex-direction: row;
  -webkit-box-pack: justify;
  -ms-flex-pack: justify;
  justify-content: space-between;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.location-topic-picker__topic-picker .input__selected {
  padding-left: 10px;
  margin: 0;
  font-size: 14px;
  line-height: 33px;
  color: #484747;
}

.location-topic-picker__topic-picker .input:hover {
  cursor: pointer;
}

/* Dropdown styling */
.location-topic-picker__topic-picker .structure {
  display: block;
  height: 45vh;
  width: 285px;
  overflow-y: scroll;
  background-color: white;
  -webkit-box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.1);
  box-shadow: 0 5px 10px 0 rgba(0, 0, 0, 0.1);
  font-size: 14px;
}

.location-topic-picker__topic-picker .structure .menu-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  padding: 0 5px;
}

.location-topic-picker__topic-picker .structure .menu-header {
  font-weight: bold;
}

.location-topic-picker__topic-picker .structure .menu-item {
  padding: 3px 3px 3px 5px;
}

.location-topic-picker__topic-picker .structure .menu-item:hover {
  background: #f0f0f0;
  cursor: pointer;
}

.location-topic-picker__topic-picker .hide {
  display: none;
}

.location-topic-picker__topic-picker .topic-disabled {
  color: gray;
}

.location-topic-picker__topic-picker .arrow-icon {
  margin: 10px;
}

.location-topic-picker__topic-picker select {
  /* make arrow and background */
  background: -o-linear-gradient(45deg, transparent 50%, #119eb9 50%),
    -o-linear-gradient(315deg, #119eb9, 50%, transparent 50%);
  background: linear-gradient(45deg, transparent 50%, #119eb9 50%),
    linear-gradient(135deg, #119eb9, 50%, transparent 50%);
  /* linear-gradient(to right, rgb(255, 255, 255), rgb(255, 255, 255)); */
  background-position: calc(100% - 16px) calc(-0.3em + 10px), calc(100% - 9px) calc(-0.3em + 10px),
    100% 0;
  background-size: 7px 7px, 7px 7px, 2.5em 2.5em;
  background-repeat: no-repeat;
  padding: 0.2em;
  /* styling and reset */
  border: thin solid blue;
  /* reset */
  border-radius: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
}

/* ----------- Tablets ----------- */
/* Portrait and Landscape */
@media screen and (max-device-width: 1024px) {
  .location-topic-picker__picker-label {
    display: none;
  }

  .css-79elbk {
    margin-top: 80px;
  }
}

@media screen and (max-device-width: 920px) {
  .location-topic-picker__container {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
  }

  .location-topic-picker__wrapper {
    margin-top: 15px;
  }

  .css-79elbk {
    margin-top: 108px;
  }
}

/* ----------- Phones ----------- */
/* Portrait and Landscape */

@media screen and (max-device-width: 690px) {
  .location-topic-picker__wrapper {
    width: 100%;
  }

  .location-topic-picker__form-wrapper {
    width: 100%;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: start;
    -ms-flex-align: start;
    align-items: flex-start;
    background: #ffffff;
  }

  .location-topic-picker__location-picker,
  .location-topic-picker__topic-picker {
    margin: 0 0 15px 0;
    width: 100%;
    font-size: 16px;
  }

  .location-topic-picker__topic-picker .input__selected {
    font-size: 16px;
  }

  .square-space-cms .location-topic-picker__location-picker {
    padding: 0 0 0 10px;
    width: calc(100% - 10px);
  }

  .location-topic-picker__submit-btn {
    width: 100%;
    max-width: 185px;
    margin: 0 auto;
  }

  .location-topic-picker__topic-picker .structure {
    width: 100%;
    height: 290px;
    font-size: 16px;
  }

  /* overflow inherited styles  */
  .mdl-layout__content {
    z-index: 21;
  }

  .css-79elbk {
    margin-top: 250px;
  }
}
