/* Snusowo Home Popup. No backdrop or scroll locking. */
.snushomepopup,
.snushomepopup * {
  box-sizing: border-box;
}

.snushomepopup {
  position: fixed;
  z-index: 900;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(560px, calc(100vw - 32px));
  max-width: 560px;
  pointer-events: none;
  display: none;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.snushomepopup.is-visible {
  display: block;
  animation: snushomepopup-enter 220ms ease-out both;
}

.snushomepopup__card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-width: 0;
  padding: 0 30px 0 0;
  min-height: 86px;
  border-radius: 8px;
  border: 1px solid #e4e4e7;
  background: #fff;
  color: #111;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .20);
  pointer-events: auto;
  overflow: hidden;
}

.snushomepopup__image {
  flex: 0 0 84px;
  width: 84px;
  height: 84px;
  display: block;
  object-fit: cover;
  align-self: stretch;
}

.snushomepopup__message {
  min-width: 0;
  flex: 1 1 auto;
  margin: 0;
  padding: 12px 0;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.17;
  letter-spacing: -.035em;
  text-transform: uppercase;
  color: #141414;
  overflow-wrap: anywhere;
}

.snushomepopup__message strong {
  font-weight: 850;
}

.snushomepopup__mark {
  color: #f4ca12;
  font-weight: 900;
  -webkit-text-stroke: .3px #2a2500;
  text-shadow: 0 1px 0 #000;
}

.snushomepopup__button {
  flex: 0 0 auto;
  min-width: 118px;
  max-width: 140px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 10px;
  border: 0;
  border-radius: 5px;
  background: #424242;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
  transition: background-color 150ms ease;
}

.snushomepopup__button:hover,
.snushomepopup__button:focus-visible {
  color: #fff;
  background: #222;
  text-decoration: none;
}

.snushomepopup__close {
  position: absolute;
  top: 2px;
  right: 3px;
  z-index: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 26px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: #999;
  cursor: pointer;
  transition: color 150ms ease;
}

.snushomepopup__close:hover,
.snushomepopup__close:focus-visible {
  color: #1c1c1c;
  background: transparent;
}

@keyframes snushomepopup-enter {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .snushomepopup {
    bottom: max(12px, env(safe-area-inset-bottom, 0px));
    width: calc(100vw - 20px);
  }
  .snushomepopup__card {
    min-height: 80px;
    gap: 10px;
    padding-right: 24px;
    border-radius: 7px;
  }
  .snushomepopup__image {
    flex-basis: 78px;
    width: 78px;
    height: 78px;
    min-height: 0;
    align-self: center;
  }
  .snushomepopup__message {
    font-size: 13px;
    line-height: 1.12;
    padding: 10px 0;
  }
  .snushomepopup__button {
    min-width: 94px;
    max-width: 110px;
    min-height: 50px;
    padding: 8px 7px;
    font-size: 11px;
    border-radius: 5px;
  }
}

@media (max-width: 375px) {
  .snushomepopup__card { gap: 7px; padding-right: 21px; }
  .snushomepopup__image { flex-basis: 62px; width: 62px; height: 62px; }
  .snushomepopup__message { font-size: 11px; letter-spacing: -.02em; }
  .snushomepopup__button { min-width: 79px; max-width: 89px; min-height: 45px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .snushomepopup.is-visible { animation: none; }
  .snushomepopup__button, .snushomepopup__close { transition: none; }
}

/* 1.1.0: Desktop positioning and entrance controls; mobile remains centered. */
@media (min-width: 601px) {
  .snushomepopup--left { left: 18px; transform: none; }
  .snushomepopup--right { left: auto; right: 18px; transform: none; }
}
.snushomepopup--fade.is-visible { animation: shpop-fade 220ms ease-out both; }
.snushomepopup--none.is-visible { animation: none; }
@keyframes shpop-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .snushomepopup--fade.is-visible { animation: none; }
}

/* Preserve translateX(-50%) during the entrance animation (otherwise the
   old transform animation nudged centered banners half a width to the right). */
@keyframes shpop-enter-centered {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
@keyframes shpop-enter-side {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.snushomepopup--slide.is-visible { animation: shpop-enter-centered 220ms ease-out both; }
@media (min-width: 601px) {
  .snushomepopup--slide.snushomepopup--left.is-visible,
  .snushomepopup--slide.snushomepopup--right.is-visible {
    animation: shpop-enter-side 220ms ease-out both;
  }
}
@media (prefers-reduced-motion: reduce) {
  .snushomepopup--slide.is-visible,
  .snushomepopup--slide.snushomepopup--left.is-visible,
  .snushomepopup--slide.snushomepopup--right.is-visible { animation: none; }
}
