/**
 * Language Suggestion Popup Styles
 * 
 * Clean, modern modal design with smooth animations
 */

/* Overlay */
.ep-lang-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999999;
  opacity: 0;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(2px);
}

.ep-lang-popup-overlay.ep-lang-popup-visible {
  opacity: 1;
}

/* Modal container */
.ep-lang-popup {
  background: #ffffff;
  border-radius: 5px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  max-width: 500px;
  width: 90%;
  padding: 32px;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
  border-left: 5px solid #b33228;
}

.ep-lang-popup-overlay.ep-lang-popup-visible .ep-lang-popup {
  transform: translateY(0);
}

/* Content */
.ep-lang-popup-content {
  text-align: center;
}

.ep-lang-popup-question {
  font-size: 18px;
  font-weight: 600;
  color: #1a1a1a;
  margin: 0 0 24px 0;
  line-height: 1.5;
}

/* Buttons container */
.ep-lang-popup-buttons {
  display: flex;
  gap: 12px;
  flex-direction: column;
}

@media (min-width: 480px) {
  .ep-lang-popup-buttons {
    flex-direction: row;
  }
}

/* Button base styles */
.ep-lang-popup-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid #e0e0e0;
  font-weight: 500;
  cursor: pointer;
  text-transform: uppercase;
  font-family: "Aktiv Grotesk Ex";
  font-size: 0.8rem;
  border-radius: 5px;
  padding-top: 0.8em;
  padding-right: 1.4em;
  padding-bottom: 0.8em;
  padding-left: 1.4em;
  transition: all .2s ease-in-out;
}

.ep-lang-popup-btn:hover {
  border-color: #c0c0c0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ep-lang-popup-btn:active {
  transform: translateY(0);
}

/* Stay button */
.ep-lang-popup-btn-stay {
  background: #f5f5f5;
}

.ep-lang-popup-btn-stay:hover {
  background: #ebebeb;
}

/* Switch button - primary action */
.ep-lang-popup-btn-switch {
  background: #b33127;
  border-color: #b33127;
  color: #ffffff;
}

.ep-lang-popup-btn-switch:hover {
  background: #000;
  border-color: #000;
}

/* Flag icon spacing */
.ep-lang-popup-btn .langdd-flag {
  font-size: 20px;
  object-fit: contain;
  background-repeat: no-repeat;
}

/* Responsive adjustments */
@media (max-width: 479px) {
  .ep-lang-popup {
    padding: 24px;
  }

  .ep-lang-popup-question {
    font-size: 16px;
  }

  .ep-lang-popup-btn {
    padding: 12px 16px;
    font-size: 14px;
  }
}

/* Right-to-left language support */
[dir="rtl"] .ep-lang-popup-btn {
  flex-direction: row-reverse;
}