/* ==================== 실시간환불 팝업 ==================== */

/* 오버레이 */
.realtime-refund-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.realtime-refund-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* 모달 */
.realtime-refund-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.9);
  width: 520px;
  max-width: 90%;
  max-height: 90vh;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  z-index: 99999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.realtime-refund-modal.show {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

/* 컨테이너 */
.realtime-refund-container {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* 헤더 */
.realtime-refund-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #dee2e6;
  background: #f8f9fa;
  flex-shrink: 0;
}

.realtime-refund-title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #2c3e50;
}

.realtime-refund-close-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: #6c757d;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 18px;
}

.realtime-refund-close-btn:hover {
  color: #2c3e50;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
}

/* 바디 */
.realtime-refund-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
}

/* 안내 박스 */
.realtime-refund-instructions {
  background: #fff5f5;
  border: 1px solid #ffe0e0;
  border-radius: 4px;
  padding: 16px;
  margin-bottom: 20px;
}

.realtime-refund-instructions ul {
  margin: 0;
  padding-left: 20px;
  list-style: none;
}

.realtime-refund-instructions li {
  position: relative;
  font-size: 12px;
  line-height: 1.8;
  color: #dc3545;
  margin-bottom: 4px;
}

.realtime-refund-instructions li:last-child {
  margin-bottom: 0;
}

.realtime-refund-instructions li::before {
  content: '•';
  position: absolute;
  left: -15px;
  font-weight: bold;
}

/* 폼 그룹 */
.realtime-refund-form-group {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
}

.realtime-refund-form-label {
  flex: 0 0 85px;
  font-size: 13px;
  font-weight: 600;
  color: #2c3e50;
  display: flex;
  align-items: center;
}

.realtime-refund-form-label::before {
  content: '○';
  margin-right: 6px;
  font-size: 14px;
}

.realtime-refund-form-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.realtime-refund-form-input,
.realtime-refund-form-select {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ced4da;
  border-radius: 4px;
  font-size: 13px;
  color: #495057;
  transition: all 0.2s;
  background: white;
}

.realtime-refund-form-input:focus,
.realtime-refund-form-select:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.realtime-refund-form-input:disabled {
  background: #f8f9fa;
  color: #6c757d;
}

.realtime-refund-form-select {
  cursor: pointer;
}

/* 옵션 체크박스 */
.realtime-refund-option-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px;
  background: #f8f9fa;
  border-radius: 4px;
  margin-bottom: 20px;
}

.realtime-refund-checkbox {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: #3498db;
  margin-top: 2px;
}

.realtime-refund-option-label {
  flex: 1;
  font-size: 13px;
  line-height: 1.5;
  color: #495057;
  cursor: pointer;
}

/* 예상잔액 섹션 */
.realtime-refund-balance-section {
  background: white;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 20px;
}

.realtime-refund-balance-title {
  margin: 0 0 16px 0;
  font-size: 13px;
  font-weight: 700;
  color: #2c3e50;
}

.realtime-refund-balance-display {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.realtime-refund-balance-box {
  flex: 1;
  max-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 20px 16px;
}

.realtime-refund-balance-amount {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
}

.realtime-refund-balance-amount.orange {
  color: #ff8c42;
}

.realtime-refund-balance-amount.blue {
  color: #3498db;
}

.realtime-refund-balance-label {
  font-size: 12px;
  color: #6c757d;
  font-weight: 600;
  text-align: center;
}

.realtime-refund-balance-arrow {
  flex: 0 0 auto;
  color: #3498db;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 푸터 */
.realtime-refund-footer {
  padding: 16px 20px;
  border-top: 1px solid #dee2e6;
  display: flex;
  justify-content: center;
  gap: 12px;
  background: #f8f9fa;
  flex-shrink: 0;
}

.btn-realtime-refund-confirm,
.btn-realtime-refund-cancel {
  min-width: 100px;
  padding: 10px 24px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-realtime-refund-confirm {
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
}

.btn-realtime-refund-confirm:hover {
  background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
  box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

.btn-realtime-refund-cancel {
  background: #6c757d;
  color: white;
}

.btn-realtime-refund-cancel:hover {
  background: #5a6268;
}

/* 반응형 */
@media (max-width: 576px) {
  .realtime-refund-modal {
    width: 95%;
    max-height: 95vh;
  }
  
  .realtime-refund-header,
  .realtime-refund-body,
  .realtime-refund-footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  
  .realtime-refund-form-label {
    flex: 0 0 75px;
    font-size: 12px;
  }
  
  .realtime-refund-balance-display {
    flex-direction: column;
  }
  
  .realtime-refund-balance-box {
    width: 100%;
    max-width: 100%;
  }
  
  .realtime-refund-balance-arrow {
    transform: rotate(90deg);
  }
}
