/* ========================================
   ORDER STOCK DETAIL
======================================== */

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

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

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

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

.order-stock__title {
  margin: 0;
}

.order-stock__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-stock__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-stock__meta {
  margin: 0 0 34px;
  padding: 0;
}

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

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

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

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

.order-stock__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-stock__description p {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
  color: #000;
}

.order-stock__series {
  margin: 0 0 18px;
  overflow: hidden;
}

/* ========================================
   STOCK SECTION MARQUEE
======================================== */

.order-stock__section-marquee {
  margin: 0 0 8px;
  overflow: hidden;
  white-space: nowrap;
}

.order-stock__section-marquee-track {
  display: flex;
  align-items: center;
  gap: 20px;
  width: max-content;
  animation: orderStockSectionMarquee 16s linear infinite;
  will-change: transform;
}

.order-stock__section-title {
  margin: 0;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: #000;
}

@keyframes orderStockSectionMarquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(-1 * (100% / 3)));
  }
}

/* ========================================
   STOCK SERIES CARD / ACCORDION
======================================== */

.order-stock__series-card {
  position: relative;
}

.order-stock__media-toggle {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.order-stock__media-toggle img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 18px;
}

.order-stock__tracklist {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: fit-content;
  max-width: 280px;
  margin: 0 auto;
  text-align: left;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  padding-top: 0;
  transition: max-height 0.38s ease, opacity 0.28s ease, padding-top 0.28s ease;
}

.order-stock__series-card.is-open .order-stock__tracklist {
  max-height: 520px;
  opacity: 1;
  padding-top: 14px;
}

@media (hover: hover) and (pointer: fine) {
  .order-stock__series-card:hover .order-stock__tracklist {
    max-height: 520px;
    opacity: 1;
    padding-top: 14px;
  }
}

.order-stock__tracklist-title {
  margin: 0 0 12px;
  width: 100%;
  font-size: 14px;
  line-height: 1.5;
  color: #000;
  text-align: center;
}

.order-stock__tracklist-title-closed {
  font-weight: 700;
  color: #000;
}

.order-stock__tracklist-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  text-align: left;
}

.order-stock__tracklist-list li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 10px;
  line-height: 1.5;
  color: #000;
}

.order-stock__track-main {
  color: #000;
  font-weight: 400;
}

.order-stock__track-time {
  color: #000;
  font-weight: 400;
}

.order-stock__track-lock {
  color: #c33;
  font-weight: 400;
}

.order-stock__bandcamp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-width: 170px;
  min-height: 38px;
  margin: 14px 0 0;
  padding: 0 18px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  text-decoration: none;
  font-size: 10px;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.order-stock__bandcamp-button:hover {
  opacity: 0.78;
}

/* ========================================
   STOCK FORM
======================================== */

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

.order-stock__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-stock .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-stock .order-form {
  width: 100%;
}

.order-stock .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-stock .form-row:last-of-type {
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

.order-stock .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-stock .form-row input,
.order-stock .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-stock .form-row input::placeholder,
.order-stock .form-row textarea::placeholder {
  color: rgba(0, 0, 0, 0.34);
}

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

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

.order-stock .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;
}

/* ========================================
   STOCK NEXT LINK
======================================== */

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

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

.order-stock__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;
}

/* ========================================
   STOCK / MOBILE
======================================== */

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

  .order-stock {
    width: 100%;
    box-sizing: border-box;
    padding: 0 8px;
  }

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

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

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

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

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

  .order-stock__price-label,
  .order-stock__price-value {
    font-size: 14px;
  }

  .order-stock__description {
    gap: 12px;
  }

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

  .order-stock__section-title {
    font-size: 10px;
  }

  .order-stock__series {
    margin-bottom: 16px;
  }

  .order-stock__tracklist {
    width: fit-content;
    max-width: 280px;
    margin: 0 auto;
  }

  .order-stock__series-card.is-open .order-stock__tracklist {
    max-height: 520px;
    padding-top: 12px;
  }

  .order-stock__tracklist-title,
  .order-stock__tracklist-list li {
    font-size: 9px;
    line-height: 1.5;
  }

  .order-stock__tracklist-list {
    gap: 4px;
  }

  .order-stock__bandcamp-button {
    min-width: 148px;
    min-height: 34px;
    margin-top: 12px;
    font-size: 7.6px;
  }

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

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

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

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

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

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

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

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

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

  .order-stock__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;
  }
}
}