/* =========================================================
   RobinHerb — Promotional Deals Popup (black & gold luxury)
   ========================================================= */

/* Overlay: dark, semi-transparent, blurs page behind */
#robinherb-deals-popup {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

#robinherb-deals-popup.open {
  opacity: 1;
  visibility: visible;
}

#robinherb-deals-popup.closing {
  opacity: 0;
}

/* Promotional image: full, uncropped, responsive */
.deals-popup-img {
  display: block;
  max-width: 90vw;
  max-height: 85vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.55);
  box-shadow: 0 0 45px rgba(212, 175, 55, 0.28), 0 24px 70px rgba(0, 0, 0, 0.85);
  transform: scale(0.96);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

#robinherb-deals-popup.open .deals-popup-img {
  transform: scale(1);
}

/* Close button: large ×, top-right, always visible, high contrast */
.deals-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #000;
  border: 1px solid #d4af37;
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.deals-popup-close:hover {
  background: #141414;
  border-color: #ffd700;
  transform: scale(1.05);
}

.deals-popup-close:focus-visible {
  outline: 2px solid #ffd700;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  .deals-popup-close {
    top: 10px;
    right: 10px;
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
  }
}