/*
Theme Name: Built Not Given
Template: hello-elementor
*/

/* =========================
   Woo Checkout Block styling
   ========================= */

body.woocommerce-checkout .wp-site-blocks,
body.woocommerce-checkout .entry-content,
body.woocommerce-checkout .wp-block-woocommerce-checkout {
  max-width: 100% !important;
  padding-left: 16px;
  padding-right: 16px;
  box-sizing: border-box;
}

/* Make checkout feel like a clean card layout */
body.woocommerce-checkout .wp-block-woocommerce-checkout {
  max-width: 1100px;
  margin: 0 auto;
}

/* Make the main pay/place order button full width */
body.woocommerce-checkout .wp-block-woocommerce-checkout .wc-block-components-checkout-place-order-button,
body.woocommerce-checkout .wp-block-woocommerce-checkout button[type="submit"] {
  width: 50%;
  padding: 14px 16px;
  border-radius: 3px;
}

/* Kill horizontal overflow on mobile */
body.woocommerce-checkout {
  overflow-x: hidden;
}

/* Split background layout */
body.woocommerce-checkout {
  background: linear-gradient(
    to right,
    #ffffff 0%,
    #ffffff 59%,
    #f5f5f5 41%,
    #f5f5f5 100%
  );
}

/* Keep checkout centred */
body.woocommerce-checkout .wp-block-woocommerce-checkout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 40px 0;
}

/* Remove border around order summary */
body.woocommerce-checkout 
.wp-block-woocommerce-checkout-order-summary-block,
body.woocommerce-checkout 
.wc-block-components-order-summary,
body.woocommerce-checkout 
.wc-block-components-totals-wrapper {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/* Remove split background on mobile */
@media (max-width: 900px) {
  body.woocommerce-checkout {
    background: #ffffff !important;
  }
}

/* Shopify-style lighter inputs */
body.woocommerce-checkout 
.wc-block-components-text-input input,
body.woocommerce-checkout 
.wc-block-components-select select,
body.woocommerce-checkout 
.wc-block-components-text-input textarea {
  border: 1px solid #e5e5e5 !important;
  }

  /* Make ALL checkout controls match the same light border */
body.woocommerce-checkout .wp-block-woocommerce-checkout
.wc-block-components-form .wc-block-components-text-input input,
body.woocommerce-checkout .wp-block-woocommerce-checkout
.wc-block-components-form .wc-block-components-text-input textarea,
body.woocommerce-checkout .wp-block-woocommerce-checkout
.wc-block-components-form .wc-block-components-select select,
body.woocommerce-checkout .wp-block-woocommerce-checkout
.wc-block-components-form .wc-block-components-radio-control__option,
body.woocommerce-checkout .wp-block-woocommerce-checkout
.wc-block-components-form .wc-block-components-checkbox .wc-block-components-checkbox__input {
  border-color: #e5e5e5 !important;
  border-radius: 3px !important;
  box-shadow: none !important;
}

/* Shipping / payment option containers sometimes have their own border */
body.woocommerce-checkout .wp-block-woocommerce-checkout
.wc-block-components-shipping-rates-control,
body.woocommerce-checkout .wp-block-woocommerce-checkout
.wc-block-components-payment-methods {
  border: none !important;
  box-shadow: none !important;
}

/* === Shipping + Payment options: unify styling === */

/* Shipping option rows */
body.woocommerce-checkout .wp-block-woocommerce-checkout
.wc-block-components-radio-control__option {
  border: 1px solid #e5e5e5 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  background: #fff !important;
}

/* Payment method rows (accordion style) */
body.woocommerce-checkout .wp-block-woocommerce-checkout
.wc-block-components-radio-control-accordion-option,
body.woocommerce-checkout .wp-block-woocommerce-checkout
.wc-block-components-radio-control-accordion-option__item {
  border: 1px solid #e5e5e5 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  background: #fff !important;
}

/* Remove odd left/right “bars” some themes add */
body.woocommerce-checkout .wp-block-woocommerce-checkout
.wc-block-components-radio-control-accordion-option::before,
body.woocommerce-checkout .wp-block-woocommerce-checkout
.wc-block-components-radio-control-accordion-option::after,
body.woocommerce-checkout .wp-block-woocommerce-checkout
.wc-block-components-radio-control__option::before,
body.woocommerce-checkout .wp-block-woocommerce-checkout
.wc-block-components-radio-control__option::after {
  display: none !important;
}

/* Fix darker Country/County dropdown borders */
body.woocommerce-checkout .wp-block-woocommerce-checkout
.wc-block-components-select__container {
  border: 1px solid #e5e5e5 !important;
  border-radius: 3px !important;
  box-shadow: none !important;
  background: #fff !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout
select.wc-block-components-select__select {
  border: none !important;          /* border lives on the container */
  box-shadow: none !important;
  background: transparent !important;
}

/* Country/County dropdown border (correct class names) */
body.woocommerce-checkout .wp-block-woocommerce-checkout
.wc-blocks-components-select__container {
  border: 1px solid #e5e5e5 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  background: #fff !important;
}

body.woocommerce-checkout .wp-block-woocommerce-checkout
select.wc-blocks-components-select__select {
  border: none !important;          /* border is on the container */
  box-shadow: none !important;
  background: transparent !important;
}

/* Offset the sticky sidebar (order summary) from top */
body.woocommerce-checkout .wc-block-components-sidebar.wc-block-checkout__sidebar {
  top: 100px !important;
}

/* Text inputs only (won't touch checkboxes / shipping / payment radios) */
body.woocommerce-checkout .wp-block-woocommerce-checkout
.wc-block-components-text-input input,
body.woocommerce-checkout .wp-block-woocommerce-checkout
.wc-block-components-text-input textarea,
body.woocommerce-checkout .wp-block-woocommerce-checkout
.wc-blocks-components-select__container {
  border: 1px solid #e5e5e5 !important;
  border-radius: 4px !important;
  box-shadow: none !important;
  background: #fff !important;
}

/* Keep the select itself clean */
body.woocommerce-checkout .wp-block-woocommerce-checkout
select.wc-blocks-components-select__select {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
}

/******** Remove header & footer on Checkout ********/

body.woocommerce-checkout .site-header,
body.woocommerce-checkout header,
body.woocommerce-checkout .site-footer,
body.woocommerce-checkout footer {
  display: none !important;
}

/* Remove Checkout page title */
body.woocommerce-checkout h1.entry-title,
body.woocommerce-checkout .wp-block-post-title {
  display: none !important;
}

/* Add breathing space at top of checkout */
body.woocommerce-checkout .wp-block-woocommerce-checkout {
  padding-top: 50px;
}

/* Black Place Order button */
body.woocommerce-checkout 
.wc-block-components-checkout-place-order-button,
body.woocommerce-checkout 
button.wc-block-components-button {
  background: #000 !important;
  color: #fff !important;
  border: none !important;
}

/* Hover effect */
body.woocommerce-checkout 
.wc-block-components-checkout-place-order-button:hover,
body.woocommerce-checkout 
button.wc-block-components-button:hover {
  background: #222 !important;
  color: #fff !important;
}

/* Hide only long product description text */
body.woocommerce-checkout 
.wc-block-components-order-summary-item__description p {
  display: none !important;
}

/* Coupon input wider, button smaller */
body.woocommerce-checkout 
.wc-block-components-totals-coupon__content {
  display: flex;
  gap: 8px;
}

body.woocommerce-checkout 
.wc-block-components-totals-coupon__content input {
  flex: 2 !important;   /* wider */
}

body.woocommerce-checkout 
.wc-block-components-totals-coupon__content button {
  flex: 1 !important;   /* smaller */
}

/* ---------- BNG side cart quantity controls ---------- */
.elementor-menu-cart__product-price .quantity{
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 10px !important;
}

.bng-sidecart-price-row{
  display: block !important;
}

.bng-sidecart-price{
  font-weight: 600 !important;
  color: #111 !important;
}

.bng-sidecart-qty-wrap{
  display: inline-flex !important;
  align-items: center !important;
  border: 1px solid #dcdcdc !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #fff !important;
  min-height: 38px !important;
}

button.bng-sidecart-qty-btn,
button.bng-sidecart-qty-btn:hover,
button.bng-sidecart-qty-btn:focus,
button.bng-sidecart-qty-btn:focus-visible,
button.bng-sidecart-qty-btn:active{
  -webkit-appearance: none !important;
  appearance: none !important;
  -moz-appearance: none !important;

  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  min-height: 38px !important;

  margin: 0 !important;
  padding: 0 !important;

  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: #fff !important;
  background-image: none !important;
  color: #111 !important;

  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  border-radius: 0 !important;
  text-decoration: none !important;
  cursor: pointer !important;

  -webkit-tap-highlight-color: transparent !important;
}

button.bng-sidecart-qty-btn::-moz-focus-inner{
  border: 0 !important;
  padding: 0 !important;
}

.bng-sidecart-qty-value{
  min-width: 42px !important;
  height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 600 !important;
  color: #111 !important;
  padding: 0 8px !important;
  border-left: 1px solid #e9e9e9 !important;
  border-right: 1px solid #e9e9e9 !important;
  background: #fff !important;
}

.bng-sidecart-qty-wrap.bng-updating{
  opacity: .55 !important;
  pointer-events: none !important;
}

.bng-sidecart-qty-wrap.bng-updating .bng-sidecart-qty-btn{
  background: #f3f3f3 !important;
  cursor: wait !important;
}

.bng-sidecart-qty-wrap.bng-updating .bng-sidecart-qty-value{
  background: #fafafa !important;
}

.bng-sidecart-qty-wrap .bng-sidecart-qty-btn.is-disabled,
.bng-sidecart-qty-wrap .bng-sidecart-qty-btn:disabled{
  opacity: .4 !important;
  cursor: not-allowed !important;
  background: #f5f5f5 !important;
  color: #888 !important;
}

@media (max-width: 767px){
  .bng-sidecart-qty-wrap{
    min-height: 34px !important;
    border-radius: 6px !important;
  }

  button.bng-sidecart-qty-btn,
  button.bng-sidecart-qty-btn:hover,
  button.bng-sidecart-qty-btn:focus,
  button.bng-sidecart-qty-btn:focus-visible,
  button.bng-sidecart-qty-btn:active{
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    font-size: 16px !important;
  }

  .bng-sidecart-qty-value{
    min-width: 36px !important;
    height: 34px !important;
    font-size: 15px !important;
  }
}

/* =========================================================
   BNG Category Switcher
========================================================= */

.bng-category-switcher {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  font-family: "Sofia Sans Condensed", sans-serif;
}

/* CATEGORY TABS */

.bng-category-switcher__tabs-wrap {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.bng-category-switcher__tabs {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  margin-bottom: 18px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.bng-category-switcher__tabs::-webkit-scrollbar {
  display: none;
}

.bng-category-switcher__tab,
.bng-category-switcher__tab:hover,
.bng-category-switcher__tab:focus,
.bng-category-switcher__tab:active {
  background: transparent !important;
  border: 0;
  padding: 0 0 8px;
  white-space: nowrap;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
  color: #111 !important;
  cursor: pointer;
  position: relative;
  font-family: "Sofia Sans Condensed", sans-serif;
  box-shadow: none;
  outline: none;
  flex: 0 0 auto;
}

.bng-category-switcher__tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: #111;
}

/* SHOP ALL LINK */

.bng-category-switcher__topbar {
  margin-bottom: 20px;
}

.bng-category-switcher__shop-all {
  font-size: 20px;
  font-weight: 600;
  color: #111;
  text-decoration: none;
}

.bng-category-switcher__shop-all span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* PRODUCT AREA */

.bng-category-switcher__products-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
}

.bng-category-switcher__products {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 220px;
  padding: 0 44px;
  background: transparent;
  overflow: hidden;
}

.bng-category-switcher__placeholder,
.bng-category-switcher__empty {
  margin: 0;
  color: #666;
  font-size: 14px;
  font-family: "Sofia Sans Condensed", sans-serif;
}

/* ARROWS */

.bng-category-switcher__arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 1px solid #ddd;
  background: #fff;
  color: #111;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
}

.bng-category-switcher__arrow:hover {
  background: #111;
  color: #fff;
  border-color: #111;
}

.bng-category-switcher__arrow:disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.bng-category-switcher__arrow--prev {
  left: 0;
}

.bng-category-switcher__arrow--next {
  right: 0;
}

/* PRODUCT RAIL (DESKTOP) */

.bng-category-switcher__grid {
  display: flex;
  gap: 20px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 10px;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
}

.bng-category-switcher__grid::-webkit-scrollbar {
  display: none;
}

.bng-category-switcher__grid.is-dragging {
  cursor: grabbing;
}

.bng-product-card {
  flex: 0 0 calc((100% - 100px) / 6);
  min-width: calc((100% - 100px) / 6);
  max-width: calc((100% - 100px) / 6);
  display: flex;
  flex-direction: column;
  user-select: none;
}

.bng-product-card__image-link {
  display: block;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
}

.bng-product-card__image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
}

.bng-product-card__title {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 600;
  margin: 0 0 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}

.bng-product-card__title a {
  color: #111;
  text-decoration: none;
}

.bng-product-card__price {
  font-size: 18px;
  font-weight: 700;
  color: #111;
  margin-bottom: 10px;
}

.bng-product-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  padding: 12px 16px;
  transition: opacity 0.2s ease;
}

.bng-product-card__button:hover {
  opacity: 0.9;
  color: #fff;
}

/* TABLET */

@media (max-width: 1024px) {
  .bng-product-card {
    flex: 0 0 calc((100% - 40px) / 3);
    min-width: calc((100% - 40px) / 3);
    max-width: calc((100% - 40px) / 3);
  }
}

/* MOBILE */

@media (max-width: 767px) {
  .bng-category-switcher__tabs-wrap {
    overflow: hidden;
  }

  .bng-category-switcher__tabs-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 24px;
    height: 100%;
    pointer-events: none;
    background: linear-gradient(to right, rgba(255,255,255,0), #fff);
  }

  .bng-category-switcher__tabs {
    gap: 10px;
    padding-right: 26px;
  }

  .bng-category-switcher__tab {
    font-size: 19px;
  }

  .bng-category-switcher__shop-all {
    font-size: 18px;
  }

  .bng-category-switcher__products {
    padding: 0;
  }

  .bng-category-switcher__arrow {
    display: none !important;
  }

  .bng-category-switcher__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    overflow: visible;
    padding-bottom: 0;
    cursor: default;
  }

  .bng-product-card {
    flex: unset;
    min-width: 0;
    max-width: none;
  }

  .bng-product-card__title {
    font-size: 16px;
  }

  .bng-product-card__price {
    font-size: 17px;
  }

  .bng-product-card__button {
    font-size: 14px;
    min-height: 42px;
  }

  .bng-product-card:nth-child(n+5) {
    display: none;
  }
}

.bng-category-switcher__grid.is-dragging a,
.bng-category-switcher__grid.is-dragging img {
  pointer-events: none;
}

.bng-category-switcher__grid img {
  -webkit-user-drag: none;
  user-select: none;
}

.bng-category-switcher__grid.is-pointer-down {
  cursor: grab;
}

/* ========================================
BNG PRODUCT FILTERS
======================================== */

.bng-product-filters{
  font-family: "Sofia Sans Condensed", sans-serif;
}

/* FILTER SECTIONS */

.bng-filter-section{
  margin-bottom: 34px;
}

.bng-filter-title{
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
  color: #111;
}

/* FILTER LIST */

.bng-filter-list{
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 180px;
  overflow-y: auto;
  padding-right: 6px;
}

/* SCROLLBAR */

.bng-filter-list::-webkit-scrollbar{
  width: 6px;
}

.bng-filter-list::-webkit-scrollbar-track{
  background: transparent;
}

.bng-filter-list::-webkit-scrollbar-thumb{
  background: #ddd;
  border-radius: 20px;
}

.bng-filter-list::-webkit-scrollbar-thumb:hover{
  background: #bbb;
}

/* LIST ITEMS */

.bng-filter-item{
  margin-bottom: 12px;
}

/* CHECKBOX STYLE */

.bng-filter-checkbox{
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  cursor: pointer;
  color: #111;
}

.bng-filter-checkbox input{
  width: 18px;
  height: 18px;
  accent-color: #111;
  cursor: pointer;
}

/* Checked filter highlight */

.bng-filter-checkbox input:checked + span{
  font-weight:600;
}

/* APPLY BUTTON */

.bng-filter-actions{
  margin-top: 18px;
}

.bng-filter-apply{
  width: 100%;
  min-height: 46px;
  border: none;
  background: #111;
  color: #fff;
  font-family: "Sofia Sans Condensed", sans-serif;
  font-size: 17px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity .2s ease;
}

.bng-filter-apply:hover{
  opacity: .9;
}

/* ========================================
MOBILE
======================================== */

@media (max-width: 767px){

  .bng-product-filters{
    margin-bottom: 30px;
  }

  .bng-filter-title{
    font-size: 21px;
  }

  .bng-filter-checkbox{
    font-size: 16px;
  }

  .bng-filter-list{
    max-height: 160px;
  }

  .bng-filter-apply{
    min-height: 44px;
    font-size: 16px;
  }

}

/* ========================================
BNG FILTER FIXES
======================================== */

/* Make category links same size as filters */

.bng-product-filters .bng-filter-section a{
  font-size:18px;
  line-height:1.4;
  display:block;
  margin-bottom:12px;
  text-decoration:none;
  color:#111;
}

/* Add spacing between brand & flavour items */

.bng-filter-list li{
  margin-bottom:12px;
}

/* Prevent items touching scroll edges */

.bng-filter-list{
  padding-top:4px;
  padding-bottom:4px;
}

/* APPLY FILTER HOVER FIX */

.bng-filter-apply:hover{
  background:#bc9b51;
  color:#fff;
}


/* CLEAR FILTER BUTTON */

.bng-filter-clear{
  display:block;
  margin-top:10px;
  text-align:center;
  font-size:16px;
  font-weight:600;
  color:#111;
  text-decoration:none;
}

.bng-filter-clear:hover{
  text-decoration:underline;
}

/* ========================================
BNG MOBILE FILTER DRAWER
======================================== */

/* Hide mobile-only controls on desktop */
.bng-filter-toggle,
.bng-filter-overlay,
.bng-filter-mobile-header{
  display: none;
}

/* Mobile only */
@media (max-width: 767px){

  /* Show the Filter button */
  .bng-filter-toggle{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-family: "Sofia Sans Condensed", sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
  }

  /* Overlay */
  .bng-filter-overlay{
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .25s ease, visibility .25s ease;
    z-index: 9998;
  }

  /* Filter panel */
  .bng-product-filters{
    position: fixed;
    top: 0;
    right: 0;
    width: min(88vw, 380px);
    height: 100dvh;
    background: #fff;
    z-index: 9999;
    transform: translateX(100%);
    transition: transform .28s ease;
    overflow-y: auto;
    padding: 22px 18px 28px;
    box-shadow: -18px 0 45px rgba(0,0,0,.18);
  }

  /* Open state */
  .bng-product-filters-wrap.is-open .bng-product-filters{
    transform: translateX(0);
  }

  .bng-product-filters-wrap.is-open .bng-filter-overlay{
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  /* Mobile header inside drawer */
  .bng-filter-mobile-header{
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid #e8e8e8;
  }

  .bng-filter-mobile-title{
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #111;
    font-family: "Sofia Sans Condensed", sans-serif;
  }

  .bng-filter-close{
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #111;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
  }

  /* Prevent the old sidebar block feel on mobile */
  .bng-product-filters{
    margin-bottom: 0 !important;
  }

  .bng-filter-section{
    margin-bottom: 26px;
  }

  .bng-filter-list{
    max-height: 180px;
  }

  .bng-filter-actions{
    margin-top: 22px;
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
  }
}

body.bng-filter-drawer-open{
  overflow: hidden;
}