/**
 * @file
 * Styles for the Popup block.
 */

.popup-block {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-block.is-visible {
  opacity: 1;
  visibility: visible;
}

.popup-block__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
}

.popup-block__container {
  position: relative;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.9) translateY(-20px);
  transition: transform 0.3s ease;
  z-index: 1;
}

.popup-block.is-visible .popup-block__container {
  transform: scale(1) translateY(0);
}

.popup-block__close-x {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 32px;
  height: 32px;
  padding: 4px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #666;
  border-radius: 50%;
  transition: background-color 0.2s ease, color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-block__close-x:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: #333;
}

.popup-block__close-x svg {
  width: 20px;
  height: 20px;
}

.popup-block__title {
  margin: 0;
  padding: 24px 50px 16px 24px;
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  border-bottom: 1px solid #eee;
}

.popup-block__content {
  padding: 24px;
  font-size: 1rem;
  line-height: 1.6;
  color: #444;
}

.popup-block__content p:first-child {
  margin-top: 0;
}

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

.popup-block__footer {
  padding: 16px 24px 24px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.popup-block__close-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 37px;
  background: #EE2238;
  color: #FFFFFF;
  font-family: Aptos, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: normal;
  letter-spacing: -0.56px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.popup-block__close-btn:hover,
.popup-block__close-btn:focus {
  opacity: 0.9;
  background: #EE2238;
  color: #FFFFFF;
  text-decoration: none;
  border: none;
}

.popup-block__close-btn:active {
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 576px) {
  .popup-block__container {
    width: 95%;
    margin: 10px;
  }

  .popup-block__title {
    padding: 20px 45px 14px 20px;
    font-size: 1.25rem;
  }

  .popup-block__content {
    padding: 20px;
  }

  .popup-block__footer {
    padding: 14px 20px 20px;
  }

  .popup-block__close-btn {
    width: 100%;
    padding: 12px 20px;
  }
}
