/* Scroll only the review list when a third review is present. */
.single-product.woocommerce div.product #reviews #comments ol.commentlist:has(> li.review:nth-child(3)),
.single-product.woocommerce div.product #reviews #comments ol.commentlist.sdeb-reviews-scroll {
  max-height:var(--sdeb-reviews-height,800px); overflow-y:auto; overflow-x:hidden;
  overscroll-behavior-y:contain; padding:3px 8px;
  scrollbar-width:thin; scrollbar-color:var(--sdeb-gold) #222;
}
.single-product.woocommerce div.product #reviews #comments ol.commentlist.sdeb-reviews-scroll:focus-visible {
  outline:2px solid var(--sdeb-gold); outline-offset:3px;
}

/* Compact, centred product reviews and review form. */
.single-product.woocommerce div.product .woocommerce-tabs {
  clear:both; width:100%; max-width:800px; margin-left:auto; margin-right:auto;
}
.single-product.woocommerce div.product .woocommerce-tabs ul.tabs { text-align:center; }
.single-product.woocommerce div.product #reviews { text-align:center; }
.single-product.woocommerce div.product #reviews #comments > h2 { text-align:center; font-size:25px; color:#fff; }
.single-product.woocommerce div.product #reviews #comments ol.commentlist {
  list-style:none; padding:0; margin:0;
}
.single-product.woocommerce div.product #reviews #comments ol.commentlist li .comment_container { text-align:center; }
.single-product.woocommerce div.product #reviews #comments ol.commentlist li img.avatar {
  display:none;
}
.single-product.woocommerce div.product #reviews #comments ol.commentlist li .comment-text {
  margin:0; padding:20px; text-align:center; border:0.5px solid rgba(255,255,255,.3); box-shadow:none;
}
.single-product.woocommerce div.product #reviews .comment-text .star-rating {
  float:none; display:block; margin:0 auto 12px;
}
.single-product.woocommerce div.product #reviews .comment-text .meta,
.single-product.woocommerce div.product #reviews .comment-text .description { text-align:center; }
/* Subtle hairline separators and readable customer names. */
.single-product.woocommerce div.product #reviews .woocommerce-review__author {
  color:#fff; display:block; text-align:center; margin:0 0 4px;
}
.single-product.woocommerce div.product #reviews .sdebr-customer-images-heading {
  border-top:0.5px solid rgba(255,255,255,.3);
}
.single-product.woocommerce div.product #reviews #review_form textarea,
.single-product.woocommerce div.product #reviews #review_form input[type="text"],
.single-product.woocommerce div.product #reviews #review_form input[type="email"] {
  border:0.5px solid rgba(255,255,255,.3);
}
.single-product.woocommerce div.product #reviews .sdebr-photos {
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center;
}
.single-product.woocommerce div.product #reviews #review_form_wrapper {
  width:100%; max-width:520px; margin:30px auto 0;
}
.single-product.woocommerce div.product #reviews #review_form #respond,
.single-product.woocommerce div.product #reviews #review_form #respond p,
.single-product.woocommerce div.product #reviews #review_form .comment-form-rating { text-align:center; }
.single-product.woocommerce div.product #reviews .comment-reply-title { display:block; text-align:center; }
.single-product.woocommerce div.product #reviews .comment-form-comment > label,
.single-product.woocommerce div.product #reviews .comment-form-author > label,
.single-product.woocommerce div.product #reviews .comment-form-email > label,
.single-product.woocommerce div.product #reviews .comment-form-rating > label { display:block; text-align:center; }
.single-product.woocommerce div.product #reviews #review_form textarea,
.single-product.woocommerce div.product #reviews #review_form input[type="text"],
.single-product.woocommerce div.product #reviews #review_form input[type="email"] {
  display:block; box-sizing:border-box; width:100%; max-width:100%; margin-left:auto; margin-right:auto;
}
.single-product.woocommerce div.product #reviews #review_form .stars { text-align:center; }
.single-product.woocommerce div.product #reviews #review_form .stars > span { display:inline-block; float:none; }
.single-product.woocommerce div.product #reviews #review_form select { margin-left:auto; margin-right:auto; }
.single-product.woocommerce div.product #reviews #review_form .form-submit input {
  float:none; display:inline-block; width:auto; margin-left:auto; margin-right:auto;
}

/* Keep the description heading above the independently scrollable content. */
.single-product.woocommerce div.product .summary .sdeb-summary-description {
  clear:both; box-sizing:border-box; width:100%; margin:24px auto 0; text-align:center;
}
.single-product.woocommerce div.product .summary .sdeb-summary-description > h2 {
  margin:0 0 12px; text-align:center; font-size:25px;
}
.single-product.woocommerce div.product .summary .sdeb-description-content {
  box-sizing:border-box; width:100%; max-height:400px;
  overflow-y:auto; overflow-x:hidden; overscroll-behavior-y:contain;
  padding:18px 16px; text-align:center;
  scrollbar-width:thin; scrollbar-color:var(--sdeb-gold) #222;
}
.single-product.woocommerce div.product .summary .sdeb-description-content:focus-visible {
  outline:2px solid var(--sdeb-gold); outline-offset:3px;
}
.single-product.woocommerce div.product .summary .sdeb-description-content img,
.single-product.woocommerce div.product .summary .sdeb-description-content iframe,
.single-product.woocommerce div.product .summary .sdeb-description-content video { max-width:100%; }

/* Purchase section only: preserve gallery, product tabs and catalogue cards. */
.single-product.woocommerce div.product .summary { text-align:center; }
.single-product.woocommerce div.product .summary .product_title { margin-bottom:22px; }
.single-product.woocommerce div.product .summary .woocommerce-product-rating {
  display:flex; flex-wrap:wrap; justify-content:center; align-items:center; gap:8px;
}
.single-product.woocommerce div.product .summary .woocommerce-product-rating::before,
.single-product.woocommerce div.product .summary .woocommerce-product-rating::after { display:none; }
.single-product.woocommerce div.product .summary .woocommerce-product-rating .star-rating {
  float:none; margin:0;
}
.single-product.woocommerce div.product .star-rating span::before { color:var(--sdeb-gold); }
.single-product.woocommerce div.product .summary > .price { margin:22px 0; }
.single-product.woocommerce div.product .summary form.cart { text-align:center; }
.single-product.woocommerce div.product .summary form.cart .variations {
  width:100%; margin:0 auto 20px;
}
.single-product.woocommerce div.product .summary form.cart .variations tr,
.single-product.woocommerce div.product .summary form.cart .variations th,
.single-product.woocommerce div.product .summary form.cart .variations td {
  display:block; text-align:center; padding:0;
}
.single-product.woocommerce div.product .summary form.cart .variations .label { margin-bottom:8px; }
.single-product.woocommerce div.product .summary form.cart .variations select {
  width:auto; min-width:23ch; max-width:100%; margin:0 auto; text-align:center;
}
.single-product.woocommerce div.product .summary form.cart .reset_variations {
  display:none!important;
}
.single-product.woocommerce div.product .summary form.cart .button {
  float:none; display:flex; align-items:center; justify-content:center; width:fit-content; max-width:100%; margin:0 auto;
}
.single-product.woocommerce div.product .summary form.cart .quantity { display:none!important; }
.single-product.woocommerce div.product.product-type-variable .summary .woocommerce-variation-price { display:none; }
.single-product.woocommerce div.product .summary .woocommerce-variation-description,
.single-product.woocommerce div.product .summary .woocommerce-variation-availability { text-align:center; }
.single-product.woocommerce div.product .summary .product_meta { display:none; }
/* PayPal renders its own button contents. Resize the supported outer container. */
.single-product.woocommerce div.product .summary [id^="ppc-button-"],
.single-product.woocommerce div.product .summary .ppc-button-wrapper {
  width:300px; max-width:100%; margin-left:auto!important; margin-right:auto!important;
  float:none; text-align:center;
}
.single-product.woocommerce div.product .summary [id^="ppc-button-"] { margin-top:16px; }
/* Match PayPal v5 frames to their light canvas so native transparent gaps and corners survive the dark theme. */
.single-product.woocommerce div.product .summary .ppc-button-wrapper,
.single-product.woocommerce div.product .summary .ppc-button-wrapper iframe {
  color-scheme:only light;
  background-color:transparent;
}
