.fc-item-summary { padding-inline: 20px; }
.fc-product-title { color: #222; font-size: 21px; line-height: 1.45; font-weight: 700; margin: 0 0 10px; overflow-wrap: anywhere; }
.fc-item-summary .itemprice { margin-block: 8px; }
.fc-item-rebate { margin-block: 10px; }
.fc-item-rebate .fc-item-action { display: inline-flex; }
.fc-gallery-zoom { display: block; cursor: zoom-in; }
.fc-gallery-zoom img { width: 100%; max-width: 360px; aspect-ratio: 1; object-fit: contain; }
.fc-gallery-thumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.fc-gallery-thumbs a { border: 1px solid #eedbd6; border-radius: 6px; overflow: hidden; }
.fc-gallery-thumbs img { display: block; width: 48px; height: 48px; object-fit: contain; }
.fc-gallery-thumbs a:focus-visible { outline: 2px solid #bd3d28; outline-offset: 2px; }
.fc-purchase-layout .fc-purchase-main { flex: 1 1 100%; min-width: 0; }
.fc-purchase-layout .fc-purchase-scan { align-self: flex-start; width: auto; border: 0; background: none; padding: 0; text-align: left; }
.fc-purchase-scan img { display: block; border: 8px solid #fff; box-sizing: content-box; margin-top: 7px; }
.fc-purchase-scan summary, .fc-item-help summary { cursor: pointer; font-weight: 600; }
.fc-coupon-terms { margin: 12px 0; padding: 8px 12px; background: #fff4ed; color: #77311d; border-radius: 8px; font-size: 14px; }
.fc-coupon-terms span { margin-inline-start: 8px; }
.fc-coupon-terms p { margin: 3px 0 0; }
.fc-item-help { margin: 14px 10px; padding: 10px 12px; border: 1px solid #e9e1dd; border-radius: 8px; line-height: 1.5; }
.fc-item-help p { margin: 8px 0 0; }
.fc-item-help a { color: #963927; text-decoration: underline; }
.fc-item-dialog { position: fixed; inset: 0; margin: auto; box-sizing: border-box; width: min(92vw, 430px); max-height: 89vh; max-height: 89dvh;
  padding: 16px; border: 1px solid #ebe1dc; border-radius: 15px; background: #fff; color: #242424; z-index: 2200; overflow: auto; }
.fc-item-dialog:not([open]), .fc-item-dialog [hidden], .fc-title-expand[hidden] { display: none; }
.fc-item-dialog::backdrop { background: rgb(24 17 15 / 58%); }
.fc-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.fc-dialog-heading h2 { color: #222; font-size: 20px; margin: 0; font-weight: 700; }
.fc-dialog-close { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #f6f1ef; color: #222; font-size: 23px; cursor: pointer; }
.fc-share-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.fc-share-options button, .fc-share-options a, .fc-poster-save {
  min-height: 42px; box-sizing: border-box; display: flex; align-items: center; justify-content: center;
  background: #fffaf6; color: #8a3020; border: 1px solid #f1dad0; border-radius: 8px; padding: 8px; line-height: 1.25;
  font-size: 14px; font-weight: 600; text-decoration: none; text-align: center; cursor: pointer; }
.fc-share-options [data-fc-poster], .fc-poster-save { color: white; background: #b94126; border-color: #b94126; }
.fc-share-options button:disabled { cursor: wait; opacity: .7; }
.fc-share-qr-box, .fc-share-status { margin: 12px 0 0; text-align: center; }
.fc-share-qr-box img { display: inline-block; border: 8px solid #fff; box-sizing: content-box; image-rendering: pixelated; }
.fc-poster-result { margin: 12px auto 0; max-width: 310px; text-align: center; }
.fc-poster-result img { display: block; width: 100%; height: auto; margin-bottom: 8px; border-radius: 8px; -webkit-touch-callout: default; }
.fc-poster-result figcaption { display: grid; gap: 6px; }
.fc-poster-result .fc-poster-download { background: #fffaf6; color: #8a3020; border-color: #f1dad0; }
.fc-poster-album-tip { margin: 2px 0; color: #554841; font-size: 13px; line-height: 1.4; }
.fc-photo-dialog { width: min(94vw, 800px); padding: 8px; background: #fff; }
.fc-photo-dialog form { text-align: right; }
.fc-photo-dialog img { display: block; width: 100%; max-height: 74vh; object-fit: contain; }

.detail .detail-slider img { display: block; width: 100%; height: min(37vh, 310px); height: min(37svh, 310px); object-fit: contain; background: #faf8f6; }
.detail .detail-slider .am-slider { margin: 0; }
.detail .detail-slider .am-direction-nav a { opacity: 1; }
.detail .detail-slider .am-direction-nav .am-prev { left: 12px; }
.detail .detail-slider .am-direction-nav .am-next { right: 12px; }
.detail .detail-info { padding: 12px 14px; }
.detail .fc-product-title { font-size: 17px; margin: 0; }
.fc-product-title.fc-title-clamped { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fc-title-expand { margin-bottom: 8px; padding: 3px 0; border: 0; background: none; color: #933720; font-size: 13px; cursor: pointer; }
.detail .detail-price { margin-top: 6px; }
.fc-item-bottom { z-index: 100; position: fixed; bottom: 0; left: 0; right: 0; display: flex; align-items: stretch; gap: 7px;
  background: white; border-top: 1px solid #e9e1dd; padding: 7px 10px calc(7px + env(safe-area-inset-bottom, 0px)); }
.fc-item-bottom button, .fc-item-bottom a { min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 5px;
  background: #fff; color: #60352c; border: 1px solid #edddd5; border-radius: 7px; font-size: 15px; font-weight: 600; padding: 5px 12px; cursor: pointer; }
.fc-item-bottom .fc-mobile-buy { flex: 1; background: #c23f23; color: #fff; border-color: #c23f23; }
body:has(.fc-item-bottom) { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
body:has(.fc-item-bottom) .am-gotop-fixed { bottom: 68px; }

@media (max-width: 600px) {
  .fc-share-dialog { inset: auto 0 0; width: 100%; max-width: none; margin: 0; border-radius: 16px 16px 0 0;
    padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); }
}

.fc-coupon-terms p[hidden] { display: none; }
.detail .detail-info .fc-price-stack { display: block; margin-top: 8px; padding: 0; min-height: 0; }
.detail .detail-info .fc-price-stack .detail-price { margin-top: 0; }
.detail .detail-info .fc-price-stack .w3-estimated-price { margin: 4px 0; }
.detail .detail-info .fc-price-stack .f-14 { margin: 3px 0; }
