/* --- Overlay --- */
#wdbo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeInOverlay 0.25s ease;
}

@keyframes fadeInOverlay {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* --- Popup Container --- */
#wdbo-popup {
  background: rgba(190, 235, 250, 0.78); /* soft turquoise glass effect */
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 14px;
  padding: 20px 18px 25px;
  width: 90%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
  animation: popupFadeIn 0.25s ease;
}

@keyframes popupFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Header --- */
.wdbo-title {
  text-align: center;
  font-size: 2.0rem; /* ↑ 30% */
  font-weight: 1000;
  color: #004b63;
  margin-bottom: 10px;
}

/* --- Card List --- */
.wdbo-card {
  display: flex;
  gap: 12px;
  border: 1px solid #e3e3e3;
  border-radius: 14px;
  padding: 6px;
  margin-bottom: 8px;
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.wdbo-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

/* --- Thumbnail --- */
.wdbo-thumb {
  width: 140px; /* ↑ 30% from 56px */
  height: 140px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #ddd;
  background: #fff;
  flex-shrink: 0;
}

/* --- Info Section --- */
.wdbo-info {
  flex: 1;
}

.wdbo-name {
  font-weight: 700;
  color: #222;
  font-size: 1.8rem; /* ↑ 30% */
  margin-bottom: 2px;
}

.wdbo-prices {
  font-size: 2.0rem; /* ↑ 40% */
  margin-bottom: 3px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px;
}

.wdbo-prices .old {
  text-decoration: line-through;
  color: #999;
}

.wdbo-prices .new {
  font-weight: 800;
  color: #007cba;
}

.wdbo-prices .disc {
  color: #d63638;
  font-weight: 700;
}

/* --- Controls --- */
.wdbo-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 2px;
}

.wdbo-qty {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  background: #fff;
  overflow: hidden;
}

.wdbo-qty button {
  background: none;
  border: none;
  font-size: 1.8rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  color: #444;
}

.wdbo-qty .qty-input {
  width: 48px;
  text-align: center;
  border: none;
  font-size: 2rem;
  padding: 0 3px;
}

.hidden {
  display: none !important;
}


/* --- Add / Added Toggle --- */
.add-toggle {
  border: none;
  border-radius: 6px;
  padding: 5px 16px;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.5rem;
  background: #007cba;              /* same as main button color */
  color: #ffffff;
  transition: background 0.25s ease, transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 124, 186, 0.25);
}

.add-toggle:hover {
  background: #006ba1;              /* slightly darker blue */
  transform: scale(1.04);
  box-shadow: 0 3px 8px rgba(0, 124, 186, 0.3);
}

/* --- When user has added the bundle --- */
.add-toggle.added {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.3);
}

.add-toggle.added:hover {
  background: linear-gradient(135deg, #2ddc73 0%, #1fb058 100%);
  box-shadow: 0 3px 9px rgba(34, 197, 94, 0.4);
  transform: scale(1.05);
}
/* --- Footer --- */
.wdbo-footer {
  text-align: center;
  margin-top: 16px;
}

.wdbo-footer .button {
  margin: 0 8px;
  padding: 5px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1.5rem;
  transition: transform 0.1s ease;
}

.wdbo-footer .button:hover {
  transform: scale(1.04);
}

.wdbo-footer .button-primary {
  background: #007cba;
  color: #fff;
  border: none;
}

.wdbo-footer .button-primary:hover {
  background: #006ba1;
}

.wdbo-footer .button.alt {
  background: #f2f2f2;
  border: none;
  color: #333;
}

.wdbo-footer .button.alt:hover {
  background: #e1e1e1;
}

/* --- Mobile Layout --- */
@media (max-width: 480px) {
  #wdbo-popup {
    width: 96%;
    border-radius: 16px 16px 0 0;
    position: fixed;
    bottom: 0;
    padding-bottom: 22px;
  }

  .wdbo-card {
    flex-direction: row;
    gap: 10px;
  }

  .wdbo-thumb {
    width: 98px; /* proportionally smaller for mobile */
    height: 98px;
  }

  .wdbo-name {
    font-size: 1.1rem; /* ↑ 30% */
  }

  .wdbo-prices {
    font-size: 1.30rem; /* ↑ 40% */
  }

  .add-toggle {
    padding: 5px 8px;
    font-size: 1.4rem;
  }

  .wdbo-footer .button {
    padding: 5px 24px;
    font-size: 1.5rem;
  }
}
/* ===========================
   WDBO — Cart Remove Confirmation (matches bundle popup)
   =========================== */

/* Reuse overlay */
#wdbo-remove-confirm-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45); /* same dim as offer popup */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

/* Use the same popup card styling as the bundle popup */
#wdbo-remove-confirm {
  width: 92%;
  max-width: 520px;
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(245, 255, 255, 0.92));
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(2, 40, 60, 0.25);
  padding: 18px;
  transform-origin: center center;
  animation: wdbo-pop-in 170ms ease-out;
}

/* Small scale pop-in used for bundle popup */
@keyframes wdbo-pop-in {
  from { transform: translateY(8px) scale(.99); opacity: 0 }
  to   { transform: translateY(0) scale(1); opacity: 1 }
}

/* Title (consistent with popup) */
#wdbo-remove-confirm .wdbo-title {
  margin: 0 0 8px 0;
  font-size: 2.1rem;
  font-weight: 700;
  color: #073b4c; /* deep teal-ish heading color */
  display: block;
}

/* Message / content area */
#wdbo-remove-confirm .wdbo-body {
  color: #24333a;
  font-size: 1.8rem;
  line-height: 1.35;
  margin-bottom: 14px;
}

/* Footer buttons match popup footer */
#wdbo-remove-confirm .wdbo-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
}

/* Primary action - use same look as .button-primary from popup */
#wdbo-confirm-yes {
  background: linear-gradient(135deg,#007cba 0%, #006ba1 100%);
  color: #fff;
  border: none;
  padding: 8px 14px;
  font-size: 1.5rem;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0,124,186,0.18);
  transition: transform .12s ease, box-shadow .12s ease;
  min-width: 140px;
}
#wdbo-confirm-yes:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(0,124,186,0.22); }

/* Secondary action - subtle outline */
#wdbo-confirm-no {
  background: transparent;
  color: #0b5268;
  border: 1px solid rgba(11,82,104,0.12);
  font-size: 1.5rem;
  padding: 8px 12px;
  border-radius: 10px;
  cursor: pointer;
  min-width: 120px;
  font-weight: 600;
}

/* Small note in modal (muted) */
#wdbo-remove-confirm .wdbo-note {
  font-size: 1.8rem;
  color: #6b7b82;
  margin-top: 8px;
  text-align: center;
}

/* Responsive adjustments */
@media (max-width: 480px) {
  #wdbo-remove-confirm { padding: 14px; border-radius: 12px; }
  #wdbo-remove-confirm .wdbo-title { font-size: 1.05rem; }
  #wdbo-confirm-yes, #wdbo-confirm-no { min-width: 110px; padding: 10px 12px; }
}

/* Ensure modal overlay is above everything on mobile and visible */
#wdbo-remove-confirm-overlay {
  position: fixed;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2147483000; /* very high to beat theme stacks */
  background: rgba(0,0,0,0.45);
}

/* Make sure popup fits smaller screens */
#wdbo-remove-confirm {
  width: 92vw;
  max-width: 520px;
  box-sizing: border-box;
  margin: 0 10px;
}

/* Slightly larger buttons for mobile touch comfort */
@media (max-width: 480px) {
  #wdbo-confirm-yes,
  #wdbo-confirm-no {
    font-size: 1.15rem;
    padding: 12px 14px;
  }
}
/* ==========================================================
   WDBO Admin – Bundle Offers Tab Input Sizing & Layout
   ========================================================== */

/* General table tidy-up */
.wdbo-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}
.wdbo-table th,
.wdbo-table td {
  padding: 6px 8px;            /* consistent spacing between columns */
  vertical-align: middle;
  text-align: center;
  font-size: 13px;             /* unified font size */
}

/* === 1️⃣  Bundle Product (column 2) === */
.wdbo-table tr td:nth-child(2) select.wdbo-product {
  width: 240px;                /* keep same practical width */
  max-width: 100%;
}

/* === 2️⃣  Operator (column 3) === */
.wdbo-table tr td:nth-child(3) select {
  width: 45px;                 /* fits “≥” or “<” comfortably */
  text-align: center;
}

/* === 3️⃣  Main Qty (column 4) === */
.wdbo-table tr td:nth-child(4) input[type="number"] {
  width: 60px;                 /* 3 digits */
}

/* === 4️⃣  Sale Price (column 5) === */
.wdbo-table tr td:nth-child(5) input[type="number"],
.wdbo-table tr td:nth-child(5) input[type="text"] {
  width: 80px;                 /* show up to 9999.99 */
  background: #f9f9f9;         /* readonly visual cue */
}

/* === 5️⃣  Offer Price (column 6) === */
.wdbo-table tr td:nth-child(6) input[type="number"],
.wdbo-table tr td:nth-child(6) input[type="text"] {
  width: 80px;
}

/* === 6️⃣  Discount % (column 7) === */
.wdbo-table tr td:nth-child(7) input[type="number"] {
  width: 70px;
  background: #f9f9f9;         /* readonly look */
}

/* === 7️⃣  Min Qty (column 8) === */
.wdbo-table tr td:nth-child(8) input[type="number"] {
  width: 60px;
}

/* === 8️⃣  Max Qty (column 9) === */
.wdbo-table tr td:nth-child(9) input[type="number"] {
  width: 80px;
}

/* === 9️⃣  Step (column 10) === */
.wdbo-table tr td:nth-child(10) input[type="number"] {
  width: 60px;
}

/* === Base input styling === */
.wdbo-table td select,
.wdbo-table td input[type="number"],
.wdbo-table td input[type="text"] {
  border: 1px solid #ccd0d4;
  border-radius: 4px;
  padding: 4px 6px;
  box-sizing: border-box;
  height: 30px;
  font-size: 13px;
}

/* === Header styling === */
.wdbo-table th {
  background: #f7f7f7;
  font-weight: 600;
  text-align: center;
}

/* === Alternating row color === */
.wdbo-table tr:nth-child(even) td {
  background-color: #fafafa;
}

/* === Read-only field styling === */
.wdbo-table input[readonly] {
  background: #f9f9f9;
  color: #555;
  border-color: #ddd;
  pointer-events: none;
}

/* === Hover highlight (optional) === */
.wdbo-table tr:hover td {
  background: #f3f9ff;
}

/* === Compact row spacing === */
.wdbo-table td {
  line-height: 1.4;
}
