.agc-popup-lock {
  overflow: hidden;
}

.agc-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 18, 38, 0.58);
}

.agc-popup {
  width: min(560px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  border-radius: 18px;
  background: #ffffff;
  color: #092040;
  box-shadow: 0 28px 80px rgba(4, 18, 38, 0.28);
}

.agc-popup__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #e9f1f8;
  overflow: hidden;
}

.agc-popup__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.agc-popup__body {
  position: relative;
  padding: 30px;
}

.agc-popup__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d8e2ec;
  border-radius: 999px;
  background: #ffffff;
  color: #092040;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.agc-popup__title {
  margin: 0 36px 10px 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.05;
  letter-spacing: 0;
  font-weight: 900;
}

.agc-popup__description {
  margin: 0;
  color: #4a5c72;
  font-size: 1rem;
  line-height: 1.55;
  font-weight: 550;
}

.agc-popup__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.agc-popup__button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1.5px solid #1976d2;
  border-radius: 8px;
  background: #1976d2;
  color: #ffffff;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

.agc-popup__button--secondary {
  background: #ffffff;
  color: #092040;
  border-color: #c9d7e6;
}

.agc-popup__status {
  min-height: 20px;
  margin-top: 14px;
  color: #006d36;
  font-size: 0.9rem;
  font-weight: 700;
}

.agc-popup__status.is-error {
  color: #9b1c1c;
}

.agc-popup__close:focus-visible,
.agc-popup__button:focus-visible {
  outline: 2px solid #1976d2;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .agc-popup-overlay {
    align-items: flex-end;
    padding: 12px;
  }

  .agc-popup {
    max-height: calc(100dvh - 24px);
    border-radius: 18px 18px 10px 10px;
  }

  .agc-popup__body {
    padding: 24px 18px 20px;
  }

  .agc-popup__actions {
    flex-direction: column;
  }

  .agc-popup__button {
    width: 100%;
  }
}
