/* Center Megamenu */

@media (min-width: 911px) {
  .header__container > .header__column {
    flex-grow: 1;
  }
  
  .header__container > .header__column > .header__row-1 {
    justify-content: space-between;
  }
  
  .header__container > .header__column > .header__row-1 > .header__navigation {
    display: flex;
    justify-content: center;
    flex-grow: 1;
  }  
}

/* Megamenu */

.megamenu--mobile {
  display: none;
  opacity: 0;
  visibility: hidden;
}

@media (max-width: 910px) {
  .megamenu--desktop {
    display: none;
    opacity: 0;
    visibility: hidden;
  }   

  .header__navigation.open .megamenu--mobile {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: calc(100vh - 115px);
    opacity: 1;
    visibility: visible;
  }
}

.megamenu__wrapper {
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

/* Megamenu Items */

.megamenu__item {
  display: inline-block;
  position: relative;
}

.megamenu__item--level-1 {
  padding: 15px 10px;
}

.megamenu__item--level-2 {
  padding: 0;
}

.megamenu__item--title {
  min-height: 2rem;
}

.megamenu__item--title-placeholder {
  min-height: 2rem;
}

@media (max-width: 910px) {
  .megamenu__item {
    display: block;
  }  

  .megamenu__item--level-1 {
    padding: 0;
  }

  .megamenu__item--level-2:not(.megamenu__item--title) > .megamenu__link {
    padding: 7px 20px 7px 40px;
  }
}

/* Megamenu Links */

.megamenu__link {
  color: #74819D;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.megamenu__link:hover,
.megamenu__link:focus,
.megamenu__link:active {
  color: #00c8c8;
}

.megamenu__link--is-active {
  color: #00c8c8 !important;
}

.megamenu__item--level-1 > .megamenu__link {
  color: #000000;
  font-size: 16px;
}

.megamenu__item--level-1 > .megamenu__link:hover,
.megamenu__item--level-1 > .megamenu__link:focus,
.megamenu__item--level-1 > .megamenu__link:active {
  color: #00c8c8;
}

.megamenu__link--title {
  font-size: 16px;
}

.megamenu__link--is-black {
  color: #000000;
}

.megamenu__link--is-black:hover,
.megamenu__link--is-black:focus,
.megamenu__link--is-black:active {
  color: #00c8c8;
}

.megamenu__link--has-icon {
  align-items: center;
  display: flex;
  flex-direction: row;
}

.megamenu__link-icon {
  margin-right: 0.5rem;
  max-height: 1rem;
  width: auto;
}

@media (max-width: 910px) {
  .megamenu__link {
    display: block;
    font-size: 16px;
    padding: 10px 20px;
  }

  .megamenu__item--level-1 > .megamenu__link {
    font-size: 20px;
    padding: 15px 20px;
  }
  
  .megamenu__link-icon {
    display: none;
  }
}

/* Toggle Buttons */

.megamenu__child-toggle-icon {
  background-image: url('data:image/svg+xml;utf8,<svg version="1.0" xmlns="http://www.w3.org/2000/svg" id="elements__svg-arrow" fill="%2300C8C8" viewBox="0 0 320 512" width="7px" height="11px" aria-hidden="true"><g id="layer1"><path d="M34.52 239.03L228.87 44.69c9.37-9.37 24.57-9.37 33.94 0l22.67 22.67c9.36 9.36 9.37 24.52.04 33.9L131.49 256l154.02 154.75c9.34 9.38 9.32 24.54-.04 33.9l-22.67 22.67c-9.37 9.37-24.57 9.37-33.94 0L34.52 272.97c-9.37-9.37-9.37-24.57 0-33.94z"></path></g></svg>');
  background-position: 25% 75%;  
  background-repeat: no-repeat;
  cursor: pointer;
  display: inline-block;
  height: 13px;
  transform: rotate(-90deg);
  width: 16px;    
}

@media (max-width: 910px) {
  .megamenu__child-toggle {
    align-items:  center;
    display:  flex;
    height: 52px;
    justify-content:  flex-end;
    padding: 7px 20px !important;
    position: absolute;
    right: 0;
    top: 0;
    width: 33.333333333%;
  }

  .megamenu__child-toggle-icon {
    background-image: url('data:image/svg+xml;utf8,<svg version="1.1" id="Capa_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="16px" height="24px" fill="%23000" viewBox="0 0 451.846 451.847" style="enable-background:new 0 0 451.846 451.847;" xml:space="preserve"> <g> <path d="M345.441,248.292L151.154,442.573c-12.359,12.365-32.397,12.365-44.75,0c-12.354-12.354-12.354-32.391,0-44.744 L278.318,225.92L106.409,54.017c-12.354-12.359-12.354-32.394,0-44.748c12.354-12.359,32.391-12.359,44.75,0l194.287,194.284 c6.177,6.18,9.262,14.271,9.262,22.366C354.708,234.018,351.617,242.115,345.441,248.292z"/></g></svg>');
    background-position: center;
    box-shadow: 0px -0.709347px 3.54674px rgba(31, 37, 89, 0.01), 0px 2.83739px 6.38413px rgba(38, 54, 200, 0.08);
    height: 29px;
    transition: transform 0.4s;
    transform: rotate(0deg);
    width: 29px;
  }

  .megamenu__child-toggle--open .megamenu__child-toggle-icon {
    transform: rotate(90deg);
  }
}

/* Dropdowns */

.megamenu__dropdown {
  background-color: #ffffff;
  border: 1px solid rgba(194, 201, 209, 0.20);
  border-radius: 15px;
  box-shadow: 3px 4px 6px 0px rgba(194, 201, 209, 0.30);
  display: none;
  flex-direction: row;
  left: 0;
  padding: 0.5rem;
  position: absolute;
  top: 100%;
}

.megamenu__item--open .megamenu__dropdown {
  display: flex;
}

.megamenu__dropdown-column {
  padding: 1rem;
}

@media (max-width: 910px) {
  .megamenu__dropdown {
    border: none;
    border-radius: 0;
    box-shadow: none;
    flex-direction: column;
    padding: 0;
    position: relative;
  }

  .megamenu__dropdown-column {
    padding: 0;
  }
}

@media (min-width: 911px) and (max-width: 1450px) {
  .megamenu__dropdown {
    transform: translateX(-25%);
  }
}

/* Submenu */

.megamenu__submenu {
  display: flex;
  flex-direction: column;
  height:  100%;
  justify-content: flex-start;
  margin: 0;
  padding: 0;
  min-width: 120px;
  max-width: 240px;
}

.megamenu__item--valign-bottom-0 {
  margin-top: auto;
}

@media (max-width: 910px) {
  .megamenu__submenu {
    width: auto;
  }
}

/* CTA */

.megamenu__cta {
  background: linear-gradient(154deg, #86F7B9 6.3%, #00C8C8 65.86%);
  border-radius: 8px;
  box-shadow: 3px 4px 6px 0px rgba(194, 201, 209, 0.30);
  padding: 25px;
  text-wrap: wrap;
  width: 240px;
}

.megamenu__cta-title {
  color: #ffffff;
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  margin: 0;
}

.megamenu__cta-subtitle {
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.megamenu__cta-content,
.megamenu__cta-content div,
.megamenu__cta-content p {
  color: #000000;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.48;
}

.megamenu__cta .button.btn-primary-white {
  background-color: #ffffff;
}

@media (max-width: 910px) {
  .megamenu__cta {
    display: none;
    opacity: 0;
    visibility; hidden;
  }
}

/* Helper / Utilities */

.megamenu .no-button,
.megamenu .no-button:hover,
.megamenu .no-button:focus,
.megamenu .no-button:active {
  background: none;
  border: none;
  border-radius: 0;
  color: initial;
  font-family: inherit;
  font-size: inherit;
  font-style: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  margin-bottom: 0;
  padding: 0;
  text-align: left;
  text-decoration: none;
  transition: none;
}

.megamenu .show-for-sr {
  border: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  height: 1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}

/* Header Toggle - Note that the native menu has options for it */

@media (max-width: 910px) {
  .header__navigation--toggle {    
    background-color: #00C8C8;
    background-image: url('data:image/svg+xml;utf8,<svg width="20" height="8" viewBox="0 0 20 8" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="0.984375" y="0.00732422" width="18.028" height="1.5" rx="0.75" fill="white"/><rect x="0.984375" y="6.4928" width="18.028" height="1.5" rx="0.75" fill="white"/></svg>');
    background-position: center;
    background-repeat: no-repeat;
    background-size: 18px;
    border-radius: 2px;
    cursor: pointer;
    display: block !important;
    height: 34px;
    opacity: 1;
    padding: 10px !important;
    position: absolute;
    right: 20px;
    top: -40px;
    transition: all ease 0.35s !important;
    visibility: visible;
    width: 34px;
  }

  .header__navigation--toggle:hover,
  .header__navigation--toggle:active,
  .header__navigation--toggle:focus{
    transform: scale(1.1);
  }

  .header__close--toggle {
    background-color: #00C8C8;
    background-image: url('data:image/svg+xml;utf8,<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><rect x="1.15625" y="0.0958252" width="18.028" height="1.5" rx="0.75" transform="rotate(45 1.15625 0.0958252)" fill="white"/><rect x="0.09375" y="12.8435" width="18.028" height="1.5" rx="0.75" transform="rotate(-45 0.09375 12.8435)" fill="white"/></svg>');
    background-repeat: no-repeat;
    background-size: 14px;
    background-position: center;
    border-radius: 2px;
    height: 34px !important;
    margin-right: 0;
    margin-top: 16px;
    opacity: 0;
    padding: 10px !important;
    position: absolute;
    right: 20px;
    top: -40px;
    transition: all ease 0.35s !important;
    visibility: hidden;
    width: 34px !important;
  }

  .header__close--toggle:hover,
  .header__close--toggle:active,
  .header__close--toggle:focus{
    transform: scale(1.1);
  }
}

/* Accessibility */

@media (min-width: 911px) {
  .megamenu__link:focus,
  .megamenu__child-toggle:focus {
    outline: 2px solid #26ffec;
  }
}

/* Mobile Buttons */

.megamenu__mobile-buttons {
  align-items: center;
  background-color: #ffffff;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content:  center;
  margin: 0 -0.5rem 0 -0.5rem;
  padding: 2rem 1rem 5rem 1rem;
}

.megamenu__mobile-button {
  display: flex;
  flex: 1;
  padding: 0.5rem;
}

.custom-button {
  width: 100%
}