.wcbbg-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  background: #eef7ee;
  border: 1px solid #cde8cd;
}

.wcbbg-muted { color: #888; }

.wcbbg-item-cta {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wcbbg-small-note {
  font-size: 12px;
  color: #666;
}

.wcbbg-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 99999;
}

.wcbbg-modal.is-open { display: block; }

.wcbbg-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
}

.wcbbg-modal__dialog {
  position: relative;
  max-width: 520px;
  margin: 8vh auto;
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

.wcbbg-modal__close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  font-size: 26px;
  cursor: pointer;
}

#wcbbg_note {
  width: 100%;
}

.wcbbg-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.wcbbg-message {
  margin-top: 10px;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
}

.wcbbg-message.is-success {
  background: #eef7ee;
  border: 1px solid #cde8cd;
}

.wcbbg-message.is-error {
  background: #fdecec;
  border: 1px solid #f5b5b5;
}


.wcbbg-product-badge {
  padding: 10px 12px;
  border: 1px dashed #cde8cd;
  background: #f7fff7;
  border-radius: 10px;
}

/* Product image overlay badge */
.wcbbg-image-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
  width: 150px;
  pointer-events: none;
  background: transparent;
}

.wcbbg-image-badge img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
}

/* ── Product loop badge (shop / category / home) ─────────── */
li.product {
  position: relative;
}

.wcbbg-loop-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 10;
  width: 80px;
  pointer-events: none;
  background: transparent;
}

.wcbbg-loop-badge img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.2));
}
/* ────────────────────────────────────────────────────────── */

/* ── Orders list column ───────────────────────────────────── */
.wcbbg-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.wcbbg-col__logo {
  width: 54px;
  height: auto;
  display: block;
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.18));
}

.wcbbg-col__btn {
  display: inline-block;
  padding: 5px 13px;
  background: #1a3c5e;
  color: #fff !important;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s, color 0.2s;
  line-height: 1.5;
}

.wcbbg-col__btn:hover {
  background: #c9960a;
  color: #1a3c5e !important;
}

.wcbbg-col-none {
  color: #bbb;
  font-size: 15px;
}
/* ────────────────────────────────────────────────────────── */

.wcbbg-order-item-wrap{
  margin-top: 10px;
}

.wcbbg-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px !important;
  border-radius: 8px;
  font-weight: 600;
}

.wcbbg-note{
  margin-top: 8px;
  font-size: 14px;
  opacity: 0.85;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wcbbg-badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #e9f7ef;
  font-size: 13px;
}


/* =========================================================
   WCBBG Modal - Responsive (mobile first)
   ========================================================= */

.wcbbg-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none; /* open via JS by setting display:block or adding a class */
}

.wcbbg-modal[aria-hidden="false"] {
  display: block;
}

/* overlay */
.wcbbg-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

/* dialog wrapper */
.wcbbg-modal__dialog {
  position: relative;
  margin: 6vh auto 0;
  width: 92vw;
  max-width: 520px;
  background: #fff;
  border-radius: 12px;
  padding: 18px 16px 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);

  /* make it responsive + scrollable */
  max-height: 88vh;
  overflow: auto;

  /* prevent content from sticking to edges */
  box-sizing: border-box;
}

/* bigger screens */
@media (min-width: 768px) {
  .wcbbg-modal__dialog {
    padding: 22px 22px 18px;
    margin-top: 10vh;
  }
}

/* close button */
.wcbbg-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  border-radius: 10px;
}

.wcbbg-modal__close:hover {
  background: rgba(0, 0, 0, 0.06);
}

/* title */
#wcbbg-modal-title {
  margin: 0 40px 14px 0;
  font-size: 18px;
}

/* product row */
.wcbbg-modal__product {
  background: #f7f7f7;
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* form elements */
#wcbbg-form label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}

#wcbbg-form textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  padding: 10px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  box-sizing: border-box;
}

#wcbbg-form textarea:focus {
  outline: none;
  border-color: #2271b1; /* WP blue */
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.18);
}

/* buttons - responsive stack */
.wcbbg-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.wcbbg-actions .button {
  flex: 1 1 160px;
}

/* On very small screens, make buttons full width */
@media (max-width: 420px) {
  .wcbbg-actions .button {
    flex: 1 1 100%;
    width: 100%;
  }
}

/* message box */
.wcbbg-message {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f0f6ff;
  border: 1px solid #cfe3ff;
  word-break: break-word;
}

