/* Account invitation (auth.js): a discreet card at the bottom left (the promotions button is on the right), a bottom sheet on phones. */
.account-nudge {
  --nudge-navy: #071b36;
  --nudge-gold: #a48456;
  position: fixed;
  z-index: 175;
  bottom: 24px;
  left: 24px;
  width: min(372px, calc(100% - 48px));
  padding: 24px 26px 20px;
  border: 1px solid rgba(7, 27, 54, .1);
  border-top: 2px solid var(--nudge-gold);
  background: #fbfaf7;
  color: var(--nudge-navy);
  font-family: var(--sans, "Manrope", Arial, sans-serif);
  box-shadow: 0 24px 60px rgba(4, 18, 36, .18), 0 2px 8px rgba(4, 18, 36, .06);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .32s ease, transform .42s cubic-bezier(.2, .8, .2, 1);
}

.account-nudge.visible { opacity: 1; transform: none; }

.account-nudge-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-right: 34px;
}

.account-nudge-head img { display: block; width: 74px; height: auto; }

.account-nudge-head span {
  padding-left: 12px;
  border-left: 1px solid rgba(7, 27, 54, .16);
  color: var(--nudge-gold);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.account-nudge > strong {
  display: block;
  font-size: 24px;
  font-weight: 300;
  letter-spacing: -.02em;
  line-height: 1.15;
}

.account-nudge > p { margin: 6px 0 16px; color: #5d6772; font-size: 12.5px; line-height: 1.55; }

.account-nudge ul { display: grid; gap: 11px; margin: 0 0 20px; padding: 14px 0 0; border-top: 1px solid rgba(7, 27, 54, .09); list-style: none; }
.account-nudge li { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 12px; }

.account-nudge li > svg {
  width: 30px;
  height: 30px;
  padding: 7px;
  border-radius: 50%;
  background: #f2efe8;
  fill: none;
  stroke: var(--nudge-gold);
  stroke-linejoin: round;
  stroke-linecap: round;
  stroke-width: 1.4;
}

.account-nudge li span { color: #6b7480; font-size: 11.5px; line-height: 1.4; }
.account-nudge li b { display: block; color: var(--nudge-navy); font-size: 12.5px; font-weight: 600; }

.account-nudge-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

.account-nudge-actions button {
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--nudge-navy);
  font: inherit;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

.account-nudge-register { background: var(--nudge-navy); color: #fff; }
.account-nudge-register:hover { background: #0b315a; border-color: #0b315a; }
.account-nudge-later { background: transparent; color: var(--nudge-navy); }
.account-nudge-later:hover { background: #f2efe8; }
.account-nudge-actions button:focus-visible,
.account-nudge-close:focus-visible { outline: 2px solid var(--nudge-gold); outline-offset: 2px; }

.account-nudge > small {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 13px;
  color: #828a94;
  font-size: 10.5px;
}

.account-nudge > small svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; }

.account-nudge-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--nudge-navy);
  cursor: pointer;
}

.account-nudge-close:hover { background: #f2efe8; }
.account-nudge-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* Above the purchase bar of the product page. */
body.has-sticky-buy .account-nudge { bottom: 96px; }

@media (max-width: 640px) {
  .account-nudge {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 88vh;
    overflow-y: auto;
    padding: 22px 20px calc(18px + env(safe-area-inset-bottom));
    border-right: 0;
    border-left: 0;
    border-bottom: 0;
    box-shadow: 0 -18px 50px rgba(4, 18, 36, .2);
    transform: translateY(100%);
  }

  .account-nudge::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 50%;
    width: 36px;
    height: 3px;
    border-radius: 2px;
    background: rgba(7, 27, 54, .14);
    transform: translateX(-50%);
  }

  body.has-sticky-buy .account-nudge { bottom: 0; z-index: 260; }
  .account-nudge > strong { font-size: 23px; }
  .account-nudge ul { gap: 10px; margin-bottom: 18px; }
  .account-nudge-actions button { min-height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  .account-nudge { transition: opacity .2s ease; transform: none; }
}
