/* Grid container */
.wlp-branch-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.wlp-branch-grid input[type=radio] {
    display: none !important;
}

.alert-color {
    padding: 16px;
    background: #ffcbc7;
    border-radius: 12px;
    font-size: 16px;
}

/* Card styling */
.wlp-card {
  flex: 1 1 calc(33% - 12px);
  border: 2px solid #ddd;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  padding: 16px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wlp-card:hover {
  border-color: #0073aa;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Saat radio dicentang, border card aktif */
input[type="radio"]:checked + .wlp-card {
  border-color: #0073aa;
  box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}

/* Card content */
.wlp-card-content {
  width: 100%;
}

.wlp-branch-name {
  font-weight: 600;
  margin-bottom: 6px;
}

/* Status colors */
.wlp-status {
  display: block;
  font-size: 0.9em;
  margin-top: 4px;
}

.wlp-status.available {
  color: green;
}

.wlp-status.limited {
  color: #e67e22;
}

.wlp-status.out {
  color: #999;
}

.wlp-card.disabled {
  cursor: not-allowed;
  background: #f5f5f5;
  color: #aaa;
}

/* Bungkus qty + tombol add to cart dalam 1 baris */
.single-product form.cart {
  display: flex;
  align-items: center;
  gap: 10px; /* jarak antar elemen */
}

/* Qty box biar rapi */
.single-product form.cart .quantity {
  margin: 0;
}

/* --- FORM CART: pastikan wrap dan beri gap --- */
.single-product form.cart,
.woocommerce div.product form.cart,
.woocommerce .variations_form.cart{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px; /* jarak antar elemen dalam form */
}

/* --- Blok pilihan cabang harus satu baris penuh --- */
form.cart .wlp-branch-selector{
  flex: 0 0 100% !important;  /* kuncinya */
  width: 100%;
  margin-bottom: 12px;        /* jarak ke baris berikutnya */
}

/* --- Baris qty + add-to-cart yang kita buat via JS --- */
form.cart .wlp-atc-row{
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Rapikan komponen qty & tombol */
form.cart .quantity.buttons_added{ margin: 0; }
form.cart .single_add_to_cart_button{ margin: 0; }

/* Responsif: tombol full-width di mobile */
/*@media (max-width: 576px) {*/
/*  .wlp-atc-row {*/
/*    flex-direction: row;*/
/*    justify-content: space-between;*/
/*  }*/

/*  .wlp-atc-row .quantity {*/
/*    flex: 0 0 25%;*/
/*  }*/

/*  .wlp-atc-row .single_add_to_cart_button,*/
/*  .wlp-atc-row .buy_now_button {*/
/*    flex: 1;*/
/*  }*/
/*}*/

@media (max-width: 480px){
  form.cart .wlp-atc-row{
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  form.cart .single_add_to_cart_button{ width: 100%; }
}

.button, input[type=button].button, input[type=reset].button, input[type=submit], input[type=submit].button {
    border-radius: 10px;
}

.quantity .button.minus, .quantity .button.plus {
    background: transparent;
}

form.cart .single_add_to_cart_button {
    /*background : #376317;*/
    color: #222;
    border-color: #ddd;
    background: transparent;
    border-radius: 5px;
}


