/* Bento Offers embed. Self-contained (storefront themes don't load the admin
   tokens), so the brand ink palette is inlined here. Deliberately quiet and
   premium to match the bundle builder: paper surface, warm ink, one calm card,
   bottom-centre, that reads on any theme without shouting. */

.bento-offers {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  z-index: 2147483000;
  width: max-content;
  /* Cap so a long message wraps into a compact card instead of sprawling. */
  max-width: min(440px, calc(100vw - 24px));
  pointer-events: none;
}

@keyframes bento-offers-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.bento-offers__card {
  pointer-events: auto;
  background: #ffffff;
  border: 1px solid #e8e3d6;
  border-radius: 16px;
  box-shadow:
    0 12px 40px rgba(20, 17, 13, 0.13),
    0 2px 8px rgba(20, 17, 13, 0.06);
  padding: 15px 17px;
  font-size: 15px;
  line-height: 1.35;
  color: #2a2620;
  font-family: inherit;
  animation: bento-offers-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Earned + nudge share the paper card. Earned reads a touch more present with a
   slightly firmer border; no wash, no pulse — the gift image is the colour. */
.bento-offers__card--earned {
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-color: #d4cebd;
}
.bento-offers__card--nudge {
  display: flex;
  align-items: center;
  gap: 14px;
}

/* Lead line (the "you've earned…" copy). */
.bento-offers__head {
  padding-bottom: 2px;
}
.bento-offers__lead {
  font-weight: 600;
  color: #15110d;
  font-size: 15px;
  line-height: 1.3;
}

/* Gift rows. */
.bento-offers__gifts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bento-offers__gift {
  display: flex;
  align-items: center;
  gap: 12px;
}

.bento-offers__img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  flex: none;
  background: #f3efe6;
  border: 1px solid #eee7d9;
}
.bento-offers__img--blank {
  display: block;
}

.bento-offers__gname {
  flex: 1;
  min-width: 0;
  font-weight: 550;
  font-size: 14px;
  color: #2a2620;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bento-offers__gaction {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  flex: none;
  margin-left: auto;
}

/* Quiet "Free" (or "N% off") chip — outlined, never loud. */
.bento-offers__free {
  font-size: 12px;
  font-weight: 600;
  color: #2a2620;
  padding: 2px 9px;
  border: 1px solid #d4cebd;
  border-radius: 999px;
  white-space: nowrap;
}

.bento-offers__done {
  color: #2a2620;
  font-weight: 700;
  font-size: 15px;
}

.bento-offers__adding {
  color: #8a8b92;
  font-size: 13px;
  font-weight: 550;
}

/* Ink CTA — matches the bundle builder's button, not the old lacquer box. */
.bento-offers__btn {
  appearance: none;
  border: none;
  cursor: pointer;
  background: #17181b;
  color: #ffffff;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 10px;
  font-family: inherit;
  transition: background 0.15s ease, transform 0.15s ease;
}
.bento-offers__btn:hover {
  background: #2a2620;
}
.bento-offers__btn:active {
  transform: translateY(1px);
}
.bento-offers__btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.bento-offers__btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(20, 17, 13, 0.25);
}

/* Progress nudge (not-yet-qualified). */
.bento-offers__text {
  font-weight: 550;
  color: #2a2620;
}
.bento-offers__bar {
  display: inline-block;
  width: 110px;
  height: 6px;
  border-radius: 999px;
  background: #f3efe6;
  overflow: hidden;
  flex: none;
}
.bento-offers__fill {
  display: block;
  height: 100%;
  background: #15110d;
  border-radius: 999px;
  transition: width 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (max-width: 480px) {
  .bento-offers {
    left: 12px;
    right: 12px;
    bottom: 12px;
    transform: none;
    width: auto;
  }
  .bento-offers__card {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bento-offers__card { animation: none; }
  .bento-offers__fill { transition: none; }
}
