/* Achilles / Tohatsu Announcement Popup */

.achilles-popup {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.achilles-popup.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.achilles-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
}

.achilles-popup__dialog {
  position: relative;
  z-index: 1;
  width: min(620px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  padding: 42px 42px 38px;
}

.achilles-popup__close {
  position: absolute;
  top: 10px;
  right: 14px;
  border: 0;
  background: transparent;
  color: #333333;
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  padding: 4px 8px;
}

.achilles-popup__close:hover,
.achilles-popup__close:focus {
  color: #000000;
}

.achilles-popup__content h2 {
  margin: 0 0 18px;
  font-size: 30px;
  line-height: 1.2;
  color: #1b1b1b;
}

.achilles-popup__content p {
  margin: 0 0 26px;
  font-size: 17px;
  line-height: 1.65;
  color: #444444;
}

.achilles-popup__button {
  display: inline-block;
  padding: 13px 22px;
  border-radius: 4px;
  background: #0d4f7c;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.2s ease;
}

.achilles-popup__button:hover,
.achilles-popup__button:focus {
  background: #083b5e;
  color: #ffffff !important;
  transform: translateY(-1px);
}

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

@media (max-width: 640px) {
  .achilles-popup {
    padding: 16px;
  }

  .achilles-popup__dialog {
    max-height: calc(100vh - 32px);
    padding: 36px 24px 28px;
  }

  .achilles-popup__content h2 {
    font-size: 24px;
  }

  .achilles-popup__content p {
    font-size: 16px;
  }

  .achilles-popup__button {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .achilles-popup,
  .achilles-popup__button {
    transition: none;
  }
}
