#rt-floating-popup {
  position: fixed;
  bottom: 24px;
  left: 24px; /* 우측 하단 채널톡 버튼과 겹치지 않도록 좌측 하단에 배치한다. */
  width: 365px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.2), 0 2px 6px rgba(15, 23, 42, 0.08);
  border: 1px solid #e2e8f0;
  z-index: 999999;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  overflow: hidden;
  animation: rtSlideUp 0.4s ease-out;
  box-sizing: border-box;
}

#rt-floating-popup * {
  box-sizing: border-box;
}

@keyframes rtSlideUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.rt-popup-header {
  background: linear-gradient(135deg, #1e1b4b 0%, #312e81 60%, #0284c7 100%);
  padding: 18px 20px 16px;
  color: #ffffff;
  flex-shrink: 0;
}

.rt-badge-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}

.rt-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: -0.2px;
}

.rt-badge-primary {
  background: #38bdf8;
  color: #0f172a;
}

.rt-badge-outline {
  background: rgba(255, 255, 255, 0.15);
  color: #e0f2fe;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.rt-popup-title {
  font-size: 18.5px;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 6px;
  letter-spacing: -0.4px;
  color: #ffffff;
}

.rt-popup-subtitle {
  font-size: 12.5px;
  color: #bae6fd;
  line-height: 1.45;
  margin: 0;
  word-break: keep-all;
}

.rt-popup-body {
  padding: 16px 20px 18px;
  overflow-y: auto;
  flex: 1;
}

.rt-section-label {
  font-size: 12px;
  font-weight: 800;
  color: #0284c7;
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}

.rt-benefit-list {
  list-style: none;
  padding: 0;
  margin: 0 0 13px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rt-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: #334155;
  line-height: 1.45;
  word-break: keep-all;
}

.rt-num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 800;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
}

.rt-benefit-item strong {
  color: #0f172a;
  font-weight: 700;
}

.rt-notice-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 14px;
  word-break: keep-all;
}

.rt-notice-box strong {
  color: #0f172a;
}

.rt-cta-btn {
  display: block;
  width: 100%;
  padding: 13px 16px;
  background: linear-gradient(90deg, #2563eb 0%, #0284c7 100%);
  color: #ffffff !important;
  text-align: center;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.rt-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.4);
}

.rt-popup-footer {
  background: #f1f5f9;
  padding: 10px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #e2e8f0;
  font-size: 12px;
  color: #475569;
  flex-shrink: 0;
}

.rt-hide-today {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  user-select: none;
  margin: 0;
}

.rt-close-btn {
  background: none;
  border: none;
  color: #334155;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  padding: 2px 6px;
}

.rt-close-btn:hover {
  color: #0f172a;
}

.rt-hide-today input:focus-visible,
.rt-close-btn:focus-visible,
.rt-cta-btn:focus-visible {
  outline: 2px solid #0284c7;
  outline-offset: 2px;
}

@media (max-width: 480px) {
  #rt-floating-popup {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
  }
}
