/* Basic reset for the plugin elements */
#pms-sidebar-popup, #pms-sidebar-minimized { box-sizing: border-box; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; }

/* Popup container */
.pms-popup {
  position: fixed;
  right: 24px;
  top: 33%;
  width: 360px;
  max-width: calc(100% - 40px);
  z-index: 99999;
  background: #120a00;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgb(255 255 255 / 18%);
  padding: 18px;
  transform-origin: right top;
  transition: transform 260ms ease, opacity 260ms ease;
  opacity: 1;
  background: url('https://www.pmsaifworld.com/wp-content/uploads/Mob-BG.png');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

/* Hidden state (used by JS) */
.pms-popup.pms-hidden {
  transform: translateX(20px) scale(0.98);
  opacity: 0;
  pointer-events: none;
}

/* Close button */
.pms-popup-close {
  position: absolute;
  top: 8px;
  right: 8px;
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  color: #fff;
}

/* Inner content */
.pms-popup-inner { padding-top: 4px; }

.pms-brand {font-size: 12px;color: #ffffff;margin: 0 0 6px;letter-spacing: 0.6px;text-align: center;}
.pms-brand span {font-weight: 700;color: #ffffff;}

.pms-title {margin: 0;font-size: 20px;line-height: 1.05;color: #ffffff;text-align: center;}
.pms-subtitle {margin: 6px 0 12px;font-size: 12px;color: #ffffff;text-align: center;line-height: 25px;background: linear-gradient(45deg, #745012, #281a08,#745012);border-radius: 25px;padding-top: 7px;padding-bottom: 7px;}
.pms-desc {font-size: 13px;color: #ffffff;margin-bottom: 12px;text-align: center;}

/* details */
.pms-details {font-size: 13px;color: #ffffff;margin-bottom: 12px;display: grid;gap: 4px;text-align: center;}

/* CTA */
.pms-cta {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  background: #745012;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  box-shadow: 0 6px 18px rgba(11,102,255,0.18);
  text-align: center;
}

/* minimized icon */
.pms-minimized {
  position: fixed;
  right: 12px;
  top: 84%;
  transform: translateY(-50%);
  z-index: 99998;
  display: none; /* shown by JS when minimized */
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 28px;
  border: none;
  cursor: pointer;
  background: #745012;
  color: #fff;
  box-shadow: 0 6px 20px rgba(11,102,255,0.18);
  font-weight: 600;
  font-size: 13px;
}

/* small dot / icon */
.pms-mini-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: white;
  display: inline-block;
}

/* hide the text on very small screens (keeps icon only) */
@media (max-width: 420px) {
  .pms-popup { right: 12px; left: 12px; top: 18%; width: auto; max-width: 100%; padding: 14px; }
  .pms-minimized { padding: 10px; right: 8px; top: 50%; border-radius: 50%; width: 44px; height: 44px; justify-content: center; }
  .pms-minimized .pms-mini-text { display: none; }
}

/* accessibility focus styles */
.pms-popup-close:focus, .pms-cta:focus, .pms-minimized:focus {
  outline: 3px solid rgba(11,102,255,0.18);
  outline-offset: 2px;
}


a.pms-cta:hover {
  background: #5c3e0a;
  box-shadow: 0 8px 24px rgba(11,102,255,0.24);
  color: #fff;
  text-decoration: none;
}

/* Safety overrides so close button is clickable above overlays */
#pms-sidebar-popup, #pms-sidebar-minimized, #pms-popup-close {
  z-index: 999999 !important;
  pointer-events: auto !important;
}

/* ensure minimized icon visible */
#pms-sidebar-minimized { display: none; }

/* small tweak to ensure close button area is big enough */
.pms-popup-close { padding: 6px 10px; }

.pms-hidden {
  display: none !important;
}
