/* ========================================
   ORDER CUSTOM DETAIL
======================================== */

.page-order-custom-detail {
  padding-top: 108px;
  padding-bottom: 88px;
}

.order-custom {
  width: 100%;
  padding: 0 24px;
}

.order-custom__panel {
  width: min(100%, 700px);
  margin: 0 auto;
  padding: 34px 26px 42px;
  border-radius: 30px;
  background: #b7c9b9;
}

.order-custom__hero {
  margin-bottom: 120px;
}

.order-custom__title {
  margin: 0;
}

.order-custom__title-main {
  display: block;
  margin: 0;
  font-size: clamp(34px, 7vw, 66px);
  font-weight: 700;
  line-height: 0.92;
  letter-spacing: -0.06em;
  color: #000;
}

.order-custom__title-sub {
  display: block;
  margin: 0;
  font-size: clamp(30px, 6.4vw, 58px);
  font-weight: 400;
  line-height: 0.94;
  letter-spacing: -0.06em;
  color: rgba(0, 0, 0, 0.34);
}

.order-custom__meta {
  margin: 0 0 34px;
  padding: 0;
}

.order-custom__price-lines {
  display: grid;
  gap: 2px;
}

.order-custom__price-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.order-custom__price-label {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 400;
  color: rgba(0, 0, 0, 0.34);
}

.order-custom__price-value {
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
  color: #000;
}

.order-custom__description {
  display: grid;
  gap: 18px;
  margin: 0 0 38px;
  padding: 14px 14px 16px;
  background: rgba(255, 255, 255, 0.24);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
}

.order-custom__description p {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
  color: #000;
}

/* ========================================
   CUSTOM ARCHIVE SLIDER
======================================== */

.order-custom__archive {
  margin: 0 0 42px;
}

.order-custom__archive-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: #000;
}

.order-custom__archive-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(78vw, 320px);
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.order-custom__archive-track::-webkit-scrollbar {
  display: none;
}

.order-custom__archive-card {
  scroll-snap-align: start;
  display: grid;
  gap: 10px;
}

.order-custom__archive-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.order-custom__archive-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 78px;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-custom__archive-link:hover {
  opacity: 0.78;
}

/* ========================================
   CUSTOM FORM
======================================== */

.order-custom__form-section {
  margin-top: 50px;
}

.order-custom__form-title {
  margin: 0 0 12px;
  font-size: 42px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.1em;
  color: #000;
  text-align: center;
}

.order-custom .order-form-wrap {
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  padding: 14px 14px 18px;
  overflow: hidden;
}

.order-custom .order-form {
  width: 100%;
}

.order-custom .form-row {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 8px;
  align-items: start;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.order-custom .form-row:last-of-type {
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.order-custom .form-row label {
  display: block;
  margin: 0;
  padding-top: 2px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: #000;
}

.order-custom .form-row input,
.order-custom .form-row textarea {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: #000;
  font: inherit;
  font-size: 10px;
  line-height: 1.5;
  appearance: none;
  -webkit-appearance: none;
}

.order-custom .form-row input::placeholder,
.order-custom .form-row textarea::placeholder {
  color: rgba(0, 0, 0, 0.34);
}

.order-custom .form-row textarea {
  min-height: 120px;
  resize: vertical;
}

.order-custom .form-actions {
  display: flex;
  justify-content: center;
  margin: 26px 0 0;
  padding: 0;
}

.order-custom .order-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid #000;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 1;
  cursor: default;
}

/* ========================================
   CUSTOM NEXT LINK
======================================== */

.order-custom__next {
  margin: 24px auto 0;
  width: min(100%, 700px);
  padding: 0 12px;
  text-align: center;
}

.order-custom__next-label {
  margin: 0 0 8px;
  font-size: 10px;
  line-height: 1.5;
  color: rgba(0, 0, 0, 0.56);
}

.order-custom__next-link {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: #000;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 0, 0, 0.28);
  padding-bottom: 4px;
}

/* ========================================
   CUSTOM / MOBILE
======================================== */

@media (max-width: 640px) {
  .page-order-custom-detail {
    padding-top: 84px;
    padding-bottom: 56px;
  }

  .order-custom {
    padding: 0 8px;
  }

  .order-custom__panel {
    width: 100%;
    padding: 20px 12px 40px;
    border-radius: 24px;
  }

  .order-custom__hero {
    margin-bottom: 180px;
  }

  .order-custom__title-main {
    font-size: clamp(30px, 10.5vw, 48px);
  }

  .order-custom__title-sub {
    font-size: clamp(28px, 9.5vw, 44px);
  }

  .order-custom__meta {
    margin-bottom: 22px;
  }

  .order-custom__price-label,
  .order-custom__price-value {
    font-size: 12px;
  }

  .order-custom__description {
    gap: 12px;
  }

  .order-custom__description p {
    font-size: 8.6px;
    line-height: 1.5;
  }

  .order-custom__archive {
    margin: 0 0 34px;
  }

  .order-custom__archive-title {
    margin-bottom: 10px;
    font-size: 10px;
  }

  .order-custom__archive-track {
    grid-auto-columns: calc((100% - 10px) / 2);
    gap: 10px;
    align-items: start;
  }

  .order-custom__archive-card {
    gap: 8px;
  }

  .order-custom__archive-image {
    width: 100%;
    height: auto;
    border-radius: 14px;
  }

  .order-custom__archive-link {
    min-width: 58px;
    min-height: 24px;
    padding: 0 10px;
    font-size: 7px;
    letter-spacing: 0.08em;
  }

  .order-custom__form-title {
    margin: 0 0 12px;
    font-size: 42px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.1em;
    text-align: center;
  }

  .order-custom .form-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 14px 0;
  }

  .order-custom .form-row label {
    padding-top: 0;
    font-size: 11px;
    line-height: 1.4;
  }

  .order-custom .form-row input,
  .order-custom .form-row textarea {
    font-size: 9px;
    line-height: 1.7;
  }

  .order-custom .form-row textarea {
    min-height: 124px;
  }

  .order-custom .form-actions {
    margin-top: 36px;
  }

  .order-custom .order-button {
    width: auto;
    min-width: 160px;
    max-width: calc(100% - 24px);
  }

  .order-custom__next {
    margin-top: 24px;
  }

  .order-custom__next-label {
    font-size: 10px;
  }

  .order-custom__next-link {
    font-size: 12px;
  }

  .order-form-status {
  margin: 16px 0 0;
  min-height: 1.6em;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
  color: #000;
  opacity: 0.72;
}

@media (max-width: 640px) {
  .order-form-status {
    font-size: 11px;
    line-height: 1.6;
  }
}
}