/**
 * Esemény popup.
 *
 * Önálló fájl, mert a style.css csak az eseményoldalakon és a shortcode-os
 * oldalakon töltődik be, a popupnak viszont az egész webhelyen működnie kell.
 * Ezért az animáció itt külön szerepel, nem hivatkozunk a style.css-re.
 */

.tws-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 999998;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

/* A [hidden] specificitása nagyobb, ezért felülírja a fenti display: flex-et. */
.tws-popup-overlay[hidden] {
  display: none;
}

.tws-popup {
  position: relative;
  box-sizing: border-box;
  width: 100%;
  max-width: 420px;
  padding: 36px 32px 32px 32px;
  background: #ffffff;
  border-top: 5px solid #000000;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  text-align: center;
  font-family: "Roboto", sans-serif;
  color: #444444;
  animation: twsPopupIn 0.4s ease forwards;
}

.tws-popup-close {
  position: absolute;
  top: 10px !important;
  right: 14px;
  width: 32px !important;
  height: 32px !important;
  padding: 0;
  background: none !important;
  border: none !important;
  font-size: 28px !important;
  line-height: 1;
  color: #000 !important;
  cursor: pointer;
  transition: color 0.2s;
}

.tws-popup-close:hover {
  color: #000000;
}

.tws-popup-logo {
  display: block;
  max-width: 150px;
  max-height: 60px;
  width: auto;
  height: auto;
  margin: 0 auto 20px auto;
}

.tws-popup-title {
  margin: 0 0 12px 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  color: #000000;
}

.tws-popup-text {
  margin: 0 0 22px 0;
  font-size: 15px;
  line-height: 1.6;
}

.tws-popup-text p {
  margin: 0 0 10px 0;
}

.tws-popup-text p:last-child {
  margin-bottom: 0;
}

.tws-popup-meta {
  margin: 0 0 24px 0;
  padding: 16px 18px;
  background: #f9f9f9;
  border-radius: 10px;
  text-align: left;
}

.tws-popup-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 700;
  color: #000000;
}

.tws-popup-row+.tws-popup-row {
  margin-top: 10px;
}

.tws-popup-icon {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: #000000;
}

.tws-popup-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 14px;
  background: #000000;
  color: #ffffff;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.3s;
}

.tws-popup-btn:hover,
.tws-popup-btn:focus {
  background: #333333;
  color: #ffffff;
}

@keyframes twsPopupIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .tws-popup {
    padding: 30px 22px 24px 22px;
  }

  .tws-popup-title {
    font-size: 19px;
  }
}