/* === Badge arriba, texto unificado, sin fondo === */
.woocommerce div.product .rwps-badge-wrap {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 60;
  pointer-events: none;
}
.rwps-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  pointer-events: auto;
  cursor: pointer;
}
.rwps-icon {
  pointer-events: auto;
  border: 0; background: transparent; padding: 0; margin-left: 6px;
  cursor: pointer; line-height: 0;
}
.rwps-icon img { width: 18px; height: 18px; display: block; }

/* === Popover anclado al icono/badge, overlay transparente === */
:root{
  --rwps-badge-gap: 18px;
  --rwps-blue: #2A84D8;
  --rwps-blue-100: #E8F3FF;
  --rwps-blue-200: #D3E9FF;
  --rwps-text: #1F2937;
  --rwps-muted: #475569;
}

.rwps-modal { z-index: 2147483647; position: fixed; inset: 0; display: none; }
.rwps-modal.is-open { display: block; }
.rwps-modal__overlay { position: fixed; inset: 0; background: transparent; pointer-events: none; }

.rwps-modal__dialog{
  position: fixed; top: 0; left: 0;
  background: var(--rwps-blue-100);
  border: 2px solid var(--rwps-blue-200);
  border-radius: 14px;
  padding: 18px 18px 22px;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
  max-width: min(560px, 96vw);
  max-height: 70vh;
  overflow: auto;
  transform-origin: top left;
  transform: scale(.98);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease;
}
.rwps-modal.is-open .rwps-modal__dialog{ transform: scale(1); opacity: 1; }

.rwps-modal__close{
  position: absolute; top: 6px; right: 10px;
  font-size: 22px; border: 0; background: transparent; cursor: pointer;
}

.rwps-modal__content h1,
.rwps-modal__content h2,
.rwps-modal__content h3{
  margin: 0 0 18px;
  color: var(--rwps-blue);
  font-weight: 800;
  letter-spacing: .2px;
}
.rwps-modal__content p{
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--rwps-text);
}
.rwps-modal__dialog:before{
  content:"";
  position:absolute; inset: 6px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.65);
  pointer-events:none;
}

/* Responsive tweaks */
@media (max-width: 768px){
  .rwps-modal__content p{ font-size: 15px; }
}

/* === v1.3.4: Responsive polish === */
@media (max-width: 640px){
  .woocommerce div.product .rwps-badge-wrap { left: 16px; top: 10px; z-index: 70; }
  .rwps-badge { font-size: 14px; }
  .rwps-icon img { width: 16px; height: 16px; }

  .rwps-modal__dialog{ max-width: 96vw; }
  .rwps-modal__content h1{ font-size: 22px; line-height: 1.2; margin-bottom: 12px; }
  .rwps-modal__content h2{ font-size: 18px; line-height: 1.25; margin-bottom: 10px; }
  .rwps-modal__content h3{ font-size: 16px; line-height: 1.25; margin-bottom: 10px; }
  .rwps-modal__content p { font-size: 15px; line-height: 1.6; margin-bottom: 16px; }
}


/* Customizations v1.3.6 */
.rwps-modal__dialog {
  border: none !important;
}
.rwps-modal__content b,
.rwps-modal__content strong {
  color: #259BF0;
}
.rwps-modal__content h1,
.rwps-modal__content h2,
.rwps-modal__content h3 {
  font-family: 'Work Sans', sans-serif;
  font-weight: 600;
  font-size: 16px;
  line-height: 18px;
  text-transform: uppercase;
}
