/* Storefront header: announcement + single main row (logo | search | actions). */

.mo-announcement .message {
  padding: 5px 15px;
  font-size: 11px;
  line-height: 18px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.mo-header-top {
  padding: 16px 0;
}

.mo-header-top__row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 48px;
}

.mo-header-top__logo .header__heading {
  margin: 0;
  line-height: 0;
}

.mo-header-top__logo img {
  display: block;
  width: 150px;
  height: auto;
}

/* Search */
.mo-header-search.header-search {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  justify-self: center;
}

.mo-header-search .search-bar {
  height: 44px;
  background-color: #f5f5f5;
  border: 1px solid transparent;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background-color .2s ease;
}

.mo-header-search .search-bar:focus-within {
  background-color: #ffffff;
  border-color: #232323;
}

.mo-header-search .search-bar .input-group-field {
  height: 100%;
  width: calc(100% - 48px);
  padding: 0 18px;
  font-size: 13px;
  letter-spacing: .02em;
}

.mo-header-search .search-bar .input-group-field::placeholder {
  color: #8a8a8a;
}

.mo-header-search .search-bar .icon-search {
  min-width: 48px;
  height: 100%;
  padding: 0 14px;
  border: 0;
  align-items: center;
  justify-content: center;
}

.mo-header-search .search-bar .icon-search svg {
  width: 18px;
  height: 18px;
  fill: #232323;
}

.mo-header-search .quickSearchResultsWrap {
  left: 0;
  right: 0;
  width: 100%;
  min-width: 520px;
}

/* Actions */
.mo-header-actions.header__iconItem {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
}

.mo-header-actions .mo-header-locale {
  display: flex;
  align-items: center;
}

.mo-header-actions .header__icon.mo-header-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 0;
  font-size: 12px;
  line-height: 1.2;
  color: #232323;
  background: none;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}

.mo-header-actions .header__icon.mo-header-action > svg {
  width: 21px;
  height: 21px;
  margin: 0;
  top: 0;
  fill: #232323;
  flex: none;
}

.mo-header-actions .header__icon .mo-header-action__label {
  font-size: 12px;
  letter-spacing: .02em;
  color: #232323;
}

.mo-header-actions .header__icon .mo-count {
  position: absolute;
  top: -7px;
  left: 13px;
  min-width: 17px;
  height: 17px;
  margin: 0;
  padding: 0 4px;
  border-radius: 9px;
  background-color: #232323;
  color: #ffffff;
  font-size: 10px;
  font-weight: 500;
  line-height: 17px;
  letter-spacing: 0;
  text-align: center;
}

.mo-header-actions .header__icon .mo-count .text-count {
  top: 0;
  color: #ffffff;
  font-size: 10px;
}

.mo-header-actions .mo-count[hidden],
.header-mobile .mo-count[hidden] {
  display: none !important;
}

.mo-header-action__stack {
  display: inline-flex !important;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.mo-header-actions .header__icon .mo-header-action__eyebrow {
  font-size: 11px;
  line-height: 14px;
  color: #8a8a8a;
}

.mo-header-actions .header__icon .mo-header-action__name {
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  line-height: 17px;
  font-weight: 600;
  color: #232323;
}

.mo-header-actions .header__icon:hover svg {
  transform: none;
}

/* Account dropdown */
.mo-account-menu {
  position: relative;
}

.mo-account-menu__caret {
  display: inline-flex !important;
  margin-left: -2px;
}

.mo-account-menu__caret svg {
  width: 9px;
  height: 9px;
  fill: #232323;
  transform: rotate(90deg);
  transition: transform .2s ease;
}

.mo-account-menu.is-open .mo-account-menu__caret svg {
  transform: rotate(-90deg);
}

.mo-account-menu__panel {
  position: absolute;
  top: calc(100% + 16px);
  right: 0;
  z-index: 40;
  width: 264px;
  padding: 6px 0 0;
  background: #ffffff;
  border: 1px solid #ececec;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  text-align: left;
}

.mo-account-menu__panel[hidden] {
  display: none;
}

.mo-account-menu__head {
  display: flex;
  flex-direction: column;
  padding: 12px 20px 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid #f0f0f0;
}

.mo-account-menu__head strong {
  font-size: 13px;
  font-weight: 600;
  line-height: 20px;
  color: #232323;
}

.mo-account-menu__head span {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  line-height: 18px;
  color: #8a8a8a;
}

.mo-account-menu__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 20px;
  font-size: 13px;
  line-height: 20px;
  color: #232323;
  text-decoration: none;
}

.mo-account-menu__item:hover,
.mo-account-menu__item:focus-visible {
  background-color: #f7f7f7;
  color: #232323;
  outline: none;
}

.mo-account-menu__item svg {
  width: 16px;
  height: 16px;
  flex: none;
  fill: #4d4d4d;
}

.mo-account-menu__item svg path {
  fill: #4d4d4d;
}

.mo-account-menu__logout {
  margin: 8px 0 0;
  padding: 12px 20px 16px;
  border-top: 1px solid #f0f0f0;
}

.mo-account-menu__logout button {
  width: 100%;
  height: 40px;
  border: 1px solid #232323;
  background: #232323;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}

.mo-account-menu__logout button:hover {
  background: #ffffff;
  color: #232323;
}

@media (max-width: 1279px) {
  .mo-header-top__row {
    column-gap: 32px;
  }
  .mo-header-actions.header__iconItem {
    gap: 20px;
  }
  .mo-header-actions .header__icon .mo-header-action__label {
    display: none !important;
  }
}

@media (max-width: 1100px) {
  .mo-header-actions .header__icon .mo-header-action__stack {
    display: none !important;
  }
  .mo-header-search .quickSearchResultsWrap {
    min-width: 0;
  }
}

/* Mobile header icons */
.header-mobile .header-mobile--right .header-mobile--icon + .header-mobile--icon {
  margin-left: 18px;
  padding-right: 0;
}

.header-mobile .mo-mobile-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-mobile .mo-mobile-icon svg {
  width: 22px;
  height: 22px;
  fill: #232323;
}

.header-mobile .mo-mobile-icon .mo-count {
  position: absolute;
  top: -6px;
  right: -9px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: #232323;
  color: #ffffff;
  font-size: 10px;
  line-height: 16px;
  text-align: center;
}