/* =========================================================================
   License Shop — WooCommerce
   The theme disables WooCommerce's own stylesheets, so every shop surface
   (single product, archives, cart, checkout, my account) is styled here
   using the design tokens declared in main.css.
   ========================================================================= */

/* =========================================================================
   Shared shop primitives
   ========================================================================= */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
.wc-block-components-notice-banner {
  list-style: none;
  margin: 0 0 24px;
  padding: 14px 18px;
  border-radius: var(--radius-tile);
  border: 1px solid var(--color-border);
  background: var(--color-tint-blue);
  font-size: var(--fs-small);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.woocommerce-message { border-color: rgba(6, 190, 130, 0.35); background: rgba(6, 190, 130, 0.08); }
.woocommerce-error { border-color: rgba(220, 38, 38, 0.3); background: rgba(220, 38, 38, 0.07); }
.woocommerce-error li { list-style: none; }
.woocommerce-message .button,
.woocommerce-info .button {
  margin-left: auto;
}

.shop-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--color-border);
}
.shop-toolbar__count {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}
.woocommerce-ordering select,
.shop-toolbar select {
  font-family: inherit;
  font-size: var(--fs-small);
  padding: 10px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
}

/* Archive intro header — a compact continuation of the breadcrumb. */
.shop-archive {
  padding-top: clamp(18px, 2vw, 28px);
  padding-bottom: var(--section-padding-y);
}
.shop-header { margin-bottom: 28px; }
.shop-header h1 {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  margin: 0 0 8px;
}
.shop-header__desc {
  margin: 0;
  max-width: 68ch;
  color: var(--color-text-muted);
}

/* Category navigation shares the homepage segmented-tab component. */
.shop-categories { margin-bottom: 28px; }

/* Product loop: WooCommerce's <ul class="products"> uses our card grid */
ul.products {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--gutter);
}
ul.products li.product { margin: 0; }

/* Pagination */
.woocommerce-pagination { margin-top: 40px; }
.woocommerce-pagination ul {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.woocommerce-pagination li a,
.woocommerce-pagination li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: var(--fs-small);
  font-weight: 600;
}
.woocommerce-pagination li span.current,
.woocommerce-pagination li a:hover {
  background: var(--color-brand-orange);
  border-color: var(--color-brand-orange);
  color: var(--color-on-accent);
}

/* =========================================================================
   Single product
   ========================================================================= */
.product-single__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(20px, 2.2vw, 36px);
  align-items: start;
}

/* Gallery: the .box-card is the ONE container. Inside it, a vertical thumbnail
   rail sits left of the image (desktop/tablet) and drops to a horizontal strip
   below it on phones. The stage itself has no frame of its own. */
.product-single__gallery.has-thumbs {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 14px;
}

.product-single__stage {
  position: relative;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-single__stage img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4%;
}
.product-single__placeholder {
  color: var(--color-text-muted);
  font-size: var(--fs-small);
}
.product-single__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  background: var(--color-brand-green);
  color: var(--color-on-accent);
  font-size: var(--fs-small);
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

/* Thumbnail rail — as tall as the image, scrolls if there are many.
   height:0 + min-height:100% lets the stage set the row height. */
.product-single__thumbs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 0;
  min-height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
}
.product-single__thumbs::-webkit-scrollbar { display: none; }
.product-single__thumb {
  flex: none;
  width: 76px;
  height: 76px;
  padding: 4px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-tile);
  background: var(--color-surface);
  cursor: pointer;
  transition: border-color var(--transition-base);
}
.product-single__thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-single__thumb:hover,
.product-single__thumb.is-active { border-color: var(--color-brand-orange); }

/* Prev / next arrows over the image */
.product-single__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: var(--shadow-card);
  transform: translateY(-50%);
  transition: border-color var(--transition-base), color var(--transition-base);
}
.product-single__arrow:hover,
.product-single__arrow:focus-visible {
  border-color: var(--color-brand-orange);
  color: var(--color-brand-orange);
}
.product-single__arrow--prev { left: 8px; }
.product-single__arrow--next { right: 8px; }
.product-single__arrow--prev .icon { transform: rotate(90deg); }
.product-single__arrow--next .icon { transform: rotate(-90deg); }

@media (max-width: 600px) {
  .product-single__gallery.has-thumbs {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .product-single__thumbs {
    order: 2;
    flex-direction: row;
    height: auto;
    min-height: 0;
    overflow-x: auto;
    overflow-y: hidden;
  }
  .product-single__thumb { width: 60px; height: 60px; }
  .product-single__arrow { width: 36px; height: 36px; }
  .product-single__arrow--prev { left: 4px; }
  .product-single__arrow--next { right: 4px; }
}

.product-single__assurances {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}
.product-single__assurances li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}
.product-single__assurances svg { color: var(--color-brand-green); width: 16px; height: 16px; }

.product-single__eyebrow {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-brand-orange);
  margin-bottom: 10px;
}
.product-single__title {
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  line-height: 1.2;
  margin: 0 0 12px;
}
.product-single__rating {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-size: var(--fs-small);
}
.product-single__rating .stars { display: inline-flex; gap: 2px; color: var(--color-star); }
.product-single__rating-value { font-weight: 700; }
.product-single__rating-count { color: var(--color-text-muted); text-decoration: underline; }

.product-single__pricing {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-tint-blue);
  margin-bottom: 20px;
}
.product-single__price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.product-single__price {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.product-single__was {
  color: var(--color-text-muted);
  text-decoration: line-through;
}
/* Save pill — a light tint of the price colour, so price + saving read as one deal */
.product-single__save {
  background: var(--color-price-tint);
  color: var(--color-price);
  border: 1px solid var(--color-price-line);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  display: inline-block;
}
.product-single__vat {
  margin: 10px 0 0;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* Add-to-cart form */
.product-single__buy form.cart {
  display: flex;
  align-items: stretch;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}
.product-single__buy .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--color-surface);
}
.product-single__buy .quantity label { display: none; }
.product-single__buy .quantity input.qty {
  width: 72px;
  height: 52px;
  border: none;
  text-align: center;
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--color-text);
  background: transparent;
  -moz-appearance: textfield;
}
.product-single__buy .quantity input.qty::-webkit-outer-spin-button,
.product-single__buy .quantity input.qty::-webkit-inner-spin-button {
  opacity: 1;
  height: 28px;
}
.product-single__buy button.single_add_to_cart_button {
  flex: 1 1 220px;
  min-height: 52px;
  padding: 0 32px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-brand-orange);
  color: var(--color-on-accent);
  font-family: var(--font-heading);
  font-size: var(--fs-body);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition-base), transform var(--transition-base);
}
.product-single__buy button.single_add_to_cart_button:hover {
  background: var(--color-brand-orange-hover);
  transform: translateY(-1px);
}
.product-single__buy .stock.out-of-stock {
  color: #DC2626;
  font-weight: 600;
}

.product-single__usp {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 14px;
}
.product-single__usp li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.product-single__usp-icon {
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-tint-peach);
  color: var(--color-brand-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.product-single__usp strong { display: block; font-size: var(--fs-small); }
.product-single__usp em {
  display: block;
  font-style: normal;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

.product-single__payments {
  border-top: 1px solid var(--color-border);
  padding-top: 18px;
}
.product-single__payments-label {
  display: block;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-bottom: 10px;
}
.product-single__payments-list { display: flex; flex-wrap: wrap; gap: 8px; }
.payment-chip {
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-surface);
  padding: 6px 12px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-text-muted);
}
/* Payment-methods image (replaces the text chips). */
.product-single__payments-img {
  display: block;
  max-width: 100%;
  height: auto;
}

.product-single__meta {
  margin: 16px 0 0;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* Product data tabs. Spacing above the details block is now owned by its
   wrapper (.product-single__sections), so the block itself adds no top margin. */
.product-single__details { margin-top: 0; }
.woocommerce-tabs ul.tabs {
  list-style: none;
  display: flex;
  gap: 32px;
  margin: 0 0 32px;
  padding: 0;
  border-bottom: 2px solid var(--color-border);
  overflow-x: auto;
}
.woocommerce-tabs ul.tabs li { margin: 0; }
.woocommerce-tabs ul.tabs li a {
  display: inline-block;
  padding: 0 0 16px 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-muted);
  white-space: nowrap;
  position: relative;
  text-decoration: none;
  transition: color var(--transition-base);
}
.woocommerce-tabs ul.tabs li a:hover {
  color: var(--color-heading);
}
.woocommerce-tabs ul.tabs li.active a {
  color: var(--color-brand-orange);
}
.woocommerce-tabs ul.tabs li.active a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 2px;
  background-color: var(--color-brand-orange);
}
.woocommerce-Tabs-panel h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  margin: 0 0 14px;
}
.woocommerce-Tabs-panel p { margin: 0 0 12px; max-width: 76ch; }

/* =========================================================================
   Product Reviews & Star Rating Component UI/UX
   ========================================================================= */
.woocommerce-Reviews.ls-reviews-wrapper {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Header & Rating Summary Banner */
.ls-reviews-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 22px 28px;
  background: var(--color-tint-blue);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}
.ls-reviews-header__summary {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.ls-reviews-header__score-box {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ls-reviews-header__score {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-heading);
  line-height: 1;
}
.ls-reviews-header__stars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ls-reviews-header__stars .stars {
  display: inline-flex;
  gap: 3px;
  color: var(--color-star);
  font-size: 1.15rem;
}
.ls-reviews-header__count {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  font-weight: 600;
}
.ls-reviews-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
  color: var(--color-success);
  font-size: var(--fs-xs);
  font-weight: 700;
}
.ls-reviews-header__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Empty State ("No reviews yet") */
.ls-empty-reviews {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--color-surface-raised);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-card);
  margin-bottom: 20px;
}
.ls-empty-reviews__icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--color-warning-bg);
  color: var(--color-warning);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.ls-empty-reviews__text h4 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--color-heading);
}
.ls-empty-reviews__text p {
  margin: 0;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}

/* Reviews List */
.ls-reviews-list-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  margin: 0 0 18px;
  color: var(--color-heading);
}
.ls-commentlist,
ol.commentlist,
ul.commentlist {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ls-commentlist li,
.commentlist li {
  list-style: none !important;
  list-style-type: none !important;
  margin: 0;
  padding: 0;
}
.woocommerce-Reviews .comment_container {
  display: flex;
  gap: 16px;
  padding: 20px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.woocommerce-Reviews .comment_container:hover {
  border-color: color-mix(in srgb, var(--color-accent-blue) 35%, var(--color-border));
  box-shadow: var(--shadow-card);
}
.woocommerce-Reviews .comment_container img.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  flex: none;
  border: 2px solid var(--color-border);
}
.woocommerce-Reviews .comment-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.woocommerce-Reviews .meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.woocommerce-Reviews .woocommerce-review__author {
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--color-heading);
}
.woocommerce-Reviews .woocommerce-review__dash { display: none; }
.woocommerce-Reviews .woocommerce-review__published-date {
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}
.woocommerce-Reviews .star-rating { color: var(--color-star); font-size: var(--fs-small); }
.woocommerce-Reviews .description {
  font-size: var(--fs-small);
  line-height: 1.6;
  color: var(--color-text);
}

/* Review Form Card */
.ls-review-form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 28px 32px;
  box-shadow: var(--shadow-soft);
}
.ls-reply-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-heading);
}
#review_form .comment-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 0;
  width: 100%;
}
.ls-form-fields-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
}
.ls-form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
}
@media (min-width: 640px) {
  .ls-form-row {
    grid-template-columns: 1fr 1fr;
  }
}

.ls-form-group {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ls-form-label {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--color-text);
}
.ls-form-label .required {
  color: var(--color-danger);
}
.ls-form-input,
.ls-form-textarea {
  font-family: inherit;
  font-size: var(--fs-small);
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-tile);
  background: var(--color-control-bg);
  color: var(--color-text);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}
.ls-form-input:focus,
.ls-form-textarea:focus {
  outline: none;
  border-color: var(--color-brand-orange);
  background: var(--color-surface);
  box-shadow: 0 0 0 3px var(--color-tint-peach);
}
.ls-form-textarea {
  min-height: 110px;
  resize: vertical;
}

/* Interactive Star Rating Picker */
.ls-rating-picker {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 8px 18px;
  background: var(--color-control-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  width: fit-content;
  flex-wrap: wrap;
}
.ls-rating-picker__stars {
  display: inline-flex;
  gap: 6px;
}
.ls-star-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--color-border);
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
}
.ls-star-btn:hover,
.ls-star-btn.is-hovered,
.ls-star-btn.is-active {
  color: var(--color-star);
  transform: scale(1.18);
  text-shadow: 0 0 8px rgba(217, 119, 6, 0.35);
}
.ls-rating-picker__feedback {
  font-size: var(--fs-small);
  font-weight: 700;
  color: var(--color-warning);
  min-width: 120px;
}

/* Hide WooCommerce native rating links or selects */
p.stars,
.comment-form-rating select {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Submit Button — Tight spacing immediately under form */
#review_form .form-submit {
  margin: 8px 0 0 0;
  padding: 0;
}
#review_form .submit {
  font-family: inherit;
  font-size: var(--fs-base);
  font-weight: 700;
  padding: 14px 36px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-brand-orange);
  color: var(--color-on-accent);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--color-brand-orange) 28%, transparent);
}
#review_form .submit:hover {
  background: var(--color-brand-orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px color-mix(in srgb, var(--color-brand-orange) 38%, transparent);
}
#review_form .submit:active {
  transform: translateY(0);
}

/* Related / upsell grids */
.related.products,
.upsells.products {
  margin-top: clamp(48px, 5vw, 80px);
}
.related.products > h2,
.upsells.products > h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h2);
  margin: 0 0 28px;
}

/* =========================================================================
   Cart
   ========================================================================= */
.woocommerce-cart-form { margin-bottom: 40px; }
table.shop_table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-surface);
}
table.shop_table th {
  text-align: left;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  background: var(--color-tint-blue);
  padding: 14px 18px;
  border-bottom: 1px solid var(--color-border);
}
table.shop_table td {
  padding: 18px;
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
  font-size: var(--fs-small);
}
table.shop_table tr:last-child td { border-bottom: none; }
table.shop_table .product-thumbnail img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: var(--radius-tile);
  background: var(--color-tint-blue);
}
table.shop_table td.product-name a { color: var(--color-text); font-weight: 600; }
table.shop_table td.product-name a:hover { color: var(--color-brand-orange); }
table.shop_table .product-price,
table.shop_table .product-subtotal { font-weight: 600; }
table.shop_table .product-subtotal { color: var(--color-brand-orange); }
a.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--color-tint-grey);
  color: var(--color-text-muted) !important;
  font-size: 18px;
  line-height: 1;
  text-decoration: none;
}
a.remove:hover { background: #DC2626; color: var(--color-on-accent) !important; }

td.actions {
  padding: 18px;
  background: var(--color-tint-blue);
}
td.actions .coupon {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
}
.woocommerce input[type="text"],
.woocommerce input[type="email"],
.woocommerce input[type="tel"],
.woocommerce input[type="password"],
.woocommerce input[type="number"],
.woocommerce textarea,
.woocommerce select,
.woocommerce .input-text {
  font-family: inherit;
  font-size: var(--fs-small);
  padding: 12px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-tile);
  background: var(--color-surface);
  color: var(--color-text);
  width: 100%;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
.woocommerce input:focus,
.woocommerce textarea:focus,
.woocommerce select:focus {
  outline: none;
  border-color: var(--color-brand-orange);
  box-shadow: 0 0 0 3px rgba(247, 96, 17, 0.15);
}
td.actions .coupon .input-text { width: auto; min-width: 200px; }

/* Cart quantity stepper shouldn't stretch across its column */
table.shop_table td.product-quantity .quantity { display: inline-flex; align-items: center; }
table.shop_table td.product-quantity .quantity input.qty,
.quantity input.qty {
  width: 76px;
  max-width: 76px;
  text-align: center;
  padding: 10px 8px;
}
table.shop_table td.product-quantity .quantity label { display: none; }

/* WooCommerce buttons — mapped onto the theme's pill button language */
.woocommerce .button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce a.button,
.wc-block-components-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-text);
  color: var(--color-on-accent);
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition-base), transform var(--transition-base), color var(--transition-base);
}
.woocommerce .button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button:hover { background: #1a1a1a; color: var(--color-on-accent); transform: translateY(-1px); }

.woocommerce .button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt,
.woocommerce a.button.alt,
.woocommerce .checkout-button,
#place_order {
  background: var(--color-brand-orange);
  color: var(--color-on-accent);
}
.woocommerce .button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce .checkout-button:hover,
#place_order:hover { background: var(--color-brand-orange-hover); }

.woocommerce .button:disabled,
.woocommerce button.button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

/* Cart totals / collaterals */
.cart-collaterals { display: flex; justify-content: flex-end; }
.cart_totals {
  width: 100%;
  max-width: 440px;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-tint-blue);
}
.cart_totals h2 {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  margin: 0 0 16px;
}
.cart_totals table.shop_table { border: none; background: transparent; }
.cart_totals table.shop_table th,
.cart_totals table.shop_table td {
  background: transparent;
  padding: 12px 0;
  text-transform: none;
  letter-spacing: 0;
  font-size: var(--fs-small);
  color: var(--color-text);
}
.cart_totals tr.order-total th,
.cart_totals tr.order-total td {
  border-top: 1px solid var(--color-border);
  border-bottom: none;
  font-size: var(--fs-body);
  font-weight: 800;
}
.cart_totals tr.order-total td { color: var(--color-brand-orange); }
.wc-proceed-to-checkout { margin-top: 18px; }
.wc-proceed-to-checkout .checkout-button { width: 100%; }

.cart-empty,
.woocommerce-info.cart-empty {
  text-align: center;
  font-size: var(--fs-h3);
  font-family: var(--font-heading);
}
.return-to-shop { text-align: center; margin-top: 20px; }

/* =========================================================================
   Checkout
   ========================================================================= */
.woocommerce-checkout .checkout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(28px, 4vw, 56px);
  row-gap: 18px;
  align-items: start;
}
/* WooCommerce emits customer_details, the order heading and the order
   review as three siblings — pin them so the summary stays in column 2. */
.woocommerce-checkout #customer_details {
  min-width: 0;
  grid-column: 1;
  grid-row: 1 / span 2;
}
.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; margin-bottom: 0; }
.woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; }
.woocommerce-checkout .woocommerce-form-coupon-toggle,
.woocommerce-checkout .checkout_coupon { grid-column: 1 / -1; }
.woocommerce-checkout h3 {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  margin: 0 0 18px;
}
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-row { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.form-row-wide, .form-row.notes { grid-column: 1 / -1; }
.form-row label {
  font-size: var(--fs-small);
  font-weight: 600;
}
.form-row .required { color: var(--color-brand-orange); text-decoration: none; }
.woocommerce-input-wrapper { display: block; }
.select2-container .select2-selection--single {
  height: 46px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-tile);
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 44px;
  padding-left: 16px;
  color: var(--color-text);
  font-size: var(--fs-small);
}
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 44px; }

#order_review_heading {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  margin: 0 0 18px;
}
#order_review {
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-tint-blue);
  position: sticky;
  top: 24px;
}
#order_review table.shop_table { border: none; background: transparent; }
#order_review table.shop_table th,
#order_review table.shop_table td { background: transparent; padding: 12px 0; }
#order_review tr.order-total th,
#order_review tr.order-total td { font-size: var(--fs-body); font-weight: 800; }
#order_review tr.order-total td { color: var(--color-brand-orange); }

#payment { margin-top: 18px; }
#payment ul.payment_methods {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 10px;
}
#payment ul.payment_methods li {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-tile);
  background: var(--color-surface);
  padding: 14px 16px;
  font-size: var(--fs-small);
}
#payment ul.payment_methods li label { font-weight: 600; cursor: pointer; }
#payment .payment_box {
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-tile);
  background: var(--color-tint-blue);
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}
#payment .payment_box p { margin: 0; }
.woocommerce-terms-and-conditions-wrapper { font-size: var(--fs-xs); margin-bottom: 14px; }
#place_order { width: 100%; min-height: 52px; font-size: var(--fs-body); }

/* =========================================================================
   CART (WooCommerce Cart block — the cart page on live uses the block)
   Items in a white card, sticky summary card with a big total and a brand
   "Proceed to Checkout" button. Block class names are WooCommerce's own.
   Every selector is scoped to body.woocommerce-cart so it outranks the block's
   own CSS whatever order the stylesheets load in (on live, WooCommerce's block
   CSS loads after the theme; equal-specificity rules would lose there).
   ========================================================================= */
body.woocommerce-cart .wp-block-woocommerce-cart{ margin-bottom: var(--section-padding-y); }
body.woocommerce-cart .wc-block-cart.wc-block-components-sidebar-layout{ align-items: flex-start; gap: 0; }

/* Items card */
body.woocommerce-cart .wc-block-cart .wc-block-cart__main{
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 4px clamp(16px, 2.4vw, 28px);
}
body.woocommerce-cart .wc-block-cart table.wc-block-cart-items{ margin: 0; border: none; background: transparent; }
body.woocommerce-cart .wc-block-cart .wc-block-cart-items__header th{
  padding: 16px 0 12px;
  border-bottom: 1px solid var(--color-border);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
/* Dividers go on the row: the block lays rows out as a grid, so cells differ
   in height and per-cell borders would not line up. */
body.woocommerce-cart .wc-block-cart .wc-block-cart-items__row{ border-bottom: 1px solid var(--color-border); }
body.woocommerce-cart .wc-block-cart .wc-block-cart-items__row:last-child{ border-bottom: none; }
body.woocommerce-cart .wc-block-cart .wc-block-cart-items__row td{
  padding-block: 20px;
  border-top: none;
  border-bottom: none;
  vertical-align: top;
}
body.woocommerce-cart .wc-block-cart .wc-block-cart-item__image img{
  width: 72px;
  max-width: 72px;
  height: 72px;
  object-fit: contain;
  padding: 6px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-tile);
  background: var(--color-bg);
}
body.woocommerce-cart .wc-block-cart .wc-block-components-product-name{
  display: inline-block;
  margin-bottom: 4px;
  color: var(--color-text);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}
body.woocommerce-cart .wc-block-cart .wc-block-components-product-name:hover{ color: var(--color-brand-orange); }
body.woocommerce-cart .wc-block-cart .wc-block-cart-item__prices{ font-size: var(--fs-small); margin-bottom: 4px; }
body.woocommerce-cart .wc-block-cart .wc-block-components-product-price__regular{ color: var(--color-text-muted); margin-right: 6px; }
body.woocommerce-cart .wc-block-cart .wc-block-cart-item__prices .wc-block-components-product-price__value{ font-weight: 600; text-decoration: none; }
body.woocommerce-cart .wc-block-cart .wc-block-components-product-metadata{ font-size: var(--fs-xs); color: var(--color-text-muted); margin-bottom: 12px; }
body.woocommerce-cart .wc-block-cart .wc-block-components-product-details{ margin: 0; padding: 0; list-style: none; }

/* Quantity: the same pill stepper as the product page */
body.woocommerce-cart .wc-block-cart .wc-block-cart-item__quantity{ display: flex; align-items: center; gap: 14px; }
body.woocommerce-cart .wc-block-cart .wc-block-components-quantity-selector{
  width: auto;
  height: 38px;
  margin: 0;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  overflow: hidden;
}
body.woocommerce-cart .wc-block-cart .wc-block-components-quantity-selector::after{ display: none; }
body.woocommerce-cart .wc-block-cart .wc-block-components-quantity-selector__button{
  min-width: 34px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-size: 1.1rem;
  opacity: 1;
  cursor: pointer;
  transition: background-color var(--transition-base), color var(--transition-base);
}
body.woocommerce-cart .wc-block-cart .wc-block-components-quantity-selector__button:hover:not(:disabled){
  background: var(--color-tint-peach);
  color: var(--color-brand-orange);
}
body.woocommerce-cart .wc-block-cart .wc-block-components-quantity-selector__button:disabled{ opacity: 0.35; cursor: default; }
body.woocommerce-cart .wc-block-cart .wc-block-components-quantity-selector__input{
  width: 38px;
  min-width: 38px;
  border: none;
  background: transparent;
  color: var(--color-text);
  font-weight: 700;
  text-align: center;
  box-shadow: none;
}
body.woocommerce-cart .wc-block-cart .wc-block-cart-item__remove-link{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--color-text-muted);
  transition: background-color var(--transition-base), color var(--transition-base);
}
body.woocommerce-cart .wc-block-cart .wc-block-cart-item__remove-link:hover{ background: color-mix(in srgb, #DC2626 10%, transparent); color: #DC2626; }
body.woocommerce-cart .wc-block-cart .wc-block-cart-item__remove-link svg{ width: 20px; height: 20px; fill: currentColor; }

/* Line total + saving badge */
body.woocommerce-cart .wc-block-cart .wc-block-cart-item__total{ font-size: 1rem; font-weight: 700; }
body.woocommerce-cart .wc-block-cart .wc-block-components-sale-badge{
  margin-top: 6px;
  padding: 3px 8px;
  border: none;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-brand-green) 14%, var(--color-surface));
  color: color-mix(in srgb, var(--color-brand-green) 75%, #000);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: none;
}

/* Summary card: the whole sidebar is one card (heading, coupon, total,
   express payments, checkout button); the column gap lives on the items card. */
body.woocommerce-cart .wc-block-cart.is-large .wc-block-cart__main{ width: calc(65% - 24px); margin-right: 24px; }
body.woocommerce-cart .wc-block-cart .wc-block-cart__sidebar{
  position: sticky;
  top: 96px;
  padding: 20px 22px 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}
body.admin-bar.woocommerce-cart .wc-block-cart .wc-block-cart__sidebar{ top: 128px; }
body.woocommerce-cart .wc-block-cart .wc-block-cart__totals-title{
  margin: 0 0 8px;
  padding: 0;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
  text-align: left;
  color: var(--color-text);
}
body.woocommerce-cart .wc-block-cart .wc-block-components-totals-wrapper{ padding: 14px 0; border-top: 1px solid var(--color-border); }
body.woocommerce-cart .wc-block-cart .wc-block-components-totals-wrapper:empty{ display: none; }
body.woocommerce-cart .wc-block-cart .wc-block-components-totals-item{ font-size: var(--fs-small); }
body.woocommerce-cart .wc-block-cart .wc-block-components-panel__button{ font-size: var(--fs-small); font-weight: 600; color: var(--color-text); }
body.woocommerce-cart .wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label{ font-size: var(--fs-body); font-weight: 700; }
body.woocommerce-cart .wc-block-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value{
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
}
body.woocommerce-cart .wc-block-cart .wc-block-cart__payment-options{ margin: 0; padding: 0; }
body.woocommerce-cart .wc-block-cart .wc-block-cart__submit{ margin: 6px 0 0; padding: 0; }
body.woocommerce-cart .wc-block-cart .wc-block-cart__submit-container{ padding: 0; }
body.woocommerce-cart .wc-block-cart .wc-block-cart__submit-button{
  width: 100%;
  min-height: 54px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-brand-orange);
  color: var(--color-on-accent);
  font-size: var(--fs-body);
  font-weight: 700;
  text-decoration: none;
  box-shadow: none;
  transition: background-color var(--transition-base), transform var(--transition-base);
}
body.woocommerce-cart .wc-block-cart .wc-block-cart__submit-button:hover{
  background: var(--color-brand-orange-hover);
  color: var(--color-on-accent);
  transform: translateY(-1px);
}

/* Narrow layout (the block adds .is-small / .is-medium from its own width) */
body.woocommerce-cart .wc-block-cart.is-medium .wc-block-cart__sidebar,
body.woocommerce-cart .wc-block-cart.is-small .wc-block-cart__sidebar,
body.woocommerce-cart .wc-block-cart.is-mobile .wc-block-cart__sidebar{ position: static; margin-top: 16px; }
/* Tablets / phones: WooCommerce's own row grid (80px image + fixed product
   column) overflows our padded card, so use image | details (name, price,
   stepper) | line total, fitted to the width. Selectors match the block's own
   (.is-mobile table.wc-block-cart-items …) plus .wc-block-cart, so they win. */
body.woocommerce-cart .wc-block-cart.is-medium table.wc-block-cart-items .wc-block-cart-items__row,
body.woocommerce-cart .wc-block-cart.is-small table.wc-block-cart-items .wc-block-cart-items__row,
body.woocommerce-cart .wc-block-cart.is-mobile table.wc-block-cart-items .wc-block-cart-items__row{
  grid-template-columns: 60px minmax(0, 1fr) auto;
  column-gap: 12px;
  padding: 16px 0;
}
body.woocommerce-cart .wc-block-cart.is-medium table.wc-block-cart-items .wc-block-cart-items__row td,
body.woocommerce-cart .wc-block-cart.is-small table.wc-block-cart-items .wc-block-cart-items__row td,
body.woocommerce-cart .wc-block-cart.is-mobile table.wc-block-cart-items .wc-block-cart-items__row td{ padding: 0; }
body.woocommerce-cart .wc-block-cart.is-medium table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image,
body.woocommerce-cart .wc-block-cart.is-small table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image,
body.woocommerce-cart .wc-block-cart.is-mobile table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image{ grid-column: 1; grid-row: 1 / span 2; }
body.woocommerce-cart .wc-block-cart.is-medium table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product,
body.woocommerce-cart .wc-block-cart.is-small table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product,
body.woocommerce-cart .wc-block-cart.is-mobile table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product{ grid-column: 2; grid-row: 1; }
body.woocommerce-cart .wc-block-cart.is-medium table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total,
body.woocommerce-cart .wc-block-cart.is-small table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total,
body.woocommerce-cart .wc-block-cart.is-mobile table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total{ grid-column: 3; grid-row: 1; text-align: right; }
body.woocommerce-cart .wc-block-cart.is-medium table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img,
body.woocommerce-cart .wc-block-cart.is-small table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img,
body.woocommerce-cart .wc-block-cart.is-mobile table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__image img{ width: 60px; max-width: 60px; height: 60px; }
body.woocommerce-cart .wc-block-cart.is-medium table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-sale-badge,
body.woocommerce-cart .wc-block-cart.is-small table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-sale-badge,
body.woocommerce-cart .wc-block-cart.is-mobile table.wc-block-cart-items .wc-block-cart-items__row .wc-block-components-sale-badge{ white-space: nowrap; }

/* Empty cart (the Cart block's "empty" inner blocks): centred message with a
   brand-tinted cart icon, then "New in store" as theme-style product cards. */
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block{ text-align: center; padding-top: 12px; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block > h2{ text-align: center; }
body.woocommerce-cart .wc-block-cart__empty-cart__title.with-empty-cart-icon{
  margin: 0 0 8px;
  font-family: var(--font-heading);
  font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.75rem);
}
body.woocommerce-cart .wc-block-cart__empty-cart__title.with-empty-cart-icon::before{
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  padding: 22px;
  border-radius: 50%;
  background-color: var(--color-accent-blue);
  box-shadow: 0 0 0 22px var(--color-accent-blue-dim);
  /* Our cart icon (same set as the header) instead of WooCommerce's sad face. */
  -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjEuOCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48Y2lyY2xlIGN4PSI5IiBjeT0iMjEiIHI9IjEuMiIvPjxjaXJjbGUgY3g9IjE5IiBjeT0iMjEiIHI9IjEuMiIvPjxwYXRoIGQ9Ik0xIDFoNGwyLjYgMTMuNGEyIDIgMCAwIDAgMiAxLjZoOS43YTIgMiAwIDAgMCAyLTEuNkwyMyA2SDYiLz48L3N2Zz4=");
  mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjEuOCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIj48Y2lyY2xlIGN4PSI5IiBjeT0iMjEiIHI9IjEuMiIvPjxjaXJjbGUgY3g9IjE5IiBjeT0iMjEiIHI9IjEuMiIvPjxwYXRoIGQ9Ik0xIDFoNGwyLjYgMTMuNGEyIDIgMCAwIDAgMiAxLjZoOS43YTIgMiAwIDAgMCAyLTEuNkwyMyA2SDYiLz48L3N2Zz4=");
  -webkit-mask-size: 44px 44px;
  mask-size: 44px 44px;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block hr.is-style-dots{ display: none; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block > h2:not(.wc-block-cart__empty-cart__title){
  margin: 48px 0 20px;
  font-size: 1.25rem;
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid .wc-block-grid__products{
  /* Fits any number of products (live may have 1–2, local 4): cards keep a
     comfortable width and the row is centred instead of crowding the left. */
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 260px));
  justify-content: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid .wc-block-grid__product{
  position: relative;
  display: flex;
  flex-direction: column;
  flex: none;
  width: auto;
  max-width: none;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  text-align: left;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product:hover{ box-shadow: var(--shadow-card); transform: translateY(-2px); }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-link{ color: var(--color-text); text-decoration: none; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image{
  margin-bottom: 12px;
  border-radius: var(--radius-tile);
  background: var(--color-bg);
  overflow: hidden;
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-image img{ width: 100%; aspect-ratio: 1; object-fit: contain; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-title{ font-size: var(--fs-small); font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price{ margin: 0 0 12px; font-weight: 700; color: var(--color-brand-orange); font-size: var(--fs-small); }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-price del{ color: var(--color-text-muted); font-weight: 400; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-rating{ display: none; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart{ margin-top: auto; }
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 8px 14px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-tint-peach);
  color: var(--color-brand-orange);
  font-size: var(--fs-small);
  font-weight: 700;
  text-decoration: none;
  transition: background-color var(--transition-base), color var(--transition-base);
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid__product-add-to-cart .wp-block-button__link:hover{
  background: var(--color-brand-orange);
  color: var(--color-on-accent);
}
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid .wc-block-grid__product-onsale{
  position: absolute;
  top: 22px;
  left: 22px;
  right: auto;
  width: auto;
  z-index: 1;
  margin: 0;
  padding: 3px 10px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-brand-green);
  color: var(--color-on-accent);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: none;
}
@media (max-width: 900px) {
  body.woocommerce-cart .wp-block-woocommerce-empty-cart-block .wc-block-grid .wc-block-grid__products{ grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
}

/* =========================================================================
   CHECKOUT (WooCommerce Checkout block — what the live checkout uses)
   Numbered step cards (contact → billing → payment), roomy fields with a
   focus ring, payment methods as selectable cards, a full-width brand "Place
   order" button with a lock, and a sticky order-summary card. Scoped to
   body.woocommerce-checkout so it outranks the block's own CSS whatever order
   the stylesheets load in. (Stripe's card field reads these input styles.)
   ========================================================================= */
body.woocommerce-checkout .ls-checkout-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 20px; }
body.woocommerce-checkout .ls-checkout-head h1 { margin: 0; }
body.woocommerce-checkout .ls-checkout-head__secure {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, #16A34A 12%, var(--color-surface));
  color: color-mix(in srgb, #16A34A 85%, #000);
  font-size: var(--fs-xs);
  font-weight: 700;
}
body.woocommerce-checkout .wp-block-woocommerce-checkout { margin-bottom: var(--section-padding-y); padding-top: 0; }
body.woocommerce-checkout .wc-block-checkout.wc-block-components-sidebar-layout { align-items: flex-start; }
body.woocommerce-checkout .wc-block-checkout.is-large .wc-block-checkout__main { width: calc(65% - 24px); margin-right: 24px; padding-right: 0; }

/* Steps as numbered cards */
body.woocommerce-checkout .wc-block-checkout__form { counter-reset: ls-step; display: flex; flex-direction: column; gap: 16px; }
/* Empty placeholder blocks (shipping method / pickup — not used for digital
   products) would each add a gap between the step cards. */
body.woocommerce-checkout .wc-block-checkout__form > div:empty { display: none; }
body.woocommerce-checkout .wc-block-checkout__form > .wc-block-components-checkout-step,
body.woocommerce-checkout .wc-block-checkout__form > fieldset.wc-block-components-checkout-step {
  margin: 0;
  padding: clamp(18px, 2.4vw, 26px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}
body.woocommerce-checkout .wc-block-components-checkout-step::after { display: none; }
body.woocommerce-checkout .wc-block-components-checkout-step__heading-container { margin: 0 0 14px; }
body.woocommerce-checkout .wc-block-components-checkout-step__heading { margin: 0; align-items: center; }
body.woocommerce-checkout .wc-block-checkout__form > fieldset.wc-block-components-checkout-step:not(.wc-block-checkout__order-notes) .wc-block-components-checkout-step__title { counter-increment: ls-step; }
body.woocommerce-checkout .wc-block-components-checkout-step__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
}
body.woocommerce-checkout .wc-block-checkout__form > fieldset.wc-block-components-checkout-step:not(.wc-block-checkout__order-notes) .wc-block-components-checkout-step__title::before {
  content: counter(ls-step);
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-orange);
  color: var(--color-on-accent);
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
}
body.woocommerce-checkout .wc-block-components-checkout-step__heading-content { font-size: var(--fs-small); }
body.woocommerce-checkout .wc-block-components-checkout-step__heading-content a { color: var(--color-accent-blue); font-weight: 600; }
body.woocommerce-checkout .wc-block-components-checkout-step__description { margin: -6px 0 12px; font-size: var(--fs-small); color: var(--color-text-muted); }
body.woocommerce-checkout .wc-block-components-checkout-step__container,
body.woocommerce-checkout .wc-block-components-checkout-step__content { padding: 0; margin: 0; }
body.woocommerce-checkout .wc-block-checkout__guest-checkout-notice { margin: 8px 0 0; font-size: var(--fs-xs); color: var(--color-text-muted); }

/* Fields (text, email, tel, select) — floating labels kept */
body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-text-input input[type="email"],
body.woocommerce-checkout .wc-block-components-text-input input[type="tel"],
body.woocommerce-checkout .wc-block-components-text-input input[type="text"],
body.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__select,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
body.woocommerce-checkout .wc-block-components-textarea {
  min-height: 52px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-tile);
  background: var(--color-surface);
  color: var(--color-text);
  box-shadow: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-blocks-components-select .wc-blocks-components-select__select:focus,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input:focus,
body.woocommerce-checkout .wc-block-components-textarea:focus {
  outline: none;
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 4px var(--color-accent-blue-dim);
}
body.woocommerce-checkout .wc-block-components-text-input label,
body.woocommerce-checkout .wc-blocks-components-select__label { color: var(--color-text-muted); }
body.woocommerce-checkout .wc-block-components-text-input.has-error input,
body.woocommerce-checkout .wc-blocks-components-select.has-error .wc-blocks-components-select__select { border-color: #DC2626; }
body.woocommerce-checkout .wc-block-components-validation-error { font-size: var(--fs-xs); color: #DC2626; }
body.woocommerce-checkout .wc-block-components-address-form__address_2-toggle { font-size: var(--fs-small); font-weight: 600; color: var(--color-accent-blue); }

/* Saved address card (signed-in customers) */
body.woocommerce-checkout .wc-block-components-address-card { border: 1.5px solid var(--color-border); border-radius: var(--radius-tile); padding: 14px 16px; background: var(--color-bg); }
body.woocommerce-checkout .wc-block-components-address-card__edit { color: var(--color-accent-blue); font-weight: 600; }

/* Checkboxes (order note, terms, create account…) */
body.woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"] {
  border: 1.5px solid var(--color-border);
  border-radius: 5px;
  background: var(--color-surface);
}
body.woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__input[type="checkbox"]:checked { background: var(--color-brand-orange); border-color: var(--color-brand-orange); }
body.woocommerce-checkout .wc-block-components-checkbox .wc-block-components-checkbox__mark { fill: var(--color-white); }
body.woocommerce-checkout .wc-block-components-checkbox__label { font-size: var(--fs-small); }

/* Payment methods as selectable cards */
body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control { display: flex; flex-direction: column; gap: 10px; border: none; }
body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-tile);
  background: var(--color-surface);
  box-shadow: none;
  transition: border-color var(--transition-base), background-color var(--transition-base);
}
body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option::after { display: none; }
body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-option:has(.wc-block-components-radio-control__option-checked) {
  border-color: var(--color-accent-blue);
  background: color-mix(in srgb, var(--color-accent-blue) 4%, var(--color-surface));
  box-shadow: 0 0 0 3px var(--color-accent-blue-dim);
}
body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__option { margin: 0; padding: 14px 16px 14px 48px; }
body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control__label { font-weight: 700; }
body.woocommerce-checkout .wc-block-components-radio-control__input { border: 1.5px solid var(--color-border); }
body.woocommerce-checkout .wc-block-components-radio-control__input:checked { border-color: var(--color-accent-blue); }
body.woocommerce-checkout .wc-block-components-radio-control__input:checked::before { background: var(--color-accent-blue); }
body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content { padding: 0 16px 16px 48px; font-size: var(--fs-small); color: var(--color-text-muted); }
/* Phones: the description uses the card's full width instead of a narrow column under the title. */
@media (max-width: 560px) {
  body.woocommerce-checkout .wc-block-checkout__payment-method .wc-block-components-radio-control-accordion-content { padding-left: 16px; }
}

/* Terms + Place order */
body.woocommerce-checkout .wc-block-checkout__terms { margin: 0; padding: 0 4px; font-size: var(--fs-xs); color: var(--color-text-muted); }
body.woocommerce-checkout .wc-block-checkout__terms.wc-block-checkout__terms--with-separator { border-top: none; padding-top: 0; }
body.woocommerce-checkout .wc-block-checkout__actions { margin: 0; padding: 0; }
body.woocommerce-checkout .wc-block-checkout__actions_row { gap: 12px; }
body.woocommerce-checkout .wc-block-checkout__actions .wc-block-components-checkout-return-to-cart-button { font-size: var(--fs-small); font-weight: 600; color: var(--color-text-muted); }
body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  min-height: 58px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-brand-orange);
  color: var(--color-on-accent);
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--color-brand-orange) 25%, transparent);
  transition: background-color var(--transition-base), transform var(--transition-base);
}
body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover:not(:disabled) { background: var(--color-brand-orange-hover); color: var(--color-on-accent); transform: translateY(-1px); }
body.woocommerce-checkout .wc-block-components-checkout-place-order-button .wc-block-components-button__text { display: inline-flex; align-items: center; gap: 8px; }
body.woocommerce-checkout .wc-block-components-checkout-place-order-button .wc-block-components-button__text::before {
  content: "";
  width: 18px;
  height: 18px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHJlY3QgeD0iNCIgeT0iMTAiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxMCIgcng9IjIiLz48cGF0aCBkPSJNOCAxMFY3YTQgNCAwIDAgMSA4IDB2MyIvPjwvc3ZnPg==") center / 18px 18px no-repeat;
  mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHJlY3QgeD0iNCIgeT0iMTAiIHdpZHRoPSIxNiIgaGVpZ2h0PSIxMCIgcng9IjIiLz48cGF0aCBkPSJNOCAxMFY3YTQgNCAwIDAgMSA4IDB2MyIvPjwvc3ZnPg==") center / 18px 18px no-repeat;
}

/* Order summary card */
body.woocommerce-checkout .wc-block-checkout__sidebar {
  position: sticky;
  top: 96px;
  padding: 18px 20px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}
body.admin-bar.woocommerce-checkout .wc-block-checkout__sidebar { top: 128px; }
body.woocommerce-checkout .wc-block-checkout__sidebar .wp-block-woocommerce-checkout-order-summary-block { border: none; border-radius: 0; }
body.woocommerce-checkout .wc-block-components-checkout-order-summary__title { padding: 0 0 10px; border: none; }
body.woocommerce-checkout .wc-block-components-checkout-order-summary__title-text { margin: 0; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 700; color: var(--color-text); }
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-wrapper { padding: 14px 0; border-top: 1px solid var(--color-border); }
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-wrapper:empty { display: none; }
body.woocommerce-checkout .wc-block-components-order-summary-item { padding: 8px 0; }
body.woocommerce-checkout .wc-block-components-order-summary-item__image > img {
  width: 52px;
  max-width: 52px;
  height: 52px;
  object-fit: contain;
  padding: 4px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-tile);
  background: var(--color-bg);
}
body.woocommerce-checkout .wc-block-components-order-summary-item__quantity {
  min-width: 22px;
  height: 22px;
  border: 2px solid var(--color-white);
  border-radius: var(--radius-pill);
  background: var(--color-navy);
  color: var(--color-on-accent);
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: none;
}
body.woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-name { font-weight: 700; font-size: var(--fs-small); color: var(--color-text); }
body.woocommerce-checkout .wc-block-components-order-summary-item__description .wc-block-components-product-metadata { font-size: var(--fs-xs); color: var(--color-text-muted); }
body.woocommerce-checkout .wc-block-components-order-summary-item__total-price { font-weight: 700; font-size: var(--fs-small); }
body.woocommerce-checkout .wc-block-components-order-summary-item .wc-block-components-sale-badge {
  border: none;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--color-brand-green) 14%, var(--color-surface));
  color: color-mix(in srgb, var(--color-brand-green) 75%, #000);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: none;
}
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-totals-item { font-size: var(--fs-small); }
body.woocommerce-checkout .wc-block-checkout__sidebar .wc-block-components-panel__button { font-size: var(--fs-small); font-weight: 600; color: var(--color-text); }
/* Grand total — in the sidebar and in the summary the block repeats above
   "Place order" on phones. */
body.woocommerce-checkout .wc-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__label { font-size: var(--fs-body); font-weight: 700; }
body.woocommerce-checkout .wc-block-checkout .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 800; }

/* ---- Multi-step checkout (initCheckoutSteps() in main.js) -------------- */
body.woocommerce-checkout .ls-checkout-steps[hidden] { display: none; }
/* Full width: first step at the left edge, last at the right, the connector
   lines stretch between them (each step = dot + label, then its line). */
body.woocommerce-checkout .ls-checkout-steps {
  display: flex;
  width: 100%;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
body.woocommerce-checkout .ls-checkout-steps__step {
  flex: 1 1 0;
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  grid-template-rows: auto auto;
  justify-items: center;
  align-items: center;
  column-gap: 12px;
  row-gap: 6px;
  margin: 0;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-text-muted);
}
body.woocommerce-checkout .ls-checkout-steps__step:last-child { flex: 0 0 auto; grid-template-columns: max-content; }
body.woocommerce-checkout .ls-checkout-steps__dot { grid-column: 1; grid-row: 1; }
body.woocommerce-checkout .ls-checkout-steps__label { grid-column: 1; grid-row: 2; white-space: nowrap; }
body.woocommerce-checkout .ls-checkout-steps__step:not(:last-child)::after {
  content: "";
  grid-column: 2;
  grid-row: 1;
  justify-self: stretch;
  height: 2px;
  margin-right: 12px;
  border-radius: 2px;
  background: var(--color-border);
}
body.woocommerce-checkout .ls-checkout-steps__step.is-done:not(:last-child)::after { background: #16A34A; }
body.woocommerce-checkout .ls-checkout-steps__dot {
  position: relative;
  z-index: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-weight: 700;
  transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}
body.woocommerce-checkout .ls-checkout-steps__step.is-current { color: var(--color-text); }
body.woocommerce-checkout .ls-checkout-steps__step.is-current .ls-checkout-steps__dot {
  border-color: var(--color-brand-orange);
  background: var(--color-brand-orange);
  color: var(--color-on-accent);
  box-shadow: 0 0 0 5px var(--color-tint-peach);
}
body.woocommerce-checkout .ls-checkout-steps__step.is-done { color: var(--color-text); }
body.woocommerce-checkout .ls-checkout-steps__step.is-done .ls-checkout-steps__dot { border-color: #16A34A; background: #16A34A; color: transparent; }
body.woocommerce-checkout .ls-checkout-steps__step.is-done .ls-checkout-steps__dot::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 7px;
  margin-top: -2px;
  border-left: 2.5px solid var(--color-white);
  border-bottom: 2.5px solid var(--color-white);
  transform: rotate(-45deg);
}

/* Only the current step's blocks are shown; the summary stays on every step. */
body.woocommerce-checkout.ls-checkout-multistep.ls-step-1 .wc-block-checkout__payment-method,
body.woocommerce-checkout.ls-checkout-multistep.ls-step-1 .wc-block-checkout__order-notes,
body.woocommerce-checkout.ls-checkout-multistep.ls-step-1 .wc-block-checkout__terms,
body.woocommerce-checkout.ls-checkout-multistep.ls-step-1 .wc-block-checkout__actions,
body.woocommerce-checkout.ls-checkout-multistep.ls-step-1 .ls-checkout-recap,
body.woocommerce-checkout.ls-checkout-multistep.ls-step-2 .wc-block-checkout__contact-fields,
body.woocommerce-checkout.ls-checkout-multistep.ls-step-2 .wc-block-checkout__billing-fields,
body.woocommerce-checkout.ls-checkout-multistep.ls-step-2 .wc-block-checkout__shipping-fields,
body.woocommerce-checkout.ls-checkout-multistep.ls-step-2 .wp-block-woocommerce-checkout-express-payment-block,
body.woocommerce-checkout.ls-checkout-multistep.ls-step-2 .wc-block-components-express-payment,
body.woocommerce-checkout.ls-checkout-multistep.ls-step-2 .wc-block-components-express-payment-continue-rule,
body.woocommerce-checkout.ls-checkout-multistep.ls-step-2 .ls-checkout-continue { display: none; }
body.woocommerce-checkout.ls-checkout-multistep .ls-checkout-continue,
body.woocommerce-checkout.ls-checkout-multistep .ls-checkout-recap { display: flex; }
body.woocommerce-checkout .ls-checkout-continue,
body.woocommerce-checkout .ls-checkout-recap { display: none; }
/* The timeline carries the step numbers now. */
body.woocommerce-checkout.ls-checkout-multistep .wc-block-checkout__form > fieldset.wc-block-components-checkout-step .wc-block-components-checkout-step__title::before { display: none; }

body.woocommerce-checkout .ls-checkout-continue { margin-top: 16px; }
body.woocommerce-checkout .ls-checkout-continue__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 56px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-brand-orange);
  color: var(--color-on-accent);
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--color-brand-orange) 25%, transparent);
  transition: background-color var(--transition-base), transform var(--transition-base);
}
body.woocommerce-checkout .ls-checkout-continue__btn:hover { background: var(--color-brand-orange-hover); transform: translateY(-1px); }

body.woocommerce-checkout .ls-checkout-recap {
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}
body.woocommerce-checkout .ls-checkout-recap__rows { min-width: 0; display: grid; gap: 6px; }
body.woocommerce-checkout .ls-checkout-recap__row { display: grid; grid-template-columns: 70px minmax(0, 1fr); gap: 10px; font-size: var(--fs-small); }
body.woocommerce-checkout .ls-checkout-recap__row span { color: var(--color-text-muted); }
body.woocommerce-checkout .ls-checkout-recap__row strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.woocommerce-checkout .ls-checkout-recap__edit {
  flex: none;
  padding: 7px 16px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: 700;
  cursor: pointer;
}
body.woocommerce-checkout .ls-checkout-recap__edit:hover { border-color: var(--color-brand-orange); color: var(--color-brand-orange); }
@media (max-width: 560px) {
  body.woocommerce-checkout .ls-checkout-steps__step { font-size: var(--fs-xs); column-gap: 8px; }
  body.woocommerce-checkout .ls-checkout-steps__step:not(:last-child)::after { margin-right: 8px; }
}

/* Narrow layout: summary stacks on top as the block's collapsible bar */
body.woocommerce-checkout .wc-block-checkout.is-medium .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-checkout.is-small .wc-block-checkout__sidebar,
body.woocommerce-checkout .wc-block-checkout.is-mobile .wc-block-checkout__sidebar { position: static; margin-bottom: 16px; padding: 14px 16px; }
body.woocommerce-checkout .wc-block-checkout.is-mobile .wc-block-checkout__form > fieldset.wc-block-components-checkout-step { padding: 16px; }
body.woocommerce-checkout .wc-block-components-checkout-order-summary__title-price { font-weight: 800; }

/* =========================================================================
   ORDER CONFIRMATION (checkout/order-received) — woocommerce/checkout/thankyou.php
   Main column (greeting, status + progress, keys, details, actions) beside a
   sticky order summary; on phones the summary becomes a collapsible bar on top.
   ========================================================================= */
.ls-thankyou {
  /* Status colours carry meaning (not brand), so they are fixed hues; every
     tint below is mixed from these three. */
  --ty-success: #16A34A;
  --ty-warning: #D97706;
  --ty-error: #DC2626;
  max-width: 1120px;
  margin-inline: auto;
}
/* This page sits inside .page-content, whose prose styles add big margins to
   headings and lists; reset them for the confirmation components. */
.ls-thankyou h1,
.ls-thankyou h2,
.ls-thankyou p,
.ls-thankyou ul,
.ls-thankyou ol,
.ls-thankyou dl { margin-top: 0; }
.ls-thankyou ul,
.ls-thankyou ol { padding-left: 0; list-style: none; }
.ls-thankyou li { margin: 0; }
.ls-ty-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  grid-template-areas: "main summary";
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}
.ls-ty-main { grid-area: main; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ls-ty-summary-col { grid-area: summary; position: sticky; top: 96px; }
.admin-bar .ls-ty-summary-col { top: 128px; }

.ls-ty-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: clamp(20px, 2.6vw, 28px);
}
.ls-thankyou .ls-ty-card__title { font-size: 1.15rem; margin: 0 0 8px; }
.ls-ty-muted { color: var(--color-text-muted); }

/* --- Greeting --- */
.ls-ty-hero { display: flex; align-items: center; gap: 16px; }
.ls-ty-hero__check {
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ty-success);
  background: color-mix(in srgb, var(--ty-success) 12%, var(--color-surface));
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--ty-success) 6%, transparent);
}
.ls-ty-hero__check .icon { width: 26px; height: 26px; stroke-width: 2.6; }
.ls-ty-hero__check--warning { color: var(--ty-warning); background: color-mix(in srgb, var(--ty-warning) 12%, var(--color-surface)); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ty-warning) 6%, transparent); }
.ls-ty-hero__check--error { color: var(--ty-error); background: color-mix(in srgb, var(--ty-error) 12%, var(--color-surface)); box-shadow: 0 0 0 6px color-mix(in srgb, var(--ty-error) 6%, transparent); }
.ls-ty-hero__check--info { color: var(--color-accent-blue); background: var(--color-accent-blue-dim); box-shadow: 0 0 0 6px color-mix(in srgb, var(--color-accent-blue) 6%, transparent); }
.ls-ty-hero__check--neutral { color: var(--color-text-muted); background: var(--color-tint-grey); box-shadow: none; }
.ls-thankyou .ls-ty-hero__eyebrow { margin: 0 0 2px; font-size: var(--fs-small); font-weight: 600; color: var(--color-text-muted); }
.ls-thankyou .ls-ty-hero__title { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.1rem); line-height: 1.15; }

/* --- Status card + progress --- */
.ls-ty-status { border-left: 4px solid var(--ty-success); }
.ls-ty-status--info { border-left-color: var(--color-accent-blue); }
.ls-ty-status--warning { border-left-color: var(--ty-warning); }
.ls-ty-status--error { border-left-color: var(--ty-error); background: color-mix(in srgb, var(--ty-error) 4%, var(--color-surface)); }
.ls-ty-status--neutral { border-left-color: var(--color-border); }
.ls-ty-status__text { margin: 0; color: var(--color-text-muted); line-height: 1.6; }
.ls-ty-status__text strong { color: var(--color-text); font-weight: 600; }
.ls-ty-status__actions { margin-top: 18px; }
/* "Confirming your payment…" */
.ls-ty-status.is-confirming .ls-ty-card__title { display: flex; align-items: center; gap: 10px; }
.ls-ty-spinner {
  flex: none;
  width: 18px;
  height: 18px;
  border: 2.5px solid var(--color-accent-blue-dim);
  border-top-color: var(--color-accent-blue);
  border-radius: 50%;
  animation: ls-ty-spin 0.8s linear infinite;
}
@keyframes ls-ty-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ls-ty-spinner { animation-duration: 2.4s; } }
.ls-ty-status__fallback { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--color-border); }
.ls-ty-status__fallback[hidden] { display: none; }

/* Also under .ls-thankyou: its `ol { margin: 0 }` reset would otherwise remove the top gap. */
.ls-ty-steps,
.ls-thankyou .ls-ty-steps {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.ls-ty-steps__step {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--color-text-muted);
}
/* Connector line to the next step, drawn from this dot's centre. */
.ls-ty-steps__step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 13px;
  left: calc(50% + 18px);
  right: calc(-50% + 18px);
  height: 2px;
  background: var(--color-border);
}
.ls-ty-steps__step.is-done:not(:last-child)::after { background: var(--ty-success); }
.ls-ty-steps__dot {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-on-accent);
}
.ls-ty-steps__dot .icon { width: 14px; height: 14px; stroke-width: 3; }
.ls-ty-steps__step.is-done { color: var(--color-text); }
.ls-ty-steps__step.is-done .ls-ty-steps__dot { background: var(--ty-success); border-color: var(--ty-success); }
.ls-ty-steps__step.is-current { color: var(--color-text); }
.ls-ty-steps__step.is-current .ls-ty-steps__dot {
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 4px var(--color-accent-blue-dim);
  animation: ls-ty-pulse 1.8s ease-in-out infinite;
}
@keyframes ls-ty-pulse { 50% { box-shadow: 0 0 0 7px var(--color-accent-blue-dim); } }
@media (prefers-reduced-motion: reduce) { .ls-ty-steps__step.is-current .ls-ty-steps__dot { animation: none; } }

/* --- Order details grid --- */
.ls-ty-info {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 12px 0 0;
}
.ls-ty-info__item--wide { grid-column: 1 / -1; }
.ls-ty-info dt {
  margin-bottom: 4px;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.ls-ty-info dd { margin: 0; font-size: var(--fs-small); line-height: 1.6; overflow-wrap: anywhere; }

/* --- Actions --- */
.ls-ty-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ls-ty-help { margin: 0 0 0 auto; font-size: var(--fs-small); color: var(--color-text-muted); }
.ls-ty-help a { font-weight: 600; }

/* --- Order summary --- */
.ls-ty-summary {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  overflow: hidden;
}
.ls-ty-summary__toggle {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-tint-blue);
  font-weight: 700;
}
.ls-ty-summary__toggle::-webkit-details-marker { display: none; }
.ls-ty-summary__label { display: inline-flex; align-items: center; gap: 8px; }
.ls-ty-summary__total { font-family: var(--font-heading); font-size: 1.1rem; }
/* Desktop: a plain heading — the toggle, chevron and repeated total are
   mobile-only, and the panel can't be collapsed. */
.ls-ty-summary__show,
.ls-ty-summary__hide,
.ls-ty-summary__chevron,
.ls-ty-summary .ls-ty-summary__total { display: none; }
.ls-ty-summary__toggle { pointer-events: none; }
.ls-ty-summary__body { padding: 8px 22px 22px; }

.ls-ty-items { list-style: none; margin: 0; padding: 0; }
.ls-ty-item {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.ls-ty-item__thumb {
  position: relative;
  width: 60px;
  height: 60px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-tile);
  background: var(--color-bg);
}
.ls-ty-item__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; border-radius: var(--radius-tile); }
.ls-ty-item__qty {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--color-navy);
  color: var(--color-on-accent);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
.ls-ty-item__name { display: block; font-size: var(--fs-small); font-weight: 600; line-height: 1.35; }
.ls-ty-item__meta { display: block; margin-top: 3px; font-size: var(--fs-xs); color: var(--color-text-muted); }
.ls-ty-item__meta p { display: inline; margin: 0; }
.ls-ty-item__price { font-size: var(--fs-small); font-weight: 600; white-space: nowrap; }

.ls-ty-totals { margin: 14px 0 0; }
.ls-ty-totals__row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; font-size: var(--fs-small); }
.ls-ty-totals__row dt { color: var(--color-text-muted); }
.ls-ty-totals__row dd { margin: 0; text-align: right; }
.ls-ty-totals__row--grand {
  margin-top: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
  align-items: baseline;
}
.ls-ty-totals__row--grand dt { color: var(--color-text); font-weight: 700; font-size: var(--fs-body); }
.ls-ty-totals__row--grand dd { font-family: var(--font-heading); font-size: 1.45rem; font-weight: 800; }
.ls-ty-totals__row--grand small { display: block; font-family: var(--font-body); font-size: var(--fs-xs); font-weight: 400; color: var(--color-text-muted); }

.ls-ty-empty { text-align: center; display: grid; justify-items: center; gap: 16px; padding-block: 48px; }

/* Short gateway lines (e.g. "Pay with cash upon delivery.") */
.ls-ty-main > p { margin: 0; padding: 0 4px; font-size: var(--fs-small); color: var(--color-text-muted); }
/* Checkout timeline shown again as step 3 on the confirmation page. */
body.woocommerce-checkout .ls-checkout-steps--final { margin: 0 0 4px; }

/* Gateway output (e.g. bank-transfer details) printed into the main column. */
.ls-ty-main > .woocommerce-bacs-bank-details,
.ls-ty-main > section.woocommerce-bacs-bank-details {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: clamp(20px, 2.6vw, 28px);
}

@media (max-width: 900px) {
  .ls-ty-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "summary" "main";
    gap: 20px;
  }
  .ls-ty-summary-col { position: static; }
  /* Collapsible "Show order summary · $total" bar, Shopify-style. */
  .ls-ty-summary__toggle { pointer-events: auto; cursor: pointer; padding: 16px 18px; }
  .ls-ty-summary__title { display: none; }
  .ls-ty-summary__show,
  .ls-ty-summary__chevron,
  .ls-ty-summary .ls-ty-summary__total { display: inline-flex; }
  .ls-ty-summary__show, .ls-ty-summary__hide { color: var(--color-accent-blue); }
  .ls-ty-summary[open] .ls-ty-summary__show { display: none; }
  .ls-ty-summary[open] .ls-ty-summary__hide { display: inline; }
  .ls-ty-summary__chevron { transition: transform var(--transition-base); color: var(--color-accent-blue); }
  .ls-ty-summary[open] .ls-ty-summary__chevron { transform: rotate(180deg); }
  .ls-ty-summary:not([open]) .ls-ty-summary__toggle { border-bottom: none; }
  .ls-ty-summary__body { padding: 4px 18px 18px; }
}
@media (max-width: 560px) {
  .ls-ty-hero__check { width: 44px; height: 44px; }
  .ls-ty-hero__check .icon { width: 22px; height: 22px; }
  .ls-ty-info { grid-template-columns: minmax(0, 1fr); }
  .ls-ty-actions .btn { flex: 1 1 100%; }
  .ls-ty-help { margin: 4px auto 0; text-align: center; }
}

/* =========================================================================
   LICENSE KEYS SECTION (printed by the Digital License Manager Pro plugin on
   the order confirmation page and My Account → View order). The plugin ships
   no front-end CSS, so the theme styles its markup here.
   ========================================================================= */
.woocommerce-order-license-keys {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: clamp(20px, 2.6vw, 28px);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wcsk-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
}
.wcsk-section-header svg {
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: var(--color-accent-blue-dim);
  color: var(--color-accent-blue);
  flex: none;
}
.wcsk-product-block { display: flex; flex-direction: column; gap: 12px; }
.wcsk-product-name { font-weight: 700; font-size: var(--fs-small); color: var(--color-text-muted); }
.wcsk-step-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-tile);
  padding: 16px 18px;
  background: var(--color-bg);
}
.wcsk-step-label { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 10px; }
.wcsk-step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-orange);
  color: var(--color-on-accent);
  font-size: var(--fs-xs);
  flex: none;
}
.wcsk-step-desc { margin: 0 0 10px; font-size: var(--fs-small); color: var(--color-text-muted); }
.wcsk-key-label { margin: 8px 0 4px; font-size: var(--fs-xs); font-weight: 700; color: var(--color-text-muted); }
.wcsk-key-block {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 14px;
  border: 1.5px dashed color-mix(in srgb, var(--color-brand-orange) 45%, var(--color-border));
  border-radius: var(--radius-tile);
  background: var(--color-surface);
}
.wcsk-key-block + .wcsk-key-label { margin-top: 12px; }
.wcsk-key-text {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  background: none;
  border: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text);
  white-space: pre-wrap;
  word-break: break-all;
}
.wcsk-copy-btn {
  flex: none;
  padding: 9px 16px;
  border: none;
  border-radius: var(--radius-tile);
  background: var(--color-brand-orange);
  color: var(--color-on-accent);
  font-family: inherit;
  font-size: var(--fs-small);
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--transition-base);
}
.wcsk-copy-btn:hover { background: var(--color-brand-orange-hover); }
.wcsk-copy-btn.copied { background: var(--ty-success, #16A34A); }
.wcsk-download-btn,
.wcsk-pdf-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-small);
  font-weight: 700;
  transition: background-color var(--transition-base), color var(--transition-base), border-color var(--transition-base);
}
.wcsk-download-btn { background: var(--color-brand-orange); color: var(--color-on-accent); }
.wcsk-download-btn:hover { background: var(--color-brand-orange-hover); color: var(--color-on-accent); }
.wcsk-pdf-btn { border: 1.5px solid var(--color-border); color: var(--color-text); background: var(--color-surface); }
.wcsk-pdf-btn:hover { border-color: var(--color-brand-orange); color: var(--color-brand-orange); }
.wcsk-url-copy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin-top: 12px;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}
.wcsk-url-copy code { flex: 1 1 200px; min-width: 0; font-size: var(--fs-xs); background: none; padding: 0; overflow-wrap: anywhere; }
.wcsk-url-copy a { color: var(--color-accent-blue); text-decoration: underline; text-underline-offset: 2px; }
.wcsk-url-copy a:hover { color: var(--color-accent-blue-hover); }
.wcsk-url-copy .wcsk-copy-btn,
.wcsk-copy-btn--all {
  padding: 6px 12px;
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--fs-xs);
}
.wcsk-url-copy .wcsk-copy-btn:hover,
.wcsk-copy-btn--all:hover { background: var(--color-surface); border-color: var(--color-brand-orange); color: var(--color-brand-orange); }
.wcsk-url-copy .wcsk-copy-btn.copied,
.wcsk-copy-btn--all.copied { border-color: var(--ty-success, #16A34A); background: var(--ty-success, #16A34A); color: var(--color-on-accent); }

/* Multi-part key ("Product Key : …" / "License : …"): one row per part, each
   with its own Copy button (built by initLicenseKeys() in main.js). */
.wcsk-key-block--parts { flex-direction: column; align-items: stretch; padding: 8px; gap: 8px; }
.wcsk-key-parts { display: flex; flex-direction: column; gap: 6px; }
.wcsk-key-part {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "label btn" "value btn";
  align-items: center;
  column-gap: 12px;
  padding: 8px 8px 8px 12px;
  border-radius: var(--radius-tile);
  background: var(--color-bg);
}
.wcsk-key-part:not(:has(.wcsk-key-part__label)) { grid-template-areas: "value btn"; }
.wcsk-key-part__label {
  grid-area: label;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.wcsk-key-part__value {
  grid-area: value;
  min-width: 0;
  padding: 0;
  background: none;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--color-text);
  overflow-wrap: anywhere;
}
.wcsk-key-part .wcsk-copy-btn { grid-area: btn; }
.wcsk-key-block--parts > .wcsk-copy-btn--all { align-self: flex-end; }
.wcsk-instructions { font-size: var(--fs-small); line-height: 1.7; color: var(--color-text); }
.wcsk-activation-note {
  padding: 14px 16px;
  border-radius: var(--radius-tile);
  border: 1px solid color-mix(in srgb, #D97706 35%, var(--color-border));
  background: color-mix(in srgb, #D97706 7%, var(--color-surface));
  font-size: var(--fs-small);
  line-height: 1.6;
}
.wcsk-activation-note p { margin: 6px 0 0; }
.wcsk-note-title { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #B45309; }
.wcsk-reassurance {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--color-border);
}
.wcsk-reassurance-item { display: flex; align-items: center; gap: 10px; font-size: var(--fs-small); color: var(--color-text-muted); }
.wcsk-reassurance-item svg { flex: none; color: var(--color-accent-blue); }
.wcsk-reassurance-item a { font-weight: 600; }
@media (max-width: 560px) {
  .wcsk-key-block:not(.wcsk-key-block--parts) { flex-wrap: wrap; padding: 12px; }
  .wcsk-key-block:not(.wcsk-key-block--parts) > .wcsk-copy-btn { width: 100%; padding: 11px; }
  .wcsk-key-block--parts > .wcsk-copy-btn--all { align-self: stretch; }
  .woocommerce-order-license-keys { padding: 16px; }
  .wcsk-key-part { column-gap: 8px; padding-left: 10px; }
  .wcsk-key-part__value { font-size: 0.9rem; letter-spacing: 0.01em; }
}

/* =========================================================================
   MY ACCOUNT (signed in) — woocommerce/myaccount/{my-account,navigation,
   dashboard,orders,view-order}.php + template-parts/account/*.php.
   Sidebar card (profile + menu) beside the section; on phones the menu is a
   scrolling pill row above it. Scoped to body.woocommerce-account.
   ========================================================================= */
body.woocommerce-account .ls-account {
  --ty-success: #16A34A;
  --ty-warning: #D97706;
  --ty-error: #DC2626;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  padding-bottom: calc(var(--section-padding-y) / 2);
}
body.woocommerce-account .ls-account__main { min-width: 0; display: flex; flex-direction: column; gap: 20px; }
body.woocommerce-account .ls-account__main > *:empty { display: none; }

/* Sidebar */
body.woocommerce-account .ls-account__nav {
  position: sticky;
  top: 96px;
  padding: 8px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}
body.admin-bar.woocommerce-account .ls-account__nav { top: 128px; }
body.woocommerce-account .ls-account__profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 16px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--color-border);
}
body.woocommerce-account .ls-account__avatar {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-blue-dim);
  color: var(--color-accent-blue);
  font-family: var(--font-heading);
  font-weight: 800;
}
body.woocommerce-account .ls-account__who { min-width: 0; display: flex; flex-direction: column; }
body.woocommerce-account .ls-account__name { font-weight: 700; line-height: 1.3; }
body.woocommerce-account .ls-account__email { font-size: var(--fs-xs); color: var(--color-text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.woocommerce-account .ls-account__menu { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
body.woocommerce-account .ls-account__menu li { margin: 0; }
body.woocommerce-account .ls-account__menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-tile);
  color: var(--color-text);
  font-size: var(--fs-small);
  font-weight: 600;
  text-decoration: none;
  transition: background-color var(--transition-base), color var(--transition-base);
}
body.woocommerce-account .ls-account__menu a .icon { color: var(--color-text-muted); transition: color var(--transition-base); }
body.woocommerce-account .ls-account__menu a:hover { background: var(--color-tint-peach); color: var(--color-brand-orange); }
body.woocommerce-account .ls-account__menu a:hover .icon { color: var(--color-brand-orange); }
body.woocommerce-account .ls-account__menu li.is-active a { background: var(--color-brand-orange); color: var(--color-on-accent); }
body.woocommerce-account .ls-account__menu li.is-active a .icon { color: var(--color-on-accent); }
body.woocommerce-account .ls-account__menu .ls-account__logout { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--color-border); }
body.woocommerce-account .ls-account__menu .ls-account__logout a:hover { background: color-mix(in srgb, var(--ty-error) 10%, transparent); color: var(--ty-error); }
body.woocommerce-account .ls-account__menu .ls-account__logout a:hover .icon { color: var(--ty-error); }

/* Section header */
body.woocommerce-account .ls-account__head { margin: 0; }
body.woocommerce-account .ls-account__title { margin: 0 0 4px; font-family: var(--font-heading); font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.9rem); line-height: 1.2; }
body.woocommerce-account .ls-account__text { margin: 0; color: var(--color-text-muted); font-size: var(--fs-small); }

/* Cards */
body.woocommerce-account .ls-account-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 6px clamp(16px, 2.4vw, 24px) 10px;
}
body.woocommerce-account .ls-account-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 6px; }
body.woocommerce-account .ls-account-card__title { margin: 0; font-size: 1.1rem; }
body.woocommerce-account .ls-account-card__link { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-small); font-weight: 600; color: var(--color-accent-blue); }

/* Stat tiles */
body.woocommerce-account .ls-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
body.woocommerce-account .ls-stat {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-areas: "icon value" "icon label";
  align-items: center;
  column-gap: 14px;
  padding: 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}
body.woocommerce-account .ls-stat:hover { border-color: var(--color-brand-orange); box-shadow: var(--shadow-card); transform: translateY(-2px); color: var(--color-text); }
body.woocommerce-account .ls-stat__icon {
  grid-area: icon;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-tint-peach);
  color: var(--color-brand-orange);
}
body.woocommerce-account .ls-stat__icon--key { background: var(--color-accent-blue-dim); color: var(--color-accent-blue); }
body.woocommerce-account .ls-stat__icon--status { background: color-mix(in srgb, var(--ty-success) 12%, var(--color-surface)); color: var(--ty-success); }
body.woocommerce-account .ls-stat__value { grid-area: value; font-family: var(--font-heading); font-size: 1.6rem; font-weight: 800; line-height: 1.1; }
body.woocommerce-account .ls-stat__value--text { font-size: 1rem; }
body.woocommerce-account .ls-stat__label { grid-area: label; font-size: var(--fs-small); color: var(--color-text-muted); }

/* Status pills */
body.woocommerce-account .ls-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-xs);
  font-weight: 700;
  line-height: 1.3;
  white-space: nowrap;
  background: var(--color-tint-grey);
  color: var(--color-text-muted);
}
body.woocommerce-account .ls-status-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
body.woocommerce-account .ls-status-pill--completed { background: color-mix(in srgb, var(--ty-success) 12%, var(--color-surface)); color: color-mix(in srgb, var(--ty-success) 85%, #000); }
body.woocommerce-account .ls-status-pill--processing { background: var(--color-accent-blue-dim); color: var(--color-accent-blue); }
body.woocommerce-account .ls-status-pill--on-hold,
body.woocommerce-account .ls-status-pill--pending { background: color-mix(in srgb, var(--ty-warning) 12%, var(--color-surface)); color: color-mix(in srgb, var(--ty-warning) 85%, #000); }
body.woocommerce-account .ls-status-pill--failed { background: color-mix(in srgb, var(--ty-error) 10%, var(--color-surface)); color: var(--ty-error); }

/* Order rows */
body.woocommerce-account .ls-order-list { display: flex; flex-direction: column; gap: 12px; }
body.woocommerce-account .ls-order-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
body.woocommerce-account .ls-order-row:hover { border-color: color-mix(in srgb, var(--color-brand-orange) 40%, var(--color-border)); box-shadow: var(--shadow-card); }
body.woocommerce-account .ls-order-list--flush { gap: 0; }
body.woocommerce-account .ls-order-list--flush .ls-order-row { border: none; border-bottom: 1px solid var(--color-border); border-radius: 0; padding-inline: 0; }
body.woocommerce-account .ls-order-list--flush .ls-order-row:last-child { border-bottom: none; }
body.woocommerce-account .ls-order-list--flush .ls-order-row:hover { box-shadow: none; }
body.woocommerce-account .ls-order-row__thumb {
  position: relative;
  width: 56px;
  height: 56px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-tile);
  background: var(--color-bg);
}
body.woocommerce-account .ls-order-row__thumb img { width: 100%; height: 100%; object-fit: contain; padding: 4px; border-radius: var(--radius-tile); }
body.woocommerce-account .ls-order-row__more {
  position: absolute;
  right: -8px;
  bottom: -8px;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--radius-pill);
  background: var(--color-navy);
  color: var(--color-on-accent);
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 22px;
  text-align: center;
}
body.woocommerce-account .ls-order-row__info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
body.woocommerce-account .ls-order-row__number { font-weight: 700; color: var(--color-text); text-decoration: none; }
body.woocommerce-account .ls-order-row__number:hover { color: var(--color-brand-orange); }
body.woocommerce-account .ls-order-row__meta { font-size: var(--fs-xs); color: var(--color-text-muted); }
body.woocommerce-account .ls-order-row__items { font-size: var(--fs-small); color: var(--color-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.woocommerce-account .ls-order-row__total { font-weight: 700; white-space: nowrap; }
body.woocommerce-account .ls-order-row__actions { display: flex; gap: 8px; justify-content: flex-end; }
body.woocommerce-account .woocommerce .ls-order-row__actions a.button.btn--orange { background: var(--color-brand-orange); color: var(--color-on-accent); border: none; border-radius: var(--radius-pill); }
body.woocommerce-account .woocommerce .ls-order-row__actions a.button.btn--orange:hover { background: var(--color-brand-orange-hover); }
body.woocommerce-account .woocommerce .ls-order-row__actions a.button.btn--outline { background: transparent; color: var(--color-text); border: 1.5px solid var(--color-border); border-radius: var(--radius-pill); }
body.woocommerce-account .woocommerce .ls-order-row__actions a.button.btn--outline:hover { border-color: var(--color-brand-orange); color: var(--color-brand-orange); }
body.woocommerce-account .ls-account__pager { display: flex; justify-content: space-between; gap: 12px; }

/* Empty states + help strip */
body.woocommerce-account .ls-account-empty {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: clamp(32px, 6vw, 56px) 20px;
  text-align: center;
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-card);
}
body.woocommerce-account .ls-account-empty--inline { border: none; padding: 20px 0 16px; }
body.woocommerce-account .ls-account-empty__icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-blue-dim);
  color: var(--color-accent-blue);
}
body.woocommerce-account .ls-account-empty__title { margin: 4px 0 0; font-size: 1.15rem; }
body.woocommerce-account .ls-account-empty__text { margin: 0 0 6px; max-width: 380px; font-size: var(--fs-small); color: var(--color-text-muted); }
body.woocommerce-account .ls-account-help {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-card);
  background: var(--color-tint-blue);
  border: 1px solid var(--color-border);
}
body.woocommerce-account .ls-account-help__icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--color-surface); color: var(--color-accent-blue); }
body.woocommerce-account .ls-account-help__text { flex: 1 1 auto; display: flex; flex-direction: column; font-size: var(--fs-small); }
body.woocommerce-account .ls-account-help__text span { color: var(--color-text-muted); }

/* My Licenses */
body.woocommerce-account .ls-licenses.woocommerce-order-license-keys { padding: 0; background: none; border: none; gap: 16px; }
body.woocommerce-account .ls-license {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: clamp(18px, 2.4vw, 24px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}
body.woocommerce-account .ls-license__head { display: flex; align-items: center; gap: 12px; }
body.woocommerce-account .ls-license__icon { flex: none; width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: var(--color-accent-blue-dim); color: var(--color-accent-blue); }
body.woocommerce-account .ls-license__product { margin: 0; font-size: 1.05rem; line-height: 1.3; }
body.woocommerce-account .ls-license__meta { margin: 2px 0 0; font-size: var(--fs-xs); color: var(--color-text-muted); }
body.woocommerce-account .ls-license__meta a { font-weight: 600; }
body.woocommerce-account .ls-license__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* WooCommerce's "Order again" (printed on the same hook as the keys). */
body.woocommerce-account .ls-view-order .order-again { margin: 0; }
body.woocommerce-account .woocommerce .ls-view-order .order-again .button {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 20px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--fs-small);
  font-weight: 700;
}
body.woocommerce-account .woocommerce .ls-view-order .order-again .button:hover { border-color: var(--color-brand-orange); color: var(--color-brand-orange); }

/* View order: page header above the confirmation-style layout */
body.woocommerce-account .ls-view-order { max-width: none; }
body.woocommerce-account .ls-view-order__head { margin-bottom: 20px; }
body.woocommerce-account .ls-view-order__back { display: inline-block; margin-bottom: 8px; font-size: var(--fs-small); font-weight: 600; color: var(--color-accent-blue); }
body.woocommerce-account .ls-view-order__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; font-size: var(--fs-small); color: var(--color-text-muted); }
body.woocommerce-account .ls-view-order .ls-ty-layout { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); }
body.woocommerce-account .ls-order-updates { list-style: none; margin: 8px 0 0; padding: 0 0 0 18px; border-left: 2px solid var(--color-border); display: grid; gap: 14px; }
body.woocommerce-account .ls-order-updates__item { position: relative; margin: 0; }
body.woocommerce-account .ls-order-updates__item::before { content: ""; position: absolute; left: -25px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--color-surface); border: 2px solid var(--color-accent-blue); }
body.woocommerce-account .ls-order-updates__date { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--color-text-muted); }
body.woocommerce-account .ls-order-updates__text p { margin: 2px 0 0; font-size: var(--fs-small); }

/* Forms: Account details / Edit address */
body.woocommerce-account .ls-account__main .woocommerce-EditAccountForm,
body.woocommerce-account .ls-account__main .woocommerce-address-fields {
  max-width: 720px;
  padding: clamp(20px, 3vw, 28px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
}
body.woocommerce-account .ls-account__main form .form-row { margin: 0 0 16px; padding: 0; }
body.woocommerce-account .ls-account__main form label { display: block; margin-bottom: 6px; font-size: var(--fs-small); font-weight: 600; }
body.woocommerce-account .ls-account__main form input.input-text,
body.woocommerce-account .ls-account__main form select,
body.woocommerce-account .ls-account__main form textarea {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-tile);
  background: var(--color-surface);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
body.woocommerce-account .ls-account__main form textarea { padding: 10px 14px; }
body.woocommerce-account .ls-account__main form input.input-text:focus,
body.woocommerce-account .ls-account__main form select:focus,
body.woocommerce-account .ls-account__main form textarea:focus { outline: none; border-color: var(--color-accent-blue); box-shadow: 0 0 0 4px var(--color-accent-blue-dim); }
body.woocommerce-account .ls-account__main form em { display: block; margin-top: 4px; font-size: var(--fs-xs); color: var(--color-text-muted); font-style: normal; }
body.woocommerce-account .ls-account__main .woocommerce-EditAccountForm fieldset { margin: 8px 0 16px; padding: 18px; border: 1px solid var(--color-border); border-radius: var(--radius-tile); }
body.woocommerce-account .ls-account__main .woocommerce-EditAccountForm legend { padding: 0 6px; font-family: var(--font-heading); font-weight: 700; }
body.woocommerce-account .ls-account__main form .password-input { position: relative; display: block; }
body.woocommerce-account .ls-account__main .woocommerce button.button,
body.woocommerce-account .woocommerce .ls-account__main form button.button { min-height: 46px; padding: 0 26px; border: none; border-radius: var(--radius-pill); background: var(--color-brand-orange); color: var(--color-on-accent); }
body.woocommerce-account .woocommerce .ls-account__main form button.button:hover { background: var(--color-brand-orange-hover); }

/* Addresses */
body.woocommerce-account .ls-account__main .woocommerce-Addresses { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
body.woocommerce-account .ls-account__main .woocommerce-Addresses > p,
body.woocommerce-account .ls-account__main > p { margin: 0; font-size: var(--fs-small); color: var(--color-text-muted); }
body.woocommerce-account .ls-account__main .woocommerce-Address { padding: 20px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-card); }
body.woocommerce-account .ls-account__main .woocommerce-Address-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
body.woocommerce-account .ls-account__main .woocommerce-Address-title h2 { margin: 0; font-size: 1.05rem; }
body.woocommerce-account .ls-account__main .woocommerce-Address-title a { font-size: var(--fs-small); font-weight: 600; color: var(--color-accent-blue); }
body.woocommerce-account .ls-account__main .woocommerce-Address address { font-style: normal; font-size: var(--fs-small); line-height: 1.7; color: var(--color-text); }

/* Notices inside the account (e.g. "confirm your email to find past orders") */
body.woocommerce-account .ls-account__main .woocommerce-message,
body.woocommerce-account .ls-account__main .woocommerce-info,
body.woocommerce-account .ls-account__main .woocommerce-error { margin: 0; border-radius: var(--radius-card); }
/* Notices with a button: text on the left, button at the right end — WooCommerce
   prints the button before the text in some notices and after it in others. */
body.woocommerce-account .ls-account__main .woocommerce-info:has(> a.button),
body.woocommerce-account .ls-account__main .woocommerce-message:has(> a.button) {
  display: flex;
  align-items: center;
  gap: 16px;
}
body.woocommerce-account .ls-account__main .woocommerce-info > a.button,
body.woocommerce-account .ls-account__main .woocommerce-message > a.button { flex: none; order: 2; margin: 0 0 0 auto; float: none; }
body.woocommerce-account .woocommerce .ls-account__main .woocommerce-info a.button,
body.woocommerce-account .woocommerce .ls-account__main .woocommerce-message a.button { border: none; border-radius: var(--radius-pill); background: var(--color-brand-orange); color: var(--color-on-accent); }

@media (max-width: 900px) {
  body.woocommerce-account .ls-account { grid-template-columns: minmax(0, 1fr); }
  body.woocommerce-account .ls-account__nav { position: static; padding: 6px; }
  body.woocommerce-account .ls-account__profile { padding: 8px 8px 12px; }
  /* Menu becomes a scrolling pill row */
  body.woocommerce-account .ls-account__menu { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
  body.woocommerce-account .ls-account__menu::-webkit-scrollbar { display: none; }
  body.woocommerce-account .ls-account__menu a { white-space: nowrap; padding: 9px 12px; }
  body.woocommerce-account .ls-account__menu .ls-account__logout { margin: 0; padding: 0; border: none; }
  body.woocommerce-account .ls-view-order .ls-ty-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  body.woocommerce-account .ls-order-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    grid-template-areas: "thumb info total" "thumb status actions";
    gap: 6px 12px;
    padding: 12px;
  }
  body.woocommerce-account .ls-order-row__thumb { grid-area: thumb; width: 48px; height: 48px; align-self: start; }
  body.woocommerce-account .ls-order-row__info { grid-area: info; }
  body.woocommerce-account .ls-order-row .ls-status-pill { grid-area: status; justify-self: start; }
  body.woocommerce-account .ls-order-row__total { grid-area: total; justify-self: end; align-self: start; }
  body.woocommerce-account .ls-order-row__actions { grid-area: actions; }
  body.woocommerce-account .ls-order-list--flush .ls-order-row { padding-inline: 0; }
  /* Stat tiles: a compact three-across row instead of three full-width cards. */
  body.woocommerce-account .ls-stats { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
  body.woocommerce-account .ls-stat {
    grid-template-columns: 1fr;
    grid-template-areas: "icon" "value" "label";
    justify-items: start;
    row-gap: 6px;
    padding: 12px;
  }
  body.woocommerce-account .ls-stat__icon { width: 34px; height: 34px; border-radius: 10px; }
  body.woocommerce-account .ls-stat__icon .icon { width: 18px; height: 18px; }
  body.woocommerce-account .ls-stat__value { font-size: 1.3rem; }
  body.woocommerce-account .ls-stat__value--text .ls-status-pill { font-size: 0.68rem; padding: 3px 8px; }
  body.woocommerce-account .ls-stat__label { font-size: var(--fs-xs); line-height: 1.3; }
  body.woocommerce-account .ls-account-help { flex-wrap: wrap; }
  body.woocommerce-account .ls-account-help .btn { width: 100%; }
}

/* -------------------------------------------------------------------------
   SIGN IN / RESET PASSWORD (My Account, signed out) — woocommerce/myaccount/
   form-login.php + form-lost-password.php. A centred card (two side by side
   when My Account registration is on). Scoped to body.woocommerce-account.
   ------------------------------------------------------------------------- */
body.woocommerce-account .ls-auth {
  display: grid;
  grid-template-columns: minmax(0, 440px);
  justify-content: center;
  gap: 20px;
  padding-bottom: calc(var(--section-padding-y) / 2);
}
body.woocommerce-account .ls-auth--two { grid-template-columns: repeat(2, minmax(0, 440px)); }
body.woocommerce-account .ls-auth__secure { grid-column: 1 / -1; }

body.woocommerce-account .ls-auth__card {
  padding: clamp(24px, 4vw, 36px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius-card) * 1.25);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.07);
}
body.woocommerce-account .ls-auth__head { text-align: center; margin-bottom: 24px; }
body.woocommerce-account .ls-auth__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 50%;
  background: var(--color-accent-blue-dim);
  color: var(--color-accent-blue);
}
body.woocommerce-account .ls-auth__icon .icon { width: 24px; height: 24px; }
body.woocommerce-account .ls-auth__title {
  margin: 0 0 6px;
  font-family: var(--font-heading);
  font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem);
  line-height: 1.2;
}
body.woocommerce-account .ls-auth__subtitle { margin: 0; font-size: var(--fs-small); color: var(--color-text-muted); line-height: 1.55; }

/* Fields */
body.woocommerce-account .ls-auth__form { margin: 0; padding: 0; border: none; background: none; }
body.woocommerce-account .ls-auth__form .form-row { margin: 0 0 16px; padding: 0; }
body.woocommerce-account .ls-auth__form label:not(.woocommerce-form__label-for-checkbox) {
  display: block;
  margin-bottom: 6px;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-text);
}
body.woocommerce-account .ls-auth__form .required { color: var(--color-text-muted); }
body.woocommerce-account .ls-auth__form input.input-text {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-tile);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}
body.woocommerce-account .ls-auth__form input.input-text:focus {
  outline: none;
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 4px var(--color-accent-blue-dim);
}
/* WooCommerce wraps password inputs in .password-input and adds an eye toggle. */
body.woocommerce-account .ls-auth__form .password-input { position: relative; display: block; }
body.woocommerce-account .ls-auth__form .password-input input.input-text { padding-right: 48px; }
body.woocommerce-account .ls-auth__form .show-password-input {
  position: absolute;
  top: 50%;
  right: 6px;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
}
body.woocommerce-account .ls-auth__form .show-password-input:hover { background: var(--color-tint-grey); color: var(--color-text); }
/* The eye icon normally comes from WooCommerce's stylesheet, which the theme
   doesn't load — draw it here (eye / eye-off once the password is shown). */
body.woocommerce-account .ls-auth__form .show-password-input::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTEgMTJzNC04IDExLTggMTEgOCAxMSA4LTQgOC0xMSA4LTExLTgtMTEtOHoiLz48Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIzIi8+PC9zdmc+") center / 20px 20px no-repeat;
  mask: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTEgMTJzNC04IDExLTggMTEgOCAxMSA4LTQgOC0xMSA4LTExLTgtMTEtOHoiLz48Y2lyY2xlIGN4PSIxMiIgY3k9IjEyIiByPSIzIi8+PC9zdmc+") center / 20px 20px no-repeat;
}
body.woocommerce-account .ls-auth__form .show-password-input.display-password::after {
  -webkit-mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTE3Ljk0IDE3Ljk0QTEwLjA3IDEwLjA3IDAgMCAxIDEyIDIwYy03IDAtMTEtOC0xMS04YTE4LjQ1IDE4LjQ1IDAgMCAxIDUuMDYtNS45NCIvPjxwYXRoIGQ9Ik05LjkgNC4yNEE5LjEyIDkuMTIgMCAwIDEgMTIgNGM3IDAgMTEgOCAxMSA4YTE4LjUgMTguNSAwIDAgMS0yLjE2IDMuMTkiLz48cGF0aCBkPSJNMTQuMTIgMTQuMTJhMyAzIDAgMSAxLTQuMjQtNC4yNCIvPjxwYXRoIGQ9Ik0xIDFsMjIgMjIiLz48L3N2Zz4=");
  mask-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSIjMDAwIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCI+PHBhdGggZD0iTTE3Ljk0IDE3Ljk0QTEwLjA3IDEwLjA3IDAgMCAxIDEyIDIwYy03IDAtMTEtOC0xMS04YTE4LjQ1IDE4LjQ1IDAgMCAxIDUuMDYtNS45NCIvPjxwYXRoIGQ9Ik05LjkgNC4yNEE5LjEyIDkuMTIgMCAwIDEgMTIgNGM3IDAgMTEgOCAxMSA4YTE4LjUgMTguNSAwIDAgMS0yLjE2IDMuMTkiLz48cGF0aCBkPSJNMTQuMTIgMTQuMTJhMyAzIDAgMSAxLTQuMjQtNC4yNCIvPjxwYXRoIGQ9Ik0xIDFsMjIgMjIiLz48L3N2Zz4=");
}

body.woocommerce-account .ls-auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: -2px 0 20px;
  font-size: var(--fs-small);
}
body.woocommerce-account .woocommerce-form-login__rememberme { display: inline-flex; align-items: center; gap: 8px; margin: 0; cursor: pointer; }
body.woocommerce-account .woocommerce-form-login__rememberme input { width: 16px; height: 16px; accent-color: var(--color-brand-orange); }
body.woocommerce-account .ls-auth__link { font-weight: 600; color: var(--color-accent-blue); }
body.woocommerce-account .ls-auth__link:hover { color: var(--color-accent-blue-hover); }
body.woocommerce-account .ls-auth__submit { margin: 0 !important; }
body.woocommerce-account .ls-auth__submit .btn { width: 100%; min-height: 50px; font-size: var(--fs-body); }
/* Outrank the generic ".woocommerce button.button" (dark) so the primary
   action uses the brand colour. */
body.woocommerce-account .woocommerce .ls-auth__submit button.button {
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-brand-orange);
  color: var(--color-on-accent);
}
body.woocommerce-account .woocommerce .ls-auth__submit button.button:hover {
  background: var(--color-brand-orange-hover);
  color: var(--color-on-accent);
}
body.woocommerce-account .ls-auth__hint { font-size: var(--fs-small); color: var(--color-text-muted); }

body.woocommerce-account .ls-auth__foot {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}
body.woocommerce-account .ls-auth__foot p { margin: 0 0 8px; line-height: 1.55; }
body.woocommerce-account .ls-auth__foot p:last-child { margin-bottom: 0; }
body.woocommerce-account .ls-auth__foot strong { color: var(--color-text); }
body.woocommerce-account .ls-auth__foot-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 10px; }
body.woocommerce-account .ls-auth__foot-links a { font-weight: 600; }

body.woocommerce-account .ls-auth__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
}

/* Error / success notices (wrong password, reset link sent) sit above the card
   at the same width. */
body.woocommerce-account:not(.logged-in) .woocommerce-notices-wrapper:not(:empty),
body.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-message,
body.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-info,
body.woocommerce-account:not(.logged-in) .woocommerce > .woocommerce-error {
  max-width: 440px;
  margin: 0 auto 16px;
}
/* Reset-link-sent confirmation text and the "enter a new password" form
   (core templates) get the same card look. */
body.woocommerce-account:not(.logged-in) .woocommerce > p,
body.woocommerce-account:not(.logged-in) form.lost_reset_password:not(.ls-auth__form) {
  max-width: 440px;
  margin: 0 auto 16px;
}
body.woocommerce-account:not(.logged-in) form.lost_reset_password:not(.ls-auth__form) {
  padding: clamp(24px, 4vw, 36px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius-card) * 1.25);
}

@media (max-width: 900px) {
  body.woocommerce-account .ls-auth--two { grid-template-columns: minmax(0, 440px); }
}


/* =========================================================================
   Responsive
   ========================================================================= */
@media (max-width: 1200px) {
  ul.products { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .product-single__layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .woocommerce-checkout .checkout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
  }
  .woocommerce-checkout #customer_details,
  .woocommerce-checkout #order_review_heading,
  .woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; }
  .woocommerce-checkout #order_review_heading { margin-top: 12px; }
  #order_review { position: static; }
}

@media (max-width: 768px) {
  ul.products { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper,
  .woocommerce-additional-fields__field-wrapper {
    grid-template-columns: minmax(0, 1fr);
  }
  .cart-collaterals { justify-content: stretch; }
  .cart_totals { max-width: none; }

  /* Cart table collapses into stacked cards on phones */
  table.shop_table.shop_table_responsive thead { display: none; }
  table.shop_table.shop_table_responsive tr {
    display: block;
    border-bottom: 1px solid var(--color-border);
    padding: 12px 0;
  }
  table.shop_table.shop_table_responsive td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    border: none;
    padding: 8px 16px;
    text-align: right;
  }
  table.shop_table.shop_table_responsive td::before {
    content: attr(data-title);
    font-weight: 700;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--color-text-muted);
  }
  table.shop_table.shop_table_responsive td.product-remove::before { content: ''; }
  td.actions .coupon { width: 100%; }
  td.actions .coupon .input-text { flex: 1 1 auto; min-width: 0; }
}

@media (max-width: 480px) {
  .product-single__price { font-size: 1.6rem; }
  /* Quantity and Buy now share one row, as on desktop. The form stays a wrapping
     row (not a column): in a column, the button's 220px flex-basis became its
     HEIGHT, and Stripe's full-width express buttons still need to wrap below. */
  .product-single__buy button.single_add_to_cart_button {
    flex: 1 1 0;
    min-width: 0;
    padding: 0 16px;
    white-space: nowrap;
  }
}

/* =========================================================================
   Product cards — shared by homepage collections and catalogue grids
   ========================================================================= */
.product-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
  padding: 10px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-soft);
  transition: border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-base);
}
.product-card:focus-within { border-color: var(--color-accent-blue); box-shadow: var(--shadow-card); }
@media (hover: hover) {
  .product-card:hover { border-color: color-mix(in srgb, var(--color-brand-orange) 40%, var(--color-border)); box-shadow: var(--shadow-card); transform: translateY(-3px); }
}
.product-card__image {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  aspect-ratio: 1.15;
  overflow: hidden;
  border-radius: var(--radius-tile);
  background: linear-gradient(145deg, var(--color-bg), var(--color-tint-blue));
}
.product-card__image img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.product-card__fallback { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 100%; padding: 28px 16px 16px; }
.product-card__monogram {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border: 1px solid color-mix(in srgb, var(--color-brand-orange) 14%, var(--color-surface));
  border-radius: calc(var(--radius-card) + 4px);
  background: var(--color-surface);
  color: var(--color-brand-orange);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--color-navy) 7%, transparent);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
}
.product-card__brand { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-heading); font-size: var(--fs-small); font-weight: 700; }
.product-card__badge { position: absolute; z-index: 1; top: 10px; left: 10px; padding: 4px 8px; border-radius: var(--radius-tile); background: var(--color-brand-green); color: var(--color-text); font-size: 0.6875rem; font-weight: 800; line-height: 1.3; }
.product-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 4px 4px; min-width: 0; }
.product-card__title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; min-height: 4.35em; margin: 0 0 10px; font-size: 0.875rem; font-weight: 700; line-height: 1.45; }
.product-card__title a { color: var(--color-text); }
.product-card__title a:hover { color: var(--color-brand-orange); }
.product-card__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; min-height: 35px; margin-top: auto; margin-bottom: 12px; color: var(--color-price); font-size: 1.2rem; font-weight: 800; line-height: 1.35; }
.product-card__price ins { order: 0; text-decoration: none; }
.product-card__price del { order: 1; color: var(--color-caption); font-size: 0.75rem; font-weight: 400; }
.product-card__price small { width: 100%; font-size: var(--fs-xs); font-weight: 400; color: var(--color-caption); }
.product-card__actions { margin-top: 0; }
.woocommerce .product-card a.button,
.product-card a.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--color-brand-orange) 16%, var(--color-surface));
  border-radius: var(--radius-tile);
  background: var(--color-tint-peach);
  color: var(--color-brand-orange);
  font-family: var(--font-heading);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  transition: color var(--transition-base), background var(--transition-base);
}
.woocommerce .product-card a.button:hover,
.product-card a.button:hover { background: var(--color-brand-orange); border-color: var(--color-brand-orange); color: var(--color-on-accent); transform: none; }
.product-card a:focus-visible { outline: 2px solid var(--color-accent-blue); outline-offset: 3px; }
.product-card .added_to_cart { display: block; text-align: center; padding-top: 8px; font-size: var(--fs-xs); font-weight: 600; }
@media (max-width: 560px) {
  .product-card { padding: 7px; }
  .product-card__body { padding: 12px 2px 3px; }
  .product-card__image { aspect-ratio: 1; }
  .product-card__image img { padding: 10px; }
  .product-card__fallback { padding: 30px 8px 12px; gap: 8px; }
  .product-card__monogram { width: 48px; height: 48px; font-size: 1.5rem; border-radius: var(--radius-tile); }
  .product-card__brand { font-size: 0.6875rem; }
  .product-card__title { font-size: 0.8125rem; }
  .product-card__badge { top: 7px; left: 7px; }
  .product-card__price { font-size: 1.0625rem; min-height: 48px; align-content: flex-end; }
  .product-card__price del { font-size: 0.6875rem; }
  .product-card a.button { padding-inline: 6px; font-size: 0.75rem; }
}
@media (prefers-reduced-motion: reduce) { .product-card { transition: none; } .product-card:hover { transform: none; } }

/* =========================================================================
   PRODUCT PAGE — separated-widget refinement (merge)
   Each block in the summary reads as its own calm unit with clear spacing;
   the feature strip, reassurance bar and spec table are the new widgets.
   ========================================================================= */

/* Give every summary widget consistent breathing room */
.product-single__summary > * { margin-bottom: 20px; }
.product-single__summary > *:last-child { margin-bottom: 0; }

/* Category pill — blue-dim badge (re-asserted here because this file loads
   after main.css and its earlier rule painted the eyebrow orange). */
.product-single__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-blue-dim);
  color: var(--color-accent-blue);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}
.product-single__eyebrow:hover { color: var(--color-accent-blue-hover); }

/* Title — bold navy, tight tracking (reference feel) */
.product-single__title {
  color: var(--color-heading);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

/* Rating row */
.product-single__rating { gap: 8px; }
.product-single__rating-value { color: var(--color-heading); font-weight: 700; }
.product-single__rating-sep { color: var(--color-text-muted); }

/* Price — big and bold in its own price colour, so it never blends into the navy title */
.product-single__pricing {
  padding: 0;
  border: none;
  background: none;
  margin-bottom: 16px;
}
.product-single__price {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--color-price);
  letter-spacing: -0.02em;
}
.product-single__was { font-size: 1rem; }
.product-single__vat { color: var(--color-text-muted); }

/* Widget: reassurance bar — pale-blue, rounded, with a tick */
.product-single__callout {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 20px;
  padding: 12px 16px;
  border-radius: var(--radius-tile);
  background: var(--color-accent-blue-dim);
  color: var(--color-accent-blue-hover);
  font-size: var(--fs-small);
  font-weight: 600;
  line-height: 1.4;
}
.product-single__callout svg {
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--color-accent-blue);
}

/* Widget: feature icon strip — a scannable row of icon tiles */
.product-single__features {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.feature-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 16px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-tile);
  background: var(--color-surface);
}
.feature-tile__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-accent-blue-dim);
  color: var(--color-accent-blue);
}
.feature-tile__icon svg { width: 18px; height: 18px; }
.feature-tile__label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.3;
}

/* Widget: specifications table — bordered rounded card, label/value rows */
.product-single__specs {
  margin: 0 0 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: var(--color-surface);
  overflow: hidden;
}
.product-single__specs .spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--color-border);
}
.product-single__specs .spec-row:last-child { border-bottom: none; }
.product-single__specs dt {
  margin: 0;
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.product-single__specs dd {
  margin: 0;
  font-size: var(--fs-small);
  font-weight: 600;
  color: var(--color-heading);
  text-align: right;
}

/* Payments — quieter, sits at the base of the summary */
.product-single__payments { border-top: 1px solid var(--color-border); padding-top: 16px; }

@media (max-width: 480px) {
  .product-single__price { font-size: 2rem; }
  .product-single__features { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .feature-tile { padding: 12px 6px; }
}

/* =========================================================================
   PRODUCT PAGE — sticky gallery, sticky buy bar, quantity stepper
   ========================================================================= */

/* Sticky product image: stays in view while the details scroll (desktop). */
@media (min-width: 901px) {
  .product-single__gallery.is-sticky {
    position: sticky;
    top: 84px; /* Shrunk header is ~60px + 24px breathing room */
    align-self: start;
    transition: top var(--transition-base);
  }
  .admin-bar .product-single__gallery.is-sticky {
    top: 116px; /* 84px + 32px admin bar */
  }
}

/* --- Quantity stepper: − [input] + inside one pill --- */
.quantity--stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--color-surface);
}
.qty-btn {
  width: 40px;
  align-self: stretch;
  border: none;
  background: var(--color-surface);
  color: var(--color-heading);
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition-base), color var(--transition-base);
}
.qty-btn:hover { background: var(--color-accent-blue-dim); color: var(--color-accent-blue); }
.qty-btn:active { transform: translateY(1px); }
.quantity--stepper input.qty {
  width: 44px;
  border: none;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  text-align: center;
  font-family: inherit;
  font-size: var(--fs-body);
  font-weight: 700;
  color: var(--color-heading);
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
}
.quantity--stepper input.qty::-webkit-outer-spin-button,
.quantity--stepper input.qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
/* On the product page the stepper matches the tall buy row */
.product-single__buy .quantity--stepper { height: 52px; }
.product-single__buy .quantity--stepper input.qty { height: 100%; width: 48px; }
.product-single__buy .qty-btn { height: 100%; }

/* --- Sticky buy bar --- */
.sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 900;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(100%);
  transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
}
.sticky-buy.is-visible { transform: translateY(0); }
.sticky-buy__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 12px;
}
.sticky-buy__id {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.sticky-buy__thumb {
  width: 44px;
  height: 44px;
  flex: none;
  object-fit: contain;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-tile);
  background: var(--color-tint-blue);
}
.sticky-buy__title {
  font-weight: 700;
  color: var(--color-heading);
  font-size: var(--fs-small);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sticky-buy__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: none;
}
.sticky-buy__price {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-price);
  white-space: nowrap;
}
.sticky-buy__cart {
  border: none;
  border-radius: var(--radius-pill);
  background: var(--color-brand-orange);
  color: var(--color-on-accent);
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: 700;
  padding: 12px 28px;
  cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition-base), transform var(--transition-base);
}
.sticky-buy__cart:hover { background: var(--color-brand-orange-hover); transform: translateY(-1px); }

@media (max-width: 560px) {
  .sticky-buy__title { display: none; }
  .sticky-buy__thumb { display: none; }
  .sticky-buy__inner { padding-block: 10px; }
  .sticky-buy__actions { flex: 1; justify-content: space-between; }
  .sticky-buy__cart { padding: 11px 22px; }
}

/* ============================================================================
   VARIATION SWATCHES
   Progressive enhancement over WooCommerce's variable-product form. The native
   <select>s are hidden (kept for no-JS / assistive tech via the plain form)
   and replaced with clickable pill swatches. Everything uses design tokens so
   it re-skins with the palette. Gated on body.ls-swatches-on (Customizer toggle).
   ========================================================================== */

/* Re-flow WooCommerce's variations table into calm stacked rows.
   WooCommerce's own script shows the "Clear" link with an inline display:block,
   so !important is the only way to keep it hidden — re-clicking a swatch already
   clears the choice, so the link is redundant with swatches. */
body.ls-swatches-on .variations_form .reset_variations { display: none !important; }

/* Give the variable form its own stacked rows. Without this it inherits
   form.cart's flex layout, which lines the swatch selector up beside the
   quantity + Add-to-cart. Each part now gets its own row. */
.product-single__buy form.variations_form { display: block; }
.product-single__buy form.variations_form .variations { margin: 0 0 22px; }
.product-single__buy form.variations_form .single_variation_wrap { display: block; }
.product-single__buy form.variations_form .woocommerce-variation-add-to-cart {
	display: flex;
	align-items: stretch;
	gap: 12px;
	flex-wrap: wrap;
}

/* -------------------------------------------------------------------------
   Stripe Express Checkout / Payment Request button.
   When the WooCommerce Stripe gateway (with express checkout / Apple Pay /
   Google Pay / Link) is enabled, it renders its button inside the add-to-cart
   form through WooCommerce's hooks. Force it to a full-width block that drops
   BELOW the Add-to-cart button — for both simple and variable products —
   instead of sitting inline beside it. (Covers the legacy "Payment Request"
   IDs and the newer "Express Checkout Element" IDs.)
   ------------------------------------------------------------------------- */
.product-single__buy #wc-stripe-payment-request-wrapper,
.product-single__buy #wc-stripe-payment-request-button-separator,
.product-single__buy #wc-stripe-express-checkout-element,
.product-single__buy #wc-stripe-express-checkout-button-separator,
.product-single__buy .wc-stripe-express-checkout-element,
.product-single__buy .wc-stripe-payment-request-wrapper,
.product-single__buy .wc-block-components-express-payment {
	flex: 1 0 100%;
	width: 100%;
	max-width: 100%;
	margin-top: 14px;
	order: 99;
}
.product-single__buy #wc-stripe-payment-request-button-separator,
.product-single__buy #wc-stripe-express-checkout-button-separator {
	text-align: center;
	color: var(--color-text-muted);
	font-size: var(--fs-xs);
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

body.ls-swatches-on .variations,
body.ls-swatches-on .variations tbody,
body.ls-swatches-on .variations tr,
body.ls-swatches-on .variations th,
body.ls-swatches-on .variations td {
	display: block;
	width: auto;
	border: 0;
	padding: 0;
	background: none;
}

body.ls-swatches-on .variations tr {
	transition: max-height 0.4s ease, opacity 0.3s ease, margin-top 0.3s ease;
	max-height: 800px;
	opacity: 1;
	overflow: hidden;
}

body.ls-swatches-on .variations tr + tr { margin-top: 18px; }

body.ls-swatches-on .variations tr.ls-variation-row--hidden {
	max-height: 0;
	opacity: 0;
	margin-top: 0;
	pointer-events: none;
}

body.ls-swatches-on .variations .label label {
	display: block;
	margin: 0 0 10px;
	font-family: var(--font-heading);
	font-weight: 600;
	font-size: 0.95rem;
	color: var(--color-heading);
}

/* Hide the native control but leave it operable for WooCommerce. It stays in the
   DOM (WooCommerce reads its value and our swatches set it), so display:none is
   safe — and, unlike an off-screen visually-hidden box, it can't be stretched
   full-width by a WooCommerce width rule and cause horizontal overflow. With JS
   off, this class is never added, so the plain dropdown remains fully usable. */
.ls-select-hidden { display: none !important; }

/* The swatch row. */
.ls-swatches {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.ls-swatch {
	appearance: none;
	cursor: pointer;
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	gap: 2px;
	min-height: 46px;
	padding: 8px 18px;
	background: var(--color-white, #fff);
	border: 1.5px solid var(--color-border);
	border-radius: var(--radius-card);
	font-family: var(--font-body);
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--color-text);
	line-height: 1.2;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}

.ls-swatch:hover {
	border-color: var(--color-accent-blue);
	box-shadow: 0 2px 10px rgba(15, 23, 42, .07);
}

.ls-swatch:focus-visible {
	outline: none;
	border-color: var(--color-accent-blue);
	box-shadow: 0 0 0 3px var(--color-accent-blue-dim);
}

/* Selected — the brand-orange action colour, so the choice is unmistakable. */
.ls-swatch.is-active {
	border-color: var(--color-brand-orange);
	background: color-mix(in srgb, var(--color-brand-orange) 8%, #fff);
	color: color-mix(in srgb, var(--color-brand-orange) 55%, #000);
	box-shadow: inset 0 0 0 1px var(--color-brand-orange);
}

/* Not sold with the current picks. Still clickable: it switches to the
   closest combination that exists (pickClosest() in main.js). */
.ls-swatch.is-unavailable {
	opacity: .55;
	border-style: dashed;
	box-shadow: none;
	border-color: var(--color-border);
	background: var(--color-bg);
}
.ls-swatch.is-unavailable:hover { opacity: .85; }

/* -------- Rich card swatches (icon + label + badge + indicator) --------
   Used when a variation has an icon and/or a badge set in the editor. Two
   cards sit per row on desktop; one per row on narrow screens. Every colour
   is a design token, so the palette in Customizer → Colours & Type re-skins it. */
.ls-swatch--rich {
	flex: 1 1 240px;
	flex-direction: row;
	justify-content: flex-start;
	align-items: center;
	gap: 14px;
	text-align: left;
	padding: 16px 18px;
	min-height: 78px;
}
.ls-swatch__icon {
	flex: none;
	width: 46px;
	height: 46px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: var(--color-tint-blue);
	border-radius: var(--radius-tile, 12px);
}
.ls-swatch__icon img {
	max-width: 30px;
	max-height: 30px;
	width: auto;
	height: auto;
	object-fit: contain;
}
.ls-swatch--rich .ls-swatch__text {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	flex: 1 1 auto;
}
.ls-swatch__label { line-height: 1.15; }
.ls-swatch--rich .ls-swatch__label {
	font-family: var(--font-heading);
	font-size: 1.02rem;
	color: var(--color-heading);
}
.ls-swatch__badge {
	align-self: flex-start;
	font-size: 0.72rem;
	font-weight: 700;
	line-height: 1;
	padding: 4px 10px;
	border-radius: var(--radius-pill);
	background: var(--color-accent-blue-dim);
	color: var(--color-accent-blue);
}
/* Selected indicator — an empty ring that fills when the card is chosen. */
.ls-swatch__check {
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid var(--color-border);
	position: relative;
	transition: border-color .15s ease, background-color .15s ease;
}
.ls-swatch--rich.is-active .ls-swatch__check {
	border-color: var(--color-brand-orange);
	background: var(--color-brand-orange);
}
.ls-swatch--rich.is-active .ls-swatch__check::after {
	content: "";
	position: absolute;
	left: 6px;
	top: 3px;
	width: 5px;
	height: 9px;
	border: solid var(--color-white);
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}
/* Rich cards keep the label navy when active (only the ring signals selection). */
.ls-swatch--rich.is-active { color: var(--color-heading); }

/* WooCommerce's own price line is mirrored into our widget, so hide it. */
body.ls-swatches-on .single_variation .woocommerce-variation-price { display: none; }

/* Keep the variation description + stock, styled to match. */
.single_variation .woocommerce-variation-description p {
	margin: 0 0 12px;
	color: var(--color-text);
	font-size: 0.95rem;
}
.single_variation .woocommerce-variation-availability {
	margin: 0 0 12px;
	font-weight: 600;
	color: var(--color-heading);
}
.single_variation .woocommerce-variation-availability .out-of-stock { color: #b3261e; }

/* "From" prefix on the summary price before a variation is chosen. */
.product-single__price-prefix {
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--color-heading);
	opacity: .55;
	margin-right: 6px;
	align-self: center;
}
.product-single__summary.has-variation .product-single__price-prefix { display: none; }

/* Brief highlight when the sticky bar sends you up to pick an option. */
.product-single__buy.buy-flash {
	animation: ls-buy-flash .9s ease;
	border-radius: var(--radius-card);
}
@keyframes ls-buy-flash {
	0%, 100% { box-shadow: 0 0 0 0 rgba(0,0,0,0); }
	30%      { box-shadow: 0 0 0 3px var(--color-accent-blue-dim); }
}

/* =========================================================================
   Product Page Grid & Boxed Layout
   (the two-column .product-single__layout grid itself is defined once, higher
   up; the boxed-card treatment and stacked sections are added here.)
   ========================================================================= */

.box-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.product-single__gallery.box-card {
  padding: clamp(12px, 2vw, 24px);
  align-self: start;
}

.product-single__sections {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 48px;
}

.product-section {
  padding: clamp(24px, 3vw, 40px);
}

.product-section__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.product-section__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent-blue-dim);
  color: var(--color-accent-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.product-section__icon svg {
  width: 24px;
  height: 24px;
}

.product-section__header h2 {
  font-size: 1.5rem;
  margin: 0;
  color: var(--color-heading);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Hide duplicate headers injected by WooCommerce callbacks */
.product-section__content > h2:first-child {
  display: none;
}

.product-section__content {
  color: var(--color-text);
  line-height: 1.7;
}

.product-section__content p:last-child {
  margin-bottom: 0;
}

.product-section__action {
  margin-top: 24px;
}

.product-auxiliary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.product-section--aux {
  display: flex;
  flex-direction: column;
}

.product-section--aux .product-section__header {
  margin-bottom: 16px;
  padding-bottom: 16px;
}

.product-section--aux .product-section__header h2 {
  font-size: 1.25rem;
}

.product-section--aux .product-section__content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-section--aux .product-section__action {
  margin-top: auto;
  padding-top: 24px;
}
