/*
 Theme Name:   Alps IT Bricks Child Theme
 Description:  Custom theme
 Author:       James Avill - Alps IT
 Author URI:   https://www.alps-it.com/
 Template:     bricks
 Version:      1.0
*/

/* Header behaviour */
.scrolling .top-bar {
    max-height: 0px;
    overflow: hidden;
    padding: 0 !important;
}
.top-bar {
  transition: 0.5s;
}

/* Highlight */
.highlighted {
  position:relative;
  z-index: 0;
}
.highlighted:before{
  content:"";
  background-color:var(--accent-trans-70);
  width:100%;
  height:1em;
  position:absolute;
  z-index:-1;
  filter:url(#marker-shape);
  left:-0.25em;
  top:0.1em;
  padding:0 3.4em;
}

.bundled_product_excerpt {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

/* Product Icons */
.product-icons {
    display: flex;
    gap: 5px;
    color: var(--black);
    /* flex-wrap: wrap; */
}
.product-icon {
    width: 30px;
    height: 30px;
    /* margin-right: 5px; */
}
.home .product-icon {
    width: 30px;
    height: 30px;
}
.single-product .product-icon {
    margin-right: 5px;
}

/* Shop Archive Styles */
.price-per-serving {
    color: var(--success);
    text-align: center;
}
.serves-text {
    color: var(--neutral);
    font-size: var(--text-xs);
    text-align: center;
    line-height: 1rem;
}
.price-per-total,
.serves-number {
    color: var(--neutral-medium);
    font-size: var(--text-xs);
    text-align: center;
    line-height: 1em;
    margin-top: 1rem;
}
.cart.brx-loop-product-form {
  justify-items: center;
}
.archive .add_to_cart_button  {
  width: 100%;
}
dt.variation-Includes {
  display: none;
}

/* Product Single Image Gallery Captions */
.woocommerce-product-gallery .woocommerce-product-gallery__image {
    position: relative;
}
.woocommerce-product-gallery .woocommerce-product-gallery__image:not(:nth-last-child(-n+2))::after {
  content: attr(data-thumb-alt);
  position: absolute;
  bottom: 1em;
  left: 0;
  padding: 5px 10px;
  background-color: var(--primary);
  color: #000000;
  /* border-radius: 8px; */
  border: 1px solid var(--black);
  font-size: var(--text-xs);
}

.single_add_to_cart_button {
  background-color: var(--success)!important;
    color: white!important;
    text-transform: uppercase!important;
  max-width: 137px;
}
@media (min-width: 767px) {
.bundle_button,
.single-product__add-cart form:not(.bundle_form) {
  display: flex!important;
  flex-direction: row !important;
}
}
.input-text {
  min-height: 40px;
}

/* Cart */
 .bundle_price {
    display: none!important;
}
.bundled_product_permalink {
    display: none!important;
}
/* tr.cart_item.bundle_table_item .quantity {
  display: none;
} */
.bundled_table_item_price {
  display: none;
}
.bundled_table_item_subtotal {
  display: none;
}
.bundled_table_item .product-quantity {
  display: none;
}
td.product-price,
th.product-price {
  display: none;
} 
.bundled_table_item .product-thumbnail {
  display: none;
}
.bundled_table_item .product-name {
  padding: 0;
}
.bundle_table_item {
  border-top: #d5d5d5 1px solid;
  /* border-bottom: none; */
}
tr.cart_item,
.woocommerce-mini-cart-item.mini_cart_item {
  border-top: #d5d5d5 1px solid;
  border-bottom: none;
  border-color: #d5d5d5 !important;
}
.bundled_table_item {
  border-top: none;
}
.woocommerce-cart-form__cart-item .product-name {
  padding: 0 !important;
}
.woocommerce-cart-form__cart-item .product-thumbnail {
  display: none;
}

.woocommerce-mini-cart-item.mini_cart_item .attachment-woocommerce_thumbnail {
  display: none;
}
.woocommerce-mini-cart li {
  margin-bottom: 20px;
}
.brxe-woocommerce-mini-cart .button.wc-forward {
  margin-block-start: 0 !important;
}
.bundle_container_mini_cart_item .variation {
  font-size: var(--text-xs);
}

.brxe-woocommerce-mini-cart .cart-detail .widget_shopping_cart_content {
  justify-content: flex-start;
}

/* Hide cart update cart button */
.woocommerce button[name="update_cart"],
.woocommerce input[name="update_cart"] {
	display: none;
}

.cart-item-serves {
  font-size: var(--text-s);
  color: var(--accent);
  margin-top: 3px; 
  font-weight: normal;
}
.bundled_table_item .cart-item-serves {
  display: none;
}
.cart-item-bundle-description,
.cart-item-bundle-includes {
  font-size: var(--text-xs);
  color: var(--base);
  margin-top: 3px;
  font-weight: normal;
}
.bundled_table_item .product-name {
  font-size: var(--text-xs)!important;
  padding-left: 2rem;

}

/* Checkout */
.woocommerce-checkout-review-order-table .product-quantity { 
  display: none; 
}
.woocommerce-checkout-review-order-table .cart-item-bundle-description { 
  display: none; 
}
.woocommerce-checkout .bundled_table_item .product-name {
  padding: 0 !important;
}
.woocommerce-checkout .bundle_table_item .product-name {
  padding-bottom: 0 !important;
}

/* Free delivery alert */
.free-delivery-alert {
    background-color: var(--warning);
    color: var(--neutral);
    padding: 10px;
    text-align: center;
    margin-bottom: 20px;
}
.free-delivery-alert .button {
    margin-left: 20px;
}

.button.product_type_bundle {
  margin-top: 1rem !important;
}
.bundled_product_excerpt h4 {
  margin-bottom: 1rem;
  margin-top: 1rem;
}

.cart-item-bundle-description * {
  font-size: var(--text-xs) !important;
} 

#ship-to-different-address { 
  display: none !important; 
}
#shipping_country_field,
#shipping_postcode_field,
#shipping_city_field { 
  display: none !important; 
}

.checkout-inline-error-message {
  color: red;
}

/* Systempay Order Flash Screen */
.woocommerce-order-pay article {
  max-width: 1380px;
  margin: 0 auto;
}

/* Enhance the CookieYes banner to make it standout more without paying for their upgraded version */
.cky-notice-des *, .cky-preference-content-wrapper *, .cky-dma-content-wrapper *, .cky-accordion-header-des *, .cky-gpc-wrapper .cky-gpc-desc *, .cky-btn, .cky-preference-title, .cky-title, .cky-accordion-header, .cky-accordion-body {
font-family: sans-serif !important;
}
.cky-consent-container {
box-shadow: rgba(0, 0, 0, 0.5) 0px 0px 0px 8000px;
}
.cky-overlay {
opacity: 0.5 !important;
}