/* =========================================================
   VYN Exit Pop-up – Frontend Styles (Nur UI/Animationen)
   Version: 1.8.1
   ========================================================= */

/* ——— Grundgerüst ——— */
.vyn-eip-overlay{
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.621);
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 999999;
}
.vyn-eip-overlay.is-open{
  opacity: 1;
  visibility: visible;
}

.vyn-eip-modal{
  position: relative;
  width: min(100%, 920px);
  /* Optik (Farbe, Radius, Padding) kommt aus root_vyn_exit_intent.css */
  box-shadow: 0 30px 90px rgba(2,6,23,.35);
  transform: translateY(10px) scale(.98);
  opacity: 0;
  transition: transform .28s ease, opacity .28s ease;
}
.vyn-eip-overlay.is-open .vyn-eip-modal{
  transform: translateY(0) scale(1);
  opacity: 1;
}

.vyn-eip-inner{
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 0;
}
.vyn-eip-inner--single{
  display: block;
}

.vyn-eip-media{
  min-height: 350px;
  background-size: cover;
  background-position: center;
  margin-right: 16px;
}
.vyn-eip-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.vyn-eip-content > *:first-child{ margin-top: 0; }
.vyn-eip-content > *:last-child{ margin-bottom: 0; }

.vyn-eip-actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* ——— Buttons (Farben aus root_vyn_exit_intent.css) ——— */
.vyn-eip-btn {
    appearance: none;
    border: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    line-height: 1.1;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px 14px 20px !important;
    transition: all .5s ease-in-out;
}

/* Close */
.vyn-eip-close {
    position: absolute;
    top: 0;
    right: 0;
    background: #FFF !important;
    border: 0;
    color: #000000 !important;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 8px 18px !important;
    border-radius: 10px !important;
    transition: all .5s ease-in-out;
}

@media (min-width: 992px){
	.vyn-eip-close {
		top: -44px;
		right: -53px;
	}
}

.vyn-eip-close:hover {
    background: #e0e0e0 !important;
    color: #4a4a4a !important;
    border-radius: 10px !important;
}

/* ——— Debug-Balken (unten rechts) ——— */
#vyn-eip-debug{
  position: fixed;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 999999;
  background: #111827;
  color: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  box-shadow: 0 8px 30px rgba(2,6,23,.35);
  font-size: 13px;
  display: flex;
  gap: 10px;
  align-items: center;
}

#vyn-eip-debug strong {
    font-weight: 600;
    display: block;
}

/* ——— Responsiv ——— */
@media (max-width: 840px){
  .vyn-eip-inner{
    grid-template-columns: 1fr;
  }
  .vyn-eip-media{
    margin: 0 0 12px 0;
    min-height: 160px;
  }
}


@media (max-width: 768px){
	.vyn-eip-modal .vyn-eip-body{
		padding: 15px!important;
	}
}


@media (max-width: 640px){
  .vyn-eip-modal{ width: calc(100vw - 24px); margin: 12px; }
  .vyn-eip-inner{ flex-direction: column; }
  .vyn-eip-media{ min-height: 160px; background-size: cover; background-position: center; }
  .vyn-eip-actions{ flex-direction: column; gap: 10px; }
  .vyn-eip-btn{ width: 100%; min-height: 44px; }
}
