/*
Theme Name: PRCN Lab

WooCommerce styles override
*/

/**
 * Shop tables
 */
table.shop_table_responsive thead {
  display: none;
}

table.shop_table_responsive tbody th {
  display: none;
}

table.shop_table_responsive tr td {
  display: block;
  text-align: right;
  clear: both;
}

table.shop_table_responsive tr td::before {
  content: attr(data-title) ": ";
  float: left;
}

table.shop_table_responsive tr td.product-remove a {
  text-align: left;
}

table.shop_table_responsive tr td.product-remove::before {
  display: none;
}

table.shop_table_responsive tr td.actions::before,
table.shop_table_responsive tr td.download-actions::before {
  display: none;
}

table.shop_table_responsive tr td.download-actions .button {
  display: block;
  text-align: center;
}

@media screen and (min-width: 48em) {
  table.shop_table_responsive thead {
    display: table-header-group;
  }

  table.shop_table_responsive tbody th {
    display: table-cell;
  }

  table.shop_table_responsive tr th,
  table.shop_table_responsive tr td {
    text-align: left;
  }

  table.shop_table_responsive tr td {
    display: table-cell;
  }

  table.shop_table_responsive tr td::before {
    display: none;
  }
}

/**
 * Products
 */
ul.products {
  margin: 0;
  padding: 0;
}

ul.products li.product {
  list-style: none;
  position: relative;
  margin-bottom: 2em;
}

ul.products li.product img {
  display: block;
}

ul.products li.product .button {
  display: block;
}

@media screen and (min-width: 48em) {
  ul.products li.product {
    float: left;
    margin-right: 3.8%;
  }

  ul.products li.product.first {
    clear: both;
  }

  ul.products li.product.last {
    margin-right: 0;
  }
}

/**
 * Single product
 */
.single-product div.product {
  position: relative;
}

.single-product div.product .woocommerce-product-gallery {
  position: relative;
}

.single-product
  div.product
  .woocommerce-product-gallery
  .woocommerce-product-gallery__trigger {
  position: absolute;
  top: 2em;
  right: 1em;
  display: block;
  z-index: 99;
}

.single-product div.product .woocommerce-product-gallery .flex-viewport {
  margin-bottom: 1em;
}

.single-product
  div.product
  .woocommerce-product-gallery
  .flex-control-thumbs
  li {
  list-style: none;
  cursor: pointer;
  float: left;
}

.single-product
  div.product
  .woocommerce-product-gallery
  .flex-control-thumbs
  li
  img {
  opacity: 0.5;
}

.single-product
  div.product
  .woocommerce-product-gallery
  .flex-control-thumbs
  li
  img.flex-active {
  opacity: 1;
}

.single-product
  div.product
  .woocommerce-product-gallery
  .flex-control-thumbs
  li:hover
  img {
  opacity: 1;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-2
  .flex-control-thumbs
  li {
  width: 48.1%;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-2
  .flex-control-thumbs
  li:nth-child(2n) {
  margin-right: 0;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-2
  .flex-control-thumbs
  li:nth-child(2n + 1) {
  clear: both;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-3
  .flex-control-thumbs
  li {
  width: 30.79667%;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-3
  .flex-control-thumbs
  li:nth-child(3n) {
  margin-right: 0;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-3
  .flex-control-thumbs
  li:nth-child(3n + 1) {
  clear: both;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-4
  .flex-control-thumbs
  li {
  width: 22.15%;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-4
  .flex-control-thumbs
  li:nth-child(4n) {
  margin-right: 0;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-4
  .flex-control-thumbs
  li:nth-child(4n + 1) {
  clear: both;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-5
  .flex-control-thumbs
  li {
  width: 16.96%;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-5
  .flex-control-thumbs
  li:nth-child(5n) {
  margin-right: 0;
}

.single-product
  div.product
  .woocommerce-product-gallery.woocommerce-product-gallery--columns-5
  .flex-control-thumbs
  li:nth-child(5n + 1) {
  clear: both;
}

.stock:empty::before {
  display: none;
}

.stock.in-stock {
  color: #0f834d;
}

.stock.out-of-stock {
  color: #e2401c;
}

/**
 * Checkout
 */
@media screen and (min-width: 768px) {
  .col2-set .form-row-first {
    float: left;
    margin-right: 3.8%;
  }

  .col2-set .form-row-last {
    float: right;
    margin-right: 0;
  }

  .col2-set .form-row-first,
  .col2-set .form-row-last {
    width: 48.1%;
  }
}

/**
 * General WooCommerce components
 */

/**
 * Header cart
 */
.site-header-cart {
  position: relative;
  margin: 0;
  padding: 0;
}

.site-header-cart .cart-contents {
  text-decoration: none;
}

.site-header-cart .widget_shopping_cart {
  display: none;
}

.site-header-cart .product_list_widget {
  margin: 0;
  padding: 0;
}

/**
 * Star rating
 */
.star-rating {
  overflow: hidden;
  position: relative;
  height: 1.618em;
  line-height: 1.618;
  width: 5.3em;
  font-family: star;
  font-weight: 400;
}

.star-rating::before {
  content: "\53\53\53\53\53";
  opacity: 0.25;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
}

.star-rating span {
  overflow: hidden;
  float: left;
  top: 0;
  left: 0;
  position: absolute;
  padding-top: 1.5em;
}

.star-rating span::before {
  content: "\53\53\53\53\53";
  top: 0;
  position: absolute;
  left: 0;
  color: #87348c;
}

p.stars a {
  position: relative;
  height: 1em;
  width: 1em;
  text-indent: -999em;
  display: inline-block;
  text-decoration: none;
  margin-right: 1px;
  font-weight: 400;
}

p.stars a::before {
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 1em;
  height: 1em;
  line-height: 1;
  font-family: star;
  content: "\53";
  color: #404040;
  text-indent: 0;
  opacity: 0.25;
}

p.stars a:hover ~ a::before {
  content: "\53";
  color: #404040;
  opacity: 0.25;
}

p.stars:hover a::before {
  content: "\53";
  color: #87348c;
  opacity: 1;
}

p.stars.selected a.active::before {
  content: "\53";
  color: #87348c;
  opacity: 1;
}

p.stars.selected a.active ~ a::before {
  content: "\53";
  color: #404040;
  opacity: 0.25;
}

p.stars.selected a:not(.active)::before {
  content: "\53";
  color: #87348c;
  opacity: 1;
}

/**
 * Tabs
 */
.woocommerce-tabs ul.tabs {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: left;
}

.woocommerce-tabs ul.tabs li {
  display: block;
  margin: 0;
  position: relative;
}

.woocommerce-tabs ul.tabs li a {
  padding: 1em 0;
  display: block;
}

.woocommerce-tabs .panel h2:first-of-type {
  margin-bottom: 1em;
}

/**
 * Password strength meter
 */
.woocommerce-password-strength {
  text-align: right;
}

.woocommerce-password-strength.strong {
  color: #0f834d;
}

.woocommerce-password-strength.short {
  color: #e2401c;
}

.woocommerce-password-strength.bad {
  color: #e2401c;
}

.woocommerce-password-strength.good {
  color: #3d9cd2;
}

/**
 * Forms
 */
.form-row.woocommerce-validated input.input-text {
  box-shadow: inset 2px 0 0 #0f834d;
}

.form-row.woocommerce-invalid input.input-text {
  box-shadow: inset 2px 0 0 #e2401c;
}

.required {
  color: #f00;
}

/**
 * Notices
 */

/* Base reset — remove the old heavy background-color defaults */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error,
.woocommerce-noreviews,
p.no-comments {
  background-color: transparent;
  clear: both;
  padding: 0;
  border-radius: 0;
  margin: 0;
}

/* Checkout notices — modern left-border alert style */
.woocommerce-checkout .woocommerce-message,
.woocommerce-checkout .woocommerce-info,
.woocommerce-checkout .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
  display: block;
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0.875rem 1.25rem;
  border-radius: 0 10px 10px 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-primary-text);
  font-family: var(--font-sans);
}

.woocommerce-checkout .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-message {
  background: #f0faf5;
  border-left: 3px solid #0f834d;
}

.woocommerce-checkout .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-info {
  background: #f8f5ff;
  border-left: 3px solid var(--color-primary);
}

.woocommerce-checkout .woocommerce-error,
.woocommerce-notices-wrapper .woocommerce-error {
  background: #fff3f0;
  border-left: 3px solid #e2401c;
}

/* Links inside notices */
.woocommerce-checkout .woocommerce-message a,
.woocommerce-checkout .woocommerce-info a,
.woocommerce-checkout .woocommerce-error a,
.woocommerce-notices-wrapper a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Error lists have multiple <li> items */
.woocommerce-checkout .woocommerce-error li,
.woocommerce-notices-wrapper .woocommerce-error li {
  list-style: none;
  padding: 0;
}

.demo_store {
  position: fixed;
  left: 0;
  bottom: 0;
  right: 0;
  margin: 0;
  padding: 1em;
  background-color: #3d9cd2;
  z-index: 9999;
}

.wc-block-components-address-card {
  border-radius: 10px !important;
}
.wc-block-components-address-form__country {
  margin-bottom: 1rem !important;
}

.wc-block-components-address-form__state .wc-blocks-components-select {
  margin-top: 0 !important;
}

.wc-block-components-checkout-order-summary__content
  .wc-block-components-order-summary-item__image
  img {
  border-radius: 5px;
}

.wp-block-woocommerce-checkout-order-summary-block {
  border: none !important;
}

.wp-block-woocommerce-checkout-order-summary-block
  .wc-block-components-checkout-order-summary__title
  .wc-block-components-checkout-order-summary__title-text {
  margin: 0 0 1.5rem 0;
}
.wp-block-woocommerce-checkout-order-summary-block
  .wc-block-components-checkout-order-summary__title {
  margin-top: 0;
}

.wc-block-components-checkout-order-summary__title-text {
  --tw-leading: 1.75rem !important;
  --tw-font-weight: var(--font-weight-medium) !important;
  font-size: 1.5rem !important;
  line-height: 1.75rem !important;
  font-weight: var(--font-weight-medium) !important;
  --tw-tracking: -0.5px !important;
  letter-spacing: -0.5px !important;
}

@media (max-width: 1023px) {
  .wc-block-components-checkout-order-summary__title-text {
    letter-spacing: -0.4px !important;
    font-size: 1.25rem !important;
    line-height: 1.5rem !important;
  }
}

@media screen and (min-width: 48em) {
  /**
	 * Header cart
	 */
  .site-header-cart .widget_shopping_cart {
    position: absolute;
    top: 100%;
    width: 100%;
    z-index: 999999;
    left: -999em;
    display: block;
    box-shadow: 0 3px 3px rgba(0, 0, 0, 0.2);
  }

  .site-header-cart:hover .widget_shopping_cart,
  .site-header-cart.focus .widget_shopping_cart {
    left: 0;
    display: block;
  }
}

/**
 * WooCommerce widgets
 */

/**
 * WooCommerce Price Filter
 */
.widget_price_filter .price_slider {
  margin-bottom: 1.5em;
}

.widget_price_filter .price_slider_amount {
  text-align: right;
  line-height: 2.4;
}

.widget_price_filter .price_slider_amount .button {
  float: left;
}

.widget_price_filter .ui-slider {
  position: relative;
  text-align: left;
}

.widget_price_filter .ui-slider .ui-slider-handle {
  position: absolute;
  z-index: 2;
  width: 1em;
  height: 1em;
  cursor: ew-resize;
  outline: none;
  background: #87348c;
  box-sizing: border-box;
  margin-top: -0.25em;
  opacity: 1;
}

.widget_price_filter .ui-slider .ui-slider-handle:last-child {
  margin-left: -1em;
}

.widget_price_filter .ui-slider .ui-slider-handle:hover,
.widget_price_filter .ui-slider .ui-slider-handle.ui-state-active {
  box-shadow: 0 0 0 0.25em rgba(0, 0, 0, 0.1);
}

.widget_price_filter .ui-slider .ui-slider-range {
  position: absolute;
  z-index: 1;
  display: block;
  border: 0;
  background: #87348c;
}

.widget_price_filter .price_slider_wrapper .ui-widget-content {
  background: rgba(0, 0, 0, 0.1);
}

.widget_price_filter .ui-slider-horizontal {
  height: 0.5em;
}

.widget_price_filter .ui-slider-horizontal .ui-slider-range {
  height: 100%;
}

/* =============================================================================
   CART PAGE — Custom styles
   Matches the PRCN Lab design system (spacing, typography, colors, radius).
   ============================================================================= */

/* --- Layout: two-column flex (items left, summary right) --- */

.wc-cart-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: stretch;
}

@media screen and (min-width: 48em) {
  .wc-cart-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 2.5rem;
  }

  .wc-cart-items-col {
    flex: 2;
    min-width: 0;
  }

  .cart-collaterals.wc-cart-summary-col {
    flex: 1;
    min-width: 0;
    position: sticky;
    top: 2rem;
  }
}

/* --- Cart heading row --- */

.wc-cart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.wc-cart-item-count {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary-text);
  background-color: var(--color-darker-gray);
  border-radius: calc(infinity * 1px);
  padding: 0.25rem 0.875rem;
  line-height: 1.5;
}

/* --- Cart items table --- */

.wc-cart-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.wc-cart-table thead th {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary-text);
  opacity: 0.55;
  padding: 0 1rem 1rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.wc-cart-table thead th.product-quantity {
  text-align: center;
}

.wc-cart-table thead th.product-subtotal {
  text-align: right;
}

.wc-cart-table .cart_item {
  border-bottom: 1px solid var(--color-border);
}

.wc-cart-table td {
  padding: 1.25rem 1rem;
  vertical-align: middle;
  color: var(--color-primary-text);
  font-size: 1rem;
  line-height: 1.5rem;
}

/* Thumbnail cell */
.wc-cart-table .product-thumbnail {
  width: 96px;
  padding-right: 0;
}

.wc-cart-table .product-thumbnail a {
  display: block;
}

.wc-cart-table .product-thumbnail img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 0.75rem;
  border: 1px solid var(--color-border);
  display: block;
}

/* Remove button cell */
.wc-cart-table .product-remove {
  width: 44px;
  padding-left: 0;
  padding-right: 0;
}

.wc-cart-table .product-remove .remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 0.5rem;
  border: 1px solid var(--color-border);
  color: var(--color-primary-text);
  font-size: 1.25rem;
  line-height: 1;
  text-decoration: none;
  opacity: 0.45;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
}

.wc-cart-table .product-remove .remove:hover {
  background-color: #e2401c;
  border-color: #e2401c;
  color: #fff;
  opacity: 1;
}

/* Product name */
.wc-cart-table .product-name a {
  color: var(--color-primary-text);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.wc-cart-table .product-name a:hover {
  color: var(--color-primary);
}

.wc-cart-table .product-name .variation,
.wc-cart-table .product-name .wc-item-meta {
  font-size: 0.875rem;
  color: #999;
  margin-top: 0.25rem;
}

.wc-cart-table .product-name .variation dt,
.wc-cart-table .product-name .variation dd {
  display: inline;
  margin: 0;
}

.wc-cart-table .product-name .backorder_notification {
  font-size: 0.75rem;
  color: #e2401c;
  margin-top: 0.25rem;
}

/* Price cell */
.wc-cart-table .product-price {
  font-size: 1rem;
  color: var(--color-primary-text);
}

/* Quantity cell */
.wc-cart-table .product-quantity {
  text-align: center;
}

.wc-cart-table .quantity {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 0.375rem 0.75rem;
  transition: border-color 0.15s ease;
}

.wc-cart-table .quantity:focus-within {
  border-color: var(--color-primary);
}

.wc-cart-table .quantity .qty {
  width: 3rem;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary-text);
  -moz-appearance: textfield;
  appearance: textfield;
}

.wc-cart-table .quantity .qty::-webkit-outer-spin-button,
.wc-cart-table .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Subtotal cell */
.wc-cart-table .product-subtotal {
  text-align: right;
  font-weight: 500;
}

/* --- Cart actions row (coupon + update cart) --- */

.wc-cart-table td.actions {
  padding-left: 0;
  padding-right: 0;
  border-bottom: none;
}

.wc-cart-table td.actions::before {
  display: none !important;
}

.wc-cart-actions-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1rem;
}

@media screen and (min-width: 48em) {
  .wc-cart-actions-row {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

.wc-coupon-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.wc-coupon-form .input-text {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.625rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary-text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease;
  min-width: 170px;
  font-family: var(--font-sans);
}

.wc-coupon-form .input-text::placeholder {
  color: #bbb;
  font-weight: 400;
}

.wc-coupon-form .input-text:focus {
  border-color: var(--color-primary);
}

/* --- Order Summary card (cart-totals.php) --- */

.wc-cart-totals-card {
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  padding: 2rem;
  background: #fff;
}

.wc-cart-totals-card h2 {
  margin: 0 0 1.5rem;
}

.wc-totals-table {
  width: 100%;
  border-collapse: collapse;
}

.wc-totals-table tr {
  border-bottom: 1px solid var(--color-border);
}

.wc-totals-table .order-total {
  border-bottom: none;
}

.wc-totals-table th,
.wc-totals-table td {
  padding: 0.875rem 0;
  font-size: 0.875rem;
  color: var(--color-primary-text);
  vertical-align: middle;
  line-height: 1.5;
}

.wc-totals-table th {
  font-weight: 500;
  text-align: left;
}

.wc-totals-table td {
  text-align: right;
  font-weight: 400;
}

/* Order total row — larger, accented with primary color */
.wc-totals-table .order-total th,
.wc-totals-table .order-total td {
  padding-top: 1.25rem;
  font-size: 1rem;
  font-weight: 500;
}

.wc-totals-table .order-total td {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: var(--color-primary);
}

/* Coupon discount rows */
.wc-totals-table .cart-discount td,
.wc-totals-table .cart-discount th {
  color: #0f834d;
}

.wc-totals-table .cart-discount td .woocommerce-remove-coupon {
  display: inline-block;
  font-size: 0.75rem;
  color: #999;
  text-decoration: none;
  margin-left: 0.5rem;
  transition: color 0.15s ease;
}

.wc-totals-table .cart-discount td .woocommerce-remove-coupon:hover {
  color: #e2401c;
}

/* Shipping rows */
.wc-totals-table .shipping td,
.wc-totals-table .shipping th {
  vertical-align: top;
}

/* Checkout coupon form button (classic + blocks) */
.checkout_coupon .button,
.woocommerce-form-coupon .button,
.wc-block-components-totals-coupon__button {
  font-weight: 500 !important;
  font-size: 1rem !important;
  letter-spacing: -0.015em !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  align-self: center !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: 10px !important;
  border: 0 !important;
  cursor: pointer !important;
  background-color: var(--color-dark-gray) !important;
  color: var(--color-primary-text) !important;
  text-align: center !important;
  line-height: 1 !important;
  transition:
    opacity 0.2s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease !important;
  min-height: unset !important;
  height: auto !important;
}

.checkout_coupon .button:hover,
.woocommerce-form-coupon .button:hover,
.wc-block-components-totals-coupon__button:hover {
  opacity: 0.88 !important;
  color: var(--color-primary-text) !important;
}

.wc-block-components-totals-coupon__button .wc-block-components-button__text {
  color: var(--color-primary-text) !important;
}

.wc-totals-table .shipping td {
  text-align: right;
}

.wc-totals-table .shipping td ul,
.wc-totals-table .shipping td p {
  font-size: 0.875rem;
  margin: 0;
  text-align: right;
  list-style: none;
  padding: 0;
}

.wc-totals-table .shipping td ul li {
  margin-bottom: 0.25rem;
}

/* Proceed to checkout button */
.wc-proceed-to-checkout {
  margin-top: 1.5rem;
}

.wc-proceed-to-checkout .checkout-button {
  display: block;
  width: 100%;
  text-align: center;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-sans);
  text-decoration: none;
  cursor: pointer;
  border: none;
  letter-spacing: -0.24px;
  line-height: 1.5;
  transition: opacity 0.15s ease;
}

.wc-proceed-to-checkout .checkout-button:hover {
  opacity: 0.88;
}

/* --- Empty Cart state --- */

.wc-empty-cart {
  display: flex;
  justify-content: center;
}

.wc-empty-cart-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  max-width: 420px;
  padding: 4rem 2rem;
}

.wc-empty-cart-icon {
  color: var(--color-darker-gray);
}

/* Hide the default WooCommerce "Your cart is empty." notice inside our custom empty state */
.wc-empty-cart-inner .woocommerce-info {
  display: none;
}

.wc-empty-cart-inner .return-to-shop {
  margin: 0.5rem 0 0;
}

/* --- WooCommerce notices — restyled to match theme --- */

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error {
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  list-style: none;
}

.woocommerce-notices-wrapper .woocommerce-message {
  background-color: #f0faf5;
  color: #0f834d;
}

.woocommerce-notices-wrapper .woocommerce-info {
  background-color: var(--color-dark-gray);
  color: var(--color-primary-text);
}

.woocommerce-notices-wrapper .woocommerce-error {
  background-color: #fff0ee;
  color: #e2401c;
}

/* =============================================================================
   MY ACCOUNT PAGE — Custom styles
   Matches the PRCN Lab design system (spacing, typography, colors, radius).
   ============================================================================= */

/* --- Layout: sidebar + content two-column flex --- */

.wc-myaccount-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: stretch;
}

#account_display_name_description em {
  color: #999;
  font-weight: 400;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: block;
}

@media screen and (min-width: 48em) {
  .wc-myaccount-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 3rem;
  }
}

/* --- Sidebar navigation --- */

.wc-account-nav {
  flex-shrink: 0;
}

/* Hidden on mobile — the floating bottom bar covers these actions. */
@media screen and (max-width: 47.999em) {
  .wc-account-nav {
    display: none;
  }
}

@media screen and (min-width: 48em) {
  .wc-account-nav {
    width: 240px;
    position: sticky;
    top: 2rem;
    padding: 0.5rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: 0 1px 2px rgba(45, 40, 50, 0.03);
  }
}

.wc-account-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.wc-account-nav ul li {
  position: relative;
}

.wc-account-nav ul li a {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0.875rem;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-primary-text);
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
  white-space: nowrap;
}

.wc-account-nav ul li a svg {
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.wc-account-nav ul li a:hover {
  background-color: var(--color-light-gray);
  color: var(--color-primary);
}

.wc-account-nav ul li a:hover svg {
  opacity: 1;
}

.wc-account-nav ul li.is-active > a,
.wc-account-nav ul li.woocommerce-MyAccount-navigation-link--active > a {
  background-color: color-mix(in oklab, var(--color-primary) 10%, transparent);
  color: var(--color-primary);
}

.wc-account-nav ul li.is-active > a svg,
.wc-account-nav ul li.woocommerce-MyAccount-navigation-link--active > a svg {
  opacity: 1;
}

/* Left rail accent on the active item. */
.wc-account-nav ul li.is-active::before,
.wc-account-nav ul li.woocommerce-MyAccount-navigation-link--active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 25%;
  bottom: 25%;
  width: 3px;
  border-radius: 3px;
  background: var(--color-primary);
}

/* --- Content area --- */

.wc-myaccount-content {
  flex: 1;
  min-width: 0;
}

/* --- Dashboard --- */

.prcn-dashboard {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.prcn-dashboard__header {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.prcn-dashboard__avatar {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--color-primary) 12%, transparent);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
}

.prcn-dashboard__greeting {
  min-width: 0;
}

.prcn-dashboard__hello {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--color-primary-text);
}

.prcn-dashboard__hello strong {
  font-weight: 600;
}

.prcn-dashboard__sub {
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--color-primary-text);
  opacity: 0.7;
}

.prcn-dashboard__sub a {
  color: var(--color-primary);
  text-decoration: none;
  margin-left: 0.375rem;
}

.prcn-dashboard__sub a:hover {
  text-decoration: underline;
}

.prcn-dashboard__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media screen and (min-width: 30em) {
  .prcn-dashboard__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (min-width: 64em) {
  .prcn-dashboard__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.prcn-stat {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1.125rem 1.25rem;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  text-decoration: none;
  color: var(--color-primary-text);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

a.prcn-stat:hover {
  border-color: color-mix(
    in oklab,
    var(--color-primary) 35%,
    var(--color-border)
  );
  box-shadow: 0 4px 14px rgba(45, 40, 50, 0.06);
  transform: translateY(-1px);
}

.prcn-stat__label {
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-primary-text);
  opacity: 0.6;
}

.prcn-stat__value {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary-text);
}

.prcn-stat__value .woocommerce-Price-amount {
  font-size: inherit;
  font-weight: inherit;
}

.prcn-stat__hint {
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--color-primary-text);
  opacity: 0.65;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.prcn-stat--accent {
  background: linear-gradient(
    135deg,
    color-mix(in oklab, var(--color-primary) 8%, #fff) 0%,
    #fff 100%
  );
  border-color: color-mix(
    in oklab,
    var(--color-primary) 25%,
    var(--color-border)
  );
}

.prcn-stat--accent .prcn-stat__value {
  color: var(--color-primary);
}

/* Admin Panel item in account sidebar nav */

.wc-account-nav__admin-item {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--color-border);
}

.wc-account-nav__admin-item > a {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%) !important;
  color: #fff !important;
  border-radius: 10px;
}

.wc-account-nav__admin-item > a svg {
  opacity: 0.75;
}

.wc-account-nav__admin-item > a:hover {
  background: linear-gradient(135deg, #1e293b 0%, #2d3f55 100%) !important;
  color: #fff !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.35);
}

.wc-account-nav__admin-item > a:hover svg {
  opacity: 1;
}

/* Status pill used inside .prcn-stat__hint */
.prcn-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.5rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  background: var(--color-dark-gray);
  color: var(--color-primary-text);
}

.prcn-status-pill--completed {
  background: #e6f4ea;
  color: #1e6f3a;
}

.prcn-status-pill--processing,
.prcn-status-pill--on-hold {
  background: #fff4e0;
  color: #8a5a00;
}

.prcn-status-pill--pending,
.prcn-status-pill--pending-payment {
  background: #eaeaf0;
  color: #555567;
}

.prcn-status-pill--cancelled,
.prcn-status-pill--failed,
.prcn-status-pill--refunded {
  background: #fde7e9;
  color: #8a1f2b;
}

/* --- Login / Register page layout --- */

.wc-login {
  width: 100%;
}

.wc-login-single {
  max-width: 440px;
  margin: 0 auto;
}

.wc-login-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media screen and (min-width: 48em) {
  .wc-login-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

/* --- Form card --- */

.wc-form-card {
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  padding: 2rem;
  background: #fff;
}

.wc-form-card h2 {
  margin: 0 0 1.75rem;
}

:is(.wc-form-card, .prcn-auth-form) .woocommerce-form-row {
  margin-bottom: 1.25rem;
}

:is(.wc-form-card, .prcn-auth-form) label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary-text);
  margin-bottom: 0.5rem;
}

:is(.wc-form-card, .prcn-auth-form) label .required {
  color: var(--color-primary);
  margin-left: 0.125rem;
}

:is(.wc-form-card, .prcn-auth-form) label .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Text inputs inside form cards / auth forms */
:is(.wc-form-card, .prcn-auth-form)
  :is(
    .input-text,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    textarea
  ) {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-primary-text);
  background: #fff;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

:is(.wc-form-card, .prcn-auth-form)
  :is(
    .input-text,
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="tel"],
    textarea
  ):focus {
  border-color: var(--color-primary);
}

:is(.wc-form-card, .prcn-auth-form) .input-text::placeholder,
:is(.wc-form-card, .prcn-auth-form) input::placeholder,
:is(.wc-form-card, .prcn-auth-form) textarea::placeholder {
  color: #bbb;
}

/* File input — style the inline "Choose file" trigger as a button */
:is(.wc-form-card, .prcn-auth-form) input[type="file"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.5rem;
  font-size: 0.875rem;
  font-family: var(--font-sans);
  color: var(--color-secondary-text);
  background: #fff;
  cursor: pointer;
}

:is(.wc-form-card, .prcn-auth-form) input[type="file"]::file-selector-button,
:is(.wc-form-card, .prcn-auth-form)
  input[type="file"]::-webkit-file-upload-button {
  margin-right: 0.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-light-gray, #f5f5f5);
  color: var(--color-primary-text);
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

:is(.wc-form-card, .prcn-auth-form)
  input[type="file"]::file-selector-button:hover,
:is(.wc-form-card, .prcn-auth-form)
  input[type="file"]::-webkit-file-upload-button:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* --- Pill tabs (Sign In / Register) --- */
.prcn-tabs .prcn-tab {
  flex: 1;
  padding: 0.625rem 1rem;
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--color-secondary-text);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition:
    color 0.2s ease,
    background-color 0.2s ease,
    box-shadow 0.2s ease;
}

.prcn-tabs .prcn-tab:hover {
  color: var(--color-primary-text);
}

.prcn-tabs .prcn-tab.is-active {
  background: #fff;
  color: var(--color-primary);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Inline tab-link buttons (e.g. "Create an account") */
[data-tab-link] {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

/* --- Modal (Not-a-physician dialog) --- */
.prcn-modal {
  opacity: 0;
  transition: opacity 200ms ease;
}

.prcn-modal.is-open {
  opacity: 1;
}

.prcn-modal__panel {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 220ms ease,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.prcn-modal.is-open .prcn-modal__panel {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .prcn-modal,
  .prcn-modal__panel {
    transition: none;
  }
}

/* Form actions row (remember-me + submit / submit only) */
.wc-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.wc-form-actions--end {
  justify-content: flex-end;
}

.wc-form-actions .btn {
  white-space: nowrap;
}

/* Remember-me checkbox label */
.wc-remember-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-primary-text);
  cursor: pointer;
  user-select: none;
}

.wc-remember-label input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  accent-color: var(--color-primary);
  cursor: pointer;
}

/* Forgot password link */
.woocommerce-LostPassword {
  margin-top: 1rem;
  margin-bottom: 0;
  font-size: 0.875rem;
  text-align: center;
}

.woocommerce-LostPassword a {
  color: var(--color-primary);
  text-decoration: none;
}

.woocommerce-LostPassword a:hover {
  text-decoration: underline;
}

/* Auto-generate password hint */
.wc-form-hint {
  font-size: 0.875rem;
  color: var(--color-primary-text);
  opacity: 0.6;
  margin: 0 0 1.25rem;
  line-height: 1.5;
}

/* --- Orders table --- */

.wc-account-orders-table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
}

.wc-account-orders-table thead th {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary-text);
  opacity: 0.55;
  padding: 0 1rem 1rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.wc-account-orders-table th,
.wc-account-orders-table td {
  padding: 1rem;
  vertical-align: middle;
  color: var(--color-primary-text);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.wc-account-orders-table tbody tr {
  border-bottom: 1px solid var(--color-border);
}

.wc-account-orders-table tbody tr:last-child {
  border-bottom: none;
}

/* Order number link */
.wc-account-orders-table .woocommerce-orders-table__cell-order-number a {
  color: var(--color-primary);
  font-weight: 500;
  text-decoration: none;
}

.wc-account-orders-table .woocommerce-orders-table__cell-order-number a:hover {
  text-decoration: underline;
}

/* Order status badge */
.wc-order-status {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: calc(infinity * 1px);
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
}

.wc-order-status--processing {
  background-color: #e8f4fd;
  color: #0d6da8;
}

.wc-order-status--completed {
  background-color: #edfaf3;
  color: #0f834d;
}

.wc-order-status--on-hold {
  background-color: #fef9ec;
  color: #b45309;
}

.wc-order-status--cancelled {
  background-color: #fff0ee;
  color: #c0392b;
}

.wc-order-status--refunded {
  background-color: var(--color-dark-gray);
  color: var(--color-primary-text);
}

.wc-order-status--failed {
  background-color: #fff0ee;
  color: #e2401c;
}

.wc-order-status--pending {
  background-color: var(--color-dark-gray);
  color: var(--color-primary-text);
}

/* Order action buttons */
.wc-order-action-btn {
  display: inline-block;
  padding: 0.4rem 0.875rem;
  border-radius: 8px;
  border: 1px solid var(--color-border);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-primary-text);
  text-decoration: none;
  line-height: 1.4;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
  margin-right: 0.375rem;
  white-space: nowrap;
}

.wc-order-action-btn:last-child {
  margin-right: 0;
}

.wc-order-action-btn:hover {
  background-color: var(--color-dark-gray);
  border-color: var(--color-darker-gray);
}

.wc-order-action-btn.pay {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

.wc-order-action-btn.pay:hover {
  opacity: 0.88;
  background-color: var(--color-primary);
}

/* Orders table pagination */
.woocommerce-pagination {
  display: flex;
  gap: 0.75rem;
  margin-top: 2rem;
}

.wc-pagination-btn {
  display: inline-block;
  padding: 0.5rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary-text);
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}

.wc-pagination-btn:hover {
  background-color: var(--color-dark-gray);
  border-color: var(--color-darker-gray);
}

/* --- Scoped form styles for edit-account / edit-address --- */

.wc-myaccount-content .woocommerce-EditAccountForm,
.wc-myaccount-content .woocommerce-address-fields {
  width: 100%;
}

.wc-myaccount-content .form-row {
  margin-bottom: 1.25rem;
}

.wc-myaccount-content .form-row label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary-text);
  margin-bottom: 0.5rem;
}

.wc-myaccount-content .form-row label .required {
  color: var(--color-primary);
  margin-left: 0.125rem;
}

.wc-myaccount-content .form-row label .optional {
  color: #999;
  font-weight: 400;
  margin-left: 0.25rem;
}

.wc-myaccount-content .form-row input.input-text,
.wc-myaccount-content .form-row select,
.wc-myaccount-content .form-row textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-primary-text);
  background: #fff;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.wc-myaccount-content .form-row input.input-text:focus,
.wc-myaccount-content .form-row select:focus,
.wc-myaccount-content .form-row textarea:focus {
  border-color: var(--color-primary);
}

.wc-myaccount-content .form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232d2832' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.wc-myaccount-content .woocommerce-account-fields .form-row {
  margin-bottom: 1.25rem;
}

.wc-myaccount-content fieldset {
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.wc-myaccount-content fieldset legend {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-primary-text);
  padding: 0 0.5rem;
}

/* Two-column form fields on wider screens */
@media screen and (min-width: 48em) {
  .wc-myaccount-content .col2-set {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }

  .wc-myaccount-content .col2-set .col-1,
  .wc-myaccount-content .col2-set .col-2 {
    margin: 0;
  }
}

/* Save button in account forms */
.wc-myaccount-content .woocommerce-Button,
.wc-myaccount-content button[type="submit"].woocommerce-Button,
.wc-myaccount-content input[type="submit"].woocommerce-Button {
  display: inline-block;
  padding: 0.625rem 1.5rem;
  border-radius: 10px;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-sans);
  border: none;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.5;
  transition: opacity 0.15s ease;
}

.wc-myaccount-content .woocommerce-Button:hover {
  opacity: 0.88;
}

/* Notices inside the content area */
.wc-myaccount-content .woocommerce-message,
.wc-myaccount-content .woocommerce-error,
.wc-myaccount-content .woocommerce-info {
  border-radius: 0.75rem;
  padding: 1rem 1.5rem;
  margin-bottom: 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  list-style: none;
}

.wc-myaccount-content .woocommerce-message {
  background-color: #f0faf5;
  color: #0f834d;
}

.wc-myaccount-content .woocommerce-info {
  background-color: var(--color-dark-gray);
  color: var(--color-primary-text);
}

/* ============================================================
   Account Settings — tabbed form
   form-edit-account.php
   ============================================================ */

/* Page header above the tabs */
.prcn-as-header {
  margin-bottom: 1.75rem;
}

.prcn-as-header h2 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.4px;
  color: var(--color-primary-text);
  margin: 0 0 0.25rem;
}

.prcn-as-header p {
  font-size: 0.875rem;
  color: var(--color-secondary-text);
  margin: 0;
  line-height: 1.5;
}

/* Section groups — first has no top border */
.prcn-as-section + .prcn-as-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
}

/* Small-caps section label */
.prcn-as-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--color-secondary-text);
  margin: 0 0 1.25rem;
}

/* Custom field row — replaces WC's <p class="form-row"> */
.prcn-field-row {
  margin-bottom: 1.25rem;
}

.prcn-field-row > label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary-text);
  margin-bottom: 0.375rem;
}

.prcn-field-row > label .required {
  color: var(--color-primary);
  margin-left: 0.125rem;
}

.prcn-field-row > label .optional {
  color: #999;
  font-weight: 400;
  font-size: 0.8125rem;
  margin-left: 0.25rem;
}

.prcn-field-row input.input-text,
.prcn-field-row input[type="text"],
.prcn-field-row input[type="email"],
.prcn-field-row input[type="password"] {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-primary-text);
  background: #fff;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.prcn-field-row input.input-text:focus,
.prcn-field-row input[type="text"]:focus,
.prcn-field-row input[type="email"]:focus,
.prcn-field-row input[type="password"]:focus {
  border-color: var(--color-primary);
}

/* Muted helper text beneath an input */
.prcn-field-hint {
  margin: 0.375rem 0 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--color-secondary-text);
}

/* Two-column grid for first / last name */
.prcn-field-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

@media (max-width: 480px) {
  .prcn-field-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* Form action bar — separator + right-aligned submit */
.prcn-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding-top: 1.5rem;
  margin-top: 2rem;
  border-top: 1px solid var(--color-border);
}

/* Password tab — intro sentence above the fields */
.prcn-pw-intro {
  font-size: 0.875rem;
  color: var(--color-secondary-text);
  line-height: 1.6;
  margin: 0 0 1.75rem;
}

/* Soft delete area at the bottom of the Password tab */
.prcn-soft-delete {
  display: flex;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.prcn-soft-delete__btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-family: var(--font-sans);
  color: var(--color-secondary-text);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 0.15s ease;
}

.prcn-soft-delete__btn:hover {
  color: #c0392b;
}

.prcn-soft-delete__btn svg {
  flex-shrink: 0;
  opacity: 0.55;
  transition: opacity 0.15s ease;
}

.prcn-soft-delete__btn:hover svg {
  opacity: 1;
}

/* Account Settings — underline tab style
   Overrides the global pill tabs component scoped to this page only */
.prcn-ast-tabs {
  justify-content: flex-start;
  margin-bottom: 2rem;
}

.prcn-ast-tabs .tab-container {
  border: none;
  border-radius: 0;
  border-bottom: 1px solid var(--color-border);
  padding: 0;
  gap: 0;
  width: 100%;
}

.prcn-ast-tabs .tab-container .indicator {
  display: none;
}

.prcn-ast-tabs .tab-container .tab_label {
  height: 44px;
  padding: 0 1.25rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-primary-text);
  opacity: 0.5;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  margin-bottom: -1px;
  transition:
    opacity 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.prcn-ast-tabs .tab-container .tab_label:hover {
  opacity: 0.8;
}

.prcn-ast-tabs .tab-container .tab:checked + .tab_label {
  opacity: 1;
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* --- Addresses list view (my-address.php) --- */

/* Intro paragraph above the address cards. */
.wc-myaccount-content > p:first-of-type {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-primary-text);
  opacity: 0.7;
  margin: 0 0 1.5rem;
}

.wc-myaccount-content .woocommerce-Addresses {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  /* Override WC's legacy float/column layout. */
  float: none !important;
  width: auto !important;
}

@media screen and (min-width: 40em) {
  .wc-myaccount-content .woocommerce-Addresses {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.wc-myaccount-content .woocommerce-Address {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1.25rem 1.375rem;
  /* Reset WC's u-column float/width rules. */
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.wc-myaccount-content .woocommerce-Address:hover {
  border-color: color-mix(
    in oklab,
    var(--color-primary) 25%,
    var(--color-border)
  );
  box-shadow: 0 4px 14px rgba(45, 40, 50, 0.05);
}

.wc-myaccount-content .woocommerce-Address-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.wc-myaccount-content .woocommerce-Address-title h2,
.wc-myaccount-content .woocommerce-Address-title h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-primary-text);
}

.wc-myaccount-content .woocommerce-Address-title .edit {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--color-primary) 10%, transparent);
  color: var(--color-primary);
  font-size: 0.8125rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    color 0.15s ease;
}

.wc-myaccount-content .woocommerce-Address-title .edit:hover {
  background: var(--color-primary);
  color: #fff;
}

.wc-myaccount-content .woocommerce-Address address {
  margin: 0;
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--color-primary-text);
}

/* Empty-state text ("You have not set up this type of address yet."). */
.wc-myaccount-content .woocommerce-Address address:empty::before,
.wc-myaccount-content .woocommerce-Address address:not(:has(br)):not(:has(*)) {
  font-size: 0.875rem;
  color: var(--color-primary-text);
  opacity: 0.55;
  font-style: italic;
}

.wc-myaccount-content .woocommerce-error {
  background-color: #fff0ee;
  color: #e2401c;
}

/* =============================================================================
   SHOP / ARCHIVE PAGE — Custom styles
   Matches the PRCN Lab design system (spacing, typography, colors, radius).
   ============================================================================= */

/* --- Toolbar: result count + ordering --- */

.wc-archive-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

/* Notices are full-width inside the toolbar */
.wc-archive-toolbar .woocommerce-notices-wrapper {
  flex: 0 0 100%;
}

.wc-result-count {
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-primary-text);
  opacity: 0.6;
  margin: 0;
}

/* Sort-by select */
.wc-ordering {
  margin: 0;
}

.wc-orderby-select {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.5rem 2.25rem 0.5rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary-text);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232d2832' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  font-family: var(--font-sans);
  cursor: pointer;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s ease;
}

.wc-orderby-select:focus {
  border-color: var(--color-primary);
}

/* --- Shop archive header (taxonomy title + description) --- */

.woocommerce-products-header {
  margin-bottom: 2rem;
}

.woocommerce-products-header__title {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--color-primary-text);
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}

.term-description {
  font-size: 0.9375rem;
  color: var(--color-primary-text);
  opacity: 0.65;
  line-height: 1.6;
  max-width: 680px;
}

/* --- Products grid --- */

.wc-products-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media screen and (min-width: 48em) {
  .wc-products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }

  .wc-products-grid.columns-1 {
    grid-template-columns: repeat(1, 1fr);
  }
  .wc-products-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .wc-products-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .wc-products-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
  }
  .wc-products-grid.columns-5 {
    grid-template-columns: repeat(5, 1fr);
  }
  .wc-products-grid.columns-6 {
    grid-template-columns: repeat(6, 1fr);
  }
}

/* --- Individual product item --- */

.wc-product-item {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
}

/* --- Product card --- */

.wc-product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  overflow: hidden;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.wc-product-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  border-color: var(--color-darker-gray);
}

/* --- Image area --- */

.wc-product-card__image {
  position: relative;
  background-color: var(--color-dark-gray);
  overflow: hidden;
  aspect-ratio: 1 / 1;
}

.wc-product-card__image-link {
  display: block;
  width: 100%;
  height: 100%;
}

.wc-product-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.25rem;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

.wc-product-card:hover .wc-product-card__img {
  transform: scale(1.04);
}

/* Sale badge */
.wc-product-card__image .onsale {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.2rem 0.625rem;
  border-radius: calc(infinity * 1px);
  margin: 0;
  min-width: 0;
  min-height: 0;
}

/* --- Add-to-cart overlay (slides up from bottom on hover) --- */

.wc-product-card__atc {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  transform: translateY(110%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 3;
}

.woocommerce-variation-add-to-cart {
  display: flex;
  gap: 8px;
}

.wc-product-card:hover .wc-product-card__atc {
  transform: translateY(0);
}

/* Style the WooCommerce-generated add-to-cart button */
.wc-product-card__atc .button,
.wc-product-card__atc a.button {
  display: block;
  width: 100%;
  text-align: center;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 10px;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: var(--font-sans);
  text-decoration: none;
  border: none;
  cursor: pointer;
  line-height: 1.5;
  letter-spacing: -0.01em;
  transition: opacity 0.15s ease;
  box-sizing: border-box;
}

.wc-product-card__atc .button:hover,
.wc-product-card__atc a.button:hover {
  opacity: 0.88;
  color: #fff;
}

.wc-product-card__atc .button.added::after {
  display: none;
}

/* --- Card body (link to product) --- */

.wc-product-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding: 1rem 1.125rem 1.25rem;
  flex: 1;
  text-decoration: none;
  color: inherit;
}

.wc-product-card__body:hover {
  text-decoration: none;
}

/* Category label */
.wc-product-card__cats {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--color-primary);
  text-transform: uppercase;
  line-height: 1.4;
}

/* Product name */
.wc-product-card__title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--color-primary-text);
  line-height: 1.35;
  letter-spacing: -0.02em;
}

/* Price */
.wc-product-card__price {
  margin-top: 0.125rem;
  font-size: 0.9375rem;
  color: var(--color-primary-text);
  line-height: 1.4;
}

.wc-product-card__price del {
  opacity: 0.45;
  margin-right: 0.375rem;
  font-weight: 400;
}

.wc-product-card__price ins {
  text-decoration: none;
  font-weight: 500;
}

/* --- No products found --- */

.woocommerce-info.wc-no-products {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 1rem;
  background-color: var(--color-dark-gray);
  color: var(--color-primary-text);
}

/* --- Shop pagination --- */

nav.woocommerce-pagination {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
}

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

nav.woocommerce-pagination ul.page-numbers li {
  margin: 0;
}

nav.woocommerce-pagination ul.page-numbers .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.625rem;
  border-radius: 0.625rem;
  border: 1px solid var(--color-border);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary-text);
  text-decoration: none;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

nav.woocommerce-pagination ul.page-numbers .page-numbers:hover {
  background-color: var(--color-dark-gray);
  border-color: var(--color-darker-gray);
}

nav.woocommerce-pagination ul.page-numbers .page-numbers.current {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

nav.woocommerce-pagination ul.page-numbers .next,
nav.woocommerce-pagination ul.page-numbers .prev {
  font-size: 1rem;
  padding: 0 0.75rem;
}

/* =============================================================================
   SINGLE PRODUCT PAGE — Custom styles
   Matches the PRCN Lab design system (spacing, typography, colors, radius).
   ============================================================================= */

/* --- Breadcrumb (appears outside container, inside <main>) --- */

.woocommerce-breadcrumb {
  margin: 0 auto;
  padding: 1rem 20px 0;
  font-size: 0.8125rem;
  color: var(--color-primary-text);
  opacity: 0.55;
  padding-left: 5%;
  padding-right: 5%;
}

.woocommerce-breadcrumb a {
  color: var(--color-primary-text);
  text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
  color: var(--color-primary);
}

/* --- Two-column top section (gallery + summary) --- */

.wc-single-top {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 4rem;
}

@media screen and (min-width: 48em) {
  .wc-single-top {
    flex-direction: row;
    align-items: flex-start;
    gap: 4rem;
  }

  .wc-single-gallery-col {
    flex: 0 0 40%;
    max-width: 40%;
    min-width: 0;
  }

  .wc-single-summary-col {
    flex: 1;
    min-width: 0;
    position: sticky;
    top: 2rem;
  }
}

/* --- Gallery column --- */

.wc-single-gallery-col {
  position: relative;
}

/* Sale badge positioned over the gallery */
.wc-single-gallery-col .onsale {
  position: absolute;
  top: 0.875rem;
  left: 0.875rem;
  z-index: 10;
  background-color: var(--color-primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.25rem 0.75rem;
  border-radius: calc(infinity * 1px);
  margin: 0;
  min-width: 0;
  min-height: 0;
}

/* Main gallery wrapper */
.wc-single-gallery-col .woocommerce-product-gallery {
  background-color: var(--color-dark-gray);
  border-radius: 1rem;
  overflow: hidden;
  margin: 0;
}

/* Main image area — square aspect ratio, image contained */
.woocommerce-product-gallery .flex-viewport {
  margin: 0;
}

.woocommerce-product-gallery__image a {
  display: block;
}

.woocommerce-product-gallery__image img,
.woocommerce-product-gallery .wp-post-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 2rem;
  box-sizing: border-box;
  transition: transform 0.3s ease;
}

/* Zoom trigger button */
.woocommerce-product-gallery__trigger {
  position: absolute;
  top: 0.875rem;
  right: 0.875rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(255, 255, 255, 0.88);
  border-radius: 0.5rem;
  backdrop-filter: blur(4px);
  transition: background 0.15s ease;
  text-indent: -9999px;
  overflow: hidden;
}

.woocommerce-product-gallery__trigger::before {
  content: "";
  display: block;
  width: 1rem;
  height: 1rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232d2832' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.35-4.35'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  flex-shrink: 0;
  text-indent: 0;
}

.woocommerce-product-gallery__trigger:hover {
  background: rgba(255, 255, 255, 1);
}

/* Thumbnail strip */
.flex-control-nav.flex-control-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0 0.875rem 0.875rem;
  margin: 0;
  list-style: none;
  background-color: var(--color-dark-gray);
}

.flex-control-thumbs li {
  margin: 0;
}

.flex-control-thumbs img {
  display: block;
  object-fit: contain;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 0.5rem;
  padding: 0.375rem;
  box-sizing: border-box;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition:
    opacity 0.15s ease,
    border-color 0.15s ease;
}

.flex-control-thumbs img.flex-active,
.flex-control-thumbs img:hover {
  opacity: 1;
  border-color: var(--color-primary);
}

/* --- Summary column --- */

/* Category label injected by plugins or above the title */
.wc-single-summary-col .wc-single-cat-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 0.625rem;
}

/* Product title */
.wc-single-summary-col .product_title.entry-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500;
  color: var(--color-primary-text);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 0.875rem;
}

/* Star rating row */
.wc-single-summary-col .woocommerce-product-rating {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-bottom: 1.125rem;
}

.wc-single-summary-col .woocommerce-review-link {
  font-size: 0.8125rem;
  color: var(--color-primary-text);
  opacity: 0.55;
  text-decoration: none;
}

.wc-single-summary-col .woocommerce-review-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Price */
.wc-single-summary-col p.price,
.wc-single-summary-col span.price {
  font-size: 1.875rem;
  font-weight: 500;
  color: var(--color-primary-text);
  letter-spacing: -0.04em;
  line-height: 1;
  margin: 0 0 1.5rem;
  display: block;
}

.wc-single-summary-col p.price del,
.wc-single-summary-col span.price del {
  opacity: 0.38;
  font-size: 1.25rem;
  font-weight: 400;
  margin-right: 0.5rem;
}

.wc-single-summary-col p.price ins,
.wc-single-summary-col span.price ins {
  text-decoration: none;
  color: var(--color-primary);
}

/* Short description */
.wc-single-summary-col .woocommerce-product-details__short-description {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5rem;
  color: var(--color-primary-text);
  opacity: 1;
  margin-bottom: 1.75rem;
}

.wc-single-summary-col .woocommerce-product-details__short-description p {
  margin: 0 0 1rem;
}

.wc-single-summary-col
  .woocommerce-product-details__short-description
  p:last-child {
  margin-bottom: 0;
}

/* Stock status */
.wc-single-summary-col .stock {
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.wc-single-summary-col .stock.in-stock {
  color: #0f834d;
}

.wc-single-summary-col .stock.out-of-stock {
  color: #e2401c;
}

/* Add-to-cart form */
.wc-single-summary-col .cart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

/* Simple products: qty + button on the same row */
.wc-single-summary-col form.cart:not(.variations_form) {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 0.75rem;
}

/* Variable products: qty + button row inside variations form */
.wc-single-summary-col .woocommerce-variation-add-to-cart {
  display: flex;
  gap: 0.75rem;
  align-items: stretch;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}

/* Quantity input */
.wc-single-summary-col .quantity {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.5rem 0.875rem;
  flex-shrink: 0;
  transition: border-color 0.15s ease;
}

.wc-single-summary-col .quantity:focus-within {
  border-color: var(--color-primary);
}

.wc-single-summary-col .quantity .qty {
  width: 3rem;
  text-align: center;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-primary-text);
  font-family: var(--font-sans);
  -moz-appearance: textfield;
  appearance: textfield;
}

.wc-single-summary-col .quantity .qty::-webkit-outer-spin-button,
.wc-single-summary-col .quantity .qty::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Add to cart button */
.wc-single-summary-col .single_add_to_cart_button {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 13rem;
  text-align: center;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 10px;
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: var(--font-sans);
  border: none;
  cursor: pointer;
  line-height: 1.5;
  letter-spacing: -0.01em;
  transition:
    opacity 0.15s ease,
    transform 0.15s ease;
}

.wc-single-summary-col .single_add_to_cart_button:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.wc-single-summary-col .single_add_to_cart_button:active {
  transform: translateY(0);
}

.wc-single-summary-col .single_add_to_cart_button.loading {
  opacity: 0.65;
  cursor: wait;
}

.wc-single-summary-col .single_add_to_cart_button.disabled,
.wc-single-summary-col .single_add_to_cart_button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

@media screen and (max-width: 480px) {
  .wc-single-summary-col .single_add_to_cart_button {
    flex: 1 1 100%;
    min-width: 0;
  }
}

/* --- Variations table (variable products) --- */
.wc-single-summary-col table.variations {
  width: 100%;
  border: none;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0;
  background: transparent;
}

.wc-single-summary-col table.variations tbody {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  width: 100%;
}

.wc-single-summary-col table.variations tr {
  display: flex;
  flex-direction: column;
  gap: 0.4375rem;
  width: 100%;
  background: transparent;
}

.wc-single-summary-col table.variations th.label,
.wc-single-summary-col table.variations td.value {
  display: block;
  padding: 0;
  border: none;
  background: transparent;
  width: 100%;
}

.wc-single-summary-col table.variations th.label label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--color-primary-text);
  opacity: 0.65;
  text-transform: uppercase;
  margin: 0;
}

.wc-single-summary-col table.variations td.value {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.wc-single-summary-col table.variations td.value select {
  flex: 0 1 auto;
  width: auto;
  min-width: 11rem;
  max-width: 18rem;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.6875rem 2.75rem 0.6875rem 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: var(--font-sans);
  color: var(--color-primary-text);
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%232d2832' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  cursor: pointer;
  outline: none;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.wc-single-summary-col table.variations td.value select:hover {
  border-color: var(--color-primary-text);
}

.wc-single-summary-col table.variations td.value select:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(45, 40, 50, 0.06);
}

.wc-single-summary-col .reset_variations {
  font-size: 0.8125rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.wc-single-summary-col .reset_variations:hover {
  text-decoration: underline;
}

/* Variation details (price + availability) shown when a variation is picked */
.wc-single-summary-col .woocommerce-variation {
  margin: 0;
}

.wc-single-summary-col .woocommerce-variation-price .price {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-primary-text);
  letter-spacing: -0.03em;
  margin: 0;
  display: block;
}

.wc-single-summary-col .woocommerce-variation-price .price del {
  opacity: 0.4;
  font-size: 1.125rem;
  margin-right: 0.375rem;
}

.wc-single-summary-col .woocommerce-variation-price .price ins {
  text-decoration: none;
  color: var(--color-primary);
}

.wc-single-summary-col .woocommerce-variation-availability {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--color-primary-text);
  opacity: 0.7;
  margin-top: 0.375rem;
}

.wc-single-summary-col .woocommerce-variation-description {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--color-primary-text);
  opacity: 0.7;
  margin-top: 0.5rem;
}

/* Product meta (SKU, categories, tags) */
.wc-single-summary-col .product_meta {
  font-size: 0.875rem;
  color: var(--color-primary-text);
  border-top: 1px solid var(--color-border);
  padding-top: 1.25rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.wc-single-summary-col .product_meta > span {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  align-items: baseline;
}

.wc-single-summary-col .product_meta .sku_wrapper,
.wc-single-summary-col .product_meta .posted_in,
.wc-single-summary-col .product_meta .tagged_as {
  opacity: 0.55;
}

.wc-single-summary-col .product_meta a {
  color: var(--color-primary);
  opacity: 1;
  text-decoration: none;
}

.wc-single-summary-col .product_meta a:hover {
  text-decoration: underline;
}

/* --- Tabs section --- */

.wc-single-below .woocommerce-tabs {
  margin-bottom: 4rem;
}

/* Tab navigation */
.woocommerce-tabs ul.tabs.wc-tabs {
  display: flex;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--color-border);
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  gap: 0;
}

.woocommerce-tabs ul.tabs li {
  margin: 0;
  position: relative;
}

.woocommerce-tabs ul.tabs li a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.25rem;
  letter-spacing: -0.16px;
  color: var(--color-primary-text);
  opacity: 0.5;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition:
    opacity 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.woocommerce-tabs ul.tabs li a .wc-tab-icon {
  flex-shrink: 0;
}

.woocommerce-tabs ul.tabs li a:hover {
  opacity: 0.85;
}

.woocommerce-tabs ul.tabs li.active a {
  color: var(--color-primary);
  opacity: 1;
  border-bottom-color: var(--color-primary);
}

/* Tab panels — hidden by default; WooCommerce JS shows the active one */
.woocommerce-Tabs-panel {
  display: none;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--color-primary-text);
}

.woocommerce-Tabs-panel.active {
  display: block;
}

/* Default text inside any panel (custom prcn_* tabs, etc.) */
.woocommerce-Tabs-panel p,
.woocommerce-Tabs-panel ul,
.woocommerce-Tabs-panel ol {
  margin: 0 0 1rem;
}

.woocommerce-Tabs-panel p:last-child,
.woocommerce-Tabs-panel ul:last-child,
.woocommerce-Tabs-panel ol:last-child {
  margin-bottom: 0;
}

.woocommerce-Tabs-panel h3 {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1.75rem;
  letter-spacing: -0.5px;
  margin: 1.75rem 0 0.75rem;
  color: var(--color-primary-text);
}

.woocommerce-Tabs-panel h4 {
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5rem;
  letter-spacing: -0.3px;
  margin: 1.5rem 0 0.5rem;
  color: var(--color-primary-text);
}

/* WooCommerce adds a visually-hidden h2 panel heading — keep it accessible.
   Also hide the <h2> we inject for prcn_* tabs (label echoed as a heading by
   prcn_lab_render_product_tab) — the tab title already labels the panel. */
.woocommerce-Tabs-panel h2 {
  display: none;
}

/* Additional information panel */
.woocommerce-product-attributes {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5rem;
}

.woocommerce-product-attributes th,
.woocommerce-product-attributes td {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
  line-height: 1.5;
}

.woocommerce-product-attributes th {
  font-weight: 500;
  color: var(--color-primary-text);
  opacity: 0.55;
  width: 35%;
  padding-right: 1rem;
}

.woocommerce-product-attributes td {
  color: var(--color-primary-text);
}

.woocommerce-product-attributes p {
  margin: 0;
}

/* Reviews panel */
.woocommerce-Tabs-panel--reviews #reviews {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.5rem;
  color: var(--color-primary-text);
}

.woocommerce-Tabs-panel--reviews #reply-title {
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--color-primary-text);
  margin: 0 0 1.25rem;
}

.woocommerce-Tabs-panel--reviews .comment-form-rating label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary-text);
  margin-bottom: 0.375rem;
  display: block;
}

.woocommerce-Tabs-panel--reviews .comment-form-comment label,
.woocommerce-Tabs-panel--reviews .comment-form-author label,
.woocommerce-Tabs-panel--reviews .comment-form-email label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary-text);
  margin-bottom: 0.375rem;
  display: block;
}

.woocommerce-Tabs-panel--reviews input[type="text"],
.woocommerce-Tabs-panel--reviews input[type="email"],
.woocommerce-Tabs-panel--reviews textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  color: var(--color-primary-text);
  outline: none;
  transition: border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
  margin-bottom: 1rem;
}

.woocommerce-Tabs-panel--reviews input[type="text"]:focus,
.woocommerce-Tabs-panel--reviews input[type="email"]:focus,
.woocommerce-Tabs-panel--reviews textarea:focus {
  border-color: var(--color-primary);
}

.woocommerce-Tabs-panel--reviews #submit {
  background-color: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.625rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.woocommerce-Tabs-panel--reviews #submit:hover {
  opacity: 0.88;
}

/* --- Related products & Up-sells --- */

.wc-single-below .related.products,
.wc-single-below .up-sells.products {
  margin-top: 1rem;
  padding-top: 3rem;
  border-top: 1px solid var(--color-border);
}

.wc-single-below .related.products > h2,
.wc-single-below .up-sells.products > h2 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  color: var(--color-primary-text);
  letter-spacing: -0.03em;
  margin: 0 0 1.5rem;
}

/* Related / up-sell grids reuse the archive product card styles.
   Mobile: 2 cols, tablet & desktop: 4 cols. */
.wc-single-below .related.products .wc-products-grid,
.wc-single-below .up-sells.products .wc-products-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media screen and (min-width: 40em) {
  .wc-single-below .related.products .wc-products-grid,
  .wc-single-below .up-sells.products .wc-products-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* =============================================================================
   ORDER RECEIVED / THANK YOU PAGE — Custom styles
   Matches the PRCN Lab design system (spacing, typography, colors, radius).
   ============================================================================= */

.wc-order-received-page {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

/* --- Hero block (success message) --- */

.wc-order-received-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  background-color: var(--color-light-gray);
}

.wc-order-received-hero__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: calc(infinity * 1px);
  background-color: #edfaf3;
  color: #0f834d;
  margin-bottom: 0.25rem;
}

.wc-order-received-hero__message {
  max-width: 520px;
  opacity: 0.7;
}

/* --- Failed payment state --- */

.wc-order-received-failed {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.875rem;
  text-align: center;
  padding: 3rem 2rem;
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  background-color: var(--color-light-gray);
}

.wc-order-received-failed-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: calc(infinity * 1px);
  background-color: #fff0ee;
  color: #e2401c;
  margin-bottom: 0.25rem;
}

.wc-order-received-failed-text {
  max-width: 520px;
  opacity: 0.7;
}

.wc-order-received-failed-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 0.75rem;
}

/* --- Order overview card (number / date / email / total / payment) --- */

.wc-order-overview-card {
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  padding: 1.5rem 2rem;
  background: #fff;
}

.wc-order-overview {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media screen and (min-width: 48em) {
  .wc-order-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media screen and (min-width: 64em) {
  .wc-order-overview {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.wc-order-overview__item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.wc-order-overview__item dt {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-primary-text);
  opacity: 0.55;
  margin: 0;
}

.wc-order-overview__item dd {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-primary-text);
  margin: 0;
  word-break: break-word;
}

.wc-order-overview__total {
  color: var(--color-primary) !important;
  font-size: 1.125rem !important;
}

.wc-order-overview__total .woocommerce-Price-amount {
  font-weight: 500;
}

/* --- Order details card (line items + totals) --- */

.wc-order-details-card {
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  padding: 2rem;
  background: #fff;
}

.wc-order-details-card .woocommerce-order-details__title {
  margin: 0 0 1.5rem;
}

.wc-order-details-table {
  width: 100%;
  border-collapse: collapse;
}

.wc-order-details-table thead th {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary-text);
  opacity: 0.55;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.wc-order-details-table thead th.product-total {
  text-align: right;
}

.wc-order-details-table tbody .wc-order-line-item {
  border-bottom: 1px solid var(--color-border);
}

.wc-order-details-table tbody td {
  padding: 1.25rem 0;
  vertical-align: top;
  color: var(--color-primary-text);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.wc-order-details-table tbody td.product-total {
  text-align: right;
  font-weight: 500;
  white-space: nowrap;
}

/* Line item layout: thumbnail + body */
.wc-order-line-item__inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.wc-order-line-item__thumb {
  flex-shrink: 0;
}

.wc-order-line-item__thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 0.625rem;
  border: 1px solid var(--color-border);
  display: block;
}

.wc-order-line-item__body {
  flex: 1;
  min-width: 0;
}

.wc-order-line-item__body a {
  color: var(--color-primary-text);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.wc-order-line-item__body a:hover {
  color: var(--color-primary);
}

.wc-order-line-item__body .product-quantity {
  font-weight: 400;
  color: var(--color-primary-text);
  opacity: 0.55;
  margin-left: 0.375rem;
  font-size: 0.875rem;
}

.wc-order-line-item__body .wc-item-meta,
.wc-order-line-item__body .variation {
  margin: 0.375rem 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.8125rem;
  color: var(--color-primary-text);
  opacity: 0.6;
}

.wc-order-line-item__body .wc-item-meta li {
  margin: 0;
}

.wc-order-line-item__body .variation dt,
.wc-order-line-item__body .variation dd {
  display: inline;
  margin: 0;
}

/* Purchase note row */
.wc-order-purchase-note td {
  padding: 1rem 1.25rem;
  background-color: var(--color-light-gray);
  border-radius: 0.75rem;
  font-size: 0.875rem;
  color: var(--color-primary-text);
  margin-top: 0.75rem;
}

.wc-order-purchase-note td p {
  margin: 0;
}

/* Totals tfoot */
.wc-order-details-totals tr {
  border-bottom: 1px solid var(--color-border);
}

.wc-order-details-totals tr:last-child {
  border-bottom: none;
}

.wc-order-details-totals th,
.wc-order-details-totals td {
  padding: 0.875rem 0;
  font-size: 0.875rem;
  color: var(--color-primary-text);
  vertical-align: middle;
  line-height: 1.5;
}

.wc-order-details-totals th {
  font-weight: 500;
  text-align: left;
}

.wc-order-details-totals td {
  text-align: right;
  font-weight: 400;
}

/* Final order total row — accent with primary color */
.wc-order-details-totals tr:last-child th,
.wc-order-details-totals tr:last-child td {
  padding-top: 1.25rem;
  font-size: 1rem;
  font-weight: 500;
}

.wc-order-details-totals tr:last-child td {
  font-size: 1.5rem;
  letter-spacing: -0.5px;
  color: var(--color-primary);
}

/* Customer note row */
.wc-order-details-note td {
  font-style: italic;
  color: var(--color-primary-text);
  opacity: 0.7;
}

/* Order actions row inside the details table */
.wc-order-details-actions th {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary-text);
  opacity: 0.55;
  text-align: left;
  padding: 1rem 0;
}

.wc-order-details-actions td {
  text-align: right;
  padding: 1rem 0;
}

/* --- Customer details: billing + shipping address cards --- */

.wc-order-customer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
}

@media screen and (min-width: 48em) {
  .wc-order-customer__grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.wc-order-address-card {
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  padding: 2rem;
  background: #fff;
  margin: 0;
  width: auto;
  float: none;
}

.wc-order-address-card .woocommerce-column__title {
  margin: 0 0 1.25rem;
}

.wc-order-address {
  font-style: normal;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--color-primary-text);
}

.wc-order-address__contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.625rem 0 0;
  font-size: 0.875rem;
  color: var(--color-primary-text);
  opacity: 0.85;
  word-break: break-word;
}

.wc-order-address__contact span {
  flex-shrink: 0;
  font-size: 0.9375rem;
  line-height: 1;
}

/* --- Payment-method specific notices (BACS instructions, etc.) --- */

.wc-order-received-page .woocommerce-order-overview {
  /* Hide the default WooCommerce overview list — we render our own card */
  display: none;
}

.wc-order-received-page .woocommerce-bacs-bank-details {
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  padding: 2rem;
  background: #fff;
  margin: 0;
}

.wc-order-received-page
  .woocommerce-bacs-bank-details
  .wc-bacs-bank-details-account-name {
  font-weight: 500;
  color: var(--color-primary-text);
  margin: 0 0 0.5rem;
}

.wc-order-received-page .woocommerce-bacs-bank-details ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.875rem;
  color: var(--color-primary-text);
}

.wc-order-received-page .woocommerce-bacs-bank-details ul li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.wc-order-received-page .woocommerce-bacs-bank-details ul li:last-child {
  border-bottom: none;
}

/* Stack columns on small screens for the responsive shop_table */
@media screen and (max-width: 47.99em) {
  .wc-order-details-table thead {
    display: none;
  }

  .wc-order-details-table tbody td.product-total {
    text-align: right;
  }

  /* Counter the global shop_table_responsive rule — we already lay out items
     with a flex row, so we don't want the "Product:" prefix or right-align. */
  .wc-order-details-table tbody td.product-name {
    display: block;
    text-align: left;
  }

  .wc-order-details-table tbody td.product-name::before {
    display: none;
  }
}

/* =============================================================================
   CLASSIC SHORTCODE CHECKOUT  — Design matches block checkout
   ============================================================================= */

/* ---- Two-column page layout (forms | order summary) ---- */

.prcn-checkout-layout {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.woocommerce-checkout,
.prcn-checkout-sidebar {
  width: 100%;
  min-width: 0;
}

@media screen and (min-width: 900px) {
  .prcn-checkout-layout {
    flex-direction: row;
    align-items: flex-start;
    gap: 5rem;
  }

  .prcn-checkout-layout > .woocommerce-checkout {
    flex: 60 1 0%;
  }

  .prcn-checkout-sidebar {
    flex: 40 1 0%;
  }
}

/* ---- Reset float-based col layout inside #customer_details ---- */

#customer_details.col2-set {
  display: block;
  overflow: visible;
}

#customer_details .col-1,
#customer_details .col-2 {
  float: none;
  width: 100%;
  margin: 0;
}

/* ---- Form sections — open layout, no card border ---- */

.woocommerce-billing-fields,
.woocommerce-shipping-fields,
.woocommerce-additional-fields {
  margin-bottom: 2rem;
}

/* ---- Section headings — match block checkout title typography ---- */

.woocommerce-billing-fields > h3,
.woocommerce-shipping-fields > h3,
.woocommerce-additional-fields > h3 {
  font-size: 1.5rem;
  line-height: 1.75rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.5px;
  margin: 0 0 1.25rem;
  color: var(--color-primary-text);
}

@media (max-width: 1023px) {
  .woocommerce-billing-fields > h3,
  .woocommerce-shipping-fields > h3,
  .woocommerce-additional-fields > h3 {
    font-size: 1.25rem;
    line-height: 1.5rem;
    letter-spacing: -0.4px;
  }
}

/* ---- Two-column field grid (first / last name side by side) ---- */

@media screen and (min-width: 600px) {
  .woocommerce-billing-fields__field-wrapper,
  .woocommerce-shipping-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1.25rem;
  }

  .woocommerce-billing-fields__field-wrapper .form-row-wide,
  .woocommerce-shipping-fields__field-wrapper .form-row-wide {
    grid-column: 1 / -1;
  }

  .woocommerce-billing-fields__field-wrapper .form-row-first,
  .woocommerce-billing-fields__field-wrapper .form-row-last,
  .woocommerce-shipping-fields__field-wrapper .form-row-first,
  .woocommerce-shipping-fields__field-wrapper .form-row-last {
    float: none;
    width: auto;
    margin-right: 0;
  }
}

/* ---- Form rows ---- */

.woocommerce-checkout .form-row {
  margin-bottom: 1.25rem;
  position: relative;
}

/* ---- Labels ---- */

.woocommerce-checkout .form-row label:not(.checkbox) {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary-text);
  margin-bottom: 0.5rem;
}

.woocommerce-checkout .form-row label .required,
.woocommerce-checkout abbr[title="required"] {
  color: var(--color-primary);
  margin-left: 0.125rem;
  text-decoration: none;
  border-bottom: none;
}

/* ---- Text inputs and textarea ---- */

.woocommerce-checkout .form-row input.input-text,
.woocommerce-checkout .form-row textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-primary-text);
  background: #fff;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.woocommerce-checkout .form-row input.input-text:focus,
.woocommerce-checkout .form-row textarea:focus {
  border-color: var(--color-primary);
}

.woocommerce-checkout .form-row input.input-text::placeholder,
.woocommerce-checkout .form-row textarea::placeholder {
  color: #bbb;
}

/* ---- Native select ---- */

.woocommerce-checkout .form-row select {
  display: block;
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--color-primary-text);
  background: #fff;
  font-family: var(--font-sans);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.woocommerce-checkout .form-row select:focus {
  border-color: var(--color-primary);
}

/* ---- select2 (WC country / state dropdowns) ---- */

.woocommerce-checkout .select2-container .select2-selection--single {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  height: auto;
  padding: 0.625rem 2.5rem 0.625rem 1rem;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  color: var(--color-primary-text);
  outline: none;
  transition: border-color 0.15s ease;
}

.woocommerce-checkout
  .select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  color: var(--color-primary-text);
  font-size: 0.9375rem;
  padding: 0;
  line-height: inherit;
}

.woocommerce-checkout
  .select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  display: none;
}

.woocommerce-checkout
  .select2-container--default.select2-container--open
  .select2-selection--single {
  border-color: var(--color-primary);
}

/* ---- Validation states ---- */

.woocommerce-checkout .form-row.woocommerce-validated input.input-text {
  box-shadow: inset 0px 0 0 white;
}

.woocommerce-checkout .form-row.woocommerce-invalid input.input-text {
  box-shadow: inset 2px 0 0 #e2401c;
}

/* ---- Order review sidebar heading ---- */

#order_review_heading {
  font-size: 1.5rem;
  line-height: 1.75rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.5px;
  margin: 0 0 1rem;
  color: var(--color-primary-text);
}

@media (max-width: 1023px) {
  #order_review_heading {
    font-size: 1.25rem;
    line-height: 1.5rem;
    letter-spacing: -0.4px;
  }
}

/* ---- Order review table — hide thead, reset product-name cell ---- */

.prcn-order-table-head {
  display: none;
}

table.woocommerce-checkout-review-order-table tbody td.product-name {
  padding: 0;
  border-bottom: none;
}

/* ---- Product item rows ---- */

.prcn-order-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--color-border);
}

.prcn-order-item__image-wrap {
  position: relative;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.prcn-order-item__img {
  width: 48px !important;
  height: 48px !important;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.prcn-order-item__qty {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--color-secondary-text, #555);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  font-family: var(--font-sans);
  line-height: 1;
  min-width: 18px;
  height: 18px;
  border-radius: 9999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  box-sizing: border-box;
}

.prcn-order-item__info {
  flex: 1;
  min-width: 0;
}

.prcn-order-item__name {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-primary-text);
  margin: 0 0 0.2rem;
  line-height: 1.4;
}

.prcn-order-item__unit-price {
  font-size: 0.875rem;
  color: var(--color-secondary-text);
  margin: 0 0 0.2rem;
}

.prcn-order-item__desc {
  font-size: 0.8125rem;
  color: var(--color-secondary-text);
  margin: 0;
  line-height: 1.4;
}

.prcn-order-item__total {
  flex-shrink: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-primary-text);
  text-align: right;
}

/* ---- Order summary card (sidebar) ---- */

.prcn-order-summary-card {
  border: 1px solid var(--color-border);
  border-radius: 1.5rem;
  padding: 2rem;
  background: #fff;
}

@media screen and (min-width: 900px) {
  .prcn-order-summary-card {
    position: sticky;
    top: 2rem;
  }
}

table.woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
}

table.woocommerce-checkout-review-order-table thead th {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-primary-text);
  opacity: 0.6;
  padding: 0 0 0.75rem;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

table.woocommerce-checkout-review-order-table tbody td,
table.woocommerce-checkout-review-order-table tbody th {
  padding: 0.875rem 0;
  font-size: 0.9375rem;
  color: var(--color-primary-text);
  vertical-align: middle;
  border-bottom: 1px solid var(--color-border);
}

table.woocommerce-checkout-review-order-table tbody tr:last-child td,
table.woocommerce-checkout-review-order-table tbody tr:last-child th {
  border-bottom: none;
}

/* ---- tfoot: subtotal, shipping, coupon, fees ---- */

table.woocommerce-checkout-review-order-table tfoot tr:first-child th,
table.woocommerce-checkout-review-order-table tfoot tr:first-child td {
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

table.woocommerce-checkout-review-order-table tfoot th,
table.woocommerce-checkout-review-order-table tfoot td {
  padding: 0.375rem 0;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--color-secondary-text);
  vertical-align: middle;
  border-top: none;
}

table.woocommerce-checkout-review-order-table tfoot td {
  text-align: right;
}

/* ---- tfoot: order total ---- */

table.woocommerce-checkout-review-order-table .order-total th,
table.woocommerce-checkout-review-order-table .order-total td {
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  padding-bottom: 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-primary);
}

table.woocommerce-checkout-review-order-table .order-total td strong {
  font-weight: 600;
}

.woocommerce-checkout-review-order-table img {
  border-radius: 6px;
  width: 44px;
  height: 44px;
  object-fit: cover;
  margin-right: 0.75rem;
  vertical-align: middle;
}

/* ---- Payment section ---- */

#payment {
  margin-top: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

#payment > h3 {
  font-size: 1.5rem;
  line-height: 1.75rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.5px;
  margin: 0 0 1.25rem;
  color: var(--color-primary-text);
}

@media (max-width: 1023px) {
  #payment > h3 {
    font-size: 1.25rem;
    line-height: 1.5rem;
    letter-spacing: -0.4px;
  }
}

#payment ul.payment_methods {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  overflow: hidden;
}

#payment ul.payment_methods li {
  margin: 0;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--color-border);
  font-size: 0.9375rem;
}

#payment ul.payment_methods li:last-child {
  border-bottom: none;
}

#payment ul.payment_methods li label {
  font-weight: 500;
  cursor: pointer;
}

#payment .payment_box {
  padding: 0.75rem 0 0.25rem;
  font-size: 0.875rem;
  color: var(--color-secondary-text);
}

/* ---- Place order button ---- */

#payment .place-order {
  margin: 0;
  padding: 0;
}

#place_order {
  display: block;
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 500;
  font-family: var(--font-sans);
  letter-spacing: -0.24px;
  cursor: pointer;
  transition: opacity 0.15s ease;
  text-align: center;
  line-height: 1.5;
}

#place_order:hover {
  opacity: 0.88;
}

/* ---- Privacy policy / terms notice ---- */

#payment .woocommerce-privacy-policy-text {
  font-size: 0.8125rem;
  color: var(--color-secondary-text);
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* ---- Coupon in order summary sidebar ---- */

.prcn-coupon-section {
  border-top: 1px solid var(--color-border);
  margin-top: 1rem;
}

.prcn-coupon-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-primary-text);
  list-style: none;
  user-select: none;
}

.prcn-coupon-summary::-webkit-details-marker {
  display: none;
}

.prcn-coupon-summary svg {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  color: var(--color-secondary-text);
}

.prcn-coupon-details[open] .prcn-coupon-summary svg {
  transform: rotate(180deg);
}

/* WooCommerce JS hides form.checkout_coupon on page load — override when <details> is open */
.prcn-coupon-details[open] .checkout_coupon {
  display: block !important;
}

.prcn-coupon-form {
  padding-bottom: 1rem;
}

.prcn-coupon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.prcn-coupon-row .woocommerce-error,
.prcn-coupon-row .woocommerce-message,
.prcn-coupon-row .woocommerce-info,
.prcn-coupon-form .woocommerce-error,
.prcn-coupon-form .woocommerce-message,
.prcn-coupon-form .woocommerce-info {
  flex: 0 0 100%;
  width: 100%;
  margin-top: 0.25rem;
  margin-bottom: 0;
}

.prcn-coupon-row .input-text {
  flex: 1;
  display: block;
  box-sizing: border-box;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0.625rem 1rem;
  font-size: 0.9375rem;
  font-family: var(--font-sans);
  color: var(--color-primary-text);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}

.prcn-coupon-row .input-text:focus {
  border-color: var(--color-primary);
}

.prcn-coupon-row .input-text::placeholder {
  color: #bbb;
}

.prcn-coupon-row .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.125rem;
  background: var(--color-dark-gray);
  color: var(--color-primary-text);
  border: none;
  border-radius: 10px;
  font-size: 0.9375rem;
  font-weight: 500;
  font-family: var(--font-sans);
  cursor: pointer;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.prcn-coupon-row .button:hover {
  opacity: 0.88;
}
