
/* ARTZY HENNA REWARDS POPUP
   Version 1.0.0 */

#artzy-rewards {
  --ar-ink: #2b2422;
  --ar-brown: #68493e;
  --ar-clay: #a76551;
  --ar-gold: #b38d5c;
  --ar-paper: #fcf9f5;
  --ar-soft: #f1e7de;
  --ar-muted: #69605b;
  font-family: inherit;
}

#artzy-rewards *,
#artzy-rewards *::before,
#artzy-rewards *::after {
  box-sizing: border-box;
}

#artzy-rewards [hidden] {
  display: none !important;
}

/* Dark backdrop */
#artzy-rewards .ar-overlay {
  position: fixed;
  inset: 0;
  z-index: 999990;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px;
  background: rgba(43,36,34,.68);
  overflow-y: auto;
}

/* Main popup */
#artzy-rewards .ar-card {
  position: relative;
  width: min(100%, 440px);
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding: 40px 34px 30px;
  background: var(--ar-paper);
  border: 1px solid rgba(179,141,92,.45);
  box-shadow: 0 24px 70px rgba(0,0,0,.22);
  text-align: center;
  color: var(--ar-ink);
}

#artzy-rewards .ar-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(179,141,92,.20);
  pointer-events: none;
}

/* Close button */
#artzy-rewards .ar-close {
  position: absolute;
  top: 11px;
  right: 13px;
  z-index: 2;
  padding: 5px 9px;
  border: 0;
  background: transparent;
  color: var(--ar-brown);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

/* Text styling */
#artzy-rewards .ar-kicker {
  margin: 0 0 17px;
  color: var(--ar-clay);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .17em;
  text-transform: uppercase;
}

#artzy-rewards .ar-title {
  margin: 0 0 19px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(35px, 6vw, 46px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -.04em;
  color: var(--ar-ink);
}

#artzy-rewards .ar-title em {
  color: var(--ar-clay);
  font-weight: 400;
}

#artzy-rewards .ar-copy {
  max-width: 350px;
  margin: 0 auto 25px;
  color: var(--ar-muted);
  font-size: 15px;
  line-height: 1.75;
}

/* Five reward stars */
#artzy-rewards .ar-stars {
  display: flex;
  justify-content: center;
  gap: 9px;
  margin-bottom: 17px;
}

#artzy-rewards .ar-star {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(167,101,81,.25);
  border-radius: 50%;
  background: var(--ar-soft);
  color: var(--ar-clay);
  font-size: 25px;
  line-height: 1;
}

#artzy-rewards .ar-benefit {
  margin: 0 0 25px;
  color: var(--ar-brown);
  font-size: 13px;
  font-weight: 600;
}

/* Rewards page button */
#artzy-rewards .ar-cta {
  display: block;
  padding: 16px 18px;
  border: 1px solid var(--ar-ink);
  background: var(--ar-ink);
  color: #fff !important;
  text-decoration: none !important;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: background .2s, border-color .2s;
}

#artzy-rewards .ar-cta:hover {
  background: var(--ar-clay);
  border-color: var(--ar-clay);
  color: #fff !important;
}

#artzy-rewards .ar-footnote {
  margin: 18px 0 0;
  color: var(--ar-muted);
  font-size: 11px;
  line-height: 1.6;
}

/* Bottom-left mini button */
#artzy-rewards .ar-mini {
  position: fixed;
  left: 16px;
  bottom: 18px;
  z-index: 999980;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 2px solid var(--ar-paper);
  border-radius: 50%;
  background: var(--ar-clay);
  color: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,.20);
  cursor: pointer;
  transition: transform .2s, background .2s;
}

#artzy-rewards .ar-mini:hover {
  transform: scale(1.07);
  background: var(--ar-brown);
}

#artzy-rewards .ar-mini svg {
  width: 25px;
  height: 25px;
}

#artzy-rewards .ar-close:focus-visible,
#artzy-rewards .ar-mini:focus-visible,
#artzy-rewards .ar-cta:focus-visible {
  outline: 3px solid var(--ar-gold);
  outline-offset: 3px;
}

/* Mobile adjustments */
@media (max-width: 480px) {
  #artzy-rewards .ar-card {
    padding: 36px 22px 27px;
  }

  #artzy-rewards .ar-stars {
    gap: 6px;
  }

  #artzy-rewards .ar-star {
    width: 40px;
    height: 40px;
  }

  #artzy-rewards .ar-mini {
    left: 12px;
    bottom: 14px;
    width: 47px;
    height: 47px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #artzy-rewards .ar-mini,
  #artzy-rewards .ar-cta {
    transition: none;
  }
}
