/* 離脱防止ポップアップのスタイル */

.exit-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.exit-popup {
  background: white;
  border-radius: 20px;
  max-width: 600px;
  width: 90%;
  padding: 40px;
  position: relative;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.4s ease-out;
}

.exit-popup-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  font-size: 32px;
  color: #999;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s;
}

.exit-popup-close:hover {
  background: #f0f0f0;
  color: #333;
}

.exit-popup-content {
  text-align: center;
}

.exit-popup-icon {
  font-size: 60px;
  margin-bottom: 20px;
}

.exit-popup-title {
  font-size: 32px;
  color: #333;
  margin: 0 0 15px 0;
  font-weight: bold;
}

.exit-popup-subtitle {
  font-size: 20px;
  color: #666;
  margin: 0 0 30px 0;
  line-height: 1.5;
}

.exit-popup-subtitle .highlight {
  color: #E60012;
  font-weight: bold;
  background: linear-gradient(transparent 60%, #FFE500 60%);
  padding: 0 5px;
}

.exit-popup-benefits {
  background: #FFF5F5;
  border: 2px dashed #E60012;
  border-radius: 15px;
  padding: 25px;
  margin: 0 0 25px 0;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
  text-align: left;
}

.benefit-item:last-child {
  margin-bottom: 0;
}

.benefit-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.benefit-text strong {
  display: block;
  font-size: 18px;
  color: #333;
  margin-bottom: 5px;
}

.benefit-text small {
  color: #E60012;
  font-size: 14px;
  font-weight: bold;
}

.exit-popup-timer {
  font-size: 18px;
  color: #666;
  margin: 0 0 30px 0;
}

#exit-timer {
  font-size: 24px;
  font-weight: bold;
  color: #E60012;
  display: inline-block;
  min-width: 40px;
  text-align: center;
}

.exit-popup-actions {
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-get-bonus {
  background: #E60012;
  color: white;
  border: none;
  padding: 18px 40px;
  font-size: 20px;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(230, 0, 18, 0.3);
  animation: pulse 2s infinite;
}

.btn-get-bonus:hover {
  background: #cc0010;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230, 0, 18, 0.4);
}

.btn-no-thanks {
  background: transparent;
  color: #999;
  border: 1px solid #ddd;
  padding: 15px 30px;
  font-size: 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-no-thanks:hover {
  background: #f5f5f5;
  color: #666;
}

/* 特典追加メッセージ */
.offer-accepted-message {
  background: #4CAF50;
  color: white;
  padding: 15px 25px;
  border-radius: 10px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: bold;
  animation: slideDown 0.5s ease-out;
}

.offer-accepted-message .icon {
  font-size: 24px;
}

/* アニメーション */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    transform: translateY(30px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes slideDown {
  from {
    transform: translateY(-20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* モバイル対応 */
@media (max-width: 600px) {
  .exit-popup {
    padding: 30px 20px;
  }
  
  .exit-popup-title {
    font-size: 26px;
  }
  
  .exit-popup-subtitle {
    font-size: 18px;
  }
  
  .benefit-text strong {
    font-size: 16px;
  }
  
  .btn-get-bonus {
    font-size: 18px;
    padding: 15px 30px;
  }
  
  .exit-popup-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .exit-popup-actions button {
    width: 100%;
  }
}