/*
 Theme Name: Astra Child
 Description: Astra 테마의 자식 테마입니다.
 Author: Your Name
 Author URI: http://example.com
 Template: astra
 Version: 1.0.0
*/

body, html, .survey-container, .survey-container *,
.elementor-widget, .elementor-widget-heading,
.elementor-widget-text-editor, .elementor-widget-button,
.elementor-widget-container {
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, system-ui,
    Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", sans-serif !important;
  -webkit-text-size-adjust: none;
}

/* 최소 너비 설정 (깨짐 방지) */
body {
  min-width: 320px;
  overflow-x: auto;
}

/* horizontal-category-scroll 스타일 유지 */
.horizontal-category-scroll ul.products.horizontal-grid {
  display: flex !important;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  list-style: none;
  margin: 0;
  padding: 0;
}

.horizontal-category-scroll ul.products.horizontal-grid li {
  flex: 0 0 auto;
  margin-right: 20px;
  white-space: nowrap;
  text-align: center;
}

.horizontal-category-scroll li h2.woocommerce-loop-category__title {
  display: inline-block;
  white-space: nowrap;
}

/* Gamipress Earnings 스타일 유지 */
.gamipress-earnings .gamipress-earnings-table {
  width: 100% !important;
  table-layout: fixed;
  border-collapse: collapse !important;
  margin: 1.5em auto;
  background: #fff;
  box-shadow: none;
  border: none !important;
}

.gamipress-earnings .gamipress-earnings-table thead th:first-child {
  display: none !important;
}

.gamipress-earnings .gamipress-earnings-table th,
.gamipress-earnings .gamipress-earnings-table td {
  padding: 0.65em 1em;
  border: none !important;
  vertical-align: top;
  color: #444;
}

.gamipress-earnings .gamipress-earnings-table tbody tr:nth-child(even) {
  background-color: #fbfcfd;
}

.gamipress-earnings .gamipress-earnings-table tbody tr:hover {
  background-color: #eef5fc;
}

.earning-meta-date {
  font-size: 0.9em;
  color: #666;
}

.earning-meta-points {
  font-size: 1.1em;
  color: #6244BB !important;
  font-weight: bold;
}

@media (prefers-color-scheme: dark) {
  .gamipress-earnings .gamipress-earnings-table {
    background: transparent !important;
  }
  .gamipress-earnings .gamipress-earnings-table tbody tr:nth-child(even) {
    background-color: rgba(255,255,255,0.05) !important;
  }
  .gamipress-earnings .gamipress-earnings-table tbody tr:hover {
    background-color: rgba(255,255,255,0.1) !important;
  }
  .gamipress-earnings .gamipress-earnings-table th,
  .gamipress-earnings .gamipress-earnings-table td {
    color: #ddd !important;
  }
}

/* 달력 필터 스타일 유지 */
.calendar-filter {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 15px;
}

.calendar-filter button {
  background: #fff;
  border: 1px solid #007cba;
  border-radius: 3px;
  color: #007cba;
  padding: 4px 8px;
  cursor: pointer;
  margin: 0 2px;
}

.calendar-filter button:hover {
  background-color: #007cba;
  color: #fff;
}

.calendar-filter button:disabled {
  background: #f7f7f7;
  border-color: #ccc;
  color: #999;
  cursor: default;
}

