.apglos-inline-icon {
  display: inline-block;
  width: 1.25rem;
  height: 1.25rem;
  vertical-align: middle;
}

.apglos-inline-icon svg,
.apglos-inline-icon {
  width: 1.25rem;
  height: 1.25rem;
}

/* ==========================================================================
   WooCommerce Cart & Checkout — shared base
   Accent colours are set per-site via --wc-accent / --wc-accent-dark /
   --wc-heading / --wc-page-width in each site CSS file.
   ========================================================================== */

:root {
  --wc-accent: #F08514;
  --wc-accent-dark: #d47210;
  --wc-heading: #123046;
  --wc-page-width: 1140px;
}

/* ── Cart / Checkout page title ── */

[data-page="cart"] .wp-block-post-title,
[data-page="checkout"] .wp-block-post-title {
  color: var(--wc-heading);
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 1.5rem;
}

/* ── Cart table ── */

.woocommerce-cart-form .shop_table {
  border: none;
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.woocommerce-cart-form .shop_table thead th {
  background: #f7f9fb;
  border: none;
  border-bottom: 2px solid #d6e0e6;
  color: var(--wc-heading);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.6rem 0.75rem;
  text-transform: uppercase;
}

.woocommerce-cart-form .shop_table tbody td {
  border: none;
  border-bottom: 1px solid #e9eef2;
  padding: 0.9rem 0.75rem;
  vertical-align: middle;
}

/* Remove button */
.woocommerce-cart-form .product-remove .remove {
  color: #999 !important;
  font-size: 1.5rem;
  font-weight: 400;
  text-decoration: none;
}

.woocommerce-cart-form .product-remove .remove:hover {
  background: none !important;
  color: #e04040 !important;
}

/* Thumbnail */
.woocommerce-cart-form .product-thumbnail img {
  border: 1px solid #e9eef2;
  border-radius: 6px;
  max-width: 70px;
  height: auto;
}

/* Product name link */
.woocommerce-cart-form .product-name a {
  color: var(--wc-heading);
  font-weight: 700;
  text-decoration: none;
}

.woocommerce-cart-form .product-name a:hover {
  color: var(--wc-accent);
}

/* Price columns */
.woocommerce-cart-form .product-price,
.woocommerce-cart-form .product-subtotal {
  color: var(--wc-heading);
  font-weight: 600;
}

/* Quantity input */
.woocommerce-cart-form .quantity .qty {
  border: 1px solid #d6e0e6;
  border-radius: 4px;
  font-size: 15px;
  padding: 0.4rem 0.5rem;
  text-align: center;
  width: 4rem;
}

.woocommerce-cart-form .quantity .qty:focus {
  border-color: var(--wc-accent);
  outline: none;
}

/* Actions row (coupon + update button) */
.woocommerce-cart-form .actions {
  border-bottom: none !important;
  padding-top: 1.2rem !important;
  padding-bottom: 0.4rem !important;
}

.woocommerce-cart-form .actions .coupon {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  float: left;
}

.woocommerce-cart-form .actions .coupon .input-text {
  border: 1px solid #d6e0e6;
  border-radius: 4px;
  font-size: 14px;
  padding: 0.55rem 0.7rem;
}

.woocommerce-cart-form .actions .coupon .input-text:focus {
  border-color: var(--wc-accent);
  outline: none;
}

.woocommerce-cart-form .actions .coupon .button {
  background: #f7f9fb;
  border: 1px solid #d6e0e6;
  color: var(--wc-heading);
  font-size: 14px;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
}

.woocommerce-cart-form .actions .coupon .button:hover {
  background: #e9eef2;
  border-color: #c0cdd6;
}

.woocommerce-cart-form .actions button[name="update_cart"] {
  background: #f7f9fb;
  border: 1px solid #d6e0e6;
  color: var(--wc-heading);
  float: right;
  font-size: 14px;
  font-weight: 600;
  padding: 0.55rem 1.1rem;
}

.woocommerce-cart-form .actions button[name="update_cart"]:hover {
  background: #e9eef2;
  border-color: #c0cdd6;
}

/* ── Cart totals ── */

.cart-collaterals {
  margin-top: 2rem;
}

.cart-collaterals .cart_totals {
  background: #f7f9fb;
  border: 1px solid #e9eef2;
  border-radius: 8px;
  box-sizing: border-box;
  float: right;
  max-width: 400px;
  padding: 1.25rem 1.5rem;
  width: 100%;
  margin-bottom: 10px;
}

.cart_totals h2 {
  color: var(--wc-heading);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.cart_totals .shop_table {
  border: none;
  margin-bottom: 1rem;
}

.cart_totals .shop_table th,
.cart_totals .shop_table td {
  border: none;
  border-bottom: 1px solid #e1e8ed;
  color: var(--wc-heading);
  font-size: 15px;
  padding: 0.65rem 0;
}

.cart_totals .shop_table th {
  font-weight: 600;
  text-align: left;
  width: 40%;
}

.cart_totals .shop_table .order-total th,
.cart_totals .shop_table .order-total td {
  border-bottom: none;
  font-size: 17px;
  font-weight: 800;
  padding-top: 0.75rem;
}

/* Proceed to checkout button */
.wc-proceed-to-checkout .checkout-button {
  background: var(--wc-accent) !important;
  border: none !important;
  border-radius: 0 !important;
  box-sizing: border-box;
  color: #fff !important;
  display: block;
  font-size: 16px !important;
  font-weight: 700;
  padding: 0.8rem 1rem !important;
  text-align: center;
  text-decoration: none;
  width: 100%;
}

.wc-proceed-to-checkout .checkout-button:hover {
  background: var(--wc-accent-dark) !important;
}

/* Add-to-cart success notice buttons */
.wc-block-components-notice-banner.is-success .wc-forward.wp-element-button,
.wc-block-components-notice-banner.is-success .wc-forward {
  background: #1a1a1a !important;
  border: none !important;
  border-radius: 999px !important;
  color: #fff !important;
  display: inline-block !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  margin-left: 0.4rem;
  padding: 0.35rem 1rem !important;
  text-decoration: none !important;
  transition: background-color 0.2s ease;
}

.wc-block-components-notice-banner.is-success .wc-forward.wp-element-button:hover,
.wc-block-components-notice-banner.is-success .wc-forward:hover {
  background: #333 !important;
  color: #fff !important;
}

/* ── Empty cart ── */
.wc-empty-cart-message .wc-block-components-notice-banner {
  border: none;
  border-left: 3px solid var(--wc-accent);
  border-radius: 0;
  padding: 1rem 1.25rem;
}

.return-to-shop .button {
  background: var(--wc-accent) !important;
  border: none !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 600;
  padding: 0.85rem 1.5rem !important;
}

.return-to-shop .button:hover {
  background: var(--wc-accent-dark) !important;
}

/* ── Cart page responsive ── */
@media (max-width: 768px) {
  .cart-collaterals .cart_totals {
    float: none;
    max-width: 100%;
  }

  .woocommerce-cart-form .actions .coupon {
    float: none;
    width: 100%;
  }

  .woocommerce-cart-form .actions button[name="update_cart"] {
    float: none;
    margin-top: 0.75rem;
    width: 100%;
  }
}

/* ── Checkout page ── */

/* Checkout: constrain entire main content to 60% page width, centered */
[data-page="checkout"] > .alignwide,
[data-page="checkout"] > .wp-block-post-title {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: calc(var(--wc-page-width) * 0.6) !important;
}

/* The inner .woocommerce div must also be constrained */
[data-page="checkout"] .entry-content,
[data-page="checkout"] .woocommerce {
  margin-left: auto !important;
  margin-right: auto !important;
  max-width: calc(var(--wc-page-width) * 0.6) !important;
}

/* Order review table: match form width, centered */
[data-page="checkout"] #order_review {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
}

/* Coupon toggle notice */
.woocommerce-form-coupon-toggle .wc-block-components-notice-banner {
  border: none;
  border-left: 3px solid var(--wc-accent);
  border-radius: 0;
  font-size: 15px;
  margin-bottom: 1rem;
  padding: 0.5rem 1rem;
}

.woocommerce-form-coupon-toggle .showcoupon {
  color: var(--wc-accent);
  font-weight: 700;
}

/* Coupon form */
.checkout_coupon {
  border: 1px solid #e9eef2 !important;
  border-radius: 6px;
  margin-bottom: 1rem !important;
  padding: 0.7rem 1rem !important;
}

.checkout_coupon .input-text {
  border: 1px solid #d6e0e6;
  border-radius: 4px;
  font-size: 15px;
  padding: 0.4rem 0.7rem;
}

.checkout_coupon .input-text:focus {
  border-color: var(--wc-accent);
  outline: none;
}

.checkout_coupon .button {
  background: var(--wc-accent) !important;
  border: none !important;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  padding: 0.4rem 1rem;
}

.checkout_coupon .button:hover {
  background: var(--wc-accent-dark) !important;
}

/* Single column layout */
.woocommerce-checkout .col2-set {
  display: block;
}

.woocommerce-checkout .col2-set .col-1,
.woocommerce-checkout .col2-set .col-2 {
  float: none;
  width: 100%;
}

/* Section headings */
.woocommerce-checkout h3 {
  color: var(--wc-heading);
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 0.5rem;
  margin-top: 0;
}

.woocommerce-checkout .col2-set .col-2 h3 {
  margin-top: 1rem;
}

/* Form fields */
.woocommerce-checkout .form-row {
  margin-bottom: 0.45rem;
  padding: 0;
}

.woocommerce-checkout .form-row label {
  color: var(--wc-heading);
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 0.15rem;
}

.woocommerce-checkout .form-row label .required {
  color: var(--wc-accent);
}

.woocommerce-checkout .form-row .input-text,
.woocommerce-checkout .form-row select,
.woocommerce-checkout .form-row textarea {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: 1px solid #d6e0e6;
  border-radius: 4px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 14px;
  height: 2.2rem;
  line-height: 1.4;
  padding: 0.35rem 0.6rem;
  width: 100%;
}

.woocommerce-checkout .form-row select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-position: right 0.6rem center;
  background-repeat: no-repeat;
  padding-right: 2rem;
}

/* Select2 (selectWoo) country dropdown override */
.woocommerce-checkout .select2-container {
  width: 100% !important;
}

.woocommerce-checkout .select2-container .select2-selection--single {
  border: 1px solid #d6e0e6 !important;
  border-radius: 4px !important;
  box-sizing: border-box;
  height: 2.2rem !important;
  padding: 0 0.6rem;
}

.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__rendered {
  color: var(--wc-heading);
  font-family: inherit;
  font-size: 14px;
  line-height: 2.2rem !important;
  padding: 0 !important;
}

.woocommerce-checkout .select2-container .select2-selection--single .select2-selection__arrow {
  height: 2.2rem !important;
  right: 0.4rem;
}

.woocommerce-checkout .select2-container--focus .select2-selection--single,
.woocommerce-checkout .select2-container--open .select2-selection--single {
  border-color: var(--wc-accent) !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Select2 dropdown list (appended to body) */
.select2-container--open .select2-dropdown {
  max-width: calc(var(--wc-page-width) * 0.6) !important;
  overflow: hidden;
}

.select2-results__options {
  max-height: 360px !important;
}

.select2-results__option {
  font-size: 13px !important;
  padding: 4px 8px !important;
}

/* Prevent horizontal scrollbar when dropdown is open */
.select2-container--open ~ .select2-container--open,
body.woocommerce-checkout {
  overflow-x: hidden;
}

/* Inline validation errors */
.woocommerce-checkout .checkout-inline-error-message {
  color: #d63638;
  font-size: 13px;
  margin-top: 0.2rem;
}

.woocommerce-checkout .form-row.woocommerce-invalid .input-text,
.woocommerce-checkout .form-row.woocommerce-invalid select,
.woocommerce-checkout .form-row.woocommerce-invalid .select2-selection--single {
  border-color: #d63638 !important;
}

.woocommerce-checkout .form-row .input-text:focus,
.woocommerce-checkout .form-row select:focus,
.woocommerce-checkout .form-row textarea:focus {
  border-color: var(--wc-accent);
  outline: none;
}

.woocommerce-checkout .form-row textarea {
  height: auto;
  min-height: 60px;
  resize: vertical;
}

/* First/last name side by side */
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
  display: inline-block;
  width: 48%;
}

.woocommerce-checkout .form-row-first {
  float: left;
}

.woocommerce-checkout .form-row-last {
  float: right;
}

.woocommerce-checkout .form-row-wide {
  clear: both;
}

/* Order review heading */
#order_review_heading {
  border-top: 2px solid #e9eef2;
  color: var(--wc-heading);
  font-size: 17px;
  font-weight: 800;
  margin-top: 0.6rem;
  padding-top: 0.75rem;
  text-align: center;
}

/* Order review table */
.woocommerce-checkout-review-order-table {
  border: none !important;
  width: 100%;
}

.woocommerce-checkout-review-order-table thead th {
  background: #f7f9fb;
  border: none;
  border-bottom: 2px solid #d6e0e6;
  color: var(--wc-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.3rem 0.5rem;
  text-transform: uppercase;
}

.woocommerce-checkout-review-order-table tbody td,
.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout-review-order-table tfoot td {
  border: none;
  border-bottom: 1px solid #e9eef2;
  color: var(--wc-heading);
  font-size: 14px;
  padding: 0.3rem 0.5rem;
}

.woocommerce-checkout-review-order-table tfoot th {
  font-weight: 600;
  text-align: left;
}

.woocommerce-checkout-review-order-table .product-name {
  font-weight: 600;
}

.woocommerce-checkout-review-order-table .product-name .product-quantity {
  color: #666;
  font-weight: 400;
}

.woocommerce-checkout-review-order-table .order-total th,
.woocommerce-checkout-review-order-table .order-total td {
  border-bottom: none;
  font-size: 15px;
  font-weight: 800;
  padding-top: 0.35rem;
}

/* Payment methods */
.woocommerce-checkout-payment {
  background: #f7f9fb;
  border: 1px solid #e9eef2;
  border-radius: 8px;
  margin-top: 0.75rem;
  padding: 0.75rem 1rem;
}

.woocommerce-checkout-payment .payment_methods {
  border: none !important;
  list-style: none;
  margin: 0 0 0.5rem;
  padding: 0 !important;
}

.woocommerce-checkout-payment .wc-block-components-notice-banner {
  border: none;
  border-left: 3px solid var(--wc-accent);
  border-radius: 0;
  font-size: 13px;
  padding: 0.4rem 0.65rem;
}

/* Place order button */
.woocommerce-checkout #place_order {
  background: var(--wc-accent) !important;
  border: none !important;
  border-radius: 0 !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700;
  padding: 0.65rem 2rem !important;
  width: 100%;
}

.woocommerce-checkout #place_order:hover {
  background: var(--wc-accent-dark) !important;
}

/* ── Checkout page responsive ── */
@media (max-width: 768px) {
  [data-page="checkout"] > * {
    max-width: 100%;
  }

  .woocommerce-checkout .form-row-first,
  .woocommerce-checkout .form-row-last {
    float: none;
    width: 100%;
  }
}

/* ==========================================================================
   WooCommerce Shop & Single Product — shared base
   ========================================================================== */

/* ── Shop page ── */

/* Hide results count and ordering dropdown */
.wc-block-product-results-count,
.woocommerce-result-count,
.woocommerce-ordering,
.wp-block-woocommerce-catalog-sorting {
  display: none !important;
}

/* Product cards: white bg, subtle border */
.wc-block-product-template .wc-block-product,
.woocommerce ul.products li.product {
  background: #fff;
  border: 1px solid #e9eef2;
  border-radius: 8px;
  padding: 1rem;
}

/* Product titles: heading colour, fixed 2-line height */
.woocommerce ul.products li.product .woocommerce-loop-product__title,
.wc-block-grid__product-title,
ul.products li.product h2,
.wc-block-product .wp-block-post-title {
  color: var(--wc-heading) !important;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  min-height: 2.6em;
  overflow: hidden;
}

/* Prices and add-to-cart button: 15px */
.woocommerce ul.products li.product .price,
.wc-block-grid__product-price,
ul.products li.product .price,
.woocommerce ul.products li.product .button,
ul.products li.product .add_to_cart_button,
.wc-block-grid__product .wp-block-button__link,
.add_to_cart_button {
  font-size: 15px !important;
}

/* Shop add-to-cart button: smaller padding */
.wc-block-product .wp-block-button .wp-block-button__link,
.woocommerce ul.products li.product .add_to_cart_button,
.add_to_cart_button {
  font-size: 14px !important;
  padding: 0.55rem 1rem !important;
}

/* WooCommerce ordering select */
.woocommerce-ordering select {
  font-size: 16px;
  padding: 0.5rem 0.75rem;
}

/* ── Single product page ── */

/* Add-to-cart button */
.woocommerce div.product form.cart .button,
.woocommerce div.product .single_add_to_cart_button,
.single_add_to_cart_button {
  background-color: var(--wc-accent) !important;
  border-color: var(--wc-accent) !important;
  color: #fff !important;
  font-size: 17px !important;
}

.woocommerce div.product form.cart .button:hover,
.woocommerce div.product .single_add_to_cart_button:hover,
.single_add_to_cart_button:hover {
  background-color: var(--wc-accent-dark) !important;
  border-color: var(--wc-accent-dark) !important;
}

/* Single product price */
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.wp-block-woocommerce-product-price,
.wp-block-woocommerce-product-price .wc-block-components-product-price,
.wp-block-woocommerce-product-price .woocommerce-Price-amount {
  color: var(--wc-heading);
  font-size: 24px !important;
  font-weight: 800;
}

.wp-block-woocommerce-product-price .woocommerce-price-suffix {
  color: #666;
  font-size: 14px;
  font-weight: 400;
}

/* Quantity input */
.woocommerce div.product form.cart .quantity input {
  font-size: 17px;
}

/* Product page: thumbnail navigation */
.flex-control-thumbs {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  list-style: none !important;
  padding: 0 !important;
}

.flex-control-thumbs li {
  cursor: pointer;
  flex: 0 0 auto;
  width: auto !important;
}

.flex-control-thumbs li img {
  cursor: pointer;
  max-height: 80px;
  width: auto;
}

/* Gallery lightbox trigger — inset fullscreen icon */
.woocommerce-product-gallery {
  position: relative;
}

.woocommerce-product-gallery__trigger {
  position: absolute !important;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 5;
  background: #000;
  border-radius: 4px;
  width: 36px;
  height: 36px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s;
  padding: 0;
  text-decoration: none;
}

.woocommerce-product-gallery__trigger:hover {
  opacity: 0.75;
}

/* Replace emoji 🔍 with fullscreen icon */
.woocommerce-product-gallery__trigger span,
.woocommerce-product-gallery__trigger img {
  display: none !important;
}

.woocommerce-product-gallery__trigger::after {
  content: "\26F6";
  color: #fff;
  font-size: 22px;
  line-height: 36px;
  text-align: center;
  width: 36px;
  height: 36px;
  display: block;
}

/* Zoom overlay — white BG so transparency doesn't show through */
.woocommerce-product-gallery .zoomImg {
  background: #fff !important;
}

/* Hide duplicate "Description" tab link */
.woocommerce-tabs .description_tab,
.wc-tabs .description_tab {
  display: none !important;
}

/* Description tab: uniform text */
#tab-description,
#tab-description p,
#tab-description li {
  color: #000 !important;
  font-size: 16px !important;
}

/* SKU / Category / Tags metadata */
.wp-block-woocommerce-product-meta {
  margin-top: 1rem;
}

.wp-block-woocommerce-product-meta .is-layout-flex {
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
}

.wp-block-woocommerce-product-meta .product_meta,
.wp-block-woocommerce-product-meta .wp-block-post-terms {
  font-size: 13px;
  line-height: 1.6;
}

.wp-block-woocommerce-product-meta a {
  color: var(--wc-accent);
  text-decoration: none;
}

.wp-block-woocommerce-product-meta a:hover {
  text-decoration: underline;
}

/* Related products */
.related.products > h2 {
  color: var(--wc-heading);
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 1rem;
}

.related.products ul.products li.product {
  background: #fff;
  border: 1px solid #e9eef2;
  border-radius: 8px;
  padding: 1rem;
}
