.first-visit-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 9999;
}

.first-visit-popup-overlay.is-open {
  display: flex;
}

.first-visit-popup {
  width: 100%;
  max-width: 760px;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.first-visit-popup-layout {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}

.first-visit-popup-left {
  width: 46%;
  min-height: 430px;
  background: #111111;
}

.first-visit-popup-left img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.first-visit-popup-right {
  width: 54%;
  min-height: 430px;
  padding: 34px 28px 30px;
  text-align: center;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.first-visit-popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #666666;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.first-visit-popup-close:hover {
  background: #f3f3f3;
  color: #111111;
}

.first-visit-popup-pill {
  display: inline-block;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  color: #111111;
  margin-bottom: 12px;
}

.first-visit-popup-title {
  margin: 0 0 14px;
  font-size: 52px;
  line-height: 0.95;
  font-weight: 900;
  color: #111111;
  text-transform: uppercase;
}

.first-visit-popup-desc {
  margin: 0 0 16px;
  color: #333333;
  font-size: 16px;
  line-height: 1.4;
}

.first-visit-popup-terms {
  margin: 0 0 14px;
  padding: 0 0 0 18px;
  color: #666666;
  font-size: 12px;
  line-height: 1.45;
  text-align: left;
}

.first-visit-popup-terms li {
  margin-bottom: 4px;
}

.first-visit-popup-terms li::marker {
  color: #59a02b;
}

.first-visit-popup-terms li:last-child {
  margin-bottom: 0;
}

.first-visit-popup-coupon {
  margin: 0 auto 6px;
  width: auto;
  max-width: 100%;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.first-visit-popup-coupon-code {
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 0.02em;
  color: #111111;
  user-select: all;
  border: 1px solid #d9d9d9;
  border-radius: 2px;
  padding: 9px 11px;
  line-height: 1;
}

.first-visit-popup-copy {
  border: 1px solid #d9d9d9;
  background: #ffffff;
  color: #111111;
  font-weight: 900;
  border-radius: 2px;
  padding: 9px 11px;
  cursor: pointer;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: transform 0.12s ease, opacity 0.12s ease;
  line-height: 1;
}

.first-visit-popup-copy:hover {
  transform: translateY(-1px);
  opacity: 0.95;
}

.first-visit-popup-copy-status {
  min-height: 14px;
  font-size: 11px;
  font-weight: 700;
  color: #16a34a;
  margin-top: 8px;
}

.first-visit-popup-contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 4px;
  background: #59a02b;
  color: #ffffff;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
  transition: transform 0.12s ease, opacity 0.12s ease;
}

.first-visit-popup-contact-btn:hover {
  transform: translateY(-1px);
  opacity: 0.94;
}

.first-visit-popup-social {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 6px;
}

.first-visit-popup-social-link {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111111;
  text-decoration: none;
  transition: transform 0.12s ease, opacity 0.12s ease;
  font-size: 16px;
}

.first-visit-popup-social-link:hover {
  transform: translateY(-1px);
  opacity: 0.75;
}

.first-visit-discount-fab {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 62px;
  height: 62px;
  border-radius: 999px;
  border: 0;
  background: #59a02b;
  color: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 9998;
  box-shadow: 0 10px 24px rgba(89, 160, 43, 0.45);
  animation: discount-fab-pulse 1.6s infinite;
  text-decoration: none;
}

.first-visit-discount-fab.is-visible {
  display: inline-flex;
}

.first-visit-discount-fab i {
  font-size: 24px;
}

@keyframes discount-fab-pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(89, 160, 43, 0.45);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 16px rgba(89, 160, 43, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(89, 160, 43, 0);
  }
}

@media (max-width: 767px) {
  .first-visit-popup-overlay {
    padding: max(10px, env(safe-area-inset-top, 0px) + 6px) 14px max(10px, env(safe-area-inset-bottom, 0px) + 6px);
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-sizing: border-box;
  }

  .first-visit-popup {
    display: flex;
    flex-direction: column;
    flex: 0 0 auto;
    width: 100%;
    height: 90vh;
    height: 90dvh;
    max-height: min(90vh, calc(100vh - max(24px, env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px) + 20px)));
    max-height: min(90dvh, calc(100dvh - max(24px, env(safe-area-inset-top, 0px) + env(safe-area-inset-bottom, 0px) + 20px)));
    overflow: hidden;
    margin-block: auto;
  }

  .first-visit-popup-close {
    top: max(12px, calc(env(safe-area-inset-top, 0px) + 10px));
    right: max(12px, env(safe-area-inset-right, 0px));
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    background: rgba(255, 255, 255, 0.92);
    color: #222222;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
  }

  .first-visit-popup-layout {
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
  }

  .first-visit-popup-left {
    width: 100%;
    flex: 1 1 0;
    min-height: 72px;
    overflow: hidden;
  }

  .first-visit-popup-right {
    width: 100%;
    min-height: 0;
    flex: 0 0 auto;
    padding: 20px 20px max(22px, calc(env(safe-area-inset-bottom, 0px) + 16px));
    justify-content: flex-start;
  }

  .first-visit-popup-title {
    font-size: clamp(26px, 8vw, 36px);
    line-height: 1;
  }

  .first-visit-popup-desc {
    font-size: 14px;
  }

  .first-visit-popup-terms {
    font-size: 11px;
    margin-bottom: 12px;
  }

  .first-visit-popup-coupon {
    flex-wrap: wrap;
  }

  .first-visit-popup-social {
    margin-top: 10px;
  }
}
