/* Keep this layer below the existing MAG AI nudge, toggle and panel. */
.name-sticker-promo {
  position: fixed;
  inset: 0;
  z-index: 9996;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(24, 24, 27, .68);
  overflow-y: auto;
}

.name-sticker-promo[hidden] { display: none; }

.name-sticker-promo__card {
  position: relative;
  width: min(100%, 530px);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 24px;
  background: #fff;
  color: #18181b;
  color-scheme: light;
  box-shadow: 0 24px 90px rgba(0, 0, 0, .35);
}

.name-sticker-promo__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  background: #fff;
  color: #18181b;
  font: 400 30px/1 Arial, sans-serif;
  cursor: pointer;
}

.name-sticker-promo__header {
  padding: 30px 66px 25px 28px;
  background: linear-gradient(135deg, #2a1158, #1a0a3a);
  color: #fff;
}

.name-sticker-promo__brand {
  display: inline-block;
  margin-bottom: 13px;
  color: #fde047;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .16em;
}

.name-sticker-promo__header h2 {
  margin: 0;
  font-size: clamp(25px, 5vw, 34px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.035em;
}

.name-sticker-promo__header p {
  margin: 14px 0 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
}

.name-sticker-promo__body { padding: 22px 26px 26px; }

.name-sticker-promo__image {
  display: block;
  overflow: hidden;
  padding: 10px;
  border: 1px solid #e4e4e7;
  border-radius: 12px;
  background: #fff;
}

.name-sticker-promo__image img { display: block; width: 100%; height: auto; }

.name-sticker-promo__caption {
  margin: 16px 0;
  color: #52525b;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
}

.name-sticker-promo__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 52px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #facc15;
  color: #18181b;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}

.name-sticker-promo__cta:hover { background: #fde047; }
.name-sticker-promo__close:hover { background: #f4f4f5; }
.name-sticker-promo :is(a, button):focus-visible { outline: 3px solid #2563eb; outline-offset: 3px; }

/* The desktop nudge starts about 260px above the bottom edge. On tablets
   keep the entire scrollable card above it instead of covering any font. */
@media (min-width: 641px) and (max-width: 1199px) {
  .name-sticker-promo { align-items: flex-start; padding: 14px 14px 280px; }
  .name-sticker-promo__card {
    max-height: calc(100vh - 294px);
    max-height: calc(100dvh - 294px);
    overscroll-behavior: contain;
  }
}

@media (max-width: 640px) {
  .name-sticker-promo { align-items: flex-start; padding: 14px 14px 110px; }
  .name-sticker-promo__card {
    max-height: calc(100vh - 124px);
    max-height: calc(100dvh - 124px);
    border-radius: 20px;
  }
  .name-sticker-promo__header { padding: 25px 62px 22px 22px; }
  .name-sticker-promo__header p { font-size: 14px; }
  .name-sticker-promo__body { padding: 18px; }
}

@media (max-height: 600px) {
  .name-sticker-promo__header { padding-top: 18px; padding-bottom: 16px; }
  .name-sticker-promo__brand { margin-bottom: 8px; }
  .name-sticker-promo__header h2 { font-size: 25px; }
  .name-sticker-promo__header p { margin-top: 9px; }
  .name-sticker-promo__body { padding-top: 14px; padding-bottom: 16px; }
  .name-sticker-promo__caption { margin: 10px 0; }
}

@media (min-width: 641px) and (max-width: 1199px) and (max-height: 600px) {
  /* A short tablet viewport can scroll to inspect all four examples together. */
  .name-sticker-promo__image img { max-height: 150px; object-fit: contain; }
  .name-sticker-promo__image { padding: 6px; }
}
