* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Pretendard Variable", Pretendard, -apple-system,
    BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI",
    "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji",
    "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
}

body {
  background-color: #f8f9fa;
  color: #333;
  font-size: 16px;
  line-height: 1.5;
  min-width: 320px; /* 원하는 최소 너비 설정 */
  justify-content: center; /* 수평 중앙 정렬 */
  align-items: center; /* 수직 중앙 정렬 */
}

.complete-notice {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 24px 36px;
  background: white;
  color: #111;
  text-align: center;
  border-radius: 12px;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  z-index: 1000; /* ✅ 오버레이보다 위 */
  max-width: 80%;
  white-space: pre-wrap;
  pointer-events: auto; /* ✅ 클릭 차단 */
}

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
  background-color: #fff;
  min-height: 100vh;
  position: relative;
}
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
}

.header-left {
  display: flex;
  flex-direction: column;
  gap: 6px; /* 위 아래 간격 조정 */
}

.header-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  display: flex;
  align-items: center;
  white-space: nowrap; /* 한 줄 유지 */
}

.car-info-warning {
  background-color: #fffbdd;
  color: #856404;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
  border: 1px solid #ffeeba;
}

.header-right {
  background-color: #1a237e;
  border-radius: 8px;
  padding: 10px 16px;
  display: inline-block;
}

.btn-header-action {
  background-color: #1a237e;
  border: none;
  color: white;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  padding: 15px 5px;
  border-radius: 6px;
  transition: background-color 0.3s ease, transform 0.1s ease;
  white-space: nowrap;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-header-action:hover {
  background-color: #1a237e;
}

.btn-header-action:active {
  background-color: #1a237e;
  transform: scale(0.98);
}

.help-icon {
  width: 20px;
  height: 20px;
  background-color: #f55;
  color: white;
  border-radius: 50%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-size: 14px;
  margin-left: 8px;
  font-weight: bold;
}

.info-notice {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}

.info-input {
  flex: 1;
  padding: 12px;
  min-width: 0; /* 넘침 방지 */
  text-align: center;
  background-color: #eee;
  border: none;
  border-radius: 8px;
  margin: 0 4px;
  font-size: 14px;
  font-weight: bold;

  color: #666;
}

.section-title {
  font-size: 14px;
  font-weight: bold;
  color: #666;
  margin: 16px 0 8px;
}

.section-subtitle {
  font-size: 13px;
  color: #666;
  margin: 8px 0 8px;
}

.form-row {
  display: flex;
  margin-bottom: 8px;
  justify-content: space-between;
  gap: 8px;
}

.form-field {
  flex: 1;
  background-color: #e8eaf6;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.date-time-row {
  display: flex;
  justify-content: space-between; /* 양쪽으로 정렬 */
  gap: 10px; /* 간격을 원하는 대로 조정 가능 */
}

.date-time-field {
  flex: 1;
  background-color: #e8eaf6;
  padding: 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.date-time-field,
.form-field {
  display: flex;
  align-items: center;
  font-weight: bold;
  justify-content: center; /* 가로 중앙 정렬 */
  text-align: center; /* 텍스트 가운데 정렬 보장 */
}

.info-input::placeholder {
  color: #999;
  font-size: 13px;
}

.field-label {
  font-size: 14px;
  color: #666;
}

.field-value {
  width: 100%;
  padding: 0 10px;
  font-size: 13px;
  font-weight: bold;
  color: #333;
  white-space: nowrap; /* 한 줄 유지 */
}

.address-field {
  background-color: #e8eaf6;
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.address-text {
  font-size: 14px;
  font-weight: bold;
}

.icon-group {
  display: flex;
  gap: 12px;
}

.icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}

.special-note {
  background-color: #e8eaf6;
  padding: 12px;
  border-radius: 8px;
  min-height: 80px;
  width: 100%;
  margin-bottom: 16px;
}

.action-buttons {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 8px;
  padding: 16px 0;
  background-color: white;
}

.btn-dark {
  flex: 1;
  padding: 16px;
  background-color: #1a237e;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
}

.btn-primary {
  flex: 1;
  padding: 16px;
  background-color: #1976d2;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
}

/* 반응형 스타일 */
@media (max-width: 480px) {
  .container {
    padding: 12px;
  }

  .form-row {
    flex-direction: column;
  }

  .info-btn {
    font-size: 12px;
    padding: 10px;
  }

  .header-title,
  .header-right {
    font-size: 16px;
  }
}

@media (min-width: 768px) {
  .container {
    border-radius: 12px;
    margin-top: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-height: auto;
  }

  .action-buttons {
    position: static;
  }
}

/* 온보딩 스타일 */
#onboard-app {
  max-width: 600px;
  min-width: 320px;
  width: 100%;
  height: 100vh;
  background: white;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  margin: 0 auto;
  padding: 16px;
}

.onboard-progress-steps {
  display: flex;
  justify-content: space-between;
  padding: 20px 10px 10px;
  background: white;
  z-index: 10;
  width: 100%;
}

.onboard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.onboard-step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: bold;
  margin-bottom: 8px;
  color: #333;
}

.onboard-step-label {
  font-size: 10px;
  color: #999;
  text-align: center;
  font-weight: 500;
}

.onboard-step.onboard-active .onboard-step-circle {
  background-color: #ff9800;
  color: white;
}

.onboard-step.completed .onboard-step-circle {
  background-color: #2196f3;
  color: white;
}

.onboard-step.onboard-active .onboard-step-label,
.onboard-step.completed .onboard-step-label {
  color: #2196f3;
}

.onboard-intro-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

.onboard-intro-pages {
  display: flex;
  height: 100%;
  transition: transform 0.3s ease;
}

.onboard-page {
  min-width: 100%;
  height: 98%;
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.onboard-page-image {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.onboard-page-image img,
.onboard-page-image video {
  max-height: 450px;
  border-radius: 20px;
  object-fit: contain;
}

.onboard-welcome-image {
  position: relative;
  border-radius: 20px;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  width: 80%;
  aspect-ratio: 1 / 1;
}

.onboard-welcome-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.onboard-welcome-image::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.3);
  z-index: -1;
}

.onboard-page-title {
  font-size: 20px;
  font-weight: bold;
  color: #1565c0;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
}

.onboard-page-body {
  font-size: 16px;
  line-height: 1.5;
  text-align: center;
  white-space: pre-line;
  color: #333;
  overflow-y: auto;
  align-items: center;
}

.onboard-page-body-with-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px;
  padding: 0 16px;
  text-align: left;
}

.onboard-navigation {
  display: flex;
  justify-content: space-between;
  padding: 15px;
  background: white;
  border-top: 1px solid #eee;
}

.onboard-btn {
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 600;
}

.onboard-btn-skip {
  background: none;
  color: #666;
}

.onboard-btn-next {
  background: none;
  color: #2196f3;
}

.onboard-btn-done {
  background: none;
  color: #2196f3;
  font-weight: 600;
}

.onboard-dots {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 8px 0;
  background-color: white; /* 필요 시 배경 */
  z-index: 5;
}

.onboard-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #ccc;
  margin: 0 2px;
}

.onboard-dot.onboard-active {
  width: 12px;
  height: 8px;
  border-radius: 25px;
  background-color: #2196f3;
}

.onboard-material-icon {
  font-size: 16px;
  vertical-align: middle;
}

.onboard-video-container {
  position: relative;
  height: 90%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f0f0f0;
  border-radius: 20px;
  overflow: hidden;
}

.onboard-video-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
}

.onboard-play-icon {
  position: absolute;
  font-size: 50px;
  color: rgba(255, 255, 255, 0.8);
}

.onboard-btn-prev {
  background: none;
  color: #666;
  font-weight: 600;
}

/* 다이아로그 */

.dialog {
  width: 90%;
  height: 90%;
  background-color: white;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  max-width: 600px;
}

.dialog-content {
  flex: 1;
  overflow: auto;
  padding: 16px;
  position: relative;
}

.dialog-footer {
  display: flex;
  gap: 10px;
  justify-content: space-between; /* 좌우 끝으로 정렬 */
  align-items: center;
  padding: 1rem;
  border-top: 1px solid #ddd;
}

.dialog-footer button {
  flex: 1; /* 균등 너비 */
  text-align: center;
  padding: 10px 0;
  font-size: 16px;
}

.btn {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
}

.btn-primary {
  background-color: #0066cc;
  color: white;
}

.btn-secondary {
  background-color: white;
  color: #0066cc;
  border: 1px solid #0066cc;
}

.zoom-btns {
  display: flex;
}

.zoom-btn {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  margin: 0 5px;
}

h1 {
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
}

h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
  margin-top: 10px;
}

h3 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 5px;
}

.row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  margin-bottom: 5px;
}

.title-cell {
  width: 30px;
  margin-left: 5px;
  font-weight: 600;
  font-size: 13px;
}

.title-cell-wide {
  width: 60px;
  margin-left: 5px;
  font-weight: 600;
  font-size: 14px;
}

.content-cell {
  flex: 1;
  font-weight: 600;
  font-size: 13px;
}

.red-text {
  color: red;
  font-weight: 600;
  font-size: 14px;
  margin: 15px 0;
}

.page {
  display: none;
}

.active {
  display: block;
}

.center-text {
  text-align: center;
}

.highlight {
  color: red;
}

/* 다이얼로그 */

/* 다이얼로그 오버레이 */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.dialog {
  background: #fff;
  width: 90%;
  max-width: 700px;
  max-height: 90%;
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  position: relative;
}

.dialog-content {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  transform-origin: top center;
}

.dialog-footer {
  height: 50px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 10px;
  border-top: 1px solid #eee;
}

.btn {
  padding: 8px 16px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
}

.btn-primary {
  background-color: #0066cc;
  color: white;
}

.btn-secondary {
  background-color: white;
  color: #0066cc;
  border: 1px solid #0066cc;
}

.zoom-btns {
  display: flex;
}

.zoom-btn {
  background: none;
  border: none;
  font-size: 20px;
  margin: 0 5px;
  cursor: pointer;
  color: #333;
}

h1 {
  font-size: 18px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 10px;
}

h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 5px;
  margin-top: 10px;
}

h3 {
  font-size: 16px;
  font-weight: 700;
  margin-top: 10px;
  margin-bottom: 5px;
}

.row {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  margin-bottom: 5px;
}

.title-cell {
  width: 30px;
  margin-left: 5px;
  font-weight: 600;
  font-size: 13px;
}

.title-cell-wide {
  width: 60px;
  margin-left: 5px;
  font-weight: 600;
  font-size: 14px;
}

.content-cell {
  flex: 1;
  font-weight: 600;
  font-size: 13px;
}

.red-text {
  color: red;
  font-weight: 600;
  font-size: 14px;
  margin: 15px 0;
}

.dialog-page {
  display: none;
}

/* 활성화된 페이지만 보임 */
.dialog-page.active {
  display: block;
}

.center-text {
  text-align: center;
}

.highlight {
  color: red;
}

/* 주유/잡비 */

.additional-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.additional-dialog {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 280px;

  padding: 16px;
  animation: fadeIn 0.3s ease;
}

.additional-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.additional-title {
  font-size: 24px;
  font-weight: 700;
  color: #555;
}

.additional-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 24px;
  color: #555;
}

.additional-subtitle {
  font-size: 16px;
  font-weight: 600;
  color: #555;
  margin-bottom: 10px;
}

.additional-category {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.additional-category-icon {
  margin-right: 5px;
  color: #555;
}

.additional-category-title {
  font-size: 16px;
  font-weight: 700;
  color: #555;
}

.additional-label {
  font-size: 15px;
  font-weight: 600;
  color: #999;
  margin-bottom: 5px;
}

.additional-input-row {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.additional-input-container {
  flex: 1;
  position: relative;
}

.additional-input {
  width: 100%;
  height: 40px;
  text-align: center;
  border: 1px solid #eee;
  border-radius: 12px;
  background-color: #fafafa;
  padding: 10px;
  padding-right: 30px; /* ✅ 오른쪽 여백 확보 */
  font-size: 16px;
  font-weight: 600;
  color: #555;
}

.additional-input:focus {
  outline: none;
  border-color: #eee;
}

.additional-input::placeholder {
  color: #999;
  font-weight: 600;
}

.additional-currency {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #555;
  font-weight: 600;
}

.additional-button-row {
  display: flex;
  gap: 10px;
}

.additional-upload-btn {
  flex: 1;
  height: 40px;
  background-color: #5d71e1;
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.additional-save-btn {
  flex: 1;
  height: 40px;
  background-color: #4c6ef5;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.additional-toast {
  position: fixed;
  top: 40%; /* 화면 위쪽 */
  left: 50%;
  transform: translateX(-50%);
  font-size: 14px;
  display: none;
  z-index: 9999;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  animation: fadeInOut 2s ease-in-out;

  background-color: #fffbdd;
  color: black;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid #ffeeba;
}

#hidden-time-picker {
  position: absolute;
  top: -1000px;
  left: -1000px;
}

.additional-currency {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 500;
  color: #666;
}

.additional-input-container {
  position: relative;
}

/* 애니메이션 정의 */
@keyframes fadeInOut {
  0% {
    opacity: 0;
    transform: translate(-50%, -20px);
  }
  10%,
  90% {
    opacity: 1;
    transform: translate(-50%, 0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -10px);
  }
}

.time-picker-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1001;
  display: none;
}

.time-picker-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  padding: 30px 24px;
  z-index: 1002;
  font-family: "Georgia", serif;
  min-width: 280px;
  display: none;
  border: 1px solid #d0d8f0;
}

.time-picker-modal h2 {
  font-size: 20px;
  margin-bottom: 16px;
  text-align: center;
  color: #003366;
}

.time-picker-modal label {
  display: inline-block;
  margin: 0 8px;
  font-size: 16px;
  color: #003366;
}

.time-picker-modal select {
  font-size: 16px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #ccd9f2;
  background-color: #f0f5ff;
  color: #003366;
  appearance: none;
  font-family: inherit;
}

.time-picker-actions {
  margin-top: 24px;
  text-align: center;
}

.time-picker-actions button {
  font-size: 14px;
  padding: 8px 16px;
  margin: 0 8px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease;
  font-family: inherit;
}

#cancelTimeBtn {
  background-color: #e1e6f0;
  color: #003366;
}

#cancelTimeBtn:hover {
  background-color: #ccd5ea;
}

#confirmTimeBtn {
  background-color: #0066cc;
  color: #fff;
}

#confirmTimeBtn:hover {
  background-color: #5d71e1;
}

.view-toggle-buttons {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1001; /* ✅ 완료 오버레이(999)보다 높게 */
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 5px;
  background: white;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.view-toggle-buttons button {
  padding: 10px 20px;
  font-size: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f2f2f2;
  cursor: pointer;
  transition: all 0.3s ease;
  pointer-events: auto; /* ✅ 항상 클릭 가능 */
}

.view-toggle-buttons button:hover {
  background-color: #e0e0e0;
}

.view-toggle-buttons button.active {
  background-color: #2b63f3;
  color: white;
  border-color: #2b63f3;
  font-weight: 600;
}

body.return-order {
  padding-top: 50px; /* 버튼 높이 고려 */
}

.data-page {
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.data-page.active {
  display: block;
  opacity: 1;
}

.photo-upload-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.4);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.photo-upload-dialog .inner {
  background: white;
  border-radius: 10px;
  max-width: 600px;
  width: 90%;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.photo-upload-header {
  font-size: 20px;
  font-weight: 600;
  color: #2b63f3;
  margin-bottom: 12px;
}

.photo-upload-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}

.photo-upload-item {
  background-color: #f2f2f2;
  border-radius: 8px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.photo-upload-item img {
  max-width: 100%;
  max-height: 100%;
}

.photo-upload-add-button {
  font-size: 30px;
  color: #888;
  cursor: pointer;
}

.photo-upload-save-btn {
  background-color: #2b63f3;
  color: white;
  padding: 10px;
  width: 100%;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
}

:root {
  --upload-image-primary-color: #3498db;
  --upload-image-primary-color-50: rgba(52, 152, 219, 0.5);
  --upload-image-primary-color-70: rgba(52, 152, 219, 0.7);
  --upload-image-grey-box: #f5f5f5;
  --upload-image-grey-text: #7f8c8d;
}

/* Dialog styles */
.upload-image-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 2000;
}

.upload-image-content {
  background: white;
  min-width: 320px;
  max-width: 500px;
  width: 100%;
  padding: 15px;
  border-radius: 20px;
  box-sizing: border-box;

  height: 90vh;
  max-height: 800px;

  position: relative;
  overflow: hidden;
}

/* Page styles */
.upload-image-page {
  height: 100%;
  width: 100%;
  display: none;
  overflow-y: auto;
}

#upload-image-page-2 {
  display: flex;
  flex-direction: column;
  height: 100%;
}

#upload-image-photo-grid-container {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 16px;
}

#upload-image-save-button {
  margin-top: auto; /* 버튼이 아래로 밀려가도록 함 */
  width: 100%;
  padding: 12px;
  font-size: 16px;
  border-radius: 8px;
  background-color: var(--upload-image-primary-color);
  color: white;
  border: none;
  cursor: pointer;
}

.upload-image-page.upload-image-active {
  display: block;
}

/* Header styles */
.upload-image-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.upload-image-title {
  color: var(--upload-image-primary-color);
  font-size: 25px;
  font-weight: bold;
}

.upload-image-close-button {
  background: none;
  border: none;
  font-size: 30px;
  cursor: pointer;
  color: #333;
}

/* Car guide styles */
.upload-image-car-guide {
  display: flex;
  margin-bottom: 20px;
}

.upload-image-car-titles {
  width: 100px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.upload-image-title-row {
  display: flex;
  align-items: center;
  gap: 3px;
}

.upload-image-number-circle {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background-color: var(--upload-image-primary-color-50);
  color: white;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  font-size: 8px;
  font-weight: bold;
}

.upload-image-car-image {
  flex: 1;
  aspect-ratio: 0.8;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  justify-content: center;
  align-items: center;
}

.upload-image-car-image img {
  max-width: 100%;
  max-height: 100%;
}

/* Example photos styles */
.upload-image-example-title {
  color: var(--upload-image-primary-color);
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 10px;
}

.upload-image-example-photos {
  display: flex;
  overflow-x: auto;
  gap: 16px;
  margin-bottom: 5px;
  height: 150px;
}

.upload-image-example-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 120px;
}

.upload-image-example-item img {
  max-height: 120px;
  object-fit: contain;
}

/* Button styles */
.upload-image-button {
  background-color: var(--upload-image-primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}

/* Image grid styles */
.upload-image-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 8px;
  padding: 8px;
}

.upload-image-grid-item {
  position: relative;
  aspect-ratio: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.upload-image-photo-container {
  width: 100%;
  height: 100%;
  background-color: var(--upload-image-grey-box);
  border-radius: 12px;
  padding: 8px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

.upload-image-photo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.upload-image-remove-button {
  position: absolute;
  top: 0;
  right: 0;
  background-color: var(--upload-image-primary-color-70);
  color: white;
  border: none;
  border-radius: 10px;
  width: 20px;
  height: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-size: 14px;
}

.upload-image-new-label {
  position: absolute;
  top: 0;
  left: 0;
  background-color: red;
  color: white;
  padding: 4px;
  font-size: 12px;
}

.upload-image-add-button {
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.upload-image-add-button i {
  font-size: 50px;
  color: #7f8c8d;
}

.upload-image-empty-state {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 90%;
  height: 100%;
  background-color: var(--upload-image-grey-box);
  border-radius: 12px;
  margin: 0 auto;
  cursor: pointer;
}

.upload-image-empty-state i {
  font-size: 50px;
  color: #7f8c8d;
  margin-bottom: 10px;
}

/* Bottom sheet styles */
.upload-image-bottom-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: white;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  padding: 16px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  z-index: 3000;
}

.upload-image-bottom-sheet.upload-image-active {
  transform: translateY(0);
}

.upload-image-sheet-header {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 10px;
}

.upload-image-sheet-close {
  background: none;
  border: none;
  font-size: 24px;
  color: var(--upload-image-primary-color);
  cursor: pointer;
}

.upload-image-sheet-option {
  display: flex;
  align-items: center;
  padding: 12px;
  cursor: pointer;
}

.upload-image-sheet-option i {
  margin-right: 16px;
  color: var(--upload-image-primary-color);
  font-size: 24px;
}

.upload-image-sheet-option span {
  color: var(--upload-image-primary-color);
  font-size: 16px;
  font-weight: 600;
}

/* Loading overlay */
.upload-image-loading {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 3000;
  display: none;
}

.upload-image-loading.upload-image-active {
  display: flex;
}

.upload-image-spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top: 4px solid white;
  width: 40px;
  height: 40px;
  animation: upload-image-spin 1s linear infinite;
  margin-bottom: 20px;
}

@keyframes upload-image-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.upload-image-loading-text {
  color: white;
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.naver-dialog-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.naver-dialog {
  background: #fff;
  padding: 24px;
  border-radius: 16px;
  text-align: center;
  width: 90%;
  max-width: 360px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.naver-title {
  font-size: 20px;
  margin-bottom: 20px;
  font-weight: 600;
}

.naver-option-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.naver-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 12px;
  background: #f9f9f9;
  cursor: pointer;
  font-size: 16px;
  transition: background 0.2s;
}

.naver-option:hover {
  background: #eef2f5;
}

.naver-option img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.naver-cancel-btn {
  margin-top: 20px;
  background: none;
  border: none;
  color: #888;
  font-size: 14px;
  cursor: pointer;
}
