/*
 Theme Name:   Sheets Child Theme
 Description:  Child theme for the Gravita theme
 Author:       TradePro
 Template:     electronics-and-gadget-shop-theme-for-woocommerce
 Version:      1.0.0
 License: GPLv3 or later
 License URI: http://www.gnu.org/licenses/gpl-3.0.html
 Text Domain:  palecom
*/



.is-nowrap {
  flex-wrap: nowrap !important;
}

.wp-block-heading.has-link-color a:hover, .wp-block-heading.has-link-color a:focus {
  color: inherit;
  opacity: 0.8;
}

.woocommerce .wp-block-add-to-cart-form table.variations tr td select {
    padding: var(--wp--preset--spacing--2-xs) var(--wp--preset--spacing--xs);
}

/* Remove the scrolling right on first load because of mini-cart */
.wc-block-components-drawer__screen-overlay--is-hidden .wc-block-components-drawer {
    transform: translateX(-100%);
}

/* change the mobile category icon to BURGER icon */
.wp-block-gutenmate-categories-menu__icon:after {
    background-color: #fff; /* change to #fff if you want white lines */
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect y='4' width='24' height='2'/%3E%3Crect y='11' width='24' height='2'/%3E%3Crect y='18' width='24' height='2'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect y='4' width='24' height='2'/%3E%3Crect y='11' width='24' height='2'/%3E%3Crect y='18' width='24' height='2'/%3E%3C/svg%3E");
}

ul.is-style-gtmt-bullet li::before, ul.is-style-gtmt-check li::before, ul.is-style-gtmt-plus li::before, ul.is-style-gtmt-minus li::before {
  background-color: currentcolor;
}


/*---------------------------------------------------*/

nav {
  font-size: var(--wp--preset--font-size--lg);
  transition: all 0.3s ease;
}

nav .wp-block-navigation-link a:hover {
  color: var(--wp--preset--color--accent);
  opacity: 0.8;
}

header {
  /* position: sticky; */
  /* top: 0; */
  z-index: 999;
  width: 100%;
}


.sticky-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 99;
  width: 100%;
  background-color: white;
  /* Ensure visibility */
  transition: transform 0.3s ease-in-out;
}

.top-bar {
  transition: height 0.3s ease-in-out, padding 0.3s ease-in-out;
  /* Smooth shrinking effect */
  overflow: hidden;
  /* Prevent flickering */
}

body.mega-menu-active::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
  z-index: 97; /* Below the mega menu but above the content */
  pointer-events: none; /* Ensure it doesn't block interactions */
}

.mega-menu-wrapper {
  position: absolute;
  width: 100%;
  left: 0;
  z-index: 999;
  /* Ensure it's above content */
}

.mega-menu-container {
  position: absolute;
  left: 0;
  width: 100%;
  z-index: 98;
  /* Lower than header */
  display: none;
  /* Hidden initially */
  transition: top 0.2s ease-in-out, height 0.3s ease-in-out, opacity 0.3s ease-in-out;
  margin-top: 0 !important;
  /* Ensure no spacing */
  padding-top: 0 !important;
  /* Remove any unintended gap */
  overflow: hidden;
  /* Prevent flickering */
  height: 0px;
  /* Default height is 0 to remove unwanted space */
}

.mega-menu-content {
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
  position: absolute;
  /* Keep hidden menus out of the layout */
  width: 100%;
}

.mega-menu-content.active {
  visibility: visible;
  opacity: 1;
  position: relative;
  /* Only active menu should take space */
}

.mega-menu-inner {
  position: relative;
  display: block;
  /* width: fit-content; /* Adjusts to actual content width */
  /* max-width: 1200px;   /* Optional: constrain max width */
  margin: 0 auto;      /* Center it horizontally */
  background: rgb(255, 255, 255);   /* Optional: visual clarity */
  /* height: 100vh; */
}


.woocommerce .wp-block-woocommerce-product-image-gallery.is-style-default .flex-control-thumbs {
  overflow: auto !important;
}

.woocommerce .wp-block-woocommerce-product-image-gallery.is-style-default .flex-control-thumbs {
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
  gap: 8px;
  /* optional: adds space between thumbnails */
  padding: 10px 0;
  scrollbar-width: thin;
}

.woocommerce .wp-block-woocommerce-product-image-gallery.is-style-default .flex-control-thumbs li {
  flex: 0 0 auto;
  list-style: none;
}

.woocommerce div.product div.images .flex-control-thumbs li img {
  max-width: 100px;
}


  span.price-unit {
    font-size: 0.5em;
  }

  .wc-block-components-product-price {
    align-items: baseline;
  }

  .wc-proceed-to-checkout {
    display : flex;
    flex-direction : row;
    gap: 1rem;
  }

.wc-proceed-to-checkout .checkout-button button {
  width: 100%;
  margin-bottom: unset;
}

.wholesalex_request_custom_quote_btn {
  display: block;
  background-color: rgba(0,0,0,.05);
  color: var(--wp--preset--color--accent);
  border: 2px solid;
  text-align: center;
  margin: 0 !important;
  font-size: 1.15em;
  padding: 0.5em;
  width: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.wholesalex_request_custom_quote_btn:hover{
  background-color: var(--wp--preset--color--accent);
  color: #ffffff;
  transition: all 0.3s ease;
}

#add_payment_method .wc-proceed-to-checkout a.checkout-button, .woocommerce-cart .wc-proceed-to-checkout a.checkout-button, .woocommerce-checkout .wc-proceed-to-checkout a.checkout-button {
  width: 100%;
  margin-bottom: unset;
  font-size: 1.15em;
}

.wp-block-gutenmate-categories-menu__overlay .cat-item a:hover {
  background-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--background);
}


.wp-block-gutenmate-categories-menu__categories li.cat-item:hover,
.wp-block-gutenmate-categories-menu__categories li.cat-item:focus {
  color: white;
  text-decoration: none;
}

.wp-block-gutenmate-categories-menu__overlay .cat-item a:focus {
  color: white;

}

.woocommerce  .woocommerce-cart-form__cart-item.cart_item .product-quantity .input-text.qty {
      width: 5.631em;
}


footer .footer-top-icons .footer-top-icons-columns .footer-top-icons-column div {

  align-items: flex-start;
}



@media (max-width: 768px) {

  .sticky-header {
    position: sticky !important;
    top: 0 !important;
    transform: translateY(0) !important; /* Ensure it stays fully visible */
    z-index: 99;
    width: 100%;
    background-color: white;
  }

  header h4 {
    font-size: 1.1em;
  }
  .wp-block-navigation__responsive-container.is-menu-open {
    padding: 0;
    max-width: 280px;
  }

  .wp-block-navigation__responsive-container.is-menu-open
  .wp-block-navigation__responsive-container-content
  .wp-block-navigation__container {
    gap: 0;
  }

  .wp-block-gutenmate-categories-menu__overlay {
    position: fixed;
    left: 0;
    top: 0;
    width: 90%;
    align-items: baseline;
    transform: unset;
    border-radius: unset;
  }

  .wp-block-gutenmate-categories-menu__categories .children.is-overflow {
    left: 0;
  }

  .wp-block-gutenmate-categories-menu__categories .children {
    transform: unset;
    position: relative;
    top: unset;
    right: unset;
  }

  .wp-block-gutenmate-categories-menu__categories li {
    height: 3rem;
  }

  .wp-block-gutenmate-categories-menu__categories li.cat-item:hover,
  .wp-block-gutenmate-categories-menu__categories li.cat-item:focus {
    color: white;
    text-decoration: none;
  }

  .cat-item.has-child.is-open > a::after {
    transform: translateY(-50%) rotate(90deg);
  }

  .wp-block-gutenmate-overlay-search__icon:after {
    background-color : #FFFFFF;
  }

  .wholesalex_request_custom_quote_btn {
    padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--sm);
    font-size: 1em;
    max-height: 45px;
  }

  #add_payment_method .wc-proceed-to-checkout a.checkout-button, .woocommerce-cart .wc-proceed-to-checkout a.checkout-button, .woocommerce-checkout .wc-proceed-to-checkout a.checkout-button {
    font-size: 1em;
    padding: var(--wp--preset--spacing--xs) var(--wp--preset--spacing--sm);
  }

  .wc-proceed-to-checkout {
    display : flex;
    flex-direction : column;
  }

  .woocommerce-cart .woocommerce .coupon {
    gap: 0.5em;
  }

  .woocommerce-cart .woocommerce .coupon  #coupon_code {
    width: 46%;
  }

  .woocommerce-cart .woocommerce .coupon #apply_coupon {
    width: 46%;
  }

  .wholesalex_add_to_quote_modal .modal_content {
    width: 90%;
  }
}


/* USA Menu */
/* Top-level horizontal */
/* ========== BASIC NAV SETUP ========== */

/* header .wp-block-navigation .wp-block-navigation__responsive-container:not(.has-modal-open) .wp-block-navigation__submenu-container {
    padding: 0;
    border-radius: unset;
    border: none
} */

/* header .wp-block-navigation .wp-block-navigation__responsive-container:not(.has-modal-open) .wp-block-navigation__submenu-container:not(.block-editor-block-list__layout) {
    box-shadow: 0 4px 6px -5px;
} */

/* header .wp-block-navigation .has-child {
    position: relative;
} */

/* .wp-block-navigation .wp-block-navigation-item
 {
    background-color: unset;
 } */

 /* .wp-block-navigation .wp-block-navigation-item__label {
    white-space: nowrap;
} */

header .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
  /* transform: translateX(-5%);
  flex-direction: unset;
  max-height: 0; */
  display: none;
  /* transition: max-height 0.4s ease, opacity 0.3s ease;
  justify-content: center; */
  background-color: var(--wp--preset--color--accent);
}

header .wp-block-navigation .has-child .wp-block-navigation-submenu__toggle[aria-expanded=true]~.wp-block-navigation__submenu-container,.wp-block-navigation .has-child:not(.open-on-click):hover>.wp-block-navigation__submenu-container,.wp-block-navigation .has-child:not(.open-on-click):not(.open-on-hover-click):focus-within>.wp-block-navigation__submenu-container {
  padding-top: 10px;
  /* max-height: 300px;
  height: unset; */
  display: block;
}

/* header .wp-block-navigation:not(.has-background) .wp-block-navigation__submenu-container {
    border: none;
} */

/* header .wp-block-navigation:not(.has-text-color) .wp-block-navigation__submenu-container {
    color: inherit;
} */

/* header .wp-block-navigation__container {
    align-items: center;
    flex-direction: row;
} */

/* @media (prefers-reduced-motion) {
   header .wp-block-navigation .has-child .wp-block-navigation__submenu-container {
        transition: none;
    }
} */

iframe{
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
}

.woocommerce-tabs.wc-tabs-wrapper #tab-pdfs_tab ul {
  list-style: none;
}

.woocommerce-tabs.wc-tabs-wrapper #tab-pdfs_tab ul li {
  font-size: 1.2em
}

.wp-site-blocks .wc-block-components-product-image__inner-container .wp-block-woocommerce-product-image.wc-block-components-product-sale-badge {
  text-indent: 0;

}

.wp-site-blocks .wc-block-components-product-image__inner-container .wp-block-woocommerce-product-image.wc-block-components-product-sale-badge::after {
  content: none;
}

/* .wc-block-grid .wc-block-grid__product-onsale, .wc-block-grid__product-image .wc-block-grid__product-onsale, .wp-block-woocommerce-product-image-gallery .onsale.onsale, .wp-block-woocommerce-product-image .wc-block-components-product-sale-badge {
  text-indent: 0;
  color: red;
  background-color: #FFFFFF;
  font-size: 1em;
  display: flex;
  align-items: center;
  width: auto;
  height: auto;
}

.wc-block-grid .wc-block-grid__product-onsale::after, .wc-block-grid__product-image .wc-block-grid__product-onsale::after, .wp-block-woocommerce-product-image-gallery .onsale.onsale::after, .wp-block-woocommerce-product-image .wc-block-components-product-sale-badge::after {
  content: none;
} */

.single-product .wp-site-blocks span.onsale {
  display: none;
}

/* Menu drawer */

/* ===== visual tokens ===== */
:root{
  --accent: #275bad;              /* tweak to your brand blue */
  --row-bg: #fff;
  --row-bg-open: #f6f8fc;         /* subtle highlight for open parent */
  --text: #1f2a37;
  --text-muted: #46566b;
  --line: rgba(16,24,40,.08);     /* divider lines */
  --fs: 16.5px;                   /* base font size (bigger/cleaner) */
  --lh: 1.5;
}

/* ===== top-level rows ===== */
.wp-block-gutenmate-categories-menu__categories{
  margin:0; padding:0; list-style:none;
  font-size: var(--fs);
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wp-block-gutenmate-categories-menu__overlay {
  height: 100vh;                       /* full viewport height */
}

.wp-block-gutenmate-categories-menu__categories > li{
  border-bottom: 1px solid var(--line);   /* grid line */
  background: var(--row-bg);

}

/* parent & normal links look like rows */
.wp-block-gutenmate-categories-menu__categories > li > a{
  position: relative;
  z-index: 2;                               /* keep it above submenu */
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  color: var(--text);
  text-decoration: none;
}

/* subtle chevron to indicate submenu (always visible) */
.wp-block-gutenmate-categories-menu__categories > li.has-child > a::after{
  content: "\203A";                         /* › */
  font-size: 18px;
  line-height: 1;
  color: var(--text-muted);
  transition: transform .25s ease, color .2s linear;
}

/* open state: keep parent visible + highlight it + rotate chevron */
.wp-block-gutenmate-categories-menu__categories > li.has-child.is-open > a{
  background: var(--row-bg-open);
  color: var(--accent);
}
.wp-block-gutenmate-categories-menu__categories > li.has-child.is-open > a::after{
  transform: rotate(90deg);                 /* points down */
  color: var(--accent);
}

/* make sure theme hover rules don't override the open look */
.wp-block-gutenmate-categories-menu__overlay .cat-item.has-child.is-open > a:hover,
.wp-block-gutenmate-categories-menu__overlay .cat-item.has-child.is-open > a:focus{
  background: var(--row-bg-open) !important;
  color: var(--accent) !important;
}

/* ===== submenu (accordion) ===== */
.wp-block-gutenmate-categories-menu__categories ul.children{
  margin: 0;
  padding: 0 0 8px 0;                        /* a little breathing room */
  list-style: none;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-top: 1px solid var(--line);         /* divider between parent & children */
  transition: max-height .28s cubic-bezier(.2,.8,.2,1), opacity .2s ease;
  background: #fff;
}

/* expanded */
.wp-block-gutenmate-categories-menu__categories li.has-child.is-open > ul.children{
  max-height: 700px;                          /* large enough for your longest list */
  opacity: 1;
}

/* submenu rows */
.wp-block-gutenmate-categories-menu__categories ul.children > li:not(:last-child){
  border-bottom: 1px solid var(--line);
}
.wp-block-gutenmate-categories-menu__categories ul.children > li > a{
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px 12px 28px;              /* slight indent */
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
}

/* show tiny chevron on grandchildren too (optional) */
.wp-block-gutenmate-categories-menu__categories ul.children > li.has-child > a::after{
  content: "\203A";
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1;
}
.wp-block-gutenmate-categories-menu__categories ul.children > li.has-child.is-open > a::after{
  transform: rotate(90deg);
  color: var(--accent);
}

/* remove any fixed heights from earlier CSS that caused disappearing rows */
.wp-block-gutenmate-categories-menu__categories li{ height: auto !important; }

/* === In-drawer Close row (inserted by JS below) =================== */
.gm-catmenu__header{
  position: sticky;            /* stays at top while scrolling */
  top: 0;
  z-index: 3;
  background: #fff;
  border-bottom: 1px solid rgba(16,24,40,.08);
}

.gm-catmenu__close{
  width: 100%;
  display: flex; align-items: center; justify-content: end;
  gap: 12px;
  padding: 12px 16px;
  border: 0; background: transparent;
  cursor: pointer;
  font: 700 16.5px/1.5 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
}

.gm-catmenu__close:hover,
.gm-catmenu__close:focus{
  background: #f6f8fc;
  outline: none;
}

/* left label + right "X" icon */
.gm-catmenu__title{ pointer-events: none; }
.gm-catmenu__close-icon{
  width: 28px; height: 28px;
  display: inline-grid; place-items: center;
  border-radius: 6px;
  background: #e9eefb;
  color: #275bad;
  font-size: 16px;
  line-height: 1;
}

/* keep the first real category nicely separated from the header */
.gm-catmenu__header + li{ border-top: 0; }


/*-----------------------------------------------------------------------------*/

/* ==========================
   Contact Form 7 Compact Form
   ========================== */
.wp-block-contact-form-7-contact-form-selector label {
  margin-block-start: unset;
}

.cf7-compact {
  max-width: 860px;
  margin: 0 auto;
  padding: 2rem;
  background: var(--wp--preset--color--base);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.05);
  font-family: inherit;
}

/* Section headings */
.cf7-compact h3 {
  margin: 1.5rem 0 1rem;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--wp--preset--color--contrast);
  border-bottom: 2px solid var(--wp--preset--color--base-3);
  padding-bottom: 0.25rem;
}

/* Labels */
.cf7-compact label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  font-size: 14px;
  color: var(--wp--preset--color--contrast-2);
}

/* Group labels (like for radios/checkboxes) */
.cf7-compact .cf7-label {
  font-weight: 500;
  margin: 0.25rem 0 0.5rem;
  font-size: 14px;
  color: var(--wp--preset--color--contrast);
}

/* Inputs, selects, textareas */
.cf7-compact input,
.cf7-compact textarea,
.cf7-compact select {
  width: 100%;
  padding: 10px 14px;
  margin-bottom: 1rem;
  border: 1px solid var(--wp--preset--color--line-base);
  border-radius: 8px;
  background: var(--wp--preset--color--base-3);
  font-size: 15px;
  transition: all 0.2s;
  box-sizing: border-box;
}

.cf7-compact input:focus,
.cf7-compact textarea:focus,
.cf7-compact select:focus {
  border-color: var(--wp--preset--color--accent);
  background: var(--wp--preset--color--base);
  box-shadow: 0 0 0 3px var(--wp--preset--color--accent-3);
  outline: none;
}

/* Two column layout */
.cf7-compact .two-col {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.cf7-compact .two-col > label {
  flex: 1;
}

/* ==========================
   Toggle Buttons (radios/checkboxes with .cf7-toggle)
   ========================== */

.cf7-compact .cf7-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.cf7-compact .cf7-toggle .wpcf7-list-item {
  margin: 0 5px;
}

.cf7-compact .cf7-toggle .wpcf7-list-item label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  background-color: var(--wp--preset--color--base-3);
  color: var(--wp--preset--color--contrast);
  border: 1px solid var(--wp--preset--color--line-base);
}

/* Hide native input */
.cf7-compact .cf7-toggle .wpcf7-list-item input {
  display: none;
}

/* Checked state → color whole label */
.cf7-compact .cf7-toggle .wpcf7-list-item label:has(input:checked) {
  background-color: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--white);
  border-color: var(--wp--preset--color--accent);
}

/* Hover */
.cf7-compact .cf7-toggle .wpcf7-list-item label:hover {
  background-color: var(--wp--preset--color--accent-2);
  border-color: var(--wp--preset--color--accent);
}

/* ==========================
   Normal Checkboxes (like consent)
   ========================== */
.cf7-compact .wpcf7-acceptance label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 14px;
  font-weight: 400;
  color: var(--wp--preset--color--contrast);
}

/* Keep native checkbox visible */
.cf7-compact .wpcf7-acceptance input[type="checkbox"] {
  margin-top: 3px;
  width: auto;
}

/* ==========================
   Submit Button
   ========================== */
/* Submit button container to center it */
.cf7-compact p:has(input[type="submit"]) {
  display: flex;
  justify-content: center;
}

/* Submit button */
.cf7-compact input[type="submit"] {
  padding: 10px 24px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  background: var(--wp--preset--color--accent);
  color: var(--wp--preset--color--white);
  border: 2px solid transparent; /* keep border always */
  cursor: pointer;
  transition: all 0.2s ease;
  width: auto; /* button stays compact */
  display: inline-block;
  text-align: center;
}

/* Hover = outline without layout shift */
.cf7-compact input[type="submit"]:hover {
  background: var(--wp--preset--color--white);
  color: var(--wp--preset--color--accent);
  border-color: var(--wp--preset--color--accent);
}

/* ==========================
   Responsive
   ========================== */
@media (max-width: 600px) {
  .cf7-compact .two-col {
    flex-direction: column;
  }
}

/* Adust the menu for desktop */

@media screen and (min-width: 768px) {

    .wp-block-gutenmate-categories-menu__overlay {
        height: auto;
        width: 320px;

    }

    .wp-block-gutenmate-categories-menu__overlay .children {
        overflow: visible !important;
    }

    .wp-block-gutenmate-categories-menu__overlay .children .children.is-overflow {
        left: unset;
        top: 0;
        right: 0;
    }

}

/* Product page select variations */

.woocommerce .wp-block-add-to-cart-form table.variations tr td select {
  height: unset;
}


header {
    z-index: 999 !important;
}

  .grecaptcha-badge {
    visibility: hidden !important;
  }



.woocommerce-tabs.wc-tabs-wrapper li a img {
display: block;
justify-self: center;
padding: 1rem 0;
height: 4rem;
width: 4rem;
}



@media (max-width: 768px) {

    header.wp-block-template-part figure.wp-block-image.alignleft {
        max-width: 100%;
    }
}

@media (max-width: 400px) {
  .has-global-padding {
    padding: 0 0.5rem;
  }
}


/*FEAURE TAB CSS*/
.features-columns {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 32px;
}

.features-column h4 {
    margin-bottom: 10px;
}

.features-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-column li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 6px;
}

.features-column li::before {
    content: "•";
    position: absolute;
    left: 0;
}


/*TAGS ABOVE PRODUCTY IMAGE */
.taxonomy-product_tag.product-image a {
  display: inline-block;
  padding: 4px 10px;
  margin: 0 6px 6px 0;
  font-size: 12px;
  font-weight: 600;
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  line-height: 1.2;
}

.taxonomy-product_tag.product-image a:nth-of-type(1) { background: var(--wp--preset--color--vivid-cyan-blue); } /* blue */
.taxonomy-product_tag.product-image a:nth-of-type(2) { background: #5ab993; } /* green */
.taxonomy-product_tag.product-image a:nth-of-type(3) { background: #ee7593; } /* orange */
.taxonomy-product_tag.product-image a:nth-of-type(4) { background: #b47fe5; } /* purple */

.taxonomy-product_tag.product-image a:nth-of-type(n+5),
.taxonomy-product_tag.product-image .wp-block-post-terms__separator:nth-of-type(n+5) {
  display: none;
}

/* PRODUCT PAGE ADD TO CART FORM */

.variations_form.cart .single_variation_wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.wp-block-woocommerce-add-to-cart-form .variations_button, .wp-block-woocommerce-add-to-cart-form form.cart
{
    display: block;
}

.wp-block-add-to-cart-form .woocommerce-variation-add-to-cart, .woocommerce.pewc-has-extra-fields div.product.elementor form.cart.variations_form .woocommerce-variation-add-to-cart, .woocommerce.pewc-has-extra-fields div.product.elementor form.cart:not(.grouped_form):not(.variations_form), .elementor-widget-wc-add-to-cart form.cart.variations_form .woocommerce-variation-add-to-cart, .elementor-widget-wc-add-to-cart form.cart:not(.grouped_form):not(.variations_form), .woocommerce.pewc-has-extra-fields .single_variation_wrap .variations_button, .woocommerce.pewc-has-extra-fields .summary .cart {
  display: flex
}

.wp-block-woocommerce-product-meta {
  margin-block-start: 10px;
}

.wp-block-add-to-cart-form:not(#\0 ) .woocommerce-variation.single_variation
{
    margin-block-end: 0;
}

.woocommerce div.product form.cart, .wp-block-woocommerce-add-to-cart-form .variations_form.cart,
.wp-block-woocommerce-add-to-cart-form .variations_form.cart .woocommerce-variation.single_variation {
  margin-bottom: 0;
}


/* .wp-block-add-to-cart-form .woocommerce-variation-add-to-cart .single_add_to_cart_button {
  flex-grow: 1;
} */

.wp-block-add-to-cart-form:not(#\0 ) .woocommerce-variation-price .price,
.pewc-total-only .pewc-total-field {
  align-items: center;

}
.wp-block-add-to-cart-form:not(#\0 ) .woocommerce-variation-price .price small,
.pewc-total-only .pewc-total-field small.woocommerce-price-suffix {
  margin-left: 4px;
  font-size: 1em;
}

.pewc-total-only .pewc-total-field .woocommerce-Price-amount.amount {
  font-size: var(--wp--preset--font-size--xl);
  font-weight: 500;
} 

.woocommerce div.product form.cart .variations {
  margin-bottom: 0;
}


/* GENERAL CSS */

figure
{
    max-width: 100%;
    min-width: 25px;
}

.wc-block-components-notice-banner.is-success {
    background-color: var(--wp--preset--color--accent);
}

.wc-block-cart__submit-container {
  display: flex;
  gap: 1rem;
}

/* button.wp-element-button {
    background-color: var(--wp--preset--color--accent);
    color: var(--wp--preset--color--white);
    transition: background-color 0.3s ease;
}
button.wp-element-button:hover {
    background-color: var(--wp--preset--color--white);
    color: var(--wp--preset--color--accent);
    outline: 2px solid var(--wp--preset--color--accent);
} */

/* Product Extras For WooCommerce */

.pewc-form-field pewc-number-field {
    width: 100%;
}
.pewc-form-field.pewc-number-field {
    width: 100%;
}
span.pewc-field-label-text {
    font-weight: bold;
  
}

ul.pewc-product-extra-groups {
  padding-left: 0;
}

ul.pewc-product-extra-groups.cols-2 li+li {
    margin-block-start: 0;
}

/* Hide total ONLY if the sibling with pewc-group-wrap-367 is NOT present */
.pewc-product-extra-groups-wrap:not(:has(.pewc-group-wrap-367))
  .pewc-group-wrap.pewc-hide-totals ~ .pewc-total-only {
    display: none !important;
}


/* flat SWATCH dynamic options to one line: title: options */
li.pewc-text-swatch .pewc-item-field-wrapper {
  display: flex;
  /* gap: 1rem; */
  align-items: baseline;
}

li.pewc-text-swatch .pewc-item-field-wrapper label {
  margin-right: 1rem;
}
.pewc-product-extra-groups .pewc-text-swatch ul.pewc-checkbox-group-wrapper li {
  margin-right: unset;
}
/*****************************************************/

/****************************/
/* WholsaleX Request a quote*/

.wsx-link .wsx-btn.wsx-bg-primary {
 background-color: var(--wp--preset--color--accent);
}

.wsx-message-container .wsx-message-wrapper {
	width: 100%;
}

.wsx-reply-lists.wsx-reply-right .wsx-message-container .wsx-message-wrapper .wsx-message {
	width: 100%;
	max-width: 100%;
	background-color: unset;
}

.wsx-reply-lists.wsx-reply-right .wsx-message-container .wsx-message-wrapper .wsx-message .wsx-quote {
	background-color: unset;
	color: black;
}

.wsx-reply-lists.wsx-reply-right .wsx-message-container .wsx-message-wrapper .wsx-message .wsx-quote .wsx-quote-table-text, .wsx-reply-lists.wsx-reply-right .wsx-message-container .wsx-message-wrapper .wsx-message .wsx-quote .woocommerce-Price-amount, .wsx-quote a.wsx-quote-item-link {
    color: black;
}

.wsx-quote .wsx-quote-table-head {
	background-color: var(--wp--preset--color--accent);
  color: #ffffff;
  font-weight: bold;
}

.wsx-quote-table-row {
    grid-template-columns: 5fr repeat(2, 1fr);
    align-items: start;
}
a.wsx-quote-item-link {
    max-width: 95%;
}

.wsx-w-fit {
    width: 100%;
}

.wholesalex_request_custom_quote_btn {
  font-size: unset;
}
.price-from-label {
    font-size: 0.75em;
}

/* ==========================
   WooCommerce Cart & Checkout Variation Alignment
   ========================== */
dl.variation,
.woocommerce-cart dl.variation,
.woocommerce-checkout dl.variation {
  margin: 0;
  padding: 0;
  overflow: hidden; /* Clear floats */
}

dl.variation dt,
.woocommerce-cart dl.variation dt,
.woocommerce-checkout dl.variation dt {
  float: left;
  clear: left;
  margin: 0;
  padding: 0;
  font-weight: 600;
  margin-right: 0.5em;
}

dl.variation dt:not(:first-child),
.woocommerce-cart dl.variation dt:not(:first-child),
.woocommerce-checkout dl.variation dt:not(:first-child) {
  margin-top: 0.25em;
}

dl.variation dd,
.woocommerce-cart dl.variation dd,
.woocommerce-checkout dl.variation dd {
  float: left;
  margin: 0;
  padding: 0;
}

dl.variation dt:not(:first-child) + dd,
.woocommerce-cart dl.variation dt:not(:first-child) + dd,
.woocommerce-checkout dl.variation dt:not(:first-child) + dd {
  margin-top: 0.25em;
}

dl.variation dd p,
.woocommerce-cart dl.variation dd p,
.woocommerce-checkout dl.variation dd p {
  margin: 0;
  padding: 0;
  display: inline;
}

dl.variation dd p:first-child,
.woocommerce-cart dl.variation dd p:first-child,
.woocommerce-checkout dl.variation dd p:first-child {
  margin-top: 0;
}

dl.variation dd p:last-child,
.woocommerce-cart dl.variation dd p:last-child,
.woocommerce-checkout dl.variation dd p:last-child {
  margin-bottom: 0;
}

.wc-block-mini-cart .wc-block-mini-cart__badge {
  background: #FFFFFF; /* pick a colour that contrasts with the badge background */
  color: var(--wp--preset--color--accent);
}
