/* The New Burguer Experience v1.1 */

.tnb-xp-welcome,
.tnb-xp-review,
.tnb-xp-debug,
.tnb-xp-welcome *,
.tnb-xp-review *,
.tnb-xp-debug * {
  box-sizing: border-box;
}

.tnb-xp-welcome {
  position: fixed;
  z-index: 999998;
  top: 18px;
  left: 50%;
  width: min(92vw, 520px);
  transform: translate(-50%, -20px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, transform .35s ease, visibility .35s ease;
  pointer-events: none;
}

.tnb-xp-welcome.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.tnb-xp-welcome__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 18px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, rgba(15,15,15,.97), rgba(63,3,3,.97));
  box-shadow: 0 18px 45px rgba(0,0,0,.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font: 800 14px/1.2 inherit;
}

.tnb-xp-welcome__icon { font-size: 20px; }

.tnb-xp-review {
  position: fixed;
  z-index: 999999;
  right: 22px;
  bottom: 22px;
  width: min(390px, calc(100vw - 28px));
  padding: 26px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 26px;
  color: #fff;
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(230,32,32,.28), transparent 42%),
    linear-gradient(145deg, #0b0b0b, #1b0808);
  box-shadow: 0 26px 70px rgba(0,0,0,.55);
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(.96);
  transition: opacity .35s ease, transform .35s ease, visibility .35s ease;
}

.tnb-xp-review.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.tnb-xp-review__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: rgba(255,255,255,.7);
  background: rgba(255,255,255,.07);
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.tnb-xp-review__stars {
  margin-bottom: 12px;
  color: #ffbd00;
  font-size: 27px;
  letter-spacing: 4px;
  filter: drop-shadow(0 7px 15px rgba(255,189,0,.28));
}

.tnb-xp-review__title {
  margin: 0 22px 10px;
  color: #fff;
  font-size: 25px;
  line-height: 1.1;
  font-weight: 900;
}

.tnb-xp-review__text {
  margin: 0 auto 20px;
  max-width: 310px;
  color: rgba(255,255,255,.72);
  font-size: 15px;
  line-height: 1.55;
}

.tnb-xp-review__button {
  display: block;
  width: 100%;
  padding: 16px 18px;
  border-radius: 16px;
  color: #111 !important;
  background: linear-gradient(135deg, #ffdc4d, #ff8a00);
  box-shadow: 0 14px 30px rgba(255,138,0,.28);
  text-decoration: none !important;
  font-size: 17px;
  font-weight: 950;
  transition: transform .22s ease, box-shadow .22s ease;
}

.tnb-xp-review__button:hover {
  color: #111 !important;
  transform: translateY(-3px);
  box-shadow: 0 19px 38px rgba(255,138,0,.40);
}

.tnb-xp-review__later {
  margin-top: 12px;
  padding: 7px 12px;
  border: 0;
  color: rgba(255,255,255,.58);
  background: transparent;
  cursor: pointer;
  font: 700 13px/1 inherit;
}

.tnb-xp-review.is-thanking .tnb-xp-review__button,
.tnb-xp-review.is-thanking .tnb-xp-review__later {
  opacity: .35;
}

.tnb-xp-debug {
  position: fixed;
  z-index: 1000000;
  left: 16px;
  bottom: 16px;
  width: 280px;
  color: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.tnb-xp-debug__toggle {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  color: #ffcf3f;
  background: rgba(10,10,10,.94);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
}

.tnb-xp-debug__body {
  display: none;
  margin-top: 8px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(10,10,10,.96);
  box-shadow: 0 18px 45px rgba(0,0,0,.45);
}

.tnb-xp-debug.is-open .tnb-xp-debug__body { display: block; }

.tnb-xp-debug__body div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
}

.tnb-xp-debug__body div:last-child { border-bottom: 0; }
.tnb-xp-debug__body span { color: rgba(255,255,255,.56); font-size: 12px; }
.tnb-xp-debug__body strong { max-width: 150px; text-align: right; font-size: 12px; }

@media (max-width: 600px) {
  .tnb-xp-welcome { top: 12px; }
  .tnb-xp-welcome__inner { padding: 12px 15px; font-size: 13px; }
  .tnb-xp-review { right: 14px; bottom: 14px; padding: 23px 18px 20px; border-radius: 23px; }
  .tnb-xp-review__title { font-size: 22px; }
  .tnb-xp-debug { width: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  .tnb-xp-welcome,
  .tnb-xp-review,
  .tnb-xp-review__button {
    transition: none !important;
  }
}
