/*.single-product .woocommerce-info,
.single-product .woocommerce-message,
.single-product .woocommerce-error {
    padding: 1rem 1.5rem;
    margin-top: 10px !important;
}

.woocommerce-info {
    background-color: #e4f3ff !important;
}

.woocommerce-info li:before {
    content: "\f05a";
    font-family: 'fontawesome';
    font-size: 25px;
    margin-right: 10px;
    color: blue;
}

.woocommerce-message {
    background-color: #e1ffed !important;
}

.woocommerce-message:before {
    content: "\f058";
    font-family: 'fontawesome';
    font-size: 25px;
    margin-right: 10px;
    color: green;
}

.woocommerce-error {
    background-color: #ffe4e4 !important;
}

.woocommerce-error li:before {
    content: "\f071";
    font-family: 'fontawesome';
    font-size: 25px;
    margin-right: 10px;
    color: red;
}*/

/*.add_to_cart_button ::before,
.single_add_to_cart_button::before {
    font-family: 'fontawesome';
    content: '\f07a\00a0\00a0' !important;
    display: contents;
}*/


#use_wallet_field input {
    border: 1px solid;
}

#use_wallet_field label {
    font-weight: normal;
    line-height: 25px;
    padding: 15px 0;
}

#egoi_newsletter_active_field {
    padding: 15px 0;
}

.onsale {
    display: none !important;
}

.sale-date-range {
    font-size: 14px;
    width: 100%;
    display: block;
}

.quantity-price-table {
    display: none;
}

.quantity-price-table thead tr,
.quantity-price-table-simple-product thead tr {
    background-color: #f5f0f2;
}

.quantity-price-table td,
.quantity-price-table-simple-product td {
    vertical-align: middle;
}

.stock.in-stock, .stock.available-on-backorder {
    color: #3fb105 !important;
}

#use_wallet_field label {
    width: 100%;
    display: block;
}

#use_wallet_field .optional {
    float: right;
}

#billing_nif_field {
    width: 100%;
    margin-bottom: 20px;
}

.progress-bar-container {
    width: 100%;
    background-color: #e0e0e0;
    border-radius: 5px;
    margin: 10px 0;
}

.progress-bar {
    height: 20px;
    background-color: #4CAF50;
    border-radius: 5px;
    text-align: center;
    line-height: 20px;
    color: white;
    transition: width 0.5s;
}

#message_counter {
    margin-top: -15px;
    float: right;
    font-size: 14px;
}

/* Badges */
.hpb2b-product-badges{
  position:absolute;
  z-index:2;
  top:10px;
  left:10px;
  display:flex;
  gap:6px;
}

.hpb2b-product-badges-single{
  position:absolute;
  top:12px;
  left:12px;
}

.custom-badge{
  display:inline-block;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:700;
  line-height:1;
}

.custom-badge-sale{
  background:#e11d48;
  color:#fff;
}


.store-stock-container {
    padding: 15px;
    background-color: #f7f7f7; /* Light grey background */
    border: 1px solid #ddd; /* Grey border */
    border-radius: 5px; /* Rounded corners */
    margin: 20px 0; /* Spacing on the container */
    max-width: 350px;
}

.store-stock-header {
    margin-bottom: 10px;
    color: #333; /* Dark text for the header */
    font-weight: bold; /* Make the header bold */
}

.store-stock-list {
    list-style-type: none; /* Remove default list styling */
    padding: 0; /* Remove padding */
    margin: 0; /* Remove margins */
}

.woocommerce-product-stores-details .store-stock-item {
    padding: 5px 0; /* Spacing between items */
}

.store-stock-item {
    border-bottom: 1px solid #ddd; /* Separator line */
}

.store-stock-item:last-child {
    border-bottom: none; /* No separator for the last item */
}

.store-stock-quantity {
    font-weight: bold; /* Highlight the quantity */
    color: #27ae60; /* Green text for the quantity */
}

.woocommerce-variation-stores-details .store-stock-list li {
    margin: 0;
}

.no-store-stock-quantity {
    font-weight: bold; /* Highlight the warning */
    color: #dc318b; /* Pink text for the warning */
}

.purchase_gift_card {
    width: 48%;
    padding: 0 2%;
    float: left;
}

.purchase_gift_card input,
.convert_gift_card_wallet input {
    width: 100%;
}

.convert_gift_card_wallet {
    width: 48%;
    padding: 0 2%;
    float: right;
}

.slider-container {
    overflow-x: auto;
    white-space: nowrap;
    width: 100%;
}

.image-radio {
    display: none; /* Hide the radio button */
}

.slider-image {
    display: inline-block;
    vertical-align: top;
    margin: 10px;
    cursor: pointer; /* Indicates the image is selectable */
    border: 2px solid transparent; /* Default state with no border */
    max-width: 250px;
}

.slider-image img {
    width: 100%;
    height: auto;
}

/* Highlight the border of the image when its radio button is checked */
.image-radio:checked + .slider-image {
    border: 5px solid #18b123;
}

.wallet-section  {
    width: 50%;
    float: left;
}

.points-section {
    width: 48%;
    float: right;
}

.product-categories,
.woocommerce-widget-layered-nav-list {
    max-height: 350px;
    overflow-y: auto;
}

.product-categories .cat-item {
    position: relative;
}

/* Hide subcategories by default */
.product-categories .children {
    display: none;
}

.product-categories .cat-item.expanded > .children {
    display: block; /* Show direct children when expanded */
}

#filter_button {
    background-color: #dc318b;
    color: #ffffff;
}

#custom-price-inputs input {
    width: 100px;
    margin-bottom: 20px;
}

/* garantir overlay no loop */
.woocommerce ul.products li.product,
.woocommerce div.product div.images {
  position: relative;
}

/* swap outline/filled by class */
.hpb2b-fav-wrap .hpb2b-heart--filled{ display:none; }
.hpb2b-fav-wrap .hpb2b-heart--outline{ display:inline-flex; }
.hpb2b-fav-wrap.is-favorite .hpb2b-heart--filled{ display:inline-flex; }
.hpb2b-fav-wrap.is-favorite .hpb2b-heart--outline{ display:none; }

/* base button look */
.hpb2b-fav-wrap{
  border:0;
  background:transparent;
  padding:0;
  cursor:pointer;
  position:absolute;
  top:10px;
  right:10px;
  z-index:20;
  color:#111; /* muda via CSS */
}

/* icon sizing */
.hpb2b-heart-icon{ width:22px; height:22px; display:block; }

/* loading (JS adiciona is-loading) */
.hpb2b-fav-wrap.is-loading{ opacity:.6; pointer-events:none; }

.hpb2b-fav-wrap{
  position:absolute;
  top:10px;
  right:10px;
  z-index:5;
  width:36px;
  height:36px;
  border-radius:999px;
  background:#fff;
  border:1px solid rgba(0,0,0,.08);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  box-shadow:0 6px 16px rgba(0,0,0,.08);
}

.hpb2b-fav-wrap .hpb2b-heart-icon{
  width:18px;
  height:18px;
  color:#111;
}

.hpb2b-fav-wrap.is-favorite .hpb2b-heart-icon{
  color:#e11d48; /* filled */
}

.hpb2b-fav-tooltip{
  display:none;
  position:absolute;
  top:42px;
  right:0;
  white-space:nowrap;
  background:#111;
  color:#fff;
  padding:6px 8px;
  border-radius:8px;
  font-size:12px;
}

.hpb2b-fav-wrap:hover .hpb2b-fav-tooltip{ display:block; }

.hpb2b-block-thumb-wrap .hpb2b-fav-wrap{
  top:10px;
  right:10px;
}

#hpb2b-fav-toast{
  position:fixed;
  bottom:18px;
  right:18px;
  background:#111;
  color:#fff;
  padding:10px 12px;
  border-radius:12px;
  font-size:13px;
  opacity:0;
  transform:translateY(8px);
  transition:all .18s ease;
  z-index:99999;
  pointer-events:none;
}

#hpb2b-fav-toast.show{
  opacity:1;
  transform:translateY(0);
}

.hpb2b-fav-wrap.is-loading{
  opacity:.6;
  pointer-events:none;
}

.quantity.buttons_added {
    display: flex;
    align-items: center;
}

.quantity.buttons_added .minus,
.quantity.buttons_added .plus {
    display: inline-block;
    margin: 5px;
    padding: 5px 10px;
    height: 30px;
    line-height: 22px;
    text-align: center;
    border: none;
    cursor: pointer;
    background-color: #f5f0f2;
    font-size: 18px;
    color: #000;
}

.quantity.buttons_added .minus:hover,
.quantity.buttons_added .plus:hover {
    background-color: #eae1e3;
}

.quantity.buttons_added .qty {
    text-align: center;
}

/*.single-product .cart .single_add_to_cart_button.button.alt {
    margin-right: -4px;
    background-color: #F7CA00;
}

.single-product .cart .single_add_to_cart_button.button.alt:hover {
    background-color: #e9c007;
}

.single-product .cart .single_add_to_cart_button.button.alt,
.product-layout .product_type_simple.button.add_to_cart_button {
    border-radius: 4px 0 0 4px !important;
}

.single-product .cart .button.btn-right,
.product-layout .button.btn-right {
    border-radius: 0 4px 4px 0;
    line-height: inherit;
}

.w-grid-item .button.btn-right {
    width: 100%;
}

.btn-product-buy-now {
    line-height: 1.4 !important;
}

.product-layout .button.btn-right::before {
    border-style: inherit;
}

.single-product .cart .button.btn-right,
.checkout-button,
.place-order .button {
    background-color: #00BF42 !important;
    color: white !important;
}

.single-product .cart .button.btn-right:hover,
.checkout-button:hover,
.place-order .button:hover {
    background-color: #07af41 !important;
}*/


@media only screen and (max-width: 767px) {
    .responsive-table {
        overflow-x: auto; /* Enable horizontal scrolling */
        display: block; /* Block display to enable scrolling */
        white-space: nowrap; /* Keep the table on one line */
    }
    
    .purchase_gift_card,
    .convert_gift_card_wallet,
    .wallet-section,
    .points-section {
        width: 100% !important;
        padding: 0 !important;
    }
    
    .convert_gift_card_wallet,
    .points-section {
        margin-top: 20px;
    }
    
    .favorites-products {
        -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
    }
    
    .favorites-products .woocommerce-loop-product__title {
        font-size: 14px; /* Adjust font size for mobile */
    }
}

@media only screen and (max-width: 600px) {
    .filters-results-mobile {
        display: none; /* Hide by default */
        width: 100% !important; /* Full width */
        position: static; /* Reset positioning */
        transition: max-height 0.5s ease-out; /* Smooth transition for max-height */
    }
    
    .single-product .add_to_cart .cart .button {
        width: 110px;
        padding: 13px 0px;
    }
}