
/* ==============================
   BLACK RHINO – WOO Bought Together (WOO BT)
   Compact cards + title + checkbox next to price
   ============================== */

/* 0) Header τίτλος */
.woobt-wrap{
  position: relative;
  margin: 12px 0 14px !important;
  padding-top: 10px !important;
}

.woobt-wrap:before{
  content:"ΣΥΝΗΘΩΣ ΑΓΟΡΑΖΟΝΤΑΙ ΜΑΖΙ";
  display:block;
  font-weight: 950;
  letter-spacing: .8px;
  text-transform: uppercase;
  text-align:center;
  font-size: 16px;
  margin: 0 0 10px 0;
  color:#111;
  font-family: ui-rounded, system-ui, -apple-system, "Segoe UI", Roboto, Arial;
}

/* 1) Οριζόντιο scroll */
.woobt-products{
  display:flex !important;
  flex-wrap:nowrap !important;
  gap:10px !important;
  overflow-x:auto !important;
  -webkit-overflow-scrolling:touch;
  padding: 6px 6px 12px !important;
  scroll-snap-type:x mandatory;
}

/* 2) ΔΥΟ κουτιά στο κινητό */
.woobt-product{
  flex: 0 0 calc(50% - 8px) !important;   /* <-- 2 cards */
  max-width: calc(50% - 8px) !important; /* <-- 2 cards */
  scroll-snap-align:start;
  background:#fff !important;
  border-radius: 18px !important;
  border: 1px solid rgba(0,0,0,.10) !important;
  padding: 10px !important;
  box-shadow: 0 14px 28px rgba(0,0,0,.16) !important;
}

/* desktop */
@media (min-width: 900px){
  .woobt-product{ flex:0 0 240px !important; max-width:240px !important; }
}

/* 3) Καθαρό layout - λιγότερο κενό */
.woobt-product{
  display:grid !important;
  grid-template-rows: auto auto auto;
  row-gap: 8px;
}

/* 4) Η εικόνα να ΓΕΜΙΖΕΙ το box (όχι μικρή στη μέση) */
.woobt-thumb{ margin:0 !important; }
.woobt-thumb img{
  width: 100% !important;
  height: 140px !important;         /* λίγο πιο “γεμάτη” */
  object-fit: cover !important;      /* <-- γεμίζει */
  display:block !important;
  border-radius: 14px !important;
  background: #f3f3f3;
}

/* 5) Τίτλος 2 γραμμές */
.woobt-product-this .woobt-title-inner > span:first-child{ display:none !important; }

.woobt-title{
  margin:0 !important;
  font-weight: 900 !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  color:#111 !important;

  display:-webkit-box !important;
  -webkit-line-clamp:2;
  -webkit-box-orient: vertical;
  overflow:hidden;
  min-height: calc(1.25em * 2);
}

.woobt-availability{ display:none !important; }

/* 6) Τιμή + checkbox στην ΙΔΙΑ γραμμή (δίπλα) */
.woobt-price{
  margin:0 !important;
  font-weight: 950 !important;
  font-size: 18px !important;
  color:#F26522 !important;
  letter-spacing: .2px;

  display:flex !important;
  align-items:center !important;
  justify-content: space-between !important; /* <-- τιμή αριστερά, checkbox δεξιά */
  gap:10px !important;
}

.woobt-price .woocommerce-Price-amount{
  font-weight: 950 !important;
  color:#F26522 !important;
}

/* 7) Το overlay “τετράγωνο” πάνω στην εικόνα να φύγει εντελώς */
.woobt-product .checkmark{ display:none !important; }

/* Αν το plugin βάζει checkbox πάνω στη φωτο, το κρύβουμε ΜΟΝΟ εκεί */
.woobt-thumb input.woobt-checkbox{
  display:none !important;
}

/* 8) Κράτα το πραγματικό checkbox (π.χ. #woobt_checkbox_1) μόνο δίπλα στην τιμή */
.woobt-choose{
  margin:0 !important;
  padding:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:flex-end !important;
}

/* κρύψε label */
.woobt-choose label{
  position:absolute !important;
  left:-9999px !important;
}

/* checkbox πορτοκαλί & σταθερό */
.woobt-choose input.woobt-checkbox{
  width: 22px !important;
  height: 22px !important;
  accent-color: #F26522 !important;
  transform: translateY(1px);
}

/* 9) Μείωσε επιπλέον κενά */
.woobt-product *{ max-width:100%; }
.woobt-product .woobt-title,
.woobt-product .woobt-price{ padding:0 !important; }
/* =========================================================
   BLACK RHINO – WOO BT
   Show ONLY when there is at least 1 extra product selected
   ========================================================= */

/* 1) Default: κρύψε το block και τον τίτλο */
.woobt-wrap{ display:none !important; }

/* 2) Εμφάνισε ΜΟΝΟ όταν υπάρχει τουλάχιστον 1 προϊόν πέρα από το "this" */
.woobt-wrap:has(.woobt-product:not(.woobt-product-this)){ display:block !important; }

/* 3) Κρύψε τον τίτλο όταν δεν υπάρχουν έξτρα προϊόντα */
.woobt-wrap:before{ display:none !important; }
.woobt-wrap:has(.woobt-product:not(.woobt-product-this)):before{ display:block !important; }
/* Hide the original Woo variation add-to-cart block (we use ghost button) */
form.cart .woocommerce-variation-add-to-cart.variations_button{
  display: none !important;
}