/*
 * geo-consent.css — the "may we use your location?" card, shown only from
 * the homepage popup (assets/js/ac-shop-cta.js + assets/js/geo-consent.js).
 *
 * The results panel (.rl-geo) owns the top of the viewport, so the ask sits
 * at the bottom; the two never overlap. Brand purple is #A45B8D.
 */

.geo-ask {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9998;                 /* just under .rl-geo (9999) */
  max-width: 560px;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid #ededed;
  border-radius: 12px;
  background: #fff;
  color: #312f2e;
  box-shadow: 0 8px 28px rgba(49, 47, 46, 0.22);
  font-family: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.geo-ask.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .geo-ask {
    transition: none;
    transform: none;
  }
}

.geo-ask__title {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}

.geo-ask__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: #55514f;
}

.geo-ask__actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.geo-ask__btn {
  flex: 0 0 auto;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.geo-ask__btn--primary {
  flex: 1 1 auto;
  background: #A45B8D;
  color: #fff;
  font-weight: 700;
}

.geo-ask__btn--primary:hover,
.geo-ask__btn--primary:focus-visible {
  background: #8d4a78;
}

.geo-ask__btn--ghost {
  background: transparent;
  border-color: #d6d2d0;
  color: #55514f;
}

.geo-ask__btn--ghost:hover,
.geo-ask__btn--ghost:focus-visible {
  background: #f3efee;
}

.geo-ask__btn:focus-visible {
  outline: 2px solid #A45B8D;
  outline-offset: 2px;
}

@media screen and (max-width: 768px) {
  .geo-ask {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 16px;
  }

  .geo-ask__actions {
    flex-wrap: wrap;
  }

  .geo-ask__btn {
    flex: 1 1 100%;
  }
}
