:root {
  --wsc-locations-blue: #0f67bd;
  --wsc-locations-navy: #004783;
  --wsc-locations-green: #61d56f;
}

.wsc-locations-trigger[hidden],
.wsc-locations-modal[hidden],
.wsc-locations-panel[hidden] {
  display: none !important;
}

.wsc-locations-trigger {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 2px solid #fff;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  letter-spacing: .02em;
  line-height: 1;
  min-height: 42px;
  padding: 10px 14px;
  position: relative;
  text-transform: uppercase;
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
  white-space: nowrap;
  z-index: 2;
}

.wsc-locations-trigger:hover,
.wsc-locations-trigger:focus-visible {
  background: #fff;
  color: var(--wsc-locations-blue);
  outline: none;
  transform: translateY(-1px);
}

.wsc-locations-trigger .dashicons {
  font-size: 22px;
  height: 22px;
  line-height: 22px;
  width: 22px;
}

#masthead .site-header-primary-section-right {
  gap: 10px;
}

@media (min-width: 922px) {
  #masthead .site-primary-header-wrap.ast-container {
    max-width: 1520px;
  }

  #masthead .main-header-menu > .menu-item > .menu-link {
    font-size: 13px;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
}

.wsc-locations-modal {
  align-items: center;
  display: flex;
  inset: 0;
  justify-content: center;
  opacity: 0;
  padding: 24px;
  pointer-events: none;
  position: fixed;
  transition: opacity .22s ease;
  z-index: 100000;
}

.wsc-locations-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.wsc-locations-modal__backdrop {
  background: rgba(0, 29, 68, .72);
  inset: 0;
  position: absolute;
}

.wsc-locations-modal__dialog {
  background: var(--wsc-locations-blue);
  border-radius: 12px;
  box-shadow: 0 30px 90px rgba(0, 20, 48, .38);
  color: #fff;
  max-height: calc(100vh - 48px);
  max-width: 1000px;
  overflow: auto;
  padding: 48px 50px 46px;
  position: relative;
  transform: translateY(14px) scale(.985);
  transition: transform .22s ease;
  width: 100%;
}

.wsc-locations-modal.is-open .wsc-locations-modal__dialog {
  transform: translateY(0) scale(1);
}

.wsc-locations-modal__close {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  height: 42px;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 20px;
  top: 14px;
  width: 42px;
}

.wsc-locations-modal__close:hover,
.wsc-locations-modal__close:focus-visible {
  background: rgba(255, 255, 255, .12);
  border-radius: 50%;
  outline: 2px solid rgba(255, 255, 255, .75);
  outline-offset: 2px;
}

.wsc-locations-modal__close .dashicons {
  font-size: 34px;
  height: 34px;
  line-height: 34px;
  width: 34px;
}

.wsc-locations-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 0 auto 26px;
  max-width: 820px;
  padding: 0 28px;
}

.wsc-locations-tabs__button {
  appearance: none;
  background: var(--wsc-locations-navy);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  flex: 1 1 150px;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  max-width: 205px;
  min-height: 58px;
  padding: 12px 20px;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.wsc-locations-tabs__button:hover,
.wsc-locations-tabs__button:focus-visible {
  background: #07589f;
  outline: 2px solid rgba(255, 255, 255, .75);
  outline-offset: 2px;
  transform: translateY(-1px);
}

.wsc-locations-tabs__button.is-active {
  background: var(--wsc-locations-green);
  color: #06488e;
}

.wsc-locations-panels {
  border: 3px solid rgba(255, 255, 255, .26);
  border-radius: 18px;
  min-height: 250px;
  padding: 34px 58px;
}

.wsc-locations-panel__grid {
  display: grid;
  gap: 16px 42px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}

.wsc-locations-country {
  align-items: center;
  color: #fff;
  display: flex;
  font-family: inherit;
  font-size: 18px;
  gap: 11px;
  line-height: 1.25;
  min-width: 0;
}

.wsc-locations-country__flag-wrap {
  align-items: center;
  background: rgba(255, 255, 255, .16);
  border-radius: 50%;
  display: inline-flex;
  flex: 0 0 26px;
  height: 26px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  width: 26px;
}

.wsc-locations-country__flag {
  height: 26px;
  object-fit: cover;
  position: relative;
  width: 26px;
  z-index: 2;
}

.wsc-locations-country__flag-wrap .dashicons {
  font-size: 18px;
  height: 18px;
  line-height: 18px;
  position: absolute;
  width: 18px;
  z-index: 1;
}

.wsc-locations-country__flag-wrap.is-fallback .dashicons {
  position: static;
}

.wsc-locations-panel__empty {
  color: rgba(255, 255, 255, .82);
  font-size: 18px;
  margin: 0;
  text-align: center;
}

body.wsc-locations-is-open {
  overflow: hidden;
}

@media (max-width: 921px) {
  .wsc-locations-trigger {
    height: 42px;
    min-height: 42px;
    padding: 8px 12px;
  }

  .wsc-locations-trigger__label {
    display: none;
  }

  .wsc-locations-modal {
    padding: 12px;
  }

  .wsc-locations-modal__dialog {
    max-height: calc(100vh - 24px);
    padding: 56px 20px 28px;
  }

  .wsc-locations-tabs {
    gap: 9px;
    margin-bottom: 20px;
    padding: 0;
  }

  .wsc-locations-tabs__button {
    flex-basis: calc(50% - 6px);
    font-size: 15px;
    min-height: 48px;
    padding: 10px 12px;
  }

  .wsc-locations-panels {
    border-width: 2px;
    min-height: 220px;
    padding: 24px 22px;
  }

  .wsc-locations-panel__grid {
    gap: 14px 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wsc-locations-country {
    font-size: 15px;
  }
}

@media (max-width: 520px) {
  .wsc-locations-panel__grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .wsc-locations-modal,
  .wsc-locations-modal__dialog,
  .wsc-locations-trigger,
  .wsc-locations-tabs__button {
    transition: none;
  }
}

