@charset "UTF-8";
.rich-copy,
.rich-editor {
  min-width: 0;
  max-width: 100%;
  color: #4d4946;
  font-family: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.65;
  overflow-wrap: anywhere;
}
.rich-copy > *,
.rich-editor > * {
  max-width: 100% !important;
}
.rich-copy h2,
.rich-copy h3,
.rich-copy h4,
.rich-copy h5,
.rich-copy h6,
.rich-editor h2,
.rich-editor h3,
.rich-editor h4,
.rich-editor h5,
.rich-editor h6 {
  margin: 1.2rem 0 0.7rem;
  font-family: "Noto Serif TC", serif;
  font-weight: 400;
  line-height: 1.3;
}
.rich-copy h2,
.rich-editor h2 {
  font-size: 2rem;
}
.rich-copy h3,
.rich-editor h3 {
  font-size: 1.75rem;
}
.rich-copy h4,
.rich-editor h4 {
  font-size: 1.5rem;
}
.rich-copy h5,
.rich-editor h5 {
  font-size: 1.25rem;
}
.rich-copy h6,
.rich-editor h6 {
  font-size: 1rem;
}
.rich-copy p,
.rich-editor p {
  margin: 0.6rem 0;
  line-height: 1.65em;
}
.rich-copy p :where(span, strong, b, em, i, u, a, code),
.rich-editor p :where(span, strong, b, em, i, u, a, code) {
  line-height: inherit;
}
.rich-copy ul,
.rich-copy ol,
.rich-editor ul,
.rich-editor ol {
  margin: 0.8rem 0;
  padding-left: 1.5rem;
}
.rich-copy a,
.rich-editor a {
  color: inherit;
  text-decoration: underline;
}
.rich-copy blockquote,
.rich-editor blockquote {
  margin: 1rem 0;
  padding-left: 1rem;
  color: #555;
  border-left: 3px solid #bbb;
}
.rich-copy img,
.rich-editor img {
  display: block;
  max-width: 100%;
  height: auto;
}
.rich-copy figure,
.rich-editor figure {
  margin: 1.5rem 0;
  padding: 0;
  background: transparent;
}
.rich-copy figcaption,
.rich-editor figcaption {
  margin-top: 0.5rem;
  color: #6a6764;
  font-size: 0.78rem;
}
.rich-copy pre,
.rich-editor pre {
  max-width: 100%;
  padding: 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  background: #f6f3f0;
  font-family: Consolas, monospace;
}
.rich-copy [data-align=left],
.rich-editor [data-align=left] {
  text-align: left;
}
.rich-copy [data-align=center],
.rich-editor [data-align=center] {
  text-align: center;
}
.rich-copy [data-align=right],
.rich-editor [data-align=right] {
  text-align: right;
}
.rich-copy figure[data-align=center] img,
.rich-editor figure[data-align=center] img {
  margin-inline: auto;
}
.rich-copy figure[data-align=right] img,
.rich-editor figure[data-align=right] img {
  margin-left: auto;
}
.rich-copy .limited-tag,
.rich-editor .limited-tag {
  display: inline-block;
  padding: 0 0.5rem;
  border: 1px solid #000;
}

.rich-copy table,
.rich-editor table {
  display: table;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  table-layout: fixed;
}
.rich-copy th,
.rich-copy td,
.rich-editor th,
.rich-editor td {
  min-width: 0;
  max-width: 100%;
  padding: 0.25rem;
  border: 0;
  line-height: 1.65;
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: top;
}
.rich-copy th,
.rich-editor th {
  background: #f6f3f0;
  color: #0b0b0b;
  font-size: inherit;
  font-weight: 700;
  letter-spacing: normal;
}
.rich-copy caption,
.rich-editor caption {
  margin-bottom: 0.65rem;
  color: #6a6764;
  text-align: left;
}

.rich-copy .rich-product-carousel,
.rich-editor .rich-product-carousel {
  width: 100%;
  max-width: 760px;
  margin: 2rem auto;
  color: #171717;
}
.rich-copy .rich-product-carousel-items,
.rich-editor .rich-product-carousel-items {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.rich-copy .rich-product-carousel-item,
.rich-editor .rich-product-carousel-item {
  min-width: 0;
  margin: 0;
  padding: 10px;
  background: #fff;
  border: 1px solid transparent;
}
.rich-copy .rich-product-carousel-item img,
.rich-editor .rich-product-carousel-item img {
  width: 100%;
  height: 104px;
  margin: 0 auto;
  object-fit: contain;
}
.rich-copy .rich-product-carousel-item figcaption,
.rich-editor .rich-product-carousel-item figcaption {
  margin-top: 0.65rem;
  color: #171717;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  text-align: left;
}

.rich-copy .rich-product-carousel-stage {
  position: relative;
  display: grid;
  min-height: 340px;
  margin-bottom: 1.25rem;
  place-items: center;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.rich-copy .rich-product-carousel-stage.is-dragging {
  cursor: grabbing;
}
.rich-copy .rich-product-carousel-main-image {
  width: min(62%, 360px);
  height: 320px;
  object-fit: contain;
}
.rich-copy .rich-product-carousel-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 44px;
  height: 56px;
  padding: 0;
  background: transparent;
  color: #151515;
  border: 0;
  cursor: pointer;
  font: 300 42px/1 sans-serif;
  transform: translateY(-50%);
}
.rich-copy .rich-product-carousel-arrow.previous {
  left: 0;
}
.rich-copy .rich-product-carousel-arrow.next {
  right: 0;
}
.rich-copy .rich-product-carousel-arrow:hover, .rich-copy .rich-product-carousel-arrow:focus-visible {
  color: #9b7950;
}
.rich-copy .rich-product-carousel-arrow:focus-visible {
  outline: 2px solid #9b7950;
  outline-offset: 3px;
}
.rich-copy .rich-product-carousel-item {
  cursor: pointer;
}
.rich-copy .rich-product-carousel-item:focus-visible {
  outline: 2px solid #9b7950;
  outline-offset: 3px;
}
.rich-copy .rich-product-carousel-item.active {
  border-color: #cfcfcf;
}
.rich-copy .rich-product-carousel-item .rich-product-carousel-product-image {
  display: none;
}
.rich-copy .rich-product-carousel-item .rich-product-carousel-swatch {
  display: block;
  width: min(100%, 104px);
  height: 104px;
  object-fit: contain;
}
.rich-copy .rich-product-carousel.is-single .rich-product-carousel-item {
  cursor: default;
}

.rich-editor .rich-product-carousel-item .rich-product-carousel-product-image {
  height: 128px;
  margin-bottom: 8px;
}
.rich-editor .rich-product-carousel-item .rich-product-carousel-swatch {
  height: 64px;
  padding-top: 6px;
  border-top: 1px dashed #ddd;
}

.rich-copy .rich-product-carousel-main-image,
.limited-item.has-product-carousel > .lp-media > img {
  backface-visibility: hidden;
  transform: translate3d(0, 0, 0);
  will-change: opacity, transform;
}
.rich-copy .rich-product-carousel-main-image.is-leaving-next,
.limited-item.has-product-carousel > .lp-media > img.is-leaving-next {
  animation: product-carousel-leave-next 600ms ease-in-out both;
}
.rich-copy .rich-product-carousel-main-image.is-leaving-previous,
.limited-item.has-product-carousel > .lp-media > img.is-leaving-previous {
  animation: product-carousel-leave-previous 600ms ease-in-out both;
}
.rich-copy .rich-product-carousel-main-image.is-entering-next,
.limited-item.has-product-carousel > .lp-media > img.is-entering-next {
  animation: product-carousel-enter-next 600ms ease-in-out both;
}
.rich-copy .rich-product-carousel-main-image.is-entering-previous,
.limited-item.has-product-carousel > .lp-media > img.is-entering-previous {
  animation: product-carousel-enter-previous 600ms ease-in-out both;
}

.rich-copy .carousel-transition-clone,
.limited-item.has-product-carousel > .lp-media > .carousel-transition-clone {
  position: absolute;
  z-index: 1;
  inset: 0;
  margin: auto;
  pointer-events: none;
}

@keyframes product-carousel-leave-next {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(-100%, 0, 0);
  }
}
@keyframes product-carousel-leave-previous {
  from {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 0;
    transform: translate3d(100%, 0, 0);
  }
}
@keyframes product-carousel-enter-next {
  from {
    opacity: 0;
    transform: translate3d(100%, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@keyframes product-carousel-enter-previous {
  from {
    opacity: 0;
    transform: translate3d(-100%, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .rich-copy .rich-product-carousel-main-image,
  .limited-item.has-product-carousel > .lp-media > img {
    animation: none !important;
  }
}
.rich-product-carousel-title {
  display: block;
  min-height: 2.9em;
  color: #171717;
}

.rich-product-carousel-badge {
  display: inline-block;
  margin: 0 0.35rem 0.2rem 0;
  padding: 2px 5px;
  color: #fff;
  font-size: 8px;
  line-height: 1.2;
  vertical-align: middle;
}

.rich-product-carousel-description {
  margin-top: 0.5rem;
  color: #5f5a57;
  font-size: 11px;
  line-height: 1.65;
}
.rich-product-carousel-description > :first-child {
  margin-top: 0;
}
.rich-product-carousel-description > :last-child {
  margin-bottom: 0;
}

@supports (grid-template-rows: subgrid) {
  .rich-copy [data-structured-variants] .rich-product-carousel-items {
    row-gap: 0;
  }
  .rich-copy [data-structured-variants] .rich-product-carousel-item {
    display: grid;
    grid-row: span 3;
    grid-template-rows: subgrid;
  }
  .rich-copy [data-structured-variants] .rich-product-carousel-item figcaption {
    display: contents;
  }
  .rich-copy [data-structured-variants] .rich-product-carousel-title {
    min-height: 0;
    margin-top: 0.65rem;
  }
}
.rich-editor .rich-product-carousel {
  padding: 12px;
  border: 1px dashed #aaa;
}
.rich-editor .rich-product-carousel::before {
  content: "色票切換（上圖是商品大圖，下圖是點選色票；前台會控制同段落左側主圖）";
  display: block;
  margin-bottom: 10px;
  color: #777;
  font-size: 12px;
}

.rich-copy .rich-product-carousel + p:empty {
  display: none;
}

.limited-item.has-product-carousel > .lp-media {
  position: relative;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}
.limited-item.has-product-carousel > .lp-media.is-dragging {
  cursor: grabbing;
}
.limited-item.has-product-carousel > .lp-media .rich-product-carousel-arrow {
  position: absolute;
  z-index: 1;
  top: 50%;
  display: grid;
  width: 42px;
  height: 56px;
  padding: 0;
  place-items: center;
  background: rgba(255, 255, 255, 0.78);
  color: #151515;
  border: 0;
  cursor: pointer;
  font: 300 38px/1 sans-serif;
  transform: translateY(-50%);
}
.limited-item.has-product-carousel > .lp-media .rich-product-carousel-arrow.previous {
  left: 0;
}
.limited-item.has-product-carousel > .lp-media .rich-product-carousel-arrow.next {
  right: 0;
}

@media (max-width: 520px) {
  .rich-copy .rich-product-carousel-stage {
    min-height: 260px;
  }
  .rich-copy .rich-product-carousel-main-image {
    width: min(68%, 250px);
    height: 240px;
  }
  .rich-copy .rich-product-carousel-arrow {
    width: 32px;
    font-size: 34px;
  }
  .rich-copy .rich-product-carousel-items,
  .rich-editor .rich-product-carousel-items {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }
  .rich-copy .rich-product-carousel-item,
  .rich-editor .rich-product-carousel-item {
    padding: 5px;
  }
  .rich-copy .rich-product-carousel-item img,
  .rich-editor .rich-product-carousel-item img {
    height: 72px;
  }
  .rich-copy .rich-product-carousel-item figcaption,
  .rich-editor .rich-product-carousel-item figcaption {
    font-size: 10px;
  }
  .rich-product-carousel-description {
    font-size: 9px;
  }
}