/* Shared surfaces for individual products and the purchase flow. */
body:is(.single-product,.tdr-checkout-active,.woocommerce-order-received,.woocommerce-order-pay) #main {
  --tdr-commerce-ink:#251e24;
  --tdr-commerce-muted:#5d5057;
  --tdr-commerce-accent:#8c1736;
  --tdr-commerce-hover:#6c1029;
  --tdr-commerce-border:#dfd5d4;
  --tdr-commerce-surface:#fffdfa;
  --tdr-commerce-inset:#f6f1ec;
  --tdr-commerce-radius:13px;
  --tdr-commerce-width:min(1200px,calc(100% - 2 * clamp(13px,3vw,44px)));
  --theme-text-color:var(--tdr-commerce-ink);
  --theme-palette-color-1:var(--tdr-commerce-accent);
  --theme-palette-color-2:var(--tdr-commerce-hover);
  --theme-link-initial-color:var(--tdr-commerce-accent);
  --theme-link-hover-color:var(--tdr-commerce-hover);
  --theme-form-field-border-initial-color:#d9cbcd;
  --theme-form-field-border-focus-color:var(--tdr-commerce-accent);
  --theme-form-selection-field-initial-color:#c8b3ba;
  --theme-form-selection-field-active-color:var(--tdr-commerce-accent);
  --theme-button-background-initial-color:var(--tdr-commerce-accent);
  --theme-button-background-hover-color:var(--tdr-commerce-hover);
  color:var(--tdr-commerce-ink);
}
body:is(.single-product,.tdr-checkout-active,.woocommerce-order-received,.woocommerce-order-pay) #main
:is(a,button,input,select,textarea,summary):focus-visible {
  outline:2px solid var(--tdr-commerce-accent);
  outline-offset:2px;
}
body.single-product #main .hero-section:has(.ct-breadcrumbs) {
  width:var(--tdr-commerce-width);
  max-width:none;
  margin-inline:auto;
}
body.single-product #main .product-entry-wrapper:has(> .woocommerce-product-gallery):has(> .summary) {
  width:var(--tdr-commerce-width);
  max-width:none;
  margin-inline:auto;
  grid-template-columns:minmax(0,1.13fr) minmax(0,.87fr);
  align-items:start;
  gap:clamp(14px,2.3vw,28px);
}
body.single-product #main .product-entry-wrapper > :is(.woocommerce-product-gallery,.summary.entry-summary) {
  width:100%;
  margin:0;
}
body.single-product #main .woocommerce-product-gallery {
  align-self:start;
}
body.single-product #main .woocommerce-product-gallery[data-gallery="default"] .ct-product-gallery-container > figure:only-of-type {
  min-height:0;
  padding:clamp(12px,3vw,35px);
  border:1px solid var(--tdr-commerce-border);
  border-radius:var(--tdr-commerce-radius);
  background:var(--tdr-commerce-inset);
}
body.single-product #main .woocommerce-product-gallery[data-gallery="default"] .ct-product-gallery-container > figure:only-of-type img.wp-post-image {
  border-radius:8px;
}
body.single-product #main .woocommerce-product-gallery .onsale {
  inset-block-start:12px;
  inset-inline-start:12px;
  padding:5px 8px;
  border:1px solid #e1cdd4;
  border-radius:6px;
  background:var(--tdr-commerce-surface);
  color:var(--tdr-commerce-accent);
}
body.single-product #main .summary.entry-summary {
  --product-elements-spacing:0px;
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:clamp(15px,2.7vw,32px);
  color:var(--tdr-commerce-ink);
  border:1px solid var(--tdr-commerce-border);
  border-radius:var(--tdr-commerce-radius);
  background:var(--tdr-commerce-surface);
  box-shadow:none;
}
body.single-product #main .summary.entry-summary > :is(.product_title,.price,.woocommerce-product-rating,.ct-product-divider,.ct-product-add-to-cart,.tdr-guarantee-link,.product_meta) {
  margin-block:0;
}
body.single-product #main .summary.entry-summary .product_title {
  color:var(--tdr-commerce-ink);
  font-size:clamp(25px,3.2vw,43px);
  line-height:1.09;
  letter-spacing:-.037em;
  font-weight:760;
  overflow-wrap:anywhere;
}
body.single-product #main .summary.entry-summary .woocommerce-product-rating {
  gap:5px 9px;
}
body.single-product #main .summary.entry-summary .price {
  color:var(--tdr-commerce-ink);
}
body.single-product #main .summary.entry-summary > .price {
  font-size:clamp(24px,3.1vw,38px);
  line-height:1.17;
}
body.single-product #main .summary.entry-summary :is(.price ins,.sale-price > .woocommerce-Price-amount) {
  color:var(--tdr-commerce-accent);
}
body.single-product #main .summary.entry-summary :is(.price del,.woocommerce-review-link) {
  color:var(--tdr-commerce-muted);
}
body.single-product #main .summary .ct-product-divider {
  background:var(--tdr-commerce-border);
}
body.single-product #main .summary.entry-summary .ct-product-add-to-cart {
  min-width:0;
}
body.single-product #main .summary.entry-summary form.cart {
  margin:0;
  gap:8px;
}
body.single-product #main .summary.entry-summary :is(.single_add_to_cart_button,.quantity) {
  min-height:48px;
  border-radius:8px;
}
body.single-product #main .summary.entry-summary .single_add_to_cart_button {
  background:var(--tdr-commerce-accent);
  color:#fff;
}
body.single-product #main .summary.entry-summary .single_add_to_cart_button:hover {
  background:var(--tdr-commerce-hover);
}
body.single-product #main .summary .tdr-guarantee-link {
  font-size:13px;
  line-height:1.4;
}
body.single-product #main .summary .tdr-guarantee-link a {
  color:var(--tdr-commerce-accent);
  text-underline-offset:3px;
}
body.single-product #main .summary.entry-summary .product_meta {
  display:flex;
  flex-wrap:wrap;
  gap:4px 12px;
  color:var(--tdr-commerce-muted);
  text-transform:none;
  letter-spacing:0;
  font-size:13px;
}
body.single-product #main .summary.entry-summary .product_meta a {
  color:var(--tdr-commerce-accent);
}
body.single-product #main .summary .ct-wishlist-button-single,
body.single-product #main .summary .ct-wishlist-button-single .ct-label {
  --theme-link-initial-color:var(--tdr-commerce-accent);
  --theme-link-hover-color:var(--tdr-commerce-hover);
  color:var(--tdr-commerce-accent);
}
body.single-product #main .summary.entry-summary:has(.ct-product-additional-actions > .ct-wishlist-button-single:only-child) {
  position:relative;
}
body.single-product #main .summary.entry-summary:has(.ct-product-additional-actions > .ct-wishlist-button-single:only-child) .product_title {
  padding-inline-end:46px;
}
body.single-product #main .summary .ct-product-additional-actions:has(> .ct-wishlist-button-single:only-child) {
  position:absolute;
  inset-block-start:12px;
  inset-inline-end:12px;
  margin:0;
  z-index:2;
}
body.single-product #main .summary .ct-product-additional-actions > .ct-wishlist-button-single:only-child {
  display:grid;
  place-items:center;
  width:44px;
  height:44px;
  padding:0;
  border:1px solid #e4cfd6;
  border-radius:50%;
  background:var(--tdr-commerce-surface);
  box-shadow:none;
}
body.single-product #main .summary .ct-product-additional-actions > .ct-wishlist-button-single:only-child:is(:hover,:focus-visible) {
  background:#f8e8ee;
}
body.single-product #main .summary .ct-wishlist-button-single:only-child :is(.ct-tooltip,.ct-label) {
  display:none;
}
body.single-product #main .summary .ct-wishlist-button-single .ct-heart-fill { opacity:0; }
body.single-product #main .summary .ct-wishlist-button-single[data-button-state="active"] .ct-heart-fill {
  opacity:1;
  fill:var(--tdr-commerce-accent);
}
body.single-product #main :is(.summary,.woocommerce-tabs) .star-rating span::before {
  color:#8a5a22;
}
body.single-product #main .woocommerce-tabs.wc-tabs-wrapper {
  width:var(--tdr-commerce-width);
  max-width:none;
  margin:clamp(20px,3vw,36px) auto 0;
  padding-block-start:0;
  border:1px solid var(--tdr-commerce-border);
  border-radius:var(--tdr-commerce-radius);
  background:var(--tdr-commerce-surface);
  overflow:hidden;
}
body.single-product #main .woocommerce-tabs ul.tabs {
  display:flex;
  flex-direction:row;
  flex-wrap:wrap;
  align-items:stretch;
  justify-content:flex-start;
  gap:3px;
  margin:0;
  padding:6px;
  border-bottom:1px solid var(--tdr-commerce-border);
  background:var(--tdr-commerce-inset);
}
body.single-product #main .woocommerce-tabs ul.tabs li {
  flex:0 1 auto;
  width:auto;
  margin:0;
  border:0;
}
body.single-product #main .woocommerce-tabs ul.tabs li a {
  min-height:44px;
  padding:8px clamp(9px,2vw,18px);
  display:flex;
  align-items:center;
  border-radius:7px;
  color:var(--tdr-commerce-muted);
}
body.single-product #main .woocommerce-tabs ul.tabs li.active a {
  color:var(--tdr-commerce-accent);
  background:#f5e8ec;
}
body.single-product #main .woocommerce-tabs .woocommerce-Tabs-panel > .ct-container {
  padding:clamp(15px,3vw,28px);
}
body.single-product #main #reviews #review_form_wrapper {
  border-color:var(--tdr-commerce-border);
  background:var(--tdr-commerce-inset);
}
body.single-product #main #reviews :is(.commentlist .comment_container,#comments) {
  border-color:var(--tdr-commerce-border);
}
body.single-product #main #review_form .stars a {
  width:38px;
  min-height:44px;
}
body.single-product #main #review_form input[type="checkbox"] {
  accent-color:var(--tdr-commerce-accent);
}

body:is(.tdr-checkout-active,.woocommerce-order-received,.woocommerce-order-pay) #main .hero-section {
  width:var(--tdr-commerce-width);
  max-width:none;
  margin-inline:auto;
}
body:is(.tdr-checkout-active,.woocommerce-order-received,.woocommerce-order-pay) #main .page-title {
  color:var(--tdr-commerce-ink);
  font-size:clamp(28px,4vw,45px);
  letter-spacing:-.04em;
  line-height:1.12;
}
body:is(.tdr-checkout-active,.woocommerce-order-received,.woocommerce-order-pay) #main .entry-content > :is(.tdr-checkout-progress,.tdr-checkout-attachments,.wp-block-woocommerce-checkout,.tdr-guarantee-link,.woocommerce) {
  width:var(--tdr-commerce-width);
  max-width:none;
  margin-inline:auto;
}
body:is(.tdr-checkout-active,.woocommerce-order-received) #main .tdr-checkout-progress {
  margin-block:0 16px;
  padding:8px clamp(6px,2vw,18px);
  border-radius:var(--tdr-commerce-radius);
  border-color:var(--tdr-commerce-border);
  background:var(--tdr-commerce-surface);
}
body.tdr-checkout-active #main .wc-block-checkout :is(.wc-block-checkout__main,.wc-block-checkout__sidebar) {
  min-width:0;
}
body.tdr-checkout-active #main .wc-block-checkout__sidebar.is-sticky {
  position:static;
}
body.tdr-checkout-active #main .wc-block-checkout__main fieldset.wc-block-components-checkout-step {
  margin:0 0 12px;
  padding:clamp(13px,2vw,22px);
  min-width:0;
  border:1px solid var(--tdr-commerce-border);
  border-radius:var(--tdr-commerce-radius);
  background:var(--tdr-commerce-surface);
}
body.tdr-checkout-active #main .wc-block-components-checkout-step__title {
  font-size:clamp(19px,2vw,25px);
  line-height:1.2;
  font-weight:720;
  letter-spacing:-.02em;
  color:var(--tdr-commerce-ink);
}
body.tdr-checkout-active #main .wc-block-checkout :is(.wc-block-components-text-input,.wc-blocks-components-select) :is(input,select):not([aria-invalid="true"]) {
  border-color:#d4c8ca;
  border-radius:8px;
  background:#fff;
  color:var(--tdr-commerce-ink);
}
body.tdr-checkout-active #main .wc-block-checkout :is(.wc-block-components-text-input,.wc-blocks-components-select) :is(input,select):not([aria-invalid="true"]):focus {
  border-color:var(--tdr-commerce-accent);
  box-shadow:0 0 0 1px var(--tdr-commerce-accent);
}
body.tdr-checkout-active #main .wc-block-checkout :is(.wc-block-components-text-input label,.wc-blocks-components-select__label,.wc-block-components-checkout-step__description) {
  color:var(--tdr-commerce-muted);
}
body.tdr-checkout-active #main .wc-block-checkout input:is([type=checkbox],[type=radio]) {
  accent-color:var(--tdr-commerce-accent);
}
body.tdr-checkout-active #main .wc-block-checkout :is(input.wc-block-components-checkbox__input[type=checkbox],input.wc-block-components-radio-control__input[type=radio]):checked {
  border-color:var(--tdr-commerce-accent);
}
body.tdr-checkout-active #main .wc-block-checkout input.wc-block-components-radio-control__input[type=radio]:checked::before {
  background:var(--tdr-commerce-accent);
}
body.tdr-checkout-active #main .wc-block-checkout .wc-block-components-checkbox__mark {
  fill:var(--tdr-commerce-accent);
}
body.tdr-checkout-active #main .wc-block-checkout .wc-block-components-radio-control__option,
body.tdr-checkout-active #main .wc-block-checkout .wc-block-components-radio-control-accordion-content {
  color:var(--tdr-commerce-ink);
}
body.tdr-checkout-active #main .wc-block-checkout :is(.wc-block-components-panel,.wc-block-components-order-summary) {
  color:var(--tdr-commerce-ink);
}
body.tdr-checkout-active #main .wc-block-checkout .wc-block-components-order-summary-item__description {
  min-width:0;
  overflow-wrap:anywhere;
}
body.tdr-checkout-active #main .wc-block-checkout .wc-block-components-product-badge {
  color:#693143;
  border-color:#efdee2;
  background:#f8edf1;
}
body.tdr-checkout-active #main .wc-block-checkout .wc-block-checkout__actions_row {
  margin-block-start:10px;
}
body.tdr-checkout-active #main .wc-block-checkout .wc-block-components-checkout-place-order-button {
  min-height:50px;
  border-radius:8px;
  background:var(--tdr-commerce-accent);
  color:#fff;
  font-weight:700;
}
body.tdr-checkout-active #main .wc-block-checkout .wc-block-components-checkout-place-order-button:not([disabled]):hover {
  background:var(--tdr-commerce-hover);
}
body.tdr-checkout-active #main .tdr-checkout-attachments {
  border-color:var(--tdr-commerce-border);
  background:var(--tdr-commerce-surface);
}

body.woocommerce-order-received #main {
  --tdr-receipt-width:min(1080px,calc(100% - 2 * clamp(14px,3vw,28px)));
  --tdr-receipt-padding:clamp(15px,2.4vw,28px);
}
body.woocommerce-order-received #main .hero-section,
body.woocommerce-order-received #main .entry-content > :is(.tdr-checkout-progress,.woocommerce) {
  width:var(--tdr-receipt-width);
  max-width:none;
  margin-inline:auto;
}
body.woocommerce-order-received #main > .ct-container-full[data-vertical-spacing] {
  padding-block:clamp(26px,4vw,52px) clamp(34px,5vw,64px);
}
body.woocommerce-order-received #main .hero-section {
  margin-block-end:clamp(15px,2.2vw,25px);
}
body.woocommerce-order-received #main .hero-section .entry-header {
  margin:0;
  padding:0;
  border:0;
}
body.woocommerce-order-received #main .page-title {
  margin:0;
  font-size:clamp(28px,4.15vw,48px);
  overflow-wrap:anywhere;
}
body.woocommerce-order-received #main .entry-content > .woocommerce {
  display:grid;
}
body.woocommerce-order-received #main .woocommerce-order {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:clamp(14px,2vw,22px);
  min-width:0;
}
body.woocommerce-order-received #main .woocommerce-order > * {
  margin:0;
  min-width:0;
}

body.woocommerce-order-received #main .woocommerce-thankyou-order-received {
  display:grid;
  grid-template-columns:clamp(30px,4vw,40px) minmax(0,1fr);
  align-items:center;
  gap:clamp(10px,1.8vw,18px);
  padding:var(--tdr-receipt-padding);
  min-height:0;
  margin:0;
  border:1px solid #e1cbd2;
  border-radius:var(--tdr-commerce-radius);
  background:#f8eef1;
  color:var(--tdr-commerce-ink);
  font-size:clamp(14px,1.5vw,16px);
  line-height:1.45;
}
body.woocommerce-order-received #main .woocommerce-thankyou-order-received::before {
  content:"i";
  position:static;
  display:grid;
  place-items:center;
  width:100%;
  height:auto;
  aspect-ratio:1;
  background:#eed6de;
  color:var(--tdr-commerce-accent);
  border-radius:50%;
  font:700 17px/1 system-ui,sans-serif;
  opacity:1;
}
body.woocommerce-order-received #main .woocommerce-thankyou-order-received:has(.tdr-receipt-message)::before {
  content:"✓";
}
body.woocommerce-order-received #main .woocommerce-thankyou-order-received::after {
  display:none;
}
body.woocommerce-order-received #main .tdr-receipt-message {
  display:grid;
  gap:4px;
  min-width:0;
  color:var(--tdr-commerce-muted);
}
body.woocommerce-order-received #main .tdr-receipt-message strong {
  color:var(--tdr-commerce-ink);
  font-size:clamp(16px,2.1vw,23px);
  line-height:1.3;
}

body.woocommerce-order-received #main .woocommerce-order-overview.order_details {
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:8px;
  list-style:none;
  border:1px solid var(--tdr-commerce-border);
  border-radius:var(--tdr-commerce-radius);
  background:var(--tdr-commerce-surface);
}
body.woocommerce-order-received #main .woocommerce-order-overview.order_details::before,
body.woocommerce-order-received #main .woocommerce-order-overview.order_details::after {
  display:none;
}
body.woocommerce-order-received #main .woocommerce-order-overview.order_details li {
  float:none;
  flex:1 1 8rem;
  min-width:0;
  padding:12px clamp(10px,1.5vw,17px);
  border:0;
  border-radius:8px;
  margin:0;
  background:var(--tdr-commerce-inset);
  color:var(--tdr-commerce-muted);
  font-size:13px;
  line-height:1.4;
  text-transform:none;
  overflow-wrap:anywhere;
}
body.woocommerce-order-received #main .woocommerce-order-overview.order_details :is(.method,.email) {
  flex-basis:10rem;
}
body.woocommerce-order-received #main .woocommerce-order-overview.order_details li strong {
  display:block;
  margin-top:3px;
  color:var(--tdr-commerce-ink);
  font-size:clamp(14px,1.35vw,17px);
  line-height:1.35;
}
body.woocommerce-order-received #main .woocommerce-order-overview.order_details .total strong {
  color:var(--tdr-commerce-accent);
}

body.woocommerce-order-received #main :is(.woocommerce-order-details,.woocommerce-customer-details,.woocommerce-bacs-bank-details,.woocommerce-order-downloads,.woocommerce-verify-email,.woocommerce-form-login) {
  padding:var(--tdr-receipt-padding);
  min-width:0;
  max-width:100%;
  border:1px solid var(--tdr-commerce-border);
  border-radius:var(--tdr-commerce-radius);
  background:var(--tdr-commerce-surface);
  color:var(--tdr-commerce-ink);
  overflow-wrap:anywhere;
}
body.woocommerce-order-received #main :is(.woocommerce-order-details__title,.woocommerce-column__title,.wc-bacs-bank-details-heading,.woocommerce-order-downloads__title) {
  margin:0 0 14px;
  color:var(--tdr-commerce-ink);
  font-size:clamp(19px,2.1vw,27px);
  font-weight:720;
  line-height:1.23;
  letter-spacing:-.025em;
}
body.woocommerce-order-received #main .woocommerce-order-details table.order_details {
  width:100%;
  max-width:100%;
  margin:0;
  border-collapse:collapse;
  table-layout:fixed;
}
body.woocommerce-order-received #main .woocommerce-order-details table.order_details :is(th,td) {
  padding:10px clamp(6px,1.25vw,14px);
  border-color:var(--tdr-commerce-border);
  vertical-align:top;
  white-space:normal;
  overflow-wrap:anywhere;
}
body.woocommerce-order-received #main .woocommerce-order-details table.order_details thead th {
  background:var(--tdr-commerce-inset);
  font-weight:680;
}
body.woocommerce-order-received #main .woocommerce-order-details table.order_details .product-total {
  text-align:end;
  width:36%;
}
body.woocommerce-order-received #main .woocommerce-order-details table.order_details tfoot td {
  text-align:end;
}
body.woocommerce-order-received #main .woocommerce-customer-details .woocommerce-columns {
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(min(100%,224px),1fr));
  gap:clamp(14px,3vw,26px);
}
body.woocommerce-order-received #main .woocommerce-customer-details .woocommerce-columns > *,
body.woocommerce-order-received #main .woocommerce-customer-details address {
  float:none;
  width:100%;
  min-width:0;
  margin:0;
  overflow-wrap:anywhere;
}
body.woocommerce-order-received #main .woocommerce-customer-details address {
  border:0;
  background:var(--tdr-commerce-inset);
  padding:clamp(12px,2vw,18px);
  border-radius:8px;
  font-style:normal;
}
body.woocommerce-order-received #main :is(.wc-bacs-bank-details,.woocommerce-thankyou-order-failed-actions) {
  display:flex;
  flex-wrap:wrap;
  gap:8px 16px;
}
body.woocommerce-order-received #main .wc-bacs-bank-details {
  padding:0;
  list-style:none;
  margin-block:0;
}
body.woocommerce-order-received #main .wc-bacs-bank-details li {
  padding:10px 12px;
  margin:0;
  border:0;
  border-radius:8px;
  background:var(--tdr-commerce-inset);
  overflow-wrap:anywhere;
}
body.woocommerce-order-received #main .woocommerce-verify-email {
  width:min(100%,550px);
}
body.woocommerce-order-received #main :is(.woocommerce-thankyou-order-failed-actions,.woocommerce-order-details,.woocommerce-verify-email,.woocommerce-form-login) .button {
  --theme-button-background-initial-color:var(--tdr-commerce-accent);
  --theme-button-background-hover-color:var(--tdr-commerce-hover);
  --theme-button-text-initial-color:#fff;
  --theme-button-text-hover-color:#fff;
  min-height:44px;
  border-radius:8px;
}
@media(max-width:620px) {
  body.woocommerce-order-received #main .woocommerce-order-overview.order_details {
    display:grid;
    gap:0;
    padding:4px 14px;
  }
  body.woocommerce-order-received #main .woocommerce-order-overview.order_details li {
    display:grid;
    grid-template-columns:minmax(0,.84fr) minmax(0,1.16fr);
    gap:10px;
    align-items:baseline;
    padding:9px 0;
    border-radius:0;
    background:none;
  }
  body.woocommerce-order-received #main .woocommerce-order-overview.order_details li + li {
    border-top:1px solid var(--tdr-commerce-border);
  }
  body.woocommerce-order-received #main .woocommerce-order-overview.order_details li strong {
    margin:0;
  }
}

@media(max-width:760px) {
  body.single-product #main .product-entry-wrapper:has(> .woocommerce-product-gallery):has(> .summary) {
    grid-template-columns:minmax(0,1fr);
    gap:12px;
  }
  body.single-product #main .summary.entry-summary {
    gap:8px;
  }
  body.single-product #main .summary.entry-summary .product_meta {
    gap:4px 10px;
  }
  body.tdr-checkout-active #main .wc-block-checkout__main fieldset.wc-block-components-checkout-step {
    padding:12px;
  }
}
