/* ==========================================================================
   603coast - theme.css
   Only styles for markup that has no equivalent in the source design
   (WooCommerce / WordPress output), functional state rules, and motion that
   the source drives from JavaScript. Source utility classes are never
   restyled here.
   ========================================================================== */

:root {
  --header-height: 72px;
  --card-radius: 1rem;
  --color-primary: hsl(var(--primary));
  --color-border: hsl(var(--border));
  --color-surface: hsl(var(--secondary));
  --color-foreground: hsl(var(--foreground));
}

@media (min-width: 768px) {
  :root {
    --header-height: 92px;
  }
}

/* Hidden must always win over display utilities. */
[hidden] {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Shared primitives
   -------------------------------------------------------------------------- */
.site-logo-img {
  height: var(--logo-height) !important;
  width: auto !important;
  display: block;
}

.site-logo-img--mobile {
  height: var(--logo-height-mobile) !important;
}

.footer-logo-img {
  height: 40px !important;
}

.site-logo-text {
  line-height: var(--logo-height);
}

body {
  overflow-x: hidden;
}

.theme-site-content {
  min-height: 60vh;
}

/* --------------------------------------------------------------------------
   Header states
   -------------------------------------------------------------------------- */
.theme-header {
  background-color: hsl(var(--background) / 0.95);
}

.theme-socials-item.is-open > [data-socials-menu] {
  display: block;
}

/* --------------------------------------------------------------------------
   Mobile menu
   -------------------------------------------------------------------------- */
[data-mobile-menu] {
  animation: fadeIn 0.6s var(--transition-smooth) forwards;
}

/* --------------------------------------------------------------------------
   Dialogs
   -------------------------------------------------------------------------- */
[data-dialog] {
  position: relative;
  z-index: 60;
}

[data-dialog-overlay] {
  animation: fadeIn 0.2s var(--transition-smooth) forwards;
}

body.theme-dialog-open {
  overflow: hidden;
}

/* --------------------------------------------------------------------------
   Cart drawer + overlay
   -------------------------------------------------------------------------- */
#theme-cart-drawer {
  display: none;
  transform: translateY(20px);
  opacity: 0;
  transition: transform 0.6s var(--transition-smooth), opacity 0.6s var(--transition-smooth);
  animation: none; /* the node is replaced by fragments; never restart a keyframe */
}

body.cart-open #theme-cart-drawer {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

body.cart-open {
  overflow: hidden;
}

#theme-cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 45;
  background-color: hsl(var(--foreground) / 0.2);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--transition-smooth), visibility 0.3s var(--transition-smooth);
}

body.cart-open #theme-cart-overlay {
  opacity: 1;
  visibility: visible;
}

#theme-cart-drawer {
  z-index: 50;
}

#theme-cart-drawer.is-updating > * {
  opacity: 0.6;
  pointer-events: none;
}

.theme-cart-count:empty {
  display: none;
}

#theme-cart-drawer a[data-cart-close] {
  display: block;
}

/* Hide the "View cart" link WooCommerce injects after an AJAX add. */
.woocommerce-page a.added_to_cart.wc-forward,
.single-product a.added_to_cart.wc-forward,
body a.added_to_cart.wc-forward {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Add to cart buttons
   -------------------------------------------------------------------------- */
.single_add_to_cart_button.button:disabled,
.single_add_to_cart_button.button.disabled,
.add_to_cart_button.button:disabled,
.add_to_cart_button.button.disabled {
  cursor: not-allowed !important;
  opacity: 0.4 !important;
  pointer-events: none !important;
}

.single_add_to_cart_button.button:disabled:hover,
.single_add_to_cart_button.button.disabled:hover,
.add_to_cart_button.button:disabled:hover,
.add_to_cart_button.button.disabled:hover {
  opacity: 0.4 !important;
}

.ajax_add_to_cart.theme-btn-loading {
  opacity: 0.6 !important;
  pointer-events: none !important;
  cursor: wait !important;
}

.single-product .single_add_to_cart_button.loading::after,
.ajax_add_to_cart.loading::after {
  display: none !important;
}

/* --------------------------------------------------------------------------
   Product card
   -------------------------------------------------------------------------- */
.theme-product-card {
  position: relative;
  display: block;
  transition: transform 0.4s var(--transition-smooth);
}

.theme-product-card-wrap {
  display: block;
  min-width: 0;
}

/* Stretched link sits under media/meta; media uses pointer-events:none so image/title
   clicks reach the link while .theme-card-add stays interactive above the link. */
.theme-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  cursor: pointer;
  background: transparent;
  text-decoration: none;
}

.theme-product-card .theme-card-media {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.theme-product-card .theme-card-meta {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.theme-product-card .theme-card-add {
  position: absolute;
  z-index: 10;
  pointer-events: auto;
}

.theme-product-card h3 a {
  display: block;
}

.theme-card-title-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.theme-card-title-row .title {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* WooCommerce pagination */
.woocommerce-pagination {
  display: flex;
  justify-content: center;
}

.woocommerce-pagination ul {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.woocommerce-pagination ul li {
  border: 0;
}

.woocommerce-pagination ul li a,
.woocommerce-pagination ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.5rem;
  height: 2.5rem;
  padding: 0 0.75rem;
  border: 1px solid hsl(var(--border));
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: hsl(var(--foreground));
  transition: background-color 0.2s var(--transition-smooth), color 0.2s var(--transition-smooth);
}

.woocommerce-pagination ul li a:hover,
.woocommerce-pagination ul li span.current {
  background-color: hsl(var(--primary));
  border-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* --------------------------------------------------------------------------
   Price range (dual overlapping inputs - Radix equivalent)
   -------------------------------------------------------------------------- */
.theme-range {
  position: relative;
  height: 1.25rem;
}

.theme-range__track {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 0.5rem;
  transform: translateY(-50%);
  border-radius: 9999px;
  background-color: hsl(var(--secondary));
  overflow: hidden;
}

.theme-range__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  background-color: hsl(var(--primary));
  border-radius: 9999px;
}

.theme-range__input {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
}

.theme-range__input::-webkit-slider-runnable-track {
  background: transparent;
  border: 0;
  height: 0.5rem;
}

.theme-range__input::-moz-range-track {
  background: transparent;
  border: 0;
  height: 0.5rem;
}

.theme-range__input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  pointer-events: auto;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: -0.375rem;
  border-radius: 9999px;
  border: 2px solid hsl(var(--primary));
  background-color: hsl(var(--background));
  cursor: pointer;
  transition: box-shadow 0.2s var(--transition-smooth);
}

.theme-range__input::-moz-range-thumb {
  pointer-events: auto;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  border: 2px solid hsl(var(--primary));
  background-color: hsl(var(--background));
  cursor: pointer;
}

.theme-range__input:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.4);
}

.theme-range__input:focus-visible::-moz-range-thumb {
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.4);
}

.theme-range__input--max {
  z-index: 3;
}

.theme-range__input--min {
  z-index: 4;
}

/* --------------------------------------------------------------------------
   Hero entrance (framer-motion stagger equivalent)
   -------------------------------------------------------------------------- */
.theme-hero-in {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--transition-smooth), transform 0.6s var(--transition-smooth);
}

.theme-hero-in.is-visible {
  opacity: 1;
  transform: none;
}

.theme-hero-in--eyebrow { transition-delay: 0.2s; }
.theme-hero-in--title {
  transition-duration: 0.8s;
  transform: translateY(18px);
  transition-delay: 0.35s;
}
.theme-hero-in--sub {
  transform: none;
  transition-delay: 0.55s;
}
.theme-hero-in--cta { transition-delay: 0.7s; }

@media (prefers-reduced-motion: reduce) {
  .theme-hero-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Reveal fallback: never hide content in the Customizer preview or without JS. */
body.is-customizer .theme-hero-in,
.no-js .theme-hero-in {
  opacity: 1;
  transform: none;
}

/* --------------------------------------------------------------------------
   Page loader + scroll progress
   -------------------------------------------------------------------------- */
[data-page-loader] {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: hsl(var(--background));
  opacity: 1;
  transition: opacity 0.6s var(--transition-smooth);
}

[data-page-loader] .theme-loader-mark {
  width: 4rem;
  height: 4rem;
  border-radius: 9999px;
  border: 2px solid hsl(var(--primary) / 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: themeLoaderRock 2.4s ease-in-out infinite;
}

@keyframes themeLoaderRock {
  0%, 100% { transform: rotate(0deg); }
  33% { transform: rotate(8deg); }
  66% { transform: rotate(-8deg); }
}

@keyframes themeLoaderSweep {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

[data-page-loader] .theme-loader-bar > span {
  display: block;
  height: 100%;
  width: 50%;
  background: linear-gradient(to right, transparent, hsl(var(--accent)), transparent);
  animation: themeLoaderSweep 1.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  [data-page-loader] .theme-loader-mark,
  [data-page-loader] .theme-loader-bar > span {
    animation: none;
  }
}

.scroll-progress {
  transform: scaleX(0);
}

/* --------------------------------------------------------------------------
   Single product
   -------------------------------------------------------------------------- */
.single-product .theme-product-layout {
  min-width: 0;
}

.single-product .theme-product-gallery,
.single-product .theme-product-info {
  min-width: 0;
  max-width: 100%;
}

.single-product .theme-product-media {
  position: relative;
  overflow: hidden;
}

.single-product .theme-product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.single-product .theme-product-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  max-width: 100%;
}

@media (min-width: 768px) {
  .single-product .theme-product-thumbnails {
    gap: 0.75rem;
  }
}

.single-product .theme-product-thumbnails button {
  flex: 0 0 calc(20% - 0.5rem);
  max-width: calc(20% - 0.5rem);
}

.single-product .theme-product-thumbnails img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.single-product .theme-add-to-cart-area {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.single-product .theme-add-to-cart-area .single_add_to_cart_button {
  flex: 1 1 auto;
  min-width: 160px;
}

.single-product .theme-simple-product-form .theme-add-to-cart-area {
  display: block;
}

.single-product .theme-simple-product-form .theme-add-to-cart-area .single_add_to_cart_button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
}

.single-product .woocommerce-product-details__short-description,
.single-product .woocommerce-variation-description,
.single-product .posted_in,
.single-product .theme-product-description {
  overflow-wrap: break-word;
  word-break: break-word;
}

.single-product .theme-product-description p {
  margin: 0 0 1rem;
}

.single-product .theme-product-details-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.single-product .theme-product-details-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 15px;
  line-height: 1.625;
  color: hsl(var(--muted-foreground));
}

.single-product .theme-product-details-list li::before {
  content: '';
  flex-shrink: 0;
  width: 0.25rem;
  height: 0.25rem;
  margin-top: 0.5rem;
  border-radius: 9999px;
  background: hsl(var(--foreground));
}

.single-product .theme-product-description p:last-child {
  margin-bottom: 0;
}

/* Quantity control */
.theme-quantity-wrapper {
  display: inline-flex;
  align-items: center;
  border: 1px solid hsl(var(--border));
}

.theme-quantity-wrapper .theme-qty-minus,
.theme-quantity-wrapper .theme-qty-plus {
  padding: 0.5rem 0.75rem;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  transition: background-color 0.2s var(--transition-smooth);
}

.theme-quantity-wrapper .theme-qty-minus:hover,
.theme-quantity-wrapper .theme-qty-plus:hover {
  background-color: hsl(var(--secondary));
}

.theme-quantity-wrapper .theme-qty-input {
  width: 44px;
  min-width: 44px;
  padding: 0.5rem 0.25rem;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: inherit;
  -moz-appearance: textfield;
}

.theme-quantity-wrapper .theme-qty-input:focus {
  outline: none;
}

.theme-quantity-wrapper .theme-qty-input::-webkit-outer-spin-button,
.theme-quantity-wrapper .theme-qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Variations: stacked labels above controls */
.single-product .variations {
  display: block;
  width: 100%;
  border: 0;
  margin: 0;
}

.single-product .variations tbody,
.single-product .variations tbody tr,
.single-product .variations tbody td {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
}

.single-product .variations tbody td.label {
  padding-bottom: 0.25rem;
  display: none;
}

.single-product .variations tbody td.value {
  padding-top: 0;
}

.theme-attr-select-hidden,
.theme-attr-native {
  display: none !important;
}

/* Swatch dot inside colour pills */
.theme-swatch {
  width: 0.75rem;
  height: 0.75rem;
  flex: 0 0 auto;
  margin-right: 0.5rem;
  display: inline-block;
  vertical-align: middle;
}

.theme-swatch circle {
  stroke: hsl(var(--border));
  stroke-width: 1;
}

/* Related products grid keeps card heights uniform. */
.theme-related-products .theme-product-card-wrap {
  height: 100%;
}

/* --------------------------------------------------------------------------
   WooCommerce notices
   -------------------------------------------------------------------------- */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid hsl(var(--border));
  border-left: 3px solid hsl(var(--primary));
  border-radius: 0.75rem;
  background-color: hsl(var(--card));
  color: hsl(var(--foreground));
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.6;
  list-style: none;
}

.woocommerce-error {
  border-left-color: hsl(var(--destructive));
}

.woocommerce-message a,
.woocommerce-info a,
.woocommerce-error a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.single-product .woocommerce-message,
.single-product .woocommerce-info {
  display: none;
}

#theme-cart-drawer .woocommerce-message {
  display: none;
}

/* --------------------------------------------------------------------------
   Page shell used by cart / account / checkout
   -------------------------------------------------------------------------- */
.page-title {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0;
  margin-bottom: 1.5rem;
}

body.woocommerce-cart .entry-content,
body.woocommerce-account .entry-content,
body.theme-thankyou-page .entry-content {
  max-width: 100%;
}

/* --------------------------------------------------------------------------
   Checkout block
   -------------------------------------------------------------------------- */
body.woocommerce-checkout .site-main {
  padding-bottom: 4rem;
}

body.woocommerce-checkout .entry-content > .wp-block-woocommerce-checkout,
body.woocommerce-checkout .wc-block-checkout {
  display: block;
  max-width: none;
}

@media (min-width: 768px) {
  body.woocommerce-checkout .wc-block-components-sidebar-layout.wc-block-checkout.is-large,
  body.woocommerce-checkout .wc-block-checkout.wc-block-components-sidebar-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: start;
  }
}

body.woocommerce-checkout .wc-block-checkout__main,
body.woocommerce-checkout .wc-block-checkout__sidebar {
  min-width: 0;
  width: 100%;
  max-width: none;
}

body.woocommerce-checkout .wc-block-checkout__sidebar {
  background-color: hsl(var(--secondary));
  border-radius: var(--card-radius);
  padding: 1.75rem;
}

body.woocommerce-checkout .wc-block-components-notice-banner {
  grid-column: 1 / -1;
  border-radius: 0.75rem;
}

body.woocommerce-checkout .wc-block-components-text-input input,
body.woocommerce-checkout .wc-block-components-select select,
body.woocommerce-checkout .wc-blocks-components-select__select,
body.woocommerce-checkout .wc-block-components-textarea textarea,
body.woocommerce-checkout .wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
  width: 100% !important;
  max-width: none !important;
  font-family: var(--font-body) !important;
  font-size: 1rem !important;
  color: hsl(var(--foreground)) !important;
  background-color: hsl(var(--background)) !important;
  border: 1px solid hsl(var(--border)) !important;
  border-radius: 0.375rem !important;
  box-shadow: none !important;
}

body.woocommerce-checkout .wc-block-components-text-input input:focus,
body.woocommerce-checkout .wc-block-components-select select:focus,
body.woocommerce-checkout .wc-blocks-components-select__select:focus,
body.woocommerce-checkout .wc-block-components-textarea textarea:focus {
  outline: none !important;
  box-shadow: 0 0 0 1px hsl(var(--primary)) !important;
  border-color: hsl(var(--primary)) !important;
}

body.woocommerce-checkout .wc-block-components-text-input input::placeholder,
body.woocommerce-checkout .wc-block-components-textarea textarea::placeholder {
  color: hsl(var(--muted-foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-checkbox label,
body.woocommerce-checkout .wc-block-components-radio-control label {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: hsl(var(--foreground));
}

body.woocommerce-checkout .wc-block-components-title,
body.woocommerce-checkout .wc-block-checkout__main h2,
body.woocommerce-checkout .wc-block-checkout__sidebar h2,
body.woocommerce-checkout .wc-block-components-checkout-step__title {
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  text-transform: uppercase !important;
  letter-spacing: 0 !important;
  color: hsl(var(--foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button {
  font-family: var(--font-body) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase !important;
  background-color: hsl(var(--primary)) !important;
  color: hsl(var(--primary-foreground)) !important;
  border: 1px solid hsl(var(--primary)) !important;
  border-radius: 9999px !important;
  box-shadow: none !important;
  min-height: 48px !important;
}

body.woocommerce-checkout .wc-block-components-checkout-place-order-button:hover:not(:disabled) {
  background-color: hsl(var(--background)) !important;
  color: hsl(var(--primary)) !important;
}

body.woocommerce-checkout .wc-block-cart-items__row,
body.woocommerce-checkout .wc-block-components-order-summary-item {
  font-family: var(--font-body);
}

body.woocommerce-checkout .wc-block-components-order-summary-item__description,
body.woocommerce-checkout .wc-block-components-product-price,
body.woocommerce-checkout .wc-block-components-totals-item {
  font-family: var(--font-body) !important;
  color: hsl(var(--foreground)) !important;
}

body.woocommerce-checkout .wc-block-components-button:not(.wc-block-components-checkout-place-order-button) {
  font-family: var(--font-body);
  border-radius: 9999px;
}

/* Cart block on the cart page */
body.woocommerce-cart .wc-block-cart__main,
body.woocommerce-cart .wc-block-cart__sidebar {
  min-width: 0;
}

body.woocommerce-cart .wc-block-components-totals-item,
body.woocommerce-cart .wc-block-cart-item__prices,
body.woocommerce-cart .wc-block-cart-item__quantity {
  font-family: var(--font-body);
}

body.woocommerce-cart .wc-block-components-button {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 9999px;
}

/* --------------------------------------------------------------------------
   Thank you page
   -------------------------------------------------------------------------- */
body.theme-thankyou-page {
  overflow-x: hidden;
}

body.theme-thankyou-page .woocommerce-order {
  font-family: var(--font-body);
  color: hsl(var(--foreground));
}

body.theme-thankyou-page .woocommerce-order > p:first-of-type,
body.theme-thankyou-page .woocommerce-thankyou-order-received {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

body.theme-thankyou-page .woocommerce-order h2,
body.theme-thankyou-page .woocommerce-order-details__title,
body.theme-thankyou-page .woocommerce-column__title {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  padding: 0 0 1rem 0;
  margin: 0;
}

body.theme-thankyou-page .woocommerce-order-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 768px) {
  body.theme-thankyou-page .woocommerce-order-overview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

body.theme-thankyou-page .woocommerce-order-overview li {
  border: 0;
  padding: 0.75rem 0;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(var(--muted-foreground));
}

body.theme-thankyou-page .woocommerce-order-overview li strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.95rem;
  letter-spacing: 0;
  text-transform: none;
  color: hsl(var(--foreground));
  font-weight: 500;
}

body.theme-thankyou-page .woocommerce-order-details {
  margin-top: 2rem;
}

body.theme-thankyou-page .woocommerce-order-details table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

body.theme-thankyou-page .woocommerce-order-details table th,
body.theme-thankyou-page .woocommerce-order-details table td {
  padding: 0.85rem 0;
  border-bottom: 1px solid hsl(var(--border));
  text-align: left;
  overflow-wrap: break-word;
}

body.theme-thankyou-page .woocommerce-order-details tfoot th {
  text-align: left;
}

body.theme-thankyou-page .woocommerce-order-details tfoot td {
  text-align: right;
}

body.theme-thankyou-page .woocommerce-customer-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

body.theme-thankyou-page .woocommerce-customer-details address {
  max-width: 480px;
  overflow-wrap: break-word;
  border: 1px solid hsl(var(--border));
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  font-style: normal;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   Newsletter embed slot
   -------------------------------------------------------------------------- */
.theme-newsletter-embed {
  margin-top: 1rem;
}

/* --------------------------------------------------------------------------
   WordPress core helpers
   -------------------------------------------------------------------------- */
.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.alignwide {
  max-width: 100%;
}

.wp-block-image img {
  height: auto;
}

/* --------------------------------------------------------------------------
   Entry content typography for authored pages (no source equivalent)
   -------------------------------------------------------------------------- */
.entry-content {
  font-family: var(--font-body);
  color: hsl(var(--foreground));
  line-height: 1.75;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  font-family: var(--font-display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.1;
  margin: 2rem 0 1rem;
}

.entry-content p {
  margin-bottom: 1.25rem;
}

.entry-content a {
  color: hsl(var(--primary));
  text-decoration: underline;
  text-underline-offset: 2px;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 1.25rem 1.25rem;
  list-style: disc;
}

.entry-content ul li,
.entry-content ol li {
  margin-bottom: 0.5rem;
}

.entry-content ol {
  list-style: decimal;
}
