/* Publication candidate: presentation only. Native options, quantities, gallery,
   terrace controls, estimate calculation and cart requests retain their contracts. */
body#page_product_detail .ec-productRole__titleRow .ec-headingTitle {
  color: #343b41;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
body#page_product_detail .ec-productRole__price {
  border-block: 1px solid #e2e4e5;
  margin-block: 12px 18px;
  padding-block: 14px;
}
body#page_product_detail .ec-choiceSectionHeading {
  background: #f6f7f8;
  border: 1px solid #e2e4e5;
  border-left: 3px solid #354f54;
  border-radius: 4px;
  padding: 11px 12px;
  margin-block: 18px 10px;
}
body#page_product_detail .ec-choiceSectionHeading h3 {
  margin: 0;
  color: #39434b;
  font-size: 16px;
  line-height: 1.5;
}
body#page_product_detail .ec-choiceSectionHeading p {
  margin: 4px 0 0;
  color: #616e72;
  font-size: 12px;
  line-height: 1.6;
}
body#page_product_detail .rp-section-label {
  color: #39434b;
  line-height: 1.6;
}
body#page_product_detail .rp-section-label > span {
  color: #1a6fcf;
}
/* Keep the publicly used option dimensions and original selected blue intact. */
body#page_product_detail :is(.opt-btn,.rp-btn,.rp-card):focus-within {
  outline: 2px solid #1a6fcf;
  outline-offset: 3px;
}
body#page_product_detail .ep-ready-option-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 3px 0 12px;
  color: #53616a;
  font-size: 12px;
  line-height: 1.5;
}
body#page_product_detail .ep-ready-option-nav[hidden] { display: none; }
body#page_product_detail .ep-ready-option-nav__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 34px;
  padding: 0;
  border: 1px solid #adb5bd;
  border-radius: 5px;
  background: #fff;
  color: #343b41;
  box-shadow: 0 1px 2px #00000012;
  font: 22px/1 Arial,sans-serif;
  cursor: pointer;
}
body#page_product_detail .ep-ready-option-nav__button:disabled {
  opacity: .35;
  box-shadow: none;
  cursor: default;
}
body#page_product_detail .ep-ready-option-nav__button:focus-visible {
  outline: 2px solid #1a6fcf;
  outline-offset: 2px;
}
body#page_product_detail .ep-ready-option-nav__count {
  min-width: 7em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
body#page_product_detail .ep-ready-option-nav__hint { display: none; }
body#page_product_detail .ep-ready-breakdown-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #e2e4e5;
}
body#page_product_detail .ep-ready-breakdown-heading h4 {
  margin: 0;
  color: #39434b;
  font-size: 14px;
  font-weight: 700;
}
body#page_product_detail .ep-ready-breakdown-close {
  min-height: 34px;
  padding: 4px 10px;
  border: 1px solid #b9c0c5;
  border-radius: 4px;
  background: #fff;
  color: #39434b;
  font-size: 12px;
}
body#page_product_detail #modal-mitsumori :is(#mitsumori_kei,#mitsumori_goukei_02) {
  color: #245985;
}
body#page_product_detail #modal-mitsumori .modal-footer {
  gap: 8px;
  flex-wrap: wrap;
}
@media (min-width: 768px) {
  body#page_product_detail .mitsumori-card-pc {
    border: 1px solid #dadddf !important;
    background: #fff !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px #0000000d !important;
  }
  body#page_product_detail .mitsumori-card-pc .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    background: #f5f6f7 !important;
    color: #39434b !important;
    padding: 12px 14px !important;
    border-bottom: 1px solid #e2e4e5 !important;
  }
  body#page_product_detail .mitsumori-card-pc .card-title {
    color: #39434b !important;
    font-size: 14px !important;
  }
  body#page_product_detail .mitsumori-card-pc .card-tools {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0;
  }
  body#page_product_detail .mitsumori-card-pc #mitsumori_message {
    color: #c52235 !important;
    font-size: 21px !important;
  }
  body#page_product_detail .mitsumori-card-pc .btn-mitsumori-toggle {
    border: 1px solid #b9c0c5;
    border-radius: 4px;
    color: #39434b !important;
    background: #fff;
    padding: 5px 8px;
    min-height: 34px;
  }
  body#page_product_detail .mitsumori-card-pc .card-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #f6f7f8 !important;
    border-top-color: #e2e4e5 !important;
  }
  body#page_product_detail .mitsumori-card-pc .card-footer > button {
    flex: 1 1 auto;
    min-height: 40px;
  }
}
/* Native mobile bottom-bar positioning and viewport guards remain untouched. */
/* Keep the detail sheet inside the unobscured viewport, independently of the
   product column. Only its body scrolls; both actions and the close stay visible. */
body#page_product_detail #sp-mitsumori-detail.is-open {
  position:fixed;
  top:var(--ep-sheet-top,0px);
  bottom:auto;
  height:100vh;
  height:var(--ep-sheet-height,100dvh);
  overflow:hidden;
}
body#page_product_detail #sp-mitsumori-detail .sp-detail-sheet__panel {
  box-sizing:border-box;
  max-height:calc(100% - 12px);
  max-height:min(82%,calc(100% - 12px));
  min-height:0;
  overflow:hidden;
  padding-bottom:0;
}
body#page_product_detail #sp-mitsumori-detail .sp-detail-sheet__body {
  min-height:0;
  overscroll-behavior-y:contain;
}
body#page_product_detail #sp-mitsumori-detail .sp-detail-sheet__footer {
  padding-bottom:calc(16px + env(safe-area-inset-bottom,0px));
}
@media(prefers-reduced-motion:reduce) {
  body#page_product_detail #sp-mitsumori-detail .sp-detail-sheet__panel {animation:none;}
}
body#page_product_detail .ep-ready-price-message-source { display: none !important; }
body#page_product_detail .ep-ready-price-placeholder { color: #c52235; font-size: 18px; font-weight: 700; white-space: nowrap; }
body#page_product_detail .ep-ready-price-placeholder[hidden],
body#page_product_detail .ep-ready-selection-notice[hidden] { display: none !important; }
body#page_product_detail #sp-mitsumori-bar .sp-bar__pricewrap.ep-ready-pricewrap-placeholder { flex: 0 0 auto; }
body#page_product_detail .ep-ready-selection-notice,
body#page_product_detail .form-group > .ep-reqError,
body#page_product_detail .form-group > .ep-paySel__error {
  margin: 0 0 8px;
  color: #9c2828;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

@media (max-width: 767px) {
  body#page_product_detail .ep-ready-option-nav {
    justify-content: space-between;
    gap: 4px 8px;
    padding: 1px 2px 3px;
  }
  body#page_product_detail .ep-ready-option-nav__button { display: none; }
  body#page_product_detail .ep-ready-option-nav__hint { display: inline; }
  body#page_product_detail .ep-ready-option-nav__count { text-align: left; }
  body#page_product_detail .ec-choiceSectionHeading { padding: 9px 10px; }
  body#page_product_detail .ec-choiceSectionHeading h3 { font-size: 15px; }
  body#page_product_detail #sp-detail-body .ep-ready-breakdown-heading { display: none; }
}

/* Cart: preserve every row, specification, error and native request link. */
body#page_cart #form_cart > .ec-cartRole__purpose {
  box-sizing: border-box;
  background: #f6f7f8;
  border: 1px solid #d9dfe1;
  border-left: 4px solid #354f54;
  border-radius: 4px 4px 0 0;
  padding: 14px 16px;
  margin-bottom: 0;
  font-weight: 700;
  color: #343f46;
}
body#page_cart #form_cart .ec-cartRole__cart { border: 1px solid #d9dfe1; }
body#page_cart #form_cart .ec-cartHeader {
  background: #f6f7f8;
  color: #616e72;
  font-size: 12px;
}
body#page_cart #form_cart .ec-cartRow { background: #fff; border-color: #e2e4e5; }
body#page_cart #form_cart .ec-cartRow__name > a {
  color: #343f46;
  font-weight: 700;
  line-height: 1.6;
}
body#page_cart #form_cart .ec-cartRow__img img { object-fit: contain; }
body#page_cart #form_cart .cart-specs {
  background: #f9fafa;
  border: 1px solid #d6dfe0;
  border-left: 3px solid #88a5ac;
  border-radius: 4px;
}
body#page_cart #form_cart .cart-specs__title { color: #354f54; }
body#page_cart #form_cart .cart-specs__row { padding-block: 5px; }
body#page_cart #form_cart .cart-specs__row dd { color: #343f46; }
body#page_cart #form_cart :is(.ec-cartRow__amount,.ec-cartRow__amountSP) { font-weight: 700; }
body#page_cart #form_cart :is(.ec-cartRow__sutbtotal,.ec-cartRow__sutbtotalSP,.ec-cartRole__totalAmount) {
  color: #c52235;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
body#page_cart #form_cart .ec-cartRole__actions {
  background: #f6f7f8;
  border: 1px solid #d9dfe1;
  border-radius: 4px;
  padding: 14px 16px;
  margin-top: 10px;
  margin-bottom: 26px;
}
body#page_cart #form_cart .ec-cartRole__total { color: #394850; }
body#page_cart #form_cart .ec-blockBtn--action {
  border: 1px solid #dc304b;
  border-radius: 5px;
  color: #fff;
  background: #dc304b;
  min-height: 44px;
  font-weight: 700;
}
body#page_cart #form_cart .ec-blockBtn--cancel {
  border: 1px solid #adb5bd;
  border-radius: 5px;
  background: #fff;
  color: #394850;
}
@media (hover: hover) and (pointer: fine) {
  body#page_cart #form_cart .ec-blockBtn--action:hover { background: #c92742; }
  body#page_product_detail .ep-ready-option-nav__button:not(:disabled):hover { background: #f2f4f5; }
}
@media (max-width: 767px) {
  body#page_cart #form_cart > .ec-cartRole__purpose { padding: 12px; font-size: 17px; }
  body#page_cart #form_cart .ec-cartRole__cart { padding-inline: 10px; }
  body#page_cart #form_cart .ec-cartRow__name > a { font-size: 14px; }
  body#page_cart #form_cart .ec-cartRole__actions { padding: 12px; }
}

/* v65 composition. These selectors deliberately exclude all option controls. */
body#page_product_detail .ec-productRole { color: #343b41; }
body#page_product_detail .ec-sliderItemRole { margin: 0; padding: 0; }
body#page_product_detail .ep-ready-gallery-shell { position: relative; min-width: 0; }
body#page_product_detail .item_visual {
  position: relative; margin: 0; border: 1px solid #dce5e2;
  border-radius: 4px; background: #fafafa; overflow: hidden;
}
body#page_product_detail .item_visual .slide-item { height: auto !important; }
body#page_product_detail .item_visual .slide-item a { position: relative; }
body#page_product_detail .item_visual .slide-item img {
  width: 100%; height: auto; aspect-ratio: 1.27; max-height: none;
  object-fit: contain; background: #fff; transform: none !important;
}
body#page_product_detail .item_visual .js-zoom::after {
  content: '画像を拡大'; position: absolute; right: 9px; bottom: 9px;
  padding: 3px 7px; border: 1px solid #d3dbd8; border-radius: 3px;
  background: #fffffff2; color: #354b52; font-size: 11px; pointer-events: none;
}
body#page_product_detail .item_visual :is(.slick-dots,.slick-arrow) { display: none !important; }
body#page_product_detail .ep-ready-gallery-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; padding: 0; border: 1px solid #cbd6d2;
  border-radius: 50%; background: #fffffff2; color: #354b52;
  font: 24px/1 Arial,sans-serif; cursor: pointer;
}
body#page_product_detail .ep-ready-gallery-arrow--prev { left: 8px; }
body#page_product_detail .ep-ready-gallery-arrow--next { right: 8px; }
body#page_product_detail .item_nav {
  display: flex !important; flex-wrap: nowrap; gap: 8px; width: 100%;
  margin: 9px 0 0; padding: 0 0 5px; overflow-x: auto;
  scrollbar-width: thin; scrollbar-color: #aab5b3 #f5f6f7;
}
body#page_product_detail .item_nav .slideThumb {
  display: block; flex: 0 0 72px; width: 72px; height: 56px;
  margin: 0; padding: 0; border: 1px solid #cbd6d2; border-radius: 3px;
  background: #fff; overflow: hidden; cursor: pointer;
}
body#page_product_detail .item_nav .slideThumb img {
  display: block; width: 100%; height: 100%; object-fit: contain; margin: 0;
}
body#page_product_detail .item_nav .slideThumb[aria-current='true'] { border: 2px solid #36545a; }
body#page_product_detail .ec-productRole__category { margin: 0 0 2px; padding: 0 !important; font-size: 11px; }
body#page_product_detail .ec-productRole__category ul { margin: 0; padding: 0; }
body#page_product_detail .ec-productRole__category a { color: #648278; }
body#page_product_detail .ep-ready-detail-head {
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 0 12px;
}
body#page_product_detail .ep-ready-detail-head .ec-productRole__title { grid-column: 1; grid-row: 2; min-width: 0; margin: 0; padding: 0; }
body#page_product_detail .ep-ready-detail-head .ec-productRole__titleRow { margin: 0; }
body#page_product_detail .ep-ready-detail-head .ec-headingTitle {
  color: #343b41; font-size: 25px; font-weight: 700; line-height: 1.4;
  margin: 3px 0 13px; padding: 0; border: 0; text-align: left;
}
body#page_product_detail .ep-ready-detail-head .ep-pdActions { grid-column: 2; grid-row: 2; gap: 7px; margin: 4px 0 0; }
body#page_product_detail .ep-ready-detail-head .ep-pdActions__btn {
  width: 34px; height: 34px; border-color: #cfd5d8; background: #fff; color: #5d7778;
}
body#page_product_detail .ep-ready-detail-head #maker_area {
  grid-column: 1 / -1; grid-row: 1;
  float: none !important; display: block; width: auto !important; height: auto !important;
  margin: 0 0 4px !important; font-size: 11px; line-height: 1.5;
}
body#page_product_detail .ec-productRole__price { padding: 15px 0; margin: 12px 0 18px; border-color: #dce5e2; }
body#page_product_detail #price02-label { color: #61716b !important; font-size: 11px !important; }
body#page_product_detail .ec-productRole__price .ec-price { padding: 0; margin: 0; }
body#page_product_detail .ec-productRole__price #price02-display { color: #c33947; font-size: 28px; font-weight: 700; line-height: 1.5; }
body#page_product_detail .ec-price__tax { font-size: 11px; color: #61716b; font-weight: 400; }
body#page_product_detail .ec-productRole__code { color: #72817d; font-size: 11px; margin-bottom: 8px; }
body#page_product_detail .ec-productRole__tags:empty { display: none; }
body#page_product_detail .ec-productRole__catalog { font-size: 12px; }
body#page_product_detail .ec-productRole__catalog a { color: #2878c6; text-decoration: underline; }
body#page_product_detail .ec-productRole__profile > .card-danger {
  border: 0; border-radius: 0; box-shadow: none; background: #fff;
}
body#page_product_detail .ec-productRole__profile > .card-danger > .card-header {
  margin: 20px 0 15px; padding: 0 0 0 11px; border: 0; border-left: 3px solid #354f54;
  background: #fff; color: #39434b; border-radius: 0;
}
body#page_product_detail .ec-productRole__profile > .card-danger > .card-header .card-title {
  float: none; margin: 0; color: #39434b; font-size: 18px; line-height: 1.4; font-weight: 700;
}
body#page_product_detail .ec-productRole__profile > .card-danger > .card-body { padding: 0 !important; }
body#page_product_detail .ec-productRole .ec-choiceSectionHeading {
  margin: 22px 0 12px; padding: 0 0 0 10px; border: 0; border-left: 3px solid #354f54;
  border-radius: 0; background: #fff;
}
body#page_product_detail .ec-productRole__description { margin: 26px 0 18px; font-size: 13px; line-height: 1.7; }
body#page_product_detail .ec-productRole__description > .ec-rectHeading,
body#page_product_detail .ec-productRole__setItems > .ec-rectHeading {
  padding: 0 0 0 11px; margin: 0 0 15px; background: #fff; border-left: 3px solid #354f54;
}
body#page_product_detail .ec-productRole__description > .ec-rectHeading h4,
body#page_product_detail .ec-productRole__setItems > .ec-rectHeading h4 { font-size: 18px; font-weight: 700; color: #39434b; }
body#page_product_detail :is(#cart_btn,#cart_btn2,.ep-ready-add-cart) {
  border: 1px solid #dc304b; border-radius: 4px; background: #dc304b; color: #fff;
  font-size: 13px; font-weight: 700; line-height: 1.5;
}
body#page_product_detail :is(#cart_btn,#cart_btn2,.ep-ready-add-cart):disabled {
  border-color: #89969a; background: #89969a; opacity: 1; cursor: default;
}
body#page_product_detail .ep-ready-add-cart { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
body#page_product_detail.ep-ready-native-cart-linked #form1 .ec-productRole__btn:has(#cart_btn) { display: none; }
@media (min-width: 768px) {
  body#page_product_detail .ec-productRole > .ec-grid2 { gap: 32px; }
  body#page_product_detail .ec-productRole > .ec-grid2 > :is(.ec-grid2__cell,.ec-grid2__cell2) { width: calc(50% - 16px); flex-basis: calc(50% - 16px); }
  body#page_product_detail .ec-productRole__profile { padding: 0; }
  body#page_product_detail .mitsumori-card-pc {
    position: sticky; top: auto; bottom: 0; float: none !important; clear: both;
    display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center;
    padding: 9px 11px; margin: 0 0 20px; border-radius: 4px !important;
    background: #f5f6f7 !important; overflow: visible; z-index: 5;
  }
  body#page_product_detail .mitsumori-card-pc .card-header {
    display: block; padding: 0 !important; border: 0 !important; background: transparent !important;
  }
  body#page_product_detail .mitsumori-card-pc .card-title { float: none; font-size: 12px !important; line-height: 1.5; }
  body#page_product_detail .mitsumori-card-pc .card-tools { float: none; display: flex; flex-wrap: wrap; gap: 4px 8px; }
  body#page_product_detail .mitsumori-card-pc #mitsumori_message { font-size: 20px !important; color: #c33947 !important; }
  body#page_product_detail .mitsumori-card-pc .btn-mitsumori-toggle {
    padding: 2px 3px; min-height: 28px; border: 0; background: transparent;
    color: #2878c6 !important; text-decoration: underline; font-size: 12px; font-weight: 700;
  }
  body#page_product_detail .mitsumori-card-pc .card-footer {
    grid-column: 2; grid-row: 1; display: flex !important; flex-wrap: wrap; justify-content: flex-end;
    max-width: 228px; padding: 0 0 0 10px !important; border: 0 !important; background: transparent !important;
  }
  body#page_product_detail .mitsumori-card-pc .card-footer > button { min-height: 38px; padding: 6px 9px; flex: 0 1 auto; font-size: 12px; }
  body#page_product_detail .mitsumori-card-pc #mitsumori_btn { background: #fff; color: #354b52; border: 1px solid #cfd5d8; border-radius: 4px; }
  body#page_product_detail .mitsumori-card-pc > .card-body { grid-column: 1 / -1; order: 3; margin-top: 10px; max-height: 55vh; overflow-y: auto; }
  body#page_product_detail .mitsumori-card-pc > .window-subsidy-reference { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 767px) {
  body#page_product_detail .ec-productRole { margin-top: 18px !important; }
  body#page_product_detail .ec-sliderItemRole { margin-bottom: 18px; }
  body#page_product_detail .ec-productRole__profile { padding-top: 0; }
  body#page_product_detail .ep-ready-detail-head .ec-headingTitle { font-size: 22px; }
  body#page_product_detail .ep-ready-detail-head .ep-pdActions { gap: 5px; }
  body#page_product_detail .ec-productRole__price #price02-display { font-size: 25px; }
  body#page_product_detail .item_visual .slide-item img { aspect-ratio: 1.25; }
  body#page_product_detail #sp-mitsumori-bar { border-top: 1px solid #dadddf; background: #f5f6f7; }
  body#page_product_detail #sp-mitsumori-bar .sp-bar__content { gap: 7px; padding: 9px 11px; background: #f5f6f7; }
  body#page_product_detail #sp-mitsumori-bar .sp-bar__pricewrap { flex: 1 1 auto; min-width: 0; }
  body#page_product_detail #sp-mitsumori-bar .sp-bar__label-row { display: flex; align-items: center; flex-wrap: wrap; gap: 3px 6px; }
  body#page_product_detail #sp-mitsumori-bar .sp-bar__label { font-size: 10px; color: #617078; }
  body#page_product_detail #sp-mitsumori-bar .sp-bar__price { font-size: 18px !important; color: #c33947 !important; }
  body#page_product_detail #sp-mitsumori-bar .sp-bar__detail-btn {
    display: inline-flex; flex-direction: row; gap: 2px; min-height: 24px;
    padding: 1px 2px; border: 0; border-radius: 0; background: transparent;
    color: #2878c6; font-size: 10px; text-decoration: underline;
  }
  body#page_product_detail #sp-mitsumori-bar .sp-bar__detail-btn i { display: none; }
  body#page_product_detail #sp-mitsumori-bar .sp-bar__detail-btn::after { content: '⌄'; font-size: 12px; }
  body#page_product_detail #sp-mitsumori-bar .ep-ready-add-cart { flex: 0 0 auto; min-height: 36px; padding: 6px 9px; font-size: 11px; white-space: nowrap; }
  body#page_product_detail #sp-mitsumori-bar :is(a.sp-bar__btn,.sp-bar__home-btn) {
    display: inline-flex; flex: 0 0 30px; align-items: center; justify-content: center;
    width: 30px; min-width: 30px; height: 34px; min-height: 34px; padding: 0;
    border: 1px solid #cfd5d8; border-radius: 4px; background: #fff; color: #354b52;
  }
  body#page_product_detail #sp-mitsumori-bar :is(a.sp-bar__btn,.sp-bar__home-btn) i { font-size: 16px; }
  body#page_product_detail .mitsumori-card-pc > .card-header,
  body#page_product_detail .mitsumori-card-pc > .card-footer { display: none !important; }
  body#page_product_detail .mitsumori-card-pc > .card-body { display: none !important; }
  body#page_product_detail #sp-detail-body .card-body { display: block !important; }
}
@media (max-width: 359px) {
  body#page_product_detail #sp-mitsumori-bar .sp-bar__content { gap: 4px; padding-inline: 7px; }
  body#page_product_detail #sp-mitsumori-bar .ep-ready-add-cart { font-size: 10px; padding-inline: 5px; }
  body#page_product_detail #sp-mitsumori-bar .sp-bar__label-row { gap: 0 3px; }
}

/* Sample cart composition; original links, quantities and details remain native. */
body#page_cart .ec-cartRole__totalText { text-align:right; font-size:15px; padding:10px 0 16px; }
body#page_cart .ec-cartRole__totalText strong { color:#c33947; font-size:25px; font-weight:700; }
body#page_cart #form_cart > .ec-cartRole__purpose { font-size:19px; font-weight:800; padding:16px 18px 13px; line-height:1.4; }
body#page_cart #form_cart .ec-cartRole__cart { padding:0; border-top:0; }
body#page_cart #form_cart .ec-cartTable { display:block; width:100%; }
body#page_cart #form_cart :is(.ec-cartHeader,.ec-cartRow) { display:grid; grid-template-columns:44px minmax(0,1fr) 110px 135px; gap:12px; align-items:start; }
body#page_cart #form_cart .ec-cartHeader { padding:9px 18px; margin:0; border-block:1px solid #d9dfe1; }
body#page_cart #form_cart .ec-cartHeader__label { display:block; width:auto; padding:0; text-align:center; }
body#page_cart #form_cart .ec-cartRow { padding:18px; margin:0; border-bottom:1px solid #e2e4e5; }
body#page_cart #form_cart :is(.ec-cartRow__delColumn,.ec-cartRow__contentColumn,.ec-cartRow__amountColumn,.ec-cartRow__subtotalColumn) { display:block; width:auto; padding:0; }
body#page_cart #form_cart .ec-cartRow__contentColumn { display:flex; gap:15px; min-width:0; }
body#page_cart #form_cart .ec-cartRow__img { flex:0 0 115px; width:115px; padding:0; margin:0; }
body#page_cart #form_cart .ec-cartRow__img img { display:block; width:115px; height:91px; border:1px solid #e1e8e5; border-radius:3px; object-fit:contain; }
body#page_cart #form_cart .ec-cartRow__summary { min-width:0; width:auto; padding:0; flex:1; }
body#page_cart #form_cart .ec-cartRow__name { margin:0; text-align:left; font-size:12px; }
body#page_cart #form_cart .ec-cartRow__name > a { font-size:16px; line-height:1.45; }
body#page_cart #form_cart .ec-cartRow__amountColumn { text-align:center; }
body#page_cart #form_cart .ec-cartRow__amountUpDown { display:flex; justify-content:center; gap:5px; margin:8px 0; }
body#page_cart #form_cart .ec-cartRow__amountUpDown > * { margin:0; border-radius:4px; }
body#page_cart #form_cart .ec-cartRow__subtotalColumn { text-align:right; }
body#page_cart #form_cart :is(.ec-cartRow__sutbtotal,.ec-cartRow__sutbtotalSP) { font-size:16px; color:#c33947; }
body#page_cart #form_cart .cart-specs { margin:10px 0 0; font-size:12px; padding:9px 11px; }
body#page_cart #form_cart .cart-specs__title { min-height:26px; }
body#page_cart #form_cart .ec-cartRole__actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:12px 24px; padding:17px 18px; margin-top:0; border-top:0; border-radius:0 0 5px 5px; }
body#page_cart #form_cart .ec-cartRole__total { margin:0; padding:0; font-size:13px; }
body#page_cart #form_cart .ec-cartRole__totalAmount { margin-left:9px; color:#c33947; font-size:19px; }
body#page_cart #form_cart .ec-blockBtn--action { flex:0 1 auto; width:auto; min-width:235px; min-height:42px; margin:0; padding:8px 16px; font-size:13px; line-height:1.7; border-radius:4px; }
body#page_cart #form_cart .ec-blockBtn--cancel { flex:0 1 auto; width:auto; min-height:42px; margin:0; padding:8px 16px; font-size:13px; line-height:1.7; border-radius:4px; border-color:#cfd5d8; }
@media (max-width:767px) {
  body#page_cart .ec-cartRole__totalText { font-size:12px; }
  body#page_cart .ec-cartRole__totalText strong { font-size:21px; }
  body#page_cart #form_cart > .ec-cartRole__purpose { font-size:17px; padding:14px; }
  body#page_cart #form_cart .ec-cartHeader { display:none; }
  body#page_cart #form_cart .ec-cartRow { grid-template-columns:24px minmax(0,1fr); gap:0 7px; padding:14px; }
  body#page_cart #form_cart .ec-cartRow__delColumn { grid-column:1; grid-row:1; padding:0; }
  body#page_cart #form_cart .ec-cartRow__contentColumn { grid-column:2; grid-row:1; display:block; }
  body#page_cart #form_cart .ec-cartRow__img { float:left; width:90px; margin:0 9px 8px 0; }
  body#page_cart #form_cart .ec-cartRow__img img { width:90px; height:77px; }
  body#page_cart #form_cart .ec-cartRow__name > a { font-size:13px; }
  body#page_cart #form_cart .cart-specs { clear:both; font-size:12px; }
  body#page_cart #form_cart .ec-cartRow__amountColumn { grid-column:2; text-align:left; padding-top:9px; }
  body#page_cart #form_cart .ec-cartRow__amountUpDown { justify-content:flex-start; }
  body#page_cart #form_cart .ec-cartRow__subtotalColumn { display:none; }
  body#page_cart #form_cart .ec-cartRole__actions { display:flex; flex-direction:column; align-items:stretch; gap:12px; padding:14px; }
  body#page_cart #form_cart .ec-cartRole__total { text-align:right; }
  body#page_cart #form_cart .ec-blockBtn--action { width:100%; min-width:0; }
  body#page_cart #form_cart .ec-blockBtn--cancel { align-self:flex-start; min-width:0; font-size:11px; }
}

/* The cart shares v65's underlined progress steps with checkout pages. */
body#page_cart .ec-pageHeader h1 { color:#3b404d; font-size:29px; font-weight:700; line-height:1.35; letter-spacing:.01em; margin:0 0 8px; padding:0; border:0; }
body#page_cart .ec-progress { display:flex; gap:0; width:100%; max-width:none; margin:0 0 30px; padding:0; }
body#page_cart .ec-progress .ec-progress__item { display:flex; flex:1; align-items:baseline; justify-content:center; gap:5px; border-bottom:3px solid #d9e5df; color:#83908c; padding:4px 3px 10px; font-size:12px; font-weight:400; }
body#page_cart .ec-progress .ec-progress__item::after { display:none; }
body#page_cart .ec-progress .ec-progress__number { display:inline; width:auto; height:auto; margin:0; border-radius:0; background:transparent; color:inherit; font-size:12px; line-height:inherit; }
body#page_cart .ec-progress .ec-progress__label { color:inherit; font-size:12px; font-weight:inherit; }
body#page_cart .ec-progress .is-complete { color:#36545a; border-color:#36545a; font-weight:700; }
body#page_cart .ec-progress .is-complete :is(.ec-progress__number,.ec-progress__label) { color:inherit; background:transparent; }
@media (max-width:767px) {
  body#page_cart .ec-pageHeader h1 { font-size:23px; }
  body#page_cart .ec-progress :is(.ec-progress__number,.ec-progress__label) { font-size:10px; }
}

/* Keep the native product navigation labels together at desktop widths. */
@media (min-width: 992px) {
  body#page_product_detail .ep-ready-nav-surface .basic-main-menu > nav > ul {
    justify-content: space-between;
    gap: clamp(16px, 2.3vw, 32px);
    flex-wrap: nowrap;
  }
  body#page_product_detail .ep-ready-nav-surface .basic-main-menu > nav > ul > li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    margin: 0 !important;
    white-space: nowrap;
  }
  body#page_product_detail .ep-ready-nav-surface .basic-main-menu > nav > ul > li > a {
    white-space: nowrap;
  }
}

.ep-mobile-gallery-status { display: none; }
@media (max-width: 767px) {
  body#page_product_detail .ec-sliderItemRole .item_nav,
  body#page_product_detail .ep-ready-gallery-arrow { display: none !important; }
  body#page_product_detail .ep-mobile-gallery-status {
    display: flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 46px; padding: 2px 0; margin: 0 0 8px;
    color: #506368; font-size: 12px;
  }
  .ep-mobile-gallery-dots {
    display: flex; align-items: center; max-width: calc(100% - 72px);
    overflow-x: auto; scrollbar-width: none;
  }
  .ep-mobile-gallery-dots::-webkit-scrollbar { display: none; }
  .ep-mobile-gallery-dot {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 24px; width: 24px; height: 44px; padding: 0;
    border: 0; background: transparent; cursor: pointer;
  }
  .ep-mobile-gallery-dot::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%;
    border: 1px solid #99a5a8; background: #d2d8da;
  }
  .ep-mobile-gallery-dot[aria-current='true']::before {
    width: 9px; height: 9px; border-color: #354f54; background: #354f54;
  }
  .ep-mobile-gallery-count { min-width: 42px; white-space: nowrap; font-variant-numeric: tabular-nums; }
}

/* Keep the native breakdown design; actual costs sit between total and reference sizes.
   Class-based selectors also cover the ID-free mobile clone and dynamic cost rows. */
body#page_product_detail :is(.mitsumori-card-pc,#sp-detail-body) :is(.ep-quote-product-row,.ep-quote-total-row) > .nav-link {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  color: #333 !important;
}
body#page_product_detail :is(.mitsumori-card-pc,#sp-detail-body) .ep-quote-payable-label {
  font-size: 14px;
  line-height: 1.5;
}
body#page_product_detail :is(.mitsumori-card-pc,#sp-detail-body) .nav-item:not(.catalog-price-reference) > .nav-link > .float-right {
  color: #222 !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.4;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
body#page_product_detail :is(.mitsumori-card-pc,#sp-detail-body) :is(.ep-quote-product-amount,.ep-quote-total-amount) {
  float: none !important;
  margin-left: auto;
}
body#page_product_detail :is(.mitsumori-card-pc,#sp-detail-body) .nav-item.ep-quote-total-row > .nav-link > .float-right {
  font-size: 24px !important;
}
body#page_product_detail :is(.mitsumori-card-pc,#sp-detail-body) .ep-optRow > .nav-link {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 3px 5px;
}
body#page_product_detail :is(.mitsumori-card-pc,#sp-detail-body) .ep-optRow__value {
  grid-column: 2 / -1;
}
body#page_product_detail :is(.mitsumori-card-pc,#sp-detail-body) .catalog-price-reference > .nav-link {
  padding: 8px 10px !important;
  font-size: 12px;
}
body#page_product_detail :is(.mitsumori-card-pc,#sp-detail-body) .catalog-price-reference :is(.float-right,.ep-quote-reference-amount) {
  font-size: 12px !important;
  font-weight: 400 !important;
  color: #58616b !important;
}

/* Approved section design. Native form values and handlers are unchanged. */
body#page_product_detail .ec-productRole__profile > .card-danger > .card-header.ep-ready-section-title {
  margin:24px 0 18px;padding:18px 20px;border:0;border-radius:6px;
  background:#354f54;color:#fff;box-shadow:none;
}
body#page_product_detail .ec-productRole__profile > .card-danger > .card-header.ep-ready-section-title .card-title {
  display:flex;align-items:center;gap:10px;margin:0;color:#fff;font-size:22px;line-height:1.45;font-weight:700;letter-spacing:.025em;
}
body#page_product_detail .ep-ready-section-title svg {flex:0 0 23px;width:23px;height:26px;color:#fff;}
body#page_product_detail .ep-ready-section-title .ep-ready-section-lead {margin:8px 0 0;color:#e6eded;font-size:12px;line-height:1.65;}
body#page_product_detail .ec-productRole .ec-choiceSectionHeading.ep-ready-section-install {
  margin:32px 0 0;padding:18px 18px 17px;border:1px solid #a9bfc0;border-left:4px solid #354f54;
  border-radius:6px 6px 0 0;background:#edf3f3;
}
body#page_product_detail .ep-ready-section-install h3 {font-size:19px;font-weight:700;line-height:1.5;color:#263f44;}
body#page_product_detail .ep-ready-section-install p {color:#53676b;font-size:12px;line-height:1.7;margin:6px 0 0;}
body#page_product_detail .ec-productRole .ep-ready-section-install-field {
  margin:0!important;padding:18px!important;border-left:1px solid #a9bfc0;border-right:1px solid #a9bfc0;
  border-bottom:1px solid #dce5e5!important;background:#fff;
}
body#page_product_detail .ep-ready-section-install-field .rp-section-label {color:#34474d;font-weight:700;line-height:1.65;}
body#page_product_detail .ep-ready-section-install-field.ep-ready-section-install-last {border-bottom-color:#a9bfc0!important;border-radius:0 0 6px 6px;margin-bottom:24px!important;}
@media(max-width:767px){
  body#page_product_detail .ec-productRole__profile > .card-danger > .card-header.ep-ready-section-title {padding:16px 14px;margin:20px 0 16px;}
  body#page_product_detail .ec-productRole__profile > .card-danger > .card-header.ep-ready-section-title .card-title {font-size:20px;gap:8px;letter-spacing:0;}
  body#page_product_detail .ep-ready-section-title .ep-ready-section-lead {font-size:11px;}
  body#page_product_detail .ec-productRole .ec-choiceSectionHeading.ep-ready-section-install {padding:16px 13px;margin-top:28px;}
  body#page_product_detail .ep-ready-section-install h3 {font-size:18px;}
  body#page_product_detail .ec-productRole .ep-ready-section-install-field {padding:15px 13px!important;}
}
