.ppc-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
  z-index: 999980;
}

.ppc-sidebar {
  position: fixed;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: min(600px, calc(100vw - 24px));
  transform: translateX(104%);
  opacity: 0;
  transition: transform 0.28s ease, opacity 0.2s ease;
  z-index: 999990;
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.3);
}

.ppc-calculator-frame {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

body.ppc-calculator-open {
  overflow: hidden;
}

body.ppc-calculator-open .ppc-overlay {
  opacity: 1;
  pointer-events: auto;
}

body.ppc-calculator-open .ppc-sidebar {
  transform: translateX(0);
  opacity: 1;
}

.pep-calculator-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 0;
  padding: 10px 16px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}

.pep-calculator-open:hover {
  background: #1d4ed8;
}

@media (max-width: 768px) {
  .ppc-sidebar {
    top: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    border-radius: 0;
  }
}
