* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

main {
  width: 100%;
  padding: 0;
  margin: 0;
}

.event-info-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  background-color: var(--bg-yellow);
}

.event-info-image {
  width: 100%;
  max-width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--bg-yellow);
}

.event-info-image-img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  object-fit: contain;
}

.event-product-section {
  width: min(92vw, 540px);
  display: flex;
  flex-direction: column;
  background-color: transparent;
}

.event-text-display {
  width: min(92vw, 540px);
  display: flex;
  align-items: center;
  justify-content: right;
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #666666;
  text-align: right;
}

.event-section-title {
  width: min(92vw, 540px);
  background-color: #000000;
  color: #FFFFFF;
  text-align: center;
  padding: 6px;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  border-radius: 6px;
}

.event-section-title-em {
  color: var(--bg-yellow);
}

.signature-tag {
  display: inline-block;
  background-color: #6EECA1;
  color: #000000;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 4px;
  vertical-align: middle;
}

.bodywidth-tag {
  display: inline-block;
  background-color: #040404;
  color: #6AE69C;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 4px;
  vertical-align: middle;
}

.event-product-item {
  width: 100%;
  background-color: #FFFFFF;
  padding: 14px 12px;
  display: block;
  border: 2px solid var(--card-border);
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
  min-height: auto;
}

.event-product-content {
  display: block;
  width: 100%;
}

.event-product-header {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 8px;
}

.event-product-left {
  flex: 1;
  display: flex;
  align-items: flex-start;
}

.event-product-title {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.5;
  color: #000000;
  word-break: keep-all;
  display: inline-block;
  vertical-align: top;
  margin-top: 0;
}

.event-product-description {
  font-size: 13px;
  color: #666666;
  line-height: 1.4;
  word-break: keep-all;
  margin-left: 30px;
  margin-bottom: 8px;
  padding-left: 5px;
  display: block;
}

.event-product-right {
  display: block;
  text-align: right;
  width: 100%;
}

.event-product-price-original {
  font-size: 15px;
  color: #C0C0C0;
  text-decoration: line-through;
  text-align: right;
  margin-bottom: 4px;
  display: block;
}

.event-product-price-section {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
}

.event-product-price-discount {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  color: #FFFFFF;
  background-color: #5A5BF7;
  padding: 0px 8px;
  margin-right: 6px;
  margin-bottom: 3px;
  height: 27px;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.event-product-price-num {
  font-weight: 700;
  font-size: 38px;
  color: #5A5BF7;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.event-product-price-won {
  font-size: 14px;
  font-weight: 700;
}

.event-reservation-button-container {
  position: fixed;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: min(96vw, 580px);
  background-color: #000000;
  padding: 8px 0;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  border-radius: 0;
  display: none;
}

.event-reservation-button-container.active {
  display: block;
}

.event-reservation-button {
  width: 100%;
  height: auto;
  background-color: transparent;
  color: #EBD05D;
  font-weight: 700;
  font-size: 28px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s ease;
}

.event-reservation-button:hover {
  opacity: 0.9;
}

.reservation-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  overflow-y: auto;
}

.reservation-modal.active {
  display: flex;
  /* align-items: flex-start; */
  /* padding: 10px; */
  align-items: stretch;
  justify-content: center;
  padding: 0;
}

.reservation-modal-content {
  background: white;
  width: 100%;
  max-width: 500px;
  margin-top: 10px;
  margin-bottom: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  max-height: calc(var(--vh, 1vh) * 95);
  display: flex;
  flex-direction: column;
  --modal-accent: #7b61ff;
  max-width: 1080px;
  height: 100%;
  max-height: calc(var(--vh, 1vh) * 100);
  margin: 0;
  border-radius: 0;
  /* box-shadow: none; */
}

.reservation-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid #eee;
  flex-shrink: 0;
  border-radius: 12px 12px 0 0;
  background: white;
}

.reservation-modal-header h2 {
  font-size: 23px;
  font-weight: 700;
  margin: 0;
}

.reservation-modal-close {
  background: none;
  border: none;
  font-size: 34px;
  cursor: pointer;
  color: #999;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reservation-modal-close:hover {
  color: #333;
}

.reservation-modal-body {
  padding: 20px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.reservation-modal-body::-webkit-scrollbar {
  display: none;
}

.reservation-section {
  margin-bottom: 24px;
}

.reservation-treatment-count {
  font-size: 17px;
  color: #666;
  text-align: center;
  padding: 12px;
  background-color: #f5f5f5;
  border-radius: 8px;
}

.reservation-section h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px 0;
  color: #231f20;
}

.reservation-summary {
  margin-bottom: 18px;
}

.reservation-summary-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.reservation-summary-title {
  font-size: 18px;
  font-weight: 700;
  color: #231f20;
}

.reservation-summary-price {
  font-size: 15px;
  font-weight: 700;
  color: #231f20;
  white-space: nowrap;
}

.reservation-summary-list {
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  padding: 10px 0;
  margin-bottom: 10px;
}

.selected-treatments-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
}

.selected-treatments-name {
  flex: 1;
  font-size: 16px;
  color: #231f20;
  line-height: 1.3;
  word-break: keep-all;
}

.selected-treatments-price {
  font-size: 14px;
  color: #231f20;
  white-space: nowrap;
}

.selected-treatments-empty {
  font-size: 14px;
  color: #999;
  padding: 8px 0;
}

.reservation-summary-help {
  font-size: 13px;
  color: var(--modal-accent);
  margin-bottom: 10px;
  text-align: right;
}

.reservation-summary-totals {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.reservation-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 17px;
  color: #231f20;
}

.reservation-summary-row.total {
  font-weight: 700;
}

.reservation-calendar {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 12px;
}

.calendar-container {
  background: white;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 16px;
}

.calendar-month {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.calendar-arrow {
  width: 24px;
  height: 24px;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.calendar-arrow:hover {
  opacity: 1;
}

.month-year {
  font-size: 20px;
  font-weight: 700;
  color: #231f20;
}

.calendar-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.weekday {
  font-weight: 700;
  font-size: 16px;
  color: #666;
  text-align: center;
  padding: 4px;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  width: 100%;
  background: white;
}

.calendar-day {
  padding: 10px;
  font-size: 18px;
  font-weight: 500;
  color: #231f20;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  background: white;
  transition: all 0.2s;
  text-align: center;
  line-height: 1.4;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.calendar-day:hover {
  background-color: #f3f1ff;
  border-color: transparent;
}

.calendar-day.selected {
  background-color: var(--modal-accent);
  color: white;
  border-color: transparent;
  font-weight: 700;
}

.calendar-day.today {
  background-color: #e9f2ff;
  color: #1b5cff;
  font-weight: 700;
}

.reservation-time-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.reservation-time-btn {
  padding: 8px 14px;
  border: 1px solid rgba(123, 97, 255, 0.55);
  background: #fff;
  border-radius: 999px;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.15s;
  min-width: 64px;
  text-align: center;
}

.reservation-time-btn:hover {
  border-color: var(--modal-accent);
  background-color: #f3f1ff;
}

.reservation-time-btn.selected {
  background-color: var(--modal-accent);
  color: #fff;
  border-color: var(--modal-accent);
  font-weight: 700;
}

.reservation-time-empty {
  width: 100%;
  text-align: center;
  color: #999;
  font-size: 16px;
  padding: 8px 0;
}

.reservation-payment-detail {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 12px;
}

.payment-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
  border-bottom: 1px solid #eee;
}

.payment-row:last-child {
  border-bottom: none;
}

.payment-row.total {
  font-weight: 700;
  color: #000000;
  padding-top: 12px;
}

.reservation-datetime {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 12px;
}

.datetime-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 15px;
}

.reservation-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #000000;
  border-radius: 6px;
  margin-bottom: 10px;
  font-size: 17px;
  box-sizing: border-box;
}

.reservation-input-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.reservation-input-row .reservation-input {
  margin-bottom: 0;
}

.reservation-input:focus {
  outline: none;
  border-color: var(--modal-accent);
  box-shadow: 0 0 0 2px rgba(0, 188, 212, 0.1);
}

.reservation-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  margin-bottom: 10px;
  cursor: pointer;
}

.reservation-checkbox input {
  margin-top: 3px;
  cursor: pointer;
}

.reservation-age-notice {
  font-size: 13px;
  color: #7b61ff;
  margin-bottom: 10px;
  margin-left: 24px;
  margin-top: -7px;
  line-height: 1.4;
}

.terms-link,
.terms-detail-link {
  color: #000000;
  text-decoration: none;
  margin-left: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.terms-link:hover,
.terms-detail-link:hover {
  text-decoration: underline;
  color: #0097a7;
}

.reservation-modal-footer {
  /* padding: 16px 20px; */
  /* border-top: 1px solid #eee; */
  /* background: white; */
  flex-shrink: 0;
  /* border-radius: 0 0 12px 12px; */
  padding: 0;
  border-top: 0;
  border-radius: 0;
  background: transparent;
}

.reservation-submit-btn {
  width: 100%;
  padding: 16px;
  background-color: var(--modal-accent);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.3s;
}

.reservation-submit-btn:disabled {
  background-color: #b9b9b9;
  cursor: not-allowed;
}

.reservation-submit-btn:hover {
  background-color: #6549ff;
}

.reservation-submit-btn.is-disabled {
  background-color: #b9b9b9;
  color: #fff;
  cursor: not-allowed;
}

.reservation-submit-btn.is-disabled:hover,
.reservation-submit-btn.is-disabled:focus,
.reservation-submit-btn.is-disabled:active {
  background-color: #b9b9b9;
  color: #fff;
  box-shadow: none;
  transform: none;
}

.reservation-submit-text {
  display: inline;
}

.reservation-submit-img {
  display: none;
  width: 100%;
  height: auto;
}

.reservation-submit-btn.is-image {
  padding: 0;
  background-color: transparent;
  border-radius: 0;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
}

.reservation-submit-btn.is-image .reservation-submit-text {
  display: none;
}

.reservation-submit-btn.is-image .reservation-submit-img {
  display: block;
}

.reservation-agree-note {
  font-size: 13px;
  color: #777;
  margin-top: -7px;
  margin-left: 24px
}

.reservation-mini-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.reservation-mini-modal-content {
  width: min(520px, 96vw);
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.reservation-mini-modal-body {
  padding: 20px 24px 16px 24px;
}

.reservation-mini-modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #231f20;
  margin-bottom: 14px;
}

.reservation-mini-modal-summary {
  font-size: 17px;
  color: #444;
  line-height: 1.5;
}

.reservation-mini-modal-summary div {
  margin-bottom: 6px;
}

.reservation-mini-modal-summary div:last-child {
  margin-bottom: 0;
}

.reservation-mini-modal-help {
  font-size: 13px;
  color: #888;
  margin-top: 12px;
  line-height: 1.4;
}

.reservation-complete-checkboxes {
  margin-bottom: 12px;
}

.reservation-complete-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #444;
  cursor: default;
}

.reservation-complete-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: default;
}

.reservation-complete-message {
  font-size: 15px;
  font-weight: 500;
  color: #231f20;
  margin-top: 12px;
  text-align: center;
}

.reservation-mini-modal-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 16px 24px 20px 24px;
}

.reservation-mini-modal-footer.single {
  grid-template-columns: 1fr;
}

.reservation-mini-modal-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.reservation-mini-modal-btn.primary {
  background: #4A90E2;
  color: #fff;
}

.reservation-mini-modal-btn.secondary {
  background: #f2f2f2;
  color: #231f20;
}

.reservation-mini-modal-btn:disabled {
  background: #b9b9b9;
  color: #fff;
  cursor: not-allowed;
}

.selected-treatment-card {
  border: 1px solid #dddddd;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  background-color: #fafafa;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: background-color 0.2s;
}

.selected-treatment-card-info {
  flex: 1;
}

.selected-treatment-card-name {
  font-weight: 600;
  font-size: 16px;
  color: #231f20;
  margin-bottom: 4px;
}

.selected-treatment-card-desc {
  font-size: 12px;
  color: #666666;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.selected-treatment-card-price {
  display: flex;
  align-items: center;
  gap: 4px;
}

.selected-treatment-card-original-price {
  font-size: 12px;
  color: #999999;
  text-decoration: line-through;
}

.selected-treatment-card-discount-rate {
  font-weight: 600;
  font-size: 12px;
  color: #ef487b;
}

.selected-treatment-card-final-price {
  font-weight: 600;
  font-size: 14px;
  color: #ef487b;
}

.selected-treatment-card-remove {
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 20px;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.selected-treatment-card-remove:hover {
  color: #ef487b;
}

.treatment-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  margin-bottom: 16px;
  border-bottom: 1px solid #e0e0e0;
}

.treatment-checkbox-wrapper {
  flex: 0 0 auto;
}

.treatment-button-wrapper {
  flex: 0 0 auto;
}

.treatment-button-wrapper .treatment-delete-checked-btn {
  padding: 6px 12px;
  background-color: #fff;
  color: #231f20;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
  box-shadow: none;
  white-space: nowrap;
}

.treatment-button-wrapper .treatment-delete-checked-btn:hover {
  background-color: #ef487b;
  color: white;
  border-color: #ef487b;
}

.treatment-checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #231f20;
  user-select: none;
}

.treatment-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #000000;
}

.selected-treatment-card-checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}

.selected-treatment-card-checkbox {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #000000;
  margin-right: 8px;
}

.no-treatment-message {
  display: none;
  text-align: center;
  padding: 40px 20px;
  color: #999;
  font-size: 14px;
  font-weight: 500;
  border: 1px dashed #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
}

.no-treatment-message.active {
  display: block;
}

body {
  background-color: #ffffff;
}

@media screen and (min-width: 1080px) {
  .event-info-image-img {
    max-width: 580px;
  }

  .event-product-section {
    max-width: 900px;
  }

  .event-section-title {
    max-width: 900px;
    font-size: 31px;
    padding: 6px;
    border-radius: 8px;
  }

  .event-text-display {
    max-width: 900px;
  }

  .event-product-title {
    font-size: 28px;
    padding-top: 0;
    padding-left: 0px;
  }

  .event-product-description {
    font-size: 17px;
    margin-left: 40px;
    padding-left: 10px;
  }

  .event-product-price-original {
    font-size: 20px;
  }

  .event-product-price-num {
    font-size: 48px;
  }

  .event-product-price-won {
    font-size: 20px;
  }

  .event-product-price-discount {
    font-size: 25px;
    padding: 0px 10px 3px 10px;
    margin-right: 10px;
    height: 33px;
  }

  .calendar-day {
    padding: 12px;
    font-size: 15px;
    min-height: 48px;
  }

  .reservation-time-buttons {
    grid-template-columns: repeat(4, 1fr);
  }

  .event-reservation-button {
    font-size: 38px;
    max-width: 900px;
    margin: 0 auto;
  }

  .event-reservation-button-container {
    width: min(92vw, 580px);
    max-width: 900px;
    padding: 16px 0;
  }

  .signature-tag {
    font-size: 14px;
    padding: 3px 8px;
    margin-right: 6px;
  }

  .bodywidth-tag {
    font-size: 14px;
    padding: 3px 8px;
    margin-right: 6px;
  }

}

@media (max-width: 480px) {
  .reservation-input-row {
    grid-template-columns: 1fr;
  }

}
