/* Matches the storefront header (sections/mega-header). */
.main-password__header {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 18px 48px;
  background-color: rgb(251, 246, 238);
  border-bottom: 1px solid rgb(237, 228, 211);
  font-family: Archivo, sans-serif;
}

@media (max-width: 959px) {
  .main-password__header {
    padding: 14px 20px;
  }
}

.main-password__header .password-modal__trigger {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 99px;
  background: rgb(32, 21, 18);
  color: rgb(251, 246, 238);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
}

.main-password__header .password-modal__trigger::-webkit-details-marker {
  display: none;
}

.main-password__header .password-modal__trigger:focus-visible {
  outline: 2px solid rgb(186, 7, 7);
  outline-offset: 3px;
}

.main-password__header .password-modal__trigger svg {
  width: 14px;
  height: 14px;
}

.main-password__header .password-modal .modal__content {
  --modal-animation-name: animation-fade-in;

  inset-block: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  border: 0;
}

.main-password__header .password-modal__detail {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 430px;
  height: 100%;
  padding: 45px 20px;
  margin: auto;
  text-align: center;
}

.main-password__header .password-modal__detail-desc {
  margin-block-start: -10px;
}

.main-password__header .password-modal__detail-tip {
  margin-block-start: 20px;
}

.main-password__header .password-modal__form {
  display: block;
  width: 100%;
  text-align: start;
}

.main-password__header .password-modal__field {
  margin-block-end: 0;
}

.main-password__header .password-modal__field + .button {
  margin-block-start: 20px;
}

.main-password__header .main-password__logo {
  display: block;
  flex: 0 0 auto;
}

.main-password__header .header__logo {
  display: block;
  width: var(--header-logo-width-desktop);
  height: auto;
  max-height: 64px;
  object-fit: contain;
}

@media (max-width: 959px) {
  .main-password__header .header__logo {
    width: var(--header-logo-width-mobile);
    max-height: 44px;
  }
}
