/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

/* ===========================
   🔵 Desktop Popup
   =========================== */
.pi-popup {
  position: fixed !important;
  display: inline-flex !important;
  z-index: 100000 !important;
  overflow: hidden !important;
  box-shadow: 0 0 4px 0 rgba(0, 0, 0, 0.4) !important;
  align-items: center !important;
  top: 10px !important;
  right: 10px !important;
  bottom: auto !important;
  left: auto !important;
  width: auto !important;
  max-width: 300px !important;
  border-radius: 8px !important;
}

.pi-popup-content {
  padding: 10px !important;
  padding-right: 25px !important;
  flex: 1 !important;
  width: auto !important;
  max-width: 220px !important;
  white-space: normal !important;
}

.pi-popup-close {
  width: 15px !important;
  height: 15px !important;
  position: absolute !important;
  display: block !important;
  top: 10px !important;
  right: 20px !important;
}

.pi-popup-image {
  display: flex !important;
  align-items: center !important;
  width: 60px !important;
  flex-shrink: 0 !important;
}

.pi-popup-image img {
  max-width: 100% !important;
}

.pi-popup-close img {
  max-width: 100% !important;
  display: block !important;
}

/* ===========================
   📱 Mobile - EXACT same as desktop
   =========================== */
@media (max-width: 768px) {
  .pi-popup {
    position: fixed !important;
    top: 10px !important;
    right: 10px !important;
    bottom: auto !important;
    left: auto !important;
    width: auto !important;
    max-width: 300px !important;
    height: auto !important;
    max-height: none !important;
    border-radius: 8px !important;
    margin: 0 !important;
    overflow: hidden !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
  }

  .pi-popup-content {
    flex: unset !important;
    flex-grow: 0 !important;
    width: auto !important;
    max-width: 220px !important;
    padding: 8px !important;
    white-space: normal !important;
  }

  .pi-popup-image {
    width: 60px !important;
    flex-shrink: 0 !important;
  }
}