/**
 * Shoptrangsuc Core - single product styles.
 * Loaded only on product pages.
 */

/* =========================================================
   6. PRODUCT PAGE
========================================================= */

/* ==============================
   Product page — layout
===============================*/
body.single-product .product-gallery,
body.single-product .woocommerce div.product-gallery,
body.single-product .shop-container {
  float: none;
  padding: 0 !important;
}

body.single-product .product-container {
  margin-top: -40px;
  margin-bottom: 0;
}

body.single-product .product-info {
  padding: 20px 25px;
}

/* ==============================
   Product page — short description
===============================*/
body.single-product .product-short-description {
  text-align: justify;
  text-align-last: center;
}

/* ==============================
   Product page — trust box
===============================*/

.Shoptrangsuc-trust-box__button {
  margin-bottom: 0;
}

body.single-product .Shoptrangsuc-trust-box {
  margin: 18px auto;
  padding: 14px 16px;
  max-width: 520px;
  border: 1px solid var(--st-divider);
  border-radius: 6px;
  background: var(--st-ivory);
  text-align: justify;
  text-align-last: center;
}

body.single-product .Shoptrangsuc-trust-box__title {
  margin-bottom: 8px;
  color: var(--st-primary);
  font-size: 95%;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

body.single-product .Shoptrangsuc-trust-box__text {
  color: var(--st-text);
  font-size: 100%;
  line-height: 1.55;
}

body.single-product .Shoptrangsuc-trust-box__text strong {
  color: var(--st-primary);
  font-weight: 700;
}

@media (min-width: 850px) {
  body.single-product .Shoptrangsuc-trust-box__text {
    font-size: 14px;
  }
}

body.single-product .Shoptrangsuc-trust-box__bottom {
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 22px;
}

body.single-product .Shoptrangsuc-trust-box__bottom img {
  max-width: 170px;
  height: auto;
}

body.single-product .Shoptrangsuc-trust-box__bottom a {
  color: var(--st-primary);
  font-size: 85%;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.single-product .Shoptrangsuc-trust-box__bottom a:hover {
  color: var(--st-secondary);
}

/* ==============================
   Product page — trust box proof list
   Opt-in v2 presentation for migrated UX Blocks.
===============================*/
body.single-product .Shoptrangsuc-trust-box--proof-list {
  width: 100%;
  margin: 16px auto 0;
  padding: 16px 18px;
  max-width: 520px;
  border: 1px solid var(--st-divider);
  border-radius: 8px;
  background: var(--st-ivory);
  text-align: left;
  text-align-last: auto;
}

body.single-product .Shoptrangsuc-trust-box--proof-list .Shoptrangsuc-trust-box__title {
  margin: 0 0 14px;
  color: var(--st-primary);
  font-family: "Shoptrangsuc Display", "Shoptrangsuc Text", Arial, Helvetica, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: none;
}

body.single-product .Shoptrangsuc-trust-box--proof-list .Shoptrangsuc-trust-box__list {
  display: grid;
  gap: 12px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

body.single-product .Shoptrangsuc-trust-box--proof-list .Shoptrangsuc-trust-box__item {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  margin: 0;
  padding: 0;
  border: 0;
}

body.single-product .Shoptrangsuc-trust-box--proof-list .Shoptrangsuc-trust-box__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1px solid var(--st-secondary-border);
  border-radius: 50%;
  background: var(--st-white);
  color: var(--st-secondary);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

body.single-product .Shoptrangsuc-trust-box--proof-list .Shoptrangsuc-trust-box__content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 20px;
  align-items: baseline;
  min-width: 0;
}

body.single-product .Shoptrangsuc-trust-box--proof-list .Shoptrangsuc-trust-box__item-title {
  color: var(--st-text);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
}

body.single-product .Shoptrangsuc-trust-box--proof-list .Shoptrangsuc-trust-box__item:first-child .Shoptrangsuc-trust-box__item-title {
  font-weight: 500;
}

body.single-product .Shoptrangsuc-trust-box--proof-list .Shoptrangsuc-trust-box__proof-link {
  display: inline-flex;
  align-items: center;
  justify-self: end;
  gap: 4px;
  margin-top: 0;
  color: var(--st-secondary);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 0 !important;
}

body.single-product .Shoptrangsuc-trust-box--proof-list .Shoptrangsuc-trust-box__proof-link:hover {
  color: var(--st-primary);
  text-decoration: none;
}

body.single-product .Shoptrangsuc-trust-box--proof-list .Shoptrangsuc-trust-box__proof-link:focus-visible {
  outline: 2px solid var(--st-secondary-border);
  outline-offset: 3px;
  border-radius: 2px;
}


/* ==============================
   Product page — variation price
===============================*/

body.single-product .single_variation_wrap .woocommerce-variation-price {
  display: none !important;
}

/* ==============================
   Product page — price
===============================*/

body.single-product .price-wrapper,
body.single-product .product-page-price {
  margin-top: 22px;
  margin-bottom: 12px;
}
body.single-product .product-page-price del,
body.single-product .product-page-price del .amount {
  color: var(--st-text-light) !important;
  font-size: 18px;
  font-weight: 400;
  opacity: 1;
}
body.single-product .product-page-price ins .amount,
body.single-product .product-page-price > .amount {
  font-size: 22px;
  letter-spacing: 0.01em;
}
body.single-product .product-page-price ins,
body.single-product .product-page-price ins .amount {
  color: var(--st-sale) !important;
}
/* ==============================
   Product page — social proof
===============================*/

/* Keep the row visually balanced; stock state is conveyed by text color only. */
body.single-product .Shoptrangsuc-product-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;

  width: fit-content;
  max-width: 100%;
  margin: 2px auto 12px;

  color: var(--st-text-soft);
  font-size: 90%;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.01em;
  text-align: center;
}

body.single-product .Shoptrangsuc-product-social-proof__sold,
body.single-product .Shoptrangsuc-product-social-proof__reviews,
body.single-product .Shoptrangsuc-product-social-proof__stock,
body.single-product .Shoptrangsuc-product-social-proof__separator {
  display: inline-flex;
  align-items: center;
  color: inherit;
  white-space: nowrap;
}

body.single-product .Shoptrangsuc-product-social-proof__separator {
  color: var(--st-separator);
}

body.single-product .Shoptrangsuc-product-social-proof__reviews {
  text-decoration: none;
}

body.single-product .Shoptrangsuc-product-social-proof__reviews:hover {
  color: var(--st-secondary);
}

body.single-product .Shoptrangsuc-product-social-proof__stock {
  font-weight: 500;
}

body.single-product .Shoptrangsuc-product-social-proof__stock.is-in-stock {
  color: var(--st-success);
}

body.single-product .Shoptrangsuc-product-social-proof__stock.is-order {
  color: var(--st-secondary);
}

/* ==============================
   Product page — linked variations
===============================*/

body.single-product form.variations_form table.variations th.label,
body.single-product form.variations_form table.variations td.value {
  width: 100%;
  padding: 0;
  text-align: center;
}
/* ==============================
   Product page — commitment box
===============================*/

.product-special-warning {
  margin: 18px 0 22px;
  padding: 14px 18px;

  background: var(--st-ivory);
  border: 1px solid var(--st-divider);
  border-radius: var(--st-radius-medium);

  color: var(--st-text);
  font-weight: 400;
  line-height: 1.65;
  text-align: center;
  letter-spacing: 0.01em;

  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.025);
}

.product-special-warning .highlight-warning {
  display: block;
  margin-bottom: 4px;

  color: var(--st-primary);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-special-warning strong {
  color: var(--st-primary);
  font-weight: 700;
}

.product-special-warning em,
.product-special-warning i {
  font-style: normal !important;
}

@media only screen and (max-width: 549px) {
  .product-special-warning{
    margin: 16px 0 20px;
    padding: 13px 14px;
    font-size: 90%;
    line-height: 1.6;
    border-radius: var(--st-radius-small);
  }

  .product-special-warning .highlight-warning {
    font-size: 12.5px;
  }
}

/* ==============================
   Product page — buttons
===============================*/
body.single-product .contact_button,
body.single-product .quantity,
body.single-product .single_add_to_cart_button {
  font-size: 90%;
  margin-bottom: 0;
}
body.single-product a.button.primary.contact_button {
  max-width: 30% !important;
  background: var(--st-primary) !important;
  border-color: var(--st-primary) !important;
  color: var(--st-white) !important;
}

/* ==============================
   Product page — tables
===============================*/

body.single-product .size-guide-table tr td,
body.single-product .size-guide-table tr th {
  width: 100%;
  text-align: center;
}

body.single-product .size-guide-table tr:nth-child(2n) {
  background-color: var(--st-bg-table-alt);
}

body.single-product .size-guide-table th {
  background-color: var(--st-bg-table);
}


/* ==============================
   Product page — reviews
===============================*/

/* Toàn bộ vùng đánh giá */
body.single-product
.product-page-sections
> .product-section:has(#reviews) {
  padding: 8px 0 14px;
}

body.single-product #reviews {
  font-size: 95%;
}

/* Danh sách đánh giá */
body.single-product #reviews .commentlist {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Loại bỏ đường phân cách mặc định của Flatsome */
body.single-product #reviews .commentlist > li {
  margin: 0 0 16px;
  padding: 0;
  border: 0 !important;
}

body.single-product #reviews .commentlist > li:last-child {
  margin-bottom: 0;
}

/* Tiêu đề */
body.single-product #reviews .woocommerce-Reviews-title {
  margin: 0 0 14px;
  color: var(--st-primary);
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  text-align-last: left;
}

/* Trạng thái chưa có đánh giá */
body.single-product #reviews .woocommerce-noreviews {
  margin: 0;
}

/* Card đánh giá */
body.single-product #reviews .comment_container {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  grid-template-rows: auto auto auto;
  gap: 5px 16px;
  padding: 18px 20px;
  border: 1px solid var(--st-divider);
  border-radius: 12px;
  background: #fcfaf7;
  box-shadow: none;
}

/* Wrapper avatar */
body.single-product
#reviews
.comment_container
> .flex-col:first-child {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
}

/* Avatar */
body.single-product #reviews .avatar {
  position: static;
  display: block;
  width: 64px;
  height: 64px;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
}

/* Đưa các thành phần review vào grid cha */
body.single-product #reviews .comment-text {
  display: contents;
}

/* Hàng 1: tên tác giả */
body.single-product #reviews .comment-text .meta {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  min-width: 0;
  margin: 0;
  line-height: 1.35;
}

/* Hàng 2: sao */
body.single-product #reviews .comment-text .star-rating {
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  float: none;
  width: 6em;
  height: 1em;
  margin: 0;
  font-size: 15px;
  line-height: 1;
  letter-spacing: 2px;
}

/* Hàng 3: nội dung đánh giá */
body.single-product #reviews .comment-text .description {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 10px;

  color: var(--st-text);
  font-style: normal;
  line-height: 1.75;
  word-spacing: normal;
}

body.single-product #reviews .description p {
  margin-bottom: 10px;
}

body.single-product #reviews .description p:last-child {
  margin-bottom: 0;
}

/* Tên tác giả */
body.single-product #reviews .woocommerce-review__author {
  color: var(--st-primary);
  font-size: 1.05em;
  font-weight: 600;
  line-height: 1.25;
}

/* Nhãn sau tên tác giả */
body.single-product
#reviews
.woocommerce-review__author::after {
  content: " (Khách hàng đánh giá)";
  display: inline-block;
  margin-left: 8px;
  padding-left: 18px;
  background:
    url("/wp-content/themes/shoptrangsuc/assets/img/verified_icon.png")
    no-repeat left center / 13px 13px;
  color: var(--st-text-soft);
  font-size: 0.85em;
  font-style: normal;
  font-weight: 500;
  vertical-align: middle;
}

/* Ẩn thành phần không sử dụng */
body.single-product #reviews .comment-text .meta time,
body.single-product #reviews .woocommerce-review__dash,
body.single-product #reviews .woocommerce-review__verified,
body.single-product #reviews .comment-form-cookies-consent {
  display: none !important;
}

/* Phân trang */
body.single-product #reviews .woocommerce-pagination {
  margin: 18px 0 0;
}

/* Form đánh giá */
body.single-product #reviews .review-form-inner {
  padding: 0 !important;
  border-width: 0 !important;
}

body.single-product #reviews label {
  font-weight: 400 !important;
}

/* Nút mở/đóng form */
body.single-product #reviews .st-review-toggle {
  display: block;
  width: max-content;
  min-height: 36px;
  margin: 14px 15px 0;
  padding: 0 16px;
  font-size: 13px;
  line-height: 36px;
}

body.single-product #review_form_wrapper {
  margin-top: 16px;
}

/* Mobile */
@media (max-width: 768px) {
  body.single-product
  .product-page-sections
  > .product-section:has(#reviews) {
    padding: 6px 0 10px;
  }

  body.single-product #reviews .woocommerce-Reviews-title {
    margin-bottom: 12px;
  }

  body.single-product #reviews .commentlist > li {
    margin-bottom: 12px;
  }

  body.single-product #reviews .comment_container {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 4px 12px;
    padding: 14px 16px;
    border-radius: 10px;
  }

  body.single-product #reviews .avatar {
    width: 52px;
    height: 52px;
  }

  body.single-product
  #reviews
  .woocommerce-review__author::after {
    margin-left: 6px;
    padding-left: 17px;
  }

  body.single-product #reviews .comment-text .star-rating {
    font-size: 14px;
  }

  body.single-product #reviews .comment-text .description {
    margin-top: 8px;
    line-height: 1.7;
  }

  body.single-product #reviews .woocommerce-pagination {
    margin-top: 14px;
  }

  body.single-product #reviews .st-review-toggle {
    margin-top: 12px;
  }

  body.single-product #review_form_wrapper {
    margin-top: 14px;
  }
}
/* ==============================
   Product page — SKU
===============================*/
body.single-product .st-product-sku {
  margin: 4px 0 12px;
  color: var(--st-text-soft);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
}

/* ==============================
   Product page — content
===============================*/

body.single-product .product-section .large-2 {
  display: none !important;
}

body.single-product .product-section .large-10 {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
  text-align: justify;
}

/* Discount badge visual is owned by child-theme style.css. */

/* Long-description collapse UI. */
.single-product .Shoptrangsuc-desc-target {
            position: relative !important;
            transition: max-height .25s ease;
        }

        .single-product .Shoptrangsuc-desc-target.is-collapsed {
            overflow: hidden;
        }

        .single-product .Shoptrangsuc-desc-target:not(.is-collapsed) {
            overflow: visible;
        }

        .single-product .Shoptrangsuc-desc-fade {
            display: none;
        }

        .single-product .Shoptrangsuc-desc-target.is-collapsed .Shoptrangsuc-desc-fade {
            display: block;
            position: absolute;
            left: 0;
            right: 0;
            bottom: 0;
            height: 230px;
            pointer-events: none;
            z-index: 20;

            background: linear-gradient(
                to bottom,
                rgba(255,255,255,0) 0%,
                rgba(255,255,255,.45) 28%,
                rgba(255,255,255,.82) 58%,
                rgba(255,255,255,.96) 78%,
                #fff 100%
            );
        }

        .single-product .Shoptrangsuc-desc-toggle-wrap {
            margin-top: 16px;
            position: relative;
            z-index: 30;
            text-align: center;
            padding-bottom: 24px;
        }

        .single-product .Shoptrangsuc-desc-toggle-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;

            min-width: 120px;
            padding: 9px 24px;

            border: 1px solid var(--st-divider, #E5E0D8);
            background: var(--st-white, #FFFFFF);
            color: var(--st-primary, #1C1C1A);

            font-size: 14px;
            font-weight: 600;
            line-height: 1;

            cursor: pointer;
            box-shadow: 0 4px 14px rgba(0,0,0,.08);
            transition: all .2s ease;
        }

        .single-product .Shoptrangsuc-desc-toggle-btn:hover {
            border-color: var(--st-primary, #1C1C1A);
            box-shadow: 0 6px 18px rgba(0,0,0,.12);
        }

/* ==============================
   Responsive overrides — Tablet
===============================*/

@media only screen and (min-width: 768px) and (max-width: 1024px) {

  body.single-product .product-container {
    width: 90% !important;
    margin-left: 5%;
    margin-right: 5%;
  }
}

/* ==============================
   Product page — guide link
   Markup and presentation are owned by Shoptrangsuc Core.
===============================*/
body.single-product .Shoptrangsuc-product-guide-link__item {
  color: inherit;
  text-decoration: none !important;
  border-bottom: 0.75px solid var(--st-secondary-border, rgba(128, 103, 68, 0.42));
}

body.single-product .Shoptrangsuc-product-guide-link__item:hover,
body.single-product .Shoptrangsuc-product-guide-link__item:focus-visible {
  color: var(--st-secondary, #806744);
  border-bottom-color: var(--st-secondary, #806744);
}

@media (max-width: 549px) {
  body.single-product .product-info {
    padding: 18px 18px;
  }

  body.single-product .woocommerce div.product-gallery,
  body.single-product .product-gallery {
    padding: 0 !important;
  }

  body.single-product .shop-container {
    padding: 0 !important;
  }

  body.single-product .woocommerce-product-gallery .flex-viewport {
    height: auto !important;
  }

  body.single-product .product-short-description,
  body.single-product .woocommerce-product-details__short-description {
    font-size: 14px;
    line-height: 1.7;
  }

  body.single-product .Shoptrangsuc-trust-box {
    margin: 16px auto;
    padding: 13px 14px;
  }

  body.single-product .Shoptrangsuc-trust-box__text {
    font-size: 13px;
  }

  body.single-product .Shoptrangsuc-trust-box__bottom {
    gap: 14px;
    flex-wrap: wrap;
  }

  body.single-product .Shoptrangsuc-trust-box__bottom img {
    max-width: 150px;
  }

  body.single-product .Shoptrangsuc-trust-box--proof-list {
    margin-top: 14px;
    padding: 14px;
  }

  body.single-product .Shoptrangsuc-trust-box--proof-list .Shoptrangsuc-trust-box__title {
    margin-bottom: 12px;
    font-size: 14px;
  }

  body.single-product .Shoptrangsuc-trust-box--proof-list .Shoptrangsuc-trust-box__list {
    max-width: none;
  }

  body.single-product .Shoptrangsuc-trust-box--proof-list .Shoptrangsuc-trust-box__item {
    grid-template-columns: 19px minmax(0, 1fr);
    column-gap: 9px;
    padding: 0;
  }

  body.single-product .Shoptrangsuc-trust-box--proof-list .Shoptrangsuc-trust-box__icon {
    width: 19px;
    height: 19px;
    font-size: 11px;
  }

  body.single-product .Shoptrangsuc-trust-box--proof-list .Shoptrangsuc-trust-box__item-title {
    font-size: 13px;
    line-height: 1.5;
  }

  body.single-product .Shoptrangsuc-trust-box--proof-list .Shoptrangsuc-trust-box__content {
    display: block;
  }

  body.single-product .Shoptrangsuc-trust-box--proof-list .Shoptrangsuc-trust-box__proof-link {
    margin-top: 3px;
    font-size: 12px;
    white-space: normal;
  }

  body.single-product .Shoptrangsuc-product-guide-link {
    margin: 7px auto 12px;
  }

  body.single-product .Shoptrangsuc-product-guide-link__item {
    font-size: 12.5px;
  }

  body.single-product .price-wrapper,
  body.single-product .product-page-price {
    margin-top: 18px;
    margin-bottom: 10px;
  }

  body.single-product .product-page-price {
    gap: 9px;
  }

  body.single-product .product-page-price del,
  body.single-product .product-page-price del .amount {
    font-size: 17px;
  }

  body.single-product .product-page-price ins .amount,
  body.single-product .product-page-price > .amount {
    font-size: 20px;
  }

  body.single-product .Shoptrangsuc-instalstent-notice {
    margin: 8px 0 13px;
    font-size: 13.2px;
    line-height: 1.45;
  }

  body.single-product .Shoptrangsuc-product-social-proof {
    margin: 2px auto 10px;
    gap: 7px;
    font-size: 82%;
  }

  body.single-product .Shoptrangsuc-cross-sell-offer {
    margin-top: 13px;
    border-radius: 7px;
  }

  body.single-product .Shoptrangsuc-cross-sell-offer__heading {
    padding: 9px 12px;
    font-size: 12px;
  }

  body.single-product .Shoptrangsuc-cross-sell-offer__body {
    padding: 10px 12px;
    gap: 5px;
    font-size: 12px;
  }

  body.single-product .contact_button,
  body.single-product .single_add_to_cart_button {
    margin-bottom: 0 !important;
    font-size: 80% !important;
  }

  body.single-product a.button.primary.contact_button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    max-width: 32% !important;
    line-height: 1.2 !important;
  }

  body.single-product .dsalv-attributes {
    margin-top: 20px;
    margin-bottom: 16px;
  }

  body.single-product .dsalv-attributes .dsalv-terms img {
    height: 68px !important;
    min-width: 68px !important;
  }

  body.single-product .dsalv-attributes .dsalv-term.dsalv-term-image {
    height: 72px !important;
    min-width: 68px !important;
    width: auto;
    padding: 0;
    border-color: transparent;
  }

}

@media (max-width: 549px) {
  body.single-product .related.products .products,
  body.single-product .upsells.products .products {
    margin-left: -5px;
    margin-right: -5px;
  }

  body.single-product .related.products .product-small,
  body.single-product .upsells.products .product-small {
    padding-left: 5px;
    padding-right: 5px;
    margin-bottom: 8px;
  }
}

/* =========================================================
   PRODUCT FAMILY — linked parent-product dimensions
   Align with WooCommerce/Flatsome variation controls.
========================================================= */

body.single-product table.sts-product-family {
  position: relative;
  width: 100%;
  margin: 0;
}

body.single-product table.sts-product-family th.label,
body.single-product table.sts-product-family td.value {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  text-align: center;
}

body.single-product table.sts-product-family th.label {
  display: flex;
  align-items: center;
  justify-content: center;
}

body.single-product table.sts-product-family th.label label {
  white-space: nowrap;
}

body.single-product table.sts-product-family .ux-swatch-selected-value {
  font-size: 0.9em;
  font-weight: 400;
}

.sts-product-family__options {
  --sts-family-swatch-size: 30px;
  --sts-family-swatch-radius: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 5px 0;
}

.sts-product-family__options--x-small {
  --sts-family-swatch-size: 15px;
}

.sts-product-family__options--small {
  --sts-family-swatch-size: 20px;
}

.sts-product-family__options--large {
  --sts-family-swatch-size: 45px;
}

.sts-product-family__options--x-large {
  --sts-family-swatch-size: 70px;
}

.sts-product-family__options--rounded {
  --sts-family-swatch-radius: 2px;
}

.sts-product-family__options--circle {
  --sts-family-swatch-radius: 50%;
}

.sts-product-family__option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  color: var(--st-text, #3A3936);
  background: var(--st-white, #FFFFFF);
  box-shadow: 0 0 0 1px #d5d5d5;
  text-decoration: none;
  transition: box-shadow 0.15s ease;
}

.sts-product-family__option:hover:not(.is-current),
.sts-product-family__option:focus-visible:not(.is-current) {
  color: var(--st-text-strong, #111111);
  box-shadow: 0 0 0 1px #999;
  outline: none;
}

.sts-product-family__option:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}

.sts-product-family__option.is-current {
  box-shadow: 0 0 0 2px var(--fs-color-primary, var(--st-text-strong, #111111));
}

.sts-product-family__option--swatch {
  width: var(--sts-family-swatch-size);
  height: var(--sts-family-swatch-size);
  padding: 2px;
  border-radius: var(--sts-family-swatch-radius);
  background: var(--sts-family-color);
}

.sts-product-family__option--swatch.sts-product-family__option--dual {
  background: linear-gradient(
    135deg,
    var(--sts-family-color) 0 50%,
    var(--sts-family-color-2) 50% 100%
  );
}

.sts-product-family__options--circle .sts-product-family__option--swatch.sts-product-family__option--dual {
  background: linear-gradient(
    180deg,
    var(--sts-family-color) 0 50%,
    var(--sts-family-color-2) 50% 100%
  );
}

.sts-product-family__option--swatch .sts-product-family__option-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.sts-product-family__option--text {
  min-width: var(--sts-family-swatch-size);
  min-height: var(--sts-family-swatch-size);
  padding: 0 8px;
  border-radius: var(--sts-family-swatch-radius);
  font-size: 14px;
  line-height: 1.2;
}

.sts-product-family__options--x-small .sts-product-family__option--text,
.sts-product-family__options--small .sts-product-family__option--text {
  padding: 2px 8px;
}

.sts-product-family__options--large .sts-product-family__option--text {
  padding: 0 10px;
}

.sts-product-family__options--x-large .sts-product-family__option--text {
  padding: 0 15px;
}

.sts-product-family__options--circle .sts-product-family__option--text {
  border-radius: 100px;
}

.sts-product-family__option--image {
  width: var(--sts-family-swatch-size);
  height: var(--sts-family-swatch-size);
  padding: 2px;
  overflow: hidden;
  border-radius: var(--sts-family-swatch-radius);
}

.sts-product-family__option--image img {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
}
