/* ========================= BASE (minimal, non-intrusive) ========================= */
.bpc { font-family: Arial, sans-serif; color: #102432; }

/* Keep generic plugin elements functional */
.bpc-loader {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  margin: 8px 0 18px;
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);

}
.bpc-loader .bpc-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid #e2e8f0;
  border-top-color: #1e40af;
  border-radius: 50%;
  animation: bpc-spin 1s linear infinite;
}
.bpc-loader .bpc-loader-text {
  font-size: 0.9rem;
  color: #64748b;
}
@keyframes bpc-spin { to { transform: rotate(360deg); } }

/* Generic note */
.bpc .bpc-note {
  font-size: 0.9rem;
  color: #64748b;
  margin-top: 8px;
}

/* ========================================= YOUR LEGACY DESIGN (faithfully reproduced)
   Applied to current markup ========================================= */

/* Container (use id and class for safety) */
#bpc-container, .bpc-container {
  font-family: Arial, sans-serif;
  margin: 20px auto;
  max-width: 900px;
  background: #0d2236;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.3);
  color: #f1f1f1;
}
.centered { text-align: center; margin-bottom: 20px; }

/* Reveal button */
.bpc-button {
  padding: 12px 30px;
  font-size: 16px;
  font-weight: bold;
  min-width: 300px;
  background: linear-gradient(135deg, #4a90e2, #50e3c2);
  box-shadow: 0 4px 12px rgba(0, 198, 183, 0.4);
  color: white;
  border: 3px solid #3a78c2;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease, transform .08s ease;
}
.bpc-button:hover { background: #005f8d; }
.bpc-button:focus-visible {
  outline: 3px solid #50e3c2;
  outline-offset: 2px;
  transform: translateY(-1px);
}

/* Cards list container */
.bpc-cards {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  background: transparent;
  color: #102432; /* card content text */
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

/* Single card */
.bpc-card {
  border: 2px solid #0b3d91; /* Dark navy border */
  border-radius: 8px;
  background-color: #fff;
  padding: 16px;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  width: 100%;
}

/* Rank */
.bpc-rank { position: relative; }
.bpc-rank span {
  position: absolute;
  top: 55%;
  left: -27px;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #1f2937;
  color: #1f2937;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  z-index: 2;
}

/* Logo column */
.bpc-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  aspect-ratio: 4 / 3;
  min-height: unset;
}
.bpc-logo img {
  max-width: 250px;
  max-height: 220px;
  display: block;
  object-fit: contain;
  -webkit-user-drag: none;
}
.bpc-logo-placeholder {
  min-width: 110px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #1f2937;
  font-weight: 700;
  font-size: 15px;
}

/* Badge overlay */
.bpc-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  background: #0f6b4a;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* Main area */
.bpc-main { min-width: 0; flex: 1; }

/* Title + tagline */
.bpc-title {
  margin: 0 0 10px 0;
  font-size: 16px;
  color: #173248;
  line-height: 1.25;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.bpc-name { font-weight: 800; }
.bpc-tagline { font-weight: 400; color: #4b5563; font-size: 15px; }
.bpc-read-review {
  margin-left: 10px;
  color: #0b63a5;
  text-decoration: none;
  font-size: 14px;
}
.bpc-read-review:hover, .bpc-read-review:focus { text-decoration: underline; }

/* Features list */
.bpc-features {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 1000px;
  overflow: visible;
}
.bpc-features li {
  position: relative;
  padding-left: 28px;
  margin: 0 0 1px 0;
  color: #1f3342;
  font-size: 14px;
  line-height: 24px;
}
.bpc-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%23007ACC' d='M9 16.2L4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/></svg>");
  background-repeat: no-repeat;
  background-size: 18px 18px;
}

/* Per-card toggle button (for feature expand/collapse) */
.bpc-toggle-btn {
  margin-top: 8px;
  padding: 8px 12px;
  border-radius: 6px;
  background: #f3f6f9;
  border: 1px solid #c7d2fe;
  color: #0b3d91;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, transform .08s ease;
}
.bpc-toggle-btn:hover { background: #e9eff7; }
.bpc-toggle-btn:active { transform: translateY(1px); }
.bpc-toggle-btn:focus-visible {
  outline: 2px solid #0b63a5;
  outline-offset: 2px;
}

/* Side column */
.bpc-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  text-align: right;
}

/* Rating label */
.rating-label { color: #1f6fbf; font-weight: 700; font-size: 14px; margin-bottom: 6px; }

/* Rating box */
.rating-box { display: flex; align-items: center; gap: 10px; background: transparent; }
.rating-stars { display: flex; gap: 4px; align-items: center; }
.rating-stars svg { width: 16px; height: 16px; flex: 0 0 16px; }

/* Numeric score */
.rating-score {
  background: #1e73be;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 16px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* CTA button */
.bpc-cta-btn {
  display: inline-block;
  background: #ef4d5c;
  color: #fff;
  padding: 5px 10px;
  border-radius: 8px;
  text-align: center;
  font-weight: 800;
  font-size: 15px;
  transition: background .15s ease, transform .08s ease;
  max-width: 150px;
}
.bpc-cta-btn:hover { background: #d93b4b; transform: translateY(-2px); }
.bpc-cta-btn:focus-visible {
  outline: 3px solid #ffd6db;
  outline-offset: 2px;
}

.affiliate-button {
  display: inline-block;
  width: 100%;
  max-width: 375px;
  padding: 12px 22px;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  background-color: #C82909; color: #fff;
}

.affiliate-button--best {
  background: #C82909;
  color: #fff;
  opacity: 0;
}
.affiliate-button--best.visible { opacity: 1; }
.affiliate-button:hover { background: #094d82; transform: translateY(-1px); }
.affiliate-button:focus-visible {
  outline: 3px solid #87cefa;
  outline-offset: 2px;
}

/* Utility */
.hidden { display: none !important; }

/* No data */
.bpc-no-data {
  color: #fff;
  background: #7a8694;
  padding: 12px;
  border-radius: 6px;
}

/* Reveal feature list (animated) */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  max-height: 120px;
  overflow: hidden;
  transition: max-height 0.5s ease, opacity 0.4s ease;
  opacity: 1;
}
.feature-list li {
  opacity: 1;
  font-size: 18px;
  color: #fff;
  background: #4DB6AC;
  border-left: 6px solid #ff9800;
  padding: 5px 20px;
  border-radius: 10px;
  width: 100%;
  max-width: 375px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  transition: opacity 0.5s ease;
}
.feature-list:not(.collapsed) { max-height: 1000px; opacity: 1; }
.feature-list.collapsed { max-height: 120px; opacity: 0.8; }

/* Affiliate button (reveal) */
.affiliate-button--reveal {
  background: #28a745;
  color: #fff;
  opacity: 0;
}
.affiliate-button--reveal.visible { opacity: 1; }

/* Collapse + view all gradient overflow */
.bpc-features.collapsed { max-height: 180px; overflow: hidden; position: relative; }
.bpc-features.collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #ffffff);
  pointer-events: none;
}

.view-all-btn {
  display: inline-block;
  margin-top: -20px;
  padding: 10px 16px;
  background: #091825;
  box-shadow: 0 4px 12px rgba(0, 198, 183, 0.4);
  color: white;
  font-size: 15px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.9;
  transition: all 0.2s ease;
  width: 100%;
  max-width: 300px;
  text-align: center;
}
.view-all-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(255, 0, 0, 0.5);
}
.view-all-btn:active { transform: translateY(1px); }

/* Best (reveal) container */
.bpc-best {
  color: #f1f5f9;
  border-radius: 12px;
  padding: 20px;
  margin-top: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-in-out;
}
.bpc-best-features {
  list-style: none;
  padding-left: 0;
  margin-top: 15px;
  max-height: none;
  overflow: visible;
  transition: max-height 0.4s ease-in-out;
}
.bpc-best-features.collapsed {
  max-height: 240px;
  overflow: hidden;
  position: relative;
}
.bpc-best-features.collapsed::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), #0D2236);
  pointer-events: none;
}
/* Best product main button */
/* Best product main CTA */
.bpc-best-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 100%;
  max-width: 375px;
  margin-top: 20px;
  padding: 14px 24px;

  font-size: 18px;
  font-weight: 700;

  background-color: #c82909; /* solid red */
  color: #ffffff !important;

  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;

  opacity: 0;
  box-shadow: 0 4px 12px rgba(200, 41, 9, 0.35);

  transition:
    background-color 0.25s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.3s ease;
}

/* Visible state */
.bpc-best-link.visible {
  opacity: 1;
}

/* Hover + keyboard focus */
.bpc-best-link:hover,
.bpc-best-link:focus-visible {
  background-color: #e0484c; /* lighter red */
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(224, 72, 76, 0.45);
}

/* Active (pressed) */
.bpc-best-link:active {
  transform: translateY(0);
  box-shadow: 0 4px 10px rgba(200, 41, 9, 0.35);
}

}


/* Reveal button variant */
.bpc-reveal-btn {
  background-color: #C82909;
  width: 100%;
  max-width: 375px;
  color: #fff;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  transition: background-color 0.3s ease-in-out;
}
.bpc-reveal-btn:hover { background-color: #091825; }
.bpc-reveal-btn:disabled { background-color: #6c757d; cursor: not-allowed; }

/* Buttons container */
.bpc-buttons {
  display: flex;
  gap: 5px;
  margin-top: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.bpc-buttons .view-all-btn, .bpc-buttons .affiliate-button {
  flex: 1 1 auto;
  text-align: center;
  max-width: 300px;
}

/* Filters section (id + class for compatibility) */
#bpc-filters, .bpc-filters {
  position: relative;
  margin: 50px auto 20px auto;
  padding-top: 10px;
}
#bpc-filters h3, .bpc-filters h3 {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  height: 40px;
  width: 240px;
  line-height: 35px;
  margin: 0;
  background: linear-gradient(135deg, #4a90e2, #50e3c2);
  color: white;
  font-size: 18px;
  font-weight: bold;
  font-family: 'Roboto', Arial, sans-serif;
  text-align: center;
  border: 3px solid #3a78c2;
  border-radius: 15px;
  user-select: none;
  pointer-events: none;
  z-index: 10;
  box-shadow: 0 3px 8px rgba(74, 144, 226, 0.7);
}

/* Checkbox styles */
.checkbox-box {
  border: 3px solid #3a78c2;
  padding: 15px;
  border-radius: 6px;
  background-color: #fff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 20px;
  box-sizing: border-box;
}
.checkbox-box label {
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  color: #000;
  border-bottom: 1px solid #3a78c2;
  padding-bottom: 4px;
}
.checkbox-box input[type="checkbox"] { margin-right: 6px; }
.checkbox-box label:nth-last-child(-n+3) { border-bottom: none; }

#best-bpc-buttons {
  display: flex;
  flex-direction: column;
  align-items: center; /* Centers them horizontally */
  gap: 10px; /* Space between buttons */
}

.bpc-price { font-size: 1rem; font-weight: bold; color: #1f2937; }







/* ========================= RESPONSIVE: Mobile & Tablet ========================= */
@media (max-width: 1024px) {

  /* Main container spacing */
  #bpc-container,
  .bpc-container {
    padding: 16px;
    margin: 16px auto;
  }

  /* Cards: force single column */
  .bpc-cards {
    grid-template-columns: 1fr;
    padding: 8px;
  }

  /* Card layout: stack everything */
  .bpc-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  /* Rank badge: prevent overflow */
  .bpc-rank span {
    position: static;
    margin-bottom: 8px;
  }

  /* Logo: center */
  .bpc-logo {
    justify-content: center;
    width: 100%;
  }

  .bpc-logo img {
    max-width: 200px;
    margin: 0 auto;
  }

  /* Title area */
  .bpc-title {
    justify-content: center;
    text-align: center;
  }

  .bpc-read-review {
    margin-left: 0;
  }

  /* Main content */
  .bpc-main {
    width: 100%;
  }

  /* Features list */
  .bpc-features {
    text-align: left;
    max-width: 100%;
  }

  /* Side column: center everything */
  .bpc-side {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  /* Rating box */
  .rating-box {
    justify-content: center;
  }


  /* Buttons container */
  .bpc-buttons {
    flex-direction: column;
    align-items: center;
  }

  /* Best section */
  .bpc-best {
    text-align: center;
  }

  .bpc-best-features {
    text-align: left;
  }

  /* Filters */
  .checkbox-box {
    grid-template-columns: 1fr;
  }

  #bpc-filters h3,
  .bpc-filters h3 {
    width: 200px;
    font-size: 16px;
  }
}
