/* Pop-ups do Sync Cursos. Neutro e responsivo; herda fontes do tema. */
.sc-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  transition: opacity 0.22s ease;
  -webkit-overflow-scrolling: touch;
  overflow-y: auto;
}
.sc-popup-overlay.sc-popup-aberto {
  opacity: 1;
}

.sc-popup-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  background: #fff;
  color: #1a1a1a;
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transition: transform 0.22s ease;
  font-family: inherit;
}
.sc-popup-overlay.sc-popup-aberto .sc-popup-card {
  transform: translateY(0) scale(1);
}

.sc-popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.sc-popup-close:hover {
  background: rgba(0, 0, 0, 0.7);
}

.sc-popup-img {
  width: 100%;
  line-height: 0;
}
.sc-popup-img img {
  width: 100%;
  height: auto;
  display: block;
}

.sc-popup-body {
  padding: 22px 24px 26px;
}
.sc-popup-body:empty {
  display: none;
}

.sc-popup-titulo {
  margin: 0 0 10px;
  font-size: 1.4rem;
  line-height: 1.25;
  font-weight: 700;
}

.sc-popup-texto {
  margin: 0 0 16px;
  font-size: 1rem;
  line-height: 1.55;
  color: #444;
}
.sc-popup-texto p {
  margin: 0 0 8px;
}
.sc-popup-texto :last-child {
  margin-bottom: 0;
}

.sc-popup-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 12px 24px;
  background: #1e90ff;
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  text-align: center;
  transition: filter 0.15s ease;
}
.sc-popup-btn:hover {
  filter: brightness(1.08);
}

@media (max-width: 480px) {
  .sc-popup-card {
    max-width: 100%;
  }
  .sc-popup-body {
    padding: 18px 18px 22px;
  }
  .sc-popup-titulo {
    font-size: 1.2rem;
  }
}
