/* Ayrışım Popup frontend stilleri - merkeze ortalı */
#ayrisim-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none; /* JS ile .show gelince açılacak */
  z-index: 99999;
}

#ayrisim-popup-overlay.show {
  display: block;
}

.ayrisim-popup {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 8px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  animation: ayrisimPopupFadeIn 0.35s ease-out;
}

.ayrisim-popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  color: #444;
  z-index: 2;
}

.ayrisim-popup-close:hover {
  color: #000;
}

.ayrisim-popup-inner {
  display: flex;
  flex-direction: column;
}

.ayrisim-popup-image img {
  display: block;
  width: 100%;
  height: auto;
}

.ayrisim-popup-content {
  padding: 18px 20px 22px;
  text-align: center;
  font-family: inherit;
}

.ayrisim-popup-content h2 {
  font-size: 1.4rem;
  margin: 0 0 8px;
  font-weight: 700;
}

.ayrisim-popup-content p {
  font-size: 0.95rem;
  margin: 0 0 14px;
  line-height: 1.5;
}

.ayrisim-popup-btn {
  display: inline-block;
  padding: 10px 22px;
  background: #ff6600;
  color: #ffffff;
  text-decoration: none;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
}

.ayrisim-popup-btn:hover {
  filter: brightness(0.9);
}

body.ayrisim-popup-open {
  overflow: hidden;
}

@keyframes ayrisimPopupFadeIn {
  from {
    transform: translate(-50%, calc(-50% + 15px));
    opacity: 0;
  }
  to {
    transform: translate(-50%, -50%);
    opacity: 1;
  }
}

@media (max-width: 480px) {
  .ayrisim-popup-content {
    padding: 14px 14px 18px;
  }

  .ayrisim-popup-content h2 {
    font-size: 1.2rem;
  }
}
