/*
 * Gift: mimi — restrained editorial presentation.
 * Content/price remain one component, without a second bordered card.
 * Retains existing product IDs and app-owned display flags.
 */
.gift-detail-page .kaju-note-context {
  display:block;
  margin-bottom:.5em;
  color:#9e8971;
  font-size:.72em;
  letter-spacing:.14em;
}

.gift-detail-page .gift-purchase-section {
  max-width:1040px;
  margin:0 auto;
  padding:clamp(52px,5vw,72px) 0 clamp(56px,5.5vw,76px);
  border-top:1px solid var(--pd-line);
}
.gift-detail-page .gift-purchase-section .section-heading {
  margin-bottom:clamp(18px,2.5vw,29px);
}
.gift-detail-page .gift-purchase-panel {
  width:100%;
  max-width:900px; /* セット内容と価格の横幅を適度に詰める */
  margin:0;
  padding:clamp(8px,1.5vw,16px) 0 0;
  border:0;
  background:none;
  display:grid;
  grid-template-columns:minmax(0,1.52fr) minmax(194px,.78fr);
  column-gap:clamp(22px,3.2vw,48px);
  align-items:center;
}
/* Section heading already says 'セット内容・価格': do not repeat labels in the content. */
.gift-detail-page .gift-purchase-subtitle,
.gift-detail-page .gift-purchase-price-label {
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip-path:inset(50%);
  white-space:nowrap;
  border:0;
}
.gift-detail-page .gift-purchase-contents .set-contents-list {
  width:100%;
  margin:0;
  border:0;
  padding:0;
  list-style:none;
}
.gift-detail-page #productSetContentsSection .set-contents-list li {
  position:relative;
  padding:9px 0 9px 28px;
  border:0;
  color:var(--pd-main, #332c27);
  font-family:'Noto Serif JP',serif;
  font-size:clamp(.84rem,1.14vw,.95rem);
  font-weight:300;
  line-height:1.9;
  letter-spacing:.055em;
}
.gift-detail-page #productSetContentsSection .set-contents-list li::before {
  content:'';
  position:absolute;
  left:0;
  top:calc(50% - .5px);
  width:13px;
  height:1px;
  border:0;
  border-radius:0;
  background:#ac927d;
}
.gift-detail-page .gift-purchase-price {
  margin:0;
  padding:8px 0 8px clamp(20px,2.4vw,32px);
  border-top:0;
  border-left:1px solid var(--pd-line);
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:116px;
}
.gift-detail-page .gift-purchase-price .size-table.is-compact-price {
  width:100%;
  border:0;
  padding:0;
}
.gift-detail-page .gift-purchase-price .size-table.is-compact-price .size-table-head {
  display:none;
}
.gift-detail-page .gift-purchase-price .size-table.is-compact-price .size-table-row {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:7px;
  min-height:0;
  border:0;
  padding:0;
}
.gift-detail-page .gift-purchase-price .size-table.is-compact-price .size-table-row > * {
  padding:0;
  text-align:left;
}
.gift-detail-page .gift-purchase-price .size-table.is-compact-price .size-table-row b {
  font-family:'Noto Serif JP',serif;
  font-size:.78rem;
  font-weight:300;
  color:var(--pd-muted,#877e75);
  line-height:1.6;
  letter-spacing:.14em;
}
.gift-detail-page .gift-purchase-price .size-table.is-compact-price .size-table-row strong {
  font-family:'Noto Serif JP',serif;
  font-variant-numeric:tabular-nums;
  font-size:clamp(2.05rem,3.2vw,2.7rem);
  font-weight:400;
  line-height:1.05;
  letter-spacing:.025em;
  text-align:left;
  color:var(--pd-text,#2c2824);
}
.gift-detail-page .gift-purchase-price .size-note {
  width:100%;
  margin:12px 0 0;
  text-align:left;
  font-size:.67rem;
  letter-spacing:.045em;
}
/* If the app hides one field, reflow the remaining block cleanly. */
.gift-detail-page .gift-purchase-panel:has(> #productSetContentsSection[hidden]),
.gift-detail-page .gift-purchase-panel:has(> #productPriceSection[hidden]) {
  grid-template-columns:minmax(0,1fr);
}
.gift-detail-page .gift-purchase-panel:has(> #productSetContentsSection[hidden]) .gift-purchase-price {
  padding-left:0;
  border-left:0;
}
.gift-detail-page #productShelfLifeSection {
  padding-top:clamp(60px,6vw,82px);
  padding-bottom:clamp(60px,6vw,82px);
}
.gift-detail-page #productShelfLifeSection .shelf-life-list {
  width:min(760px,88%);
}
.gift-detail-page [hidden] {display:none !important;}
@media (max-width:900px) {
  .gift-detail-page #productShelfLifeSection .shelf-life-list {width:100%;}
}
@media (max-width:760px) {
  .gift-detail-page .gift-purchase-section {
    padding:46px 0 49px;
  }
  .gift-detail-page .gift-purchase-section .section-heading {
    margin-bottom:17px;
  }
  .gift-detail-page .gift-purchase-panel {
    grid-template-columns:1fr;
    gap:16px;
    padding-top:0;
  }
  .gift-detail-page #productSetContentsSection .set-contents-list li {
    padding:6px 0 6px 23px;
    font-size:.84rem;
    line-height:1.8;
  }
  .gift-detail-page #productSetContentsSection .set-contents-list li::before {width:11px;}
  .gift-detail-page .gift-purchase-price {
    min-height:0;
    border-left:0;
    border-top:1px solid var(--pd-line);
    padding:21px 0 0;
  }
  .gift-detail-page .gift-purchase-price .size-table.is-compact-price .size-table-row {
    flex-direction:row;
    align-items:baseline;
    justify-content:space-between;
    gap:14px;
  }
  .gift-detail-page .gift-purchase-price .size-table.is-compact-price .size-table-row strong {
    font-size:1.95rem;
  }
  .gift-detail-page .gift-purchase-price .size-note {
    text-align:right;
    margin:3px 0 0;
  }
}

/* 価格が固定金額ではなく説明文を含むギフトの折返し。
 * 数字だけのギフト価格には影響させない。 */
.gift-detail-page[data-product-id="GFT-0029"] .gift-purchase-price .size-table.is-compact-price .size-table-row {
  flex-direction:column;
  align-items:flex-start;
  gap:7px;
}
.gift-detail-page[data-product-id="GFT-0029"] .gift-purchase-price .size-table.is-compact-price .size-table-row strong {
  font-size:clamp(1rem,1.45vw,1.2rem);
  letter-spacing:.025em;
  line-height:1.8;
  overflow-wrap:anywhere;
  word-break:normal;
}
@media (max-width:760px) {
  .gift-detail-page[data-product-id="GFT-0029"] .gift-purchase-price .size-table.is-compact-price .size-table-row strong {
    font-size:1.05rem;
  }
}
