/* ER ver8 — popover de condições do voucher (ao clicar no ícone "i" do card) */

.er-voucher-info-trigger {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  transition: transform .15s ease, opacity .15s ease;
  outline: none;
}
.er-voucher-info-trigger:hover { transform: scale(1.1); }
.er-voucher-info-trigger:focus-visible i {
  outline: 2px solid #fff;
  outline-offset: 1px;
  border-radius: 50%;
}

/* Popover overlay (centrado no ecrã, fica acima de tudo) */
.er-voucher-popover {
  position: fixed;
  z-index: 99999;
  inset: 0;
  background: rgba(20, 40, 90, .55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: erVPopFade .15s ease-out;
}
.er-voucher-popover.er-active { display: flex; }
@keyframes erVPopFade { from { opacity: 0 } to { opacity: 1 } }

.er-voucher-popover-card {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  max-width: 380px;
  padding: 18px 22px 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  position: relative;
  animation: erVPopSlide .2s ease-out;
}
@keyframes erVPopSlide { from { transform: translateY(10px); opacity: 0 } to { transform: none; opacity: 1 } }

.er-voucher-popover-close {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 28px;
  height: 28px;
  background: none;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: #2b3a55;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .12s;
}
.er-voucher-popover-close:hover { background: #f0f3f8; }

.er-voucher-popover-title {
  font-size: 16px;
  font-weight: 700;
  color: #1d2f6a;
  margin: 0 30px 4px 0;
  line-height: 1.3;
}

.er-voucher-popover-code {
  display: inline-block;
  font-family: SF Mono, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 700;
  color: #1860A3;
  background: #eef3fa;
  padding: 3px 10px;
  border-radius: 5px;
  margin-bottom: 14px;
}

.er-voucher-popover-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.er-voucher-popover-list li {
  font-size: 13px;
  color: #2b3a55;
  padding: 6px 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border-bottom: 1px dashed #eef0f5;
}
.er-voucher-popover-list li:last-child { border-bottom: 0; }
.er-voucher-popover-list li svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: #248823;
  margin-top: 2px;
}

@media (max-width: 575px) {
  .er-voucher-popover-card { padding: 16px 18px; max-width: 320px; }
  .er-voucher-popover-title { font-size: 15px; }
}
