/* ==========================================================================
   Best Post Styler - Plugin CSS
   Chỉ load trên single post có slug chứa "best"
   ========================================================================== */

/* Amazon Affiliate Disclaimer */
.bps-amazon-disclaimer {
  font-size: 13px;
  color: #666;
  border-left: 3px solid #ddd;
  padding: 6px 12px;
  margin-bottom: 24px !important;
  background: #fafafa;
  border-radius: 0 4px 4px 0;
}

/* CSS Custom Property — màu chủ đề mặc định (có thể override từ plugin settings) */
:root {
  --bps-theme-color: #19212B;
  --bps-theme-color-40: rgba(25,33,43,0.40);
  --bps-theme-color-60: rgba(25,33,43,0.6);
}

/* --------------------------------------------------------------------------
   1. AFFILIATE DISCLAIMER — style cho <p class="bps-amazon-disclaimer">
   (CSS ::before đã xóa — dùng class trực tiếp trong content thay thế)
   -------------------------------------------------------------------------- */
.bps-amazon-disclaimer {
  display: block;
  background: #f7f7f7;
  border-left: 4px solid #4CAF50;
  padding: 12px 15px;
  margin-bottom: 20px !important;
  font-size: 12px;
  font-style: italic;
  color: #555;
  border-radius: 0 4px 4px 0;
}

/* Fix WordPress inject <br /> thừa trong .btie-style-box */
.btie-style-box br,
.btie-style-box a br {
  display: none !important;
}

/* --------------------------------------------------------------------------
   2. COMPARISON TABLE - .btie-style-short
   -------------------------------------------------------------------------- */
.btie-style-short a,
.btie-style-reviews a {
  box-shadow: none !important;
  color: black !important;
}

.btie-style-short a:hover,
.btie-style-reviews a:hover {
  box-shadow: none !important;
  color: black !important;
}

/* Counter reset DUY NHẤT ở .entry-content — bao ngoài cả table lẫn review list */
.entry-content {
  counter-reset: totalReview currentReview;
}

/* KHÔNG đặt counter-reset ở .btie-style-short để tránh reset lại */
.btie-style-short {
  max-width: 850px;
}

.btie-style-short caption {
  caption-side: top !important;
  display: table-caption !important;
  order: -1;
  text-align: center;
}

.btie-style-short h2 {
  text-transform: uppercase;
  margin-bottom: 50px;
}

.btie-style-short:after {
  border-bottom: 1px solid #E9E9E9;
  content: "";
  width: 100%;
  display: block;
}

table.btie-style-short {
  border-collapse: collapse;
  width: 100%;
  height: 100%;
}

.btie-style-short tbody {
  height: 100%;
}

.btie-style-short tr {
  background-color: #FFF;
  margin-bottom: 40px;
  display: grid !important;
  position: relative;
  grid-template-columns: 1fr minmax(0, 2fr) 1fr;
  column-gap: 10px;
  row-gap: 2px;
  padding: 50px 25px 25px;
  box-shadow: 0 15px 40px rgb(166 172 201 / 0.2);
  border-radius: 5px;
  place-items: start start;
  counter-increment: totalReview;
}

.btie-style-short tr td {
  border: none;
}

/* Image cell */
.btie-style-short .toc-img {
  grid-column-start: 1;
  grid-column-end: 2;
  grid-row-start: 1;
  grid-row-end: 10;
  align-self: center;
  padding-right: 15px;
  line-height: 0;
}

.btie-style-short .toc-img a {
  display: block;
}

.btie-style-short .toc-img img {
  object-fit: cover;
  width: 100%;
  max-width: 185px;
  max-height: 185px;
  margin-top: 15px;
  margin-bottom: 15px;
}

/* Product name */
.btie-style-short .toc-det {
  grid-column-start: 2;
  grid-column-end: 4;
  grid-row-start: 1;
  grid-row-end: 2;
  font-size: 24px;
  line-height: 24px;
  font-weight: 700;
  place-self: start start;
  width: 100%;
  padding-left: 0;
}

.btie-style-short .toc-det a {
  text-decoration: none !important;
  color: black;
  box-shadow: none;
}

.btie-style-short .toc-det a:hover {
  text-decoration: underline !important;
  text-decoration-color: black !important;
  box-shadow: none;
}

/* Badge/tag */
.btie-style-short .toc-tag {
  position: absolute;
  top: -14px;
  left: -12px;
  display: inline-block;
  background-color: var(--bps-theme-color);
  color: #FFF;
  z-index: 500;
  font-weight: 700;
  padding: 11px 20px;
  font-size: 16px;
  line-height: 19px;
  text-transform: uppercase;
  box-shadow: 2px 2px 2px 0 rgb(0 0 0 / 0.14);
  width: auto;
  text-align: left;
}

.btie-style-short .toc-tag::after {
  content: " ";
  display: block;
  position: absolute;
  left: -10px;
  bottom: -8px;
  border-color: transparent var(--bps-theme-color-40) transparent transparent;
  border-style: inset solid inset inset;
  border-width: 0 12px 8px 10px;
  filter: brightness(50%);
  z-index: 1;
}

/* Pros checkmarks */
.btie-style-short td.toc-pro1::before,
.btie-style-short td.toc-pro2::before,
.btie-style-short td.toc-pro3::before {
  content: '\2713';
  font-size: 12px;
  color: var(--bps-theme-color);
  margin-right: 5px;
  display: inline-block;
  width: 16px;
  text-align: center;
  font-weight: 700;
}

.btie-style-short .toc-pro1,
.btie-style-short .toc-pro2,
.btie-style-short .toc-pro3 {
  font-size: 16px;
  line-height: 22px;
  padding: 0;
  padding-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  width: 100%;
}

.btie-style-short .toc-pro1 {
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 4;
  grid-row-end: 5;
  align-self: start;
}

.btie-style-short .toc-pro2 {
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 5;
  grid-row-end: 6;
  align-self: start;
}

.btie-style-short .toc-pro3 {
  grid-column-start: 2;
  grid-column-end: 3;
  grid-row-start: 6;
  grid-row-end: 7;
  align-self: start;
}

/* CTA Button */
.btie-style-short .toc-but {
  grid-column-start: 3;
  grid-column-end: 4;
  grid-row-start: 4;
  grid-row-end: 6;
  display: flex;
  align-self: center;
  justify-self: center;
  text-align: center;
  padding: 10px 20px;
  font-size: 15px;
  line-height: 22px;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 5px;
  color: #FAF9F9;
  background-color: var(--bps-theme-color);
  box-shadow: 0 15px 40px rgb(166 172 201 / 0.2);
}

.btie-style-short .toc-but a {
  color: #FFF !important;
  text-decoration: none;
  box-shadow: none;
  align-self: center;
}

.btie-style-short .toc-but:hover,
.btie-style-short .toc-but:active {
  text-decoration-color: #FAF9F9 !important;
  transform: matrix(1.02, 0, 0, 1.02, 0, 0);
  box-shadow: 0 20px 35px rgb(160 164 183 / 0.417);
  text-decoration: underline;
}

/* Review link */
.btie-style-short .toc-rev {
  grid-column-start: 3;
  grid-column-end: 4;
  grid-row-start: 6;
  grid-row-end: 7;
  align-self: start;
  justify-self: center;
  font-size: 15px;
  text-decoration: underline;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  line-height: 20px;
}

.btie-style-short .toc-rev a::after {
  content: " ↓";
  text-decoration: none;
  display: inline-block;
  font-style: normal;
  font-size: 13px;
  opacity: 0.7;
}

.btie-style-short .toc-rev a:hover {
  font-weight: 600;
}

.btie-style-short .toc-rev a:hover::after {
  opacity: 1;
  transform: translateY(2px);
}

/* --- Responsive: Tablet 767px --- */
@media (max-width: 767px) {
  .btie-style-short .toc-tag {
    font-size: 16px;
  }

  .btie-style-short tr {
    grid-template-columns: minmax(80px, 1fr) 1fr 1fr;
    column-gap: 10px;
    padding: 40px 20px 30px;
    place-items: center center;
  }

  .btie-style-short .toc-img {
    max-width: 150px;
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 9;
  }

  .btie-style-short .toc-det {
    grid-column-start: 2;
    grid-column-end: 4;
    grid-row-start: 1;
    grid-row-end: 2;
    font-size: 19px;
    line-height: 22px;
    margin-bottom: 10px;
  }

  .btie-style-short .toc-pro1 {
    grid-column-start: 2;
    grid-column-end: 4;
    grid-row-start: 2;
    grid-row-end: 3;
    width: 100%;
    font-size: 16px;
    line-height: 23px;
  }

  .btie-style-short .toc-pro2 {
    grid-column-start: 2;
    grid-column-end: 4;
    grid-row-start: 3;
    grid-row-end: 4;
    width: 100%;
    font-size: 16px;
    line-height: 23px;
  }

  .btie-style-short .toc-pro3 {
    grid-column-start: 2;
    grid-column-end: 4;
    grid-row-start: 4;
    grid-row-end: 5;
    width: 100%;
    font-size: 16px;
    line-height: 23px;
  }

  .btie-style-short .toc-but {
    grid-column-start: 3;
    grid-column-end: 4;
    grid-row-start: 8;
    grid-row-end: 9;
    place-self: center end;
    padding: 8px 14px;
    justify-content: center;
  }

  .btie-style-short .toc-rev {
    grid-column-start: 2;
    grid-column-end: 3;
    grid-row-start: 8;
    grid-row-end: 9;
    place-self: center start;
    font-size: 16px;
    line-height: 24px;
  }

  .btie-style-short .toc-rev:before {
    content: "[ ";
  }

  .btie-style-short .toc-rev:after {
    content: " ]";
  }
}

/* --- Responsive: Small tablet 549px --- */
@media (max-width: 549px) {
  .btie-style-short {
    display: flex;
    flex-direction: column;
    max-width: 95%;
    margin-left: auto;
    margin-right: auto;
  }

  .btie-style-short tbody {
    padding-left: 10px;
    padding-right: 10px;
  }

  .btie-style-short tr {
    display: flex !important;
    flex-direction: column;
    max-width: 450px;
    padding: 15px;
    margin-bottom: 50px;
  }

  .btie-style-short .toc-det {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 1;
    grid-row-end: 2;
    font-size: 25px;
    line-height: 28px;
    letter-spacing: -1px;
    margin-top: 35px;
    text-align: center;
  }

  .btie-style-short .toc-img {
    grid-column-start: 1;
    grid-column-end: 2;
    grid-row-start: 2;
    grid-row-end: 4;
    min-width: 100px;
    max-width: 200px;
  }

  .btie-style-short .toc-pro1,
  .btie-style-short .toc-pro2,
  .btie-style-short .toc-pro3 {
    align-self: center;
    max-width: 70%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .btie-style-short .toc-but {
    min-width: 160px;
    font-size: 16px;
    margin-top: 20px;
    margin-bottom: 0;
  }

  .btie-style-short .toc-rev {
    align-self: center;
    margin-bottom: 10px;
  }
}

/* --- Responsive: Phone 500px --- */
@media (max-width: 500px) {
  .btie-style-short {
    max-width: 100%;
  }

  .btie-style-short .toc-pro1,
  .btie-style-short .toc-pro2,
  .btie-style-short .toc-pro3 {
    max-width: 100%;
  }

  .btie-style-short .toc-tag {
    font-size: 14px;
    line-height: 16px;
    padding: 12px 15px;
  }

  .btie-style-short .toc-but {
    font-size: 14px;
    line-height: 16px;
    padding: 12px 15px;
  }
}

/* --------------------------------------------------------------------------
   3. REVIEWS SECTION - .btie-style-reviews
   -------------------------------------------------------------------------- */
.btie-style-reviews-pre {
  text-transform: uppercase;
  letter-spacing: -1px;
  font-size: 38px;
  font-weight: 700;
  display: block;
  margin-top: 50px;
  margin-bottom: 0;
  text-align: center;
  line-height: 36px;
}

ol.btie-style-reviews {
  width: 100%;
  list-style-position: inside;
  padding-left: 0;
  list-style-type: none;
}

.btie-style-reviews > li {
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
}

.btie-style-reviews h2 {
  font-size: 35px;
  margin-bottom: 0;
  margin-top: 25px;
  width: auto;
  background: #FFF;
  padding: 35px 25px 0;
  text-align: center;
  position: relative;
  box-shadow: 0 -25px 10px -4px rgb(166 172 201 / 0.056);
  z-index: 1;
  border-radius: 3px 3px 0 0;
}

.btie-style-reviews h2::before {
  position: absolute;
  top: -14px;
  left: -12px;
  display: inline-block;
  background-color: var(--bps-theme-color);
  color: #FAF9F9;
  z-index: 500;
  font-weight: 700;
  padding: 14px;
  font-size: 16px;
  line-height: 12px;
  text-transform: uppercase;
  box-shadow: 2px 2px 2px 0 rgb(0 0 0 / 0.14);
  width: auto;
  text-align: left;
  content: counter(currentReview) " / " counter(totalReview) " ";
  counter-increment: currentReview;
}

/* --------------------------------------------------------------------------
   4. PRODUCT BOX - .btie-style-box
   -------------------------------------------------------------------------- */
.btie-style-box {
  background-color: #FFF;
  margin-bottom: 15px;
  display: grid;
  position: relative;
  grid-template-columns: 1fr 1fr;
  column-gap: 25px;
  row-gap: 25px;
  padding: 25px;
  box-shadow: 0 25px 10px -4px rgb(166 172 201 / 0.056);
  place-items: center center;
  z-index: 1;
  border-radius: 0 0 3px 3px;
}

/* Ảnh link: dùng class .btie-box-img thay vì :has(> img) để tránh WP inject <p> */
.btie-style-box .btie-box-img {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  width: 100%;
  text-align: center;
}

.btie-style-box .btie-box-img img,
.btie-style-box img {
  max-width: 200px;
  max-height: 200px;
  display: block;
  margin: 0 auto;
}

/* Fallback: nếu không dùng class, dùng a:has(> img) */
.btie-style-box a:has(> img) {
  grid-column: 1 / 2;
  grid-row: 1 / 3;
  width: 100%;
  text-align: center;
}

.btie-style-box::after {
  border-right: 1px solid var(--bps-theme-color);
  content: " ";
  height: 75%;
  position: absolute;
  left: 50%;
  top: 12.5%;
  pointer-events: none;
  z-index: 0;
}

/* Verdict: dùng class .btie-box-verdict thay vì thẻ <p> trần để WP không rối */
.btie-style-box .btie-box-verdict {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  font-weight: 600;
  font-size: 35px;
  line-height: 38px;
  text-transform: uppercase;
  padding: 0;
  margin: 0;
  letter-spacing: -1px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.btie-style-box .btie-box-verdict::before {
  content: "Our Verdict:";
  display: block;
  font-size: 20px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #555;
}

/* Fallback: nếu dùng thẻ <p> trần */
.btie-style-box > p {
  grid-column: 2 / 3;
  grid-row: 1 / 2;
  font-weight: 600;
  font-size: 35px;
  line-height: 38px;
  text-transform: uppercase;
  padding: 0;
  margin: 0;
  letter-spacing: -1px;
  text-align: center;
}

.btie-style-box > p::before {
  content: "Our Verdict:";
  display: block;
  font-size: 20px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  color: #555;
}

a.btie-style-box-button {
  grid-column: 2 / 3;
  grid-row: 2 / 3;
  text-align: center;
  padding: 12px 15px;
  font-size: 18px;
  line-height: 22px;
  text-transform: uppercase;
  border-radius: 5px;
  font-weight: 700;
  min-width: 212px;
  color: #FAF9F9 !important;
  background-color: var(--bps-theme-color);
  box-shadow: 0 15px 40px rgb(166 172 201 / 0.2);
  text-decoration: none;
  display: inline-block;
}

a.btie-style-box-button:hover,
a.btie-style-box-button:active {
  text-decoration: underline !important;
  text-decoration-color: #FAF9F9;
  color: #FFF !important;
  transform: matrix(1.02, 0, 0, 1.02, 0, 0);
  box-shadow: 0 20px 35px rgb(160 164 183 / 0.417);
}

/* --- Responsive: 765px --- */
@media (max-width: 765px) {
  .btie-style-box::after {
    border: none;
  }

  .btie-style-box .btie-box-img,
  .btie-style-box a:has(> img) {
    border-right: none;
    padding-right: 0;
  }

  .btie-style-box img {
    min-width: 93px;
  }

  .btie-style-box .btie-box-verdict,
  .btie-style-box > p {
    align-self: end;
  }

  a.btie-style-box-button {
    align-self: start;
  }
}

/* --- Responsive: 580px --- */
@media (max-width: 580px) {
  .btie-style-box p {
    font-size: 22px;
    line-height: 27px;
  }

  .btie-style-box p::before {
    font-size: 17px;
    line-height: 30px;
  }

  a.btie-style-box-button {
    padding: 8px 10px;
    font-size: 16px;
    line-height: 22px;
    min-width: 172px;
  }
}

/* --------------------------------------------------------------------------
   5. REVIEW FEATURES LIST - .btie-style-reviews-features
   -------------------------------------------------------------------------- */
.btie-style-reviews-features {
  flex-wrap: wrap;
  display: grid;
  grid-template-columns: calc(33% - 1rem * 1/2) calc(33% - 1rem * 1/2) calc(33% - 1rem * 1/2);
  grid-column-gap: 1rem;
  padding: 0;
  text-align: center;
  list-style: none;
  margin: 0 0 20px 0;
}

@media (min-width: 501px) {
  .btie-style-reviews-features {
    font-size: 15px;
    line-height: 26px;
  }
}

.btie-style-reviews-features li {
  list-style: none;
  border-bottom: 1px solid #E7E7E7;
  align-items: center;
  padding: 0.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.btie-style-reviews-features li span {
  font-weight: 700;
  min-width: 50%;
  display: block;
}

/* --- Responsive: 580px --- */
@media (max-width: 580px) {
  .btie-style-reviews-features {
    line-height: 24px;
    grid-template-columns: calc(50% - 1rem * 1/2) calc(50% - 1rem * 1/2);
  }
}

/* --- Responsive: 500px --- */
@media (max-width: 500px) {
  .btie-style-reviews-pre {
    font-size: 30px;
    width: 100%;
    text-align: center;
  }

  .btie-style-reviews li {
    max-width: 350px;
    margin-left: auto;
    margin-right: auto;
  }

  .btie-style-reviews h2 {
    font-size: 26px !important;
    padding-top: 35px;
    margin-top: 25px;
    margin-bottom: 0;
    background-color: #FFF;
    text-align: center;
    padding-left: 15px;
    padding-right: 15px;
  }

  .btie-style-box {
    grid-template-columns: 1fr;
    row-gap: 10px;
    padding: 15px 35px 35px;
    place-content: center center;
  }

  .btie-style-box .btie-box-img,
  .btie-style-box a:has(> img) {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
  }

  .btie-style-box img {
    width: 175px;
  }

  .btie-style-box .btie-box-verdict,
  .btie-style-box > p {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
    font-size: 25px;
    line-height: 27px;
    margin-bottom: 15px;
  }

  a.btie-style-box-button {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
    padding: 10px;
    font-size: 16px;
    line-height: 22px;
    min-width: 193px;
  }

  .btie-style-reviews-features {
    line-height: 24px;
    grid-template-columns: 1fr;
    text-align: left;
    padding-left: 0;
    margin-left: 0;
    list-style: none;
  }

  ol.btie-style-reviews,
  ul.btie-style-reviews-features {
    padding-left: 0;
    margin-left: 5px !important;
    margin-right: 5px !important;
    list-style: none;
  }

  .btie-style-reviews-features li {
    align-content: start;
    justify-content: start;
    padding-top: 5px;
    padding-bottom: 5px;
    display: inline;
    flex-basis: 100%;
    border: none;
    padding-left: 0;
    margin-left: 0;
    list-style: none;
  }

  .btie-style-reviews-features li span {
    display: block;
  }

  .btie-style-reviews > li {
    border-bottom: 1px solid #E7E7E7;
    padding-bottom: 25px;
  }
}

/* --------------------------------------------------------------------------
   6. STICKY BAR — hiện ở bottom khi scroll qua .btie-style-box
   -------------------------------------------------------------------------- */
#bps-sticky-bar {
  position: fixed;
  bottom: -90px;
  left: 0;
  right: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: var(--bps-theme-color);
  color: #fff;
  padding: 10px 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.2);
  transition: bottom 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

#bps-sticky-bar.bps-visible {
  bottom: 0;
}

/* Ảnh sản phẩm nhỏ trong sticky bar */
#bps-sticky-img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 2px solid rgba(255,255,255,0.2);
  flex-shrink: 0;
  display: none;
}

#bps-sticky-label {
  font-size: 13px;
  font-weight: 600;
  color: #ccc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40%;
  flex-shrink: 1;
}

#bps-sticky-link {
  display: inline-block;
  background: #fff;
  color: var(--bps-theme-color) !important;
  font-weight: 700;
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 4px;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

#bps-sticky-link:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

@media (max-width: 500px) {
  #bps-sticky-label {
    display: none;
  }
  #bps-sticky-img {
    width: 36px;
    height: 36px;
  }
  #bps-sticky-link {
    flex: 1;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   7. BADGE ANIMATE — pulse 1 lần khi .toc-tag vào viewport
   -------------------------------------------------------------------------- */
@keyframes bps-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(25,33,43,0.6); }
  60%  { box-shadow: 0 0 0 10px rgba(25,33,43,0); }
  100% { box-shadow: 0 0 0 0 rgba(25,33,43,0); }
}

.btie-style-short .toc-tag.bps-badge-pulse {
  animation: bps-pulse 0.8s ease-out 1;
}

/* --------------------------------------------------------------------------
   8. LAST UPDATED BADGE
   -------------------------------------------------------------------------- */
.bps-last-updated {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #888;
  background: #f7f7f7;
  border: 1px solid #e5e5e5;
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 20px;
}

.bps-last-updated::before {
  content: "🕒";
  font-size: 12px;
}

/* --------------------------------------------------------------------------
   9. MINI COMPARISON TABLE — fixed bên phải, thu gọn mặc định
   -------------------------------------------------------------------------- */
#bps-mini-table {
  position: fixed;
  top: 120px;
  right: -300px;
  width: 270px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  z-index: 9998;
  transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: calc(100vh - 140px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#bps-mini-table.bps-mini-visible {
  right: 20px;
}

/* Header toggle */
#bps-mini-table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 14px;
  background: #19212B;
  color: #fff;
  cursor: pointer;
  border-radius: 8px 8px 0 0;
  user-select: none;
  flex-shrink: 0;
}

#bps-mini-table-header span {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 6px;
}

#bps-mini-table-toggle {
  font-size: 14px;
  transition: transform 0.25s ease;
  line-height: 1;
}

#bps-mini-table.bps-expanded #bps-mini-table-toggle {
  transform: rotate(180deg);
}

/* Body — ẩn khi thu gọn */
#bps-mini-table-body {
  overflow-y: auto;
  max-height: 0;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

#bps-mini-table.bps-expanded #bps-mini-table-body {
  max-height: calc(100vh - 200px);
  padding: 8px 0 4px;
}

/* Row mỗi sản phẩm */
.bps-mini-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid #f5f5f5;
  transition: background 0.15s;
}

.bps-mini-row:last-child {
  border-bottom: none;
}

.bps-mini-row:hover {
  background: #f9f9f9;
}

.bps-mini-row-num {
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  background: #19212B;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bps-mini-row-img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #eee;
  flex-shrink: 0;
}

.bps-mini-row-info {
  flex: 1;
  min-width: 0;
}

.bps-mini-row-name {
  font-size: 11px;
  font-weight: 600;
  color: #19212B;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 3px;
}

.bps-mini-row-badge {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  color: #fff;
  background: #19212B;
  padding: 1px 5px;
  border-radius: 3px;
  display: inline-block;
}

.bps-mini-row-btn {
  font-size: 10px;
  font-weight: 700;
  color: #19212B !important;
  border: 1.5px solid #19212B;
  border-radius: 4px;
  padding: 3px 7px;
  text-decoration: none !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.15s;
}

.bps-mini-row-btn:hover {
  background: #19212B;
  color: #fff !important;
}

@media (max-width: 1200px) {
  #bps-mini-table {
    display: none !important;
  }
}

/* --------------------------------------------------------------------------
   10. BTIE-STYLE-BOX-BUTTON — no pulse (removed per request)
   -------------------------------------------------------------------------- */

/* --------------------------------------------------------------------------
   11. STICKY BAR — content transition mượt khi đổi sản phẩm
   -------------------------------------------------------------------------- */
#bps-sticky-img,
#bps-sticky-label,
#bps-sticky-link {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#bps-sticky-bar.bps-updating #bps-sticky-img,
#bps-sticky-bar.bps-updating #bps-sticky-label,
#bps-sticky-bar.bps-updating #bps-sticky-link {
  opacity: 0;
  transform: translateY(4px);
}

/* --------------------------------------------------------------------------
   12. READ MORE CAROUSEL — trước FAQ section
   -------------------------------------------------------------------------- */
.bps-read-more {
  margin: 40px 0;
  padding: 28px 0 32px;
  border-top: 2px solid #f0f0f0;
  border-bottom: 2px solid #f0f0f0;
}

.bps-read-more-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.bps-read-more-title {
  font-size: 18px;
  font-weight: 700;
  color: #19212B;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bps-read-more-title::before {
  content: "📚";
  font-size: 16px;
}

/* Carousel nav buttons */
.bps-carousel-nav {
  display: flex;
  gap: 6px;
}

.bps-carousel-prev,
.bps-carousel-next {
  width: 32px;
  height: 32px;
  border: 1.5px solid #19212B;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  color: #19212B;
  line-height: 1;
}

.bps-carousel-prev:hover,
.bps-carousel-next:hover {
  background: #19212B;
  color: #fff;
}

.bps-carousel-prev:disabled,
.bps-carousel-next:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Carousel wrapper — overflow hidden */
.bps-carousel-wrapper {
  overflow: hidden;
  cursor: grab;
  user-select: none;
}

.bps-carousel-wrapper:active {
  cursor: grabbing;
}

/* Carousel track — flex scroll */
.bps-carousel-track {
  display: flex;
  gap: 14px;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}

/* Card */
.bps-read-more-card {
  flex: 0 0 200px;
  background: #fff;
  border: 1px solid #e7e5e4;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  text-decoration: none !important;
  color: inherit;
  display: block;
}

.bps-read-more-card:hover {
  box-shadow: 0 8px 25px rgba(0,0,0,0.10);
  transform: translateY(-2px);
  border-color: #19212B;
  color: inherit !important;
}

.bps-read-more-card-img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  display: block;
}

.bps-read-more-card-img-placeholder {
  width: 100%;
  height: 110px;
  background: linear-gradient(135deg, #f5f5f4 0%, #e7e5e4 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.bps-read-more-card-body {
  padding: 10px 12px 12px;
}

.bps-read-more-card-cat {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #19212B;
  margin-bottom: 4px;
}

.bps-read-more-card-title {
  font-size: 12px;
  font-weight: 600;
  color: #1c1917;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

@media (max-width: 600px) {
  .bps-read-more-card {
    flex: 0 0 160px;
  }
  .bps-read-more-card-img,
  .bps-read-more-card-img-placeholder {
    height: 90px;
  }
}

/* --------------------------------------------------------------------------
   13. DESCRIPTION BLOCK - .btie-style-desc
   -------------------------------------------------------------------------- */
.btie-style-desc:has(> ul:last-child) > ul,
.btie-style-desc:has(> ol:last-child) > ol {
  margin-bottom: 16px;
}

.btie-style-desc {
  padding: 20px 25px;
  background: #fdfdfd;
  border-top: 1px solid #eee;
}

.btie-style-desc p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 12px;
  color: #333;
}

/* ==========================================================================
   INFO ARTICLE STYLES
   Load on .single-post.is-info-post (info articles)
   ========================================================================== */

/* --------------------------------------------------------------------------
   INFO TOC - Table of Contents
   -------------------------------------------------------------------------- */
.info-toc {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-left: 4px solid var(--bps-theme-color);
  border-radius: 6px;
  padding: 20px 25px;
  margin: 25px 0 30px;
  max-width: 650px;
}

.info-toc h3 {
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bps-theme-color);
  margin: 0 0 12px;
}

.info-toc ol {
  margin: 0;
  padding-left: 20px;
}

.info-toc ol li {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.5;
}

.info-toc ol li a {
  color: var(--bps-theme-color) !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: color 0.2s;
}

.info-toc ol li a:hover {
  color: #e74c3c !important;
  text-decoration: underline !important;
}

/* --------------------------------------------------------------------------
   INFO COMPARISON TABLE - .info-comparison-table
   -------------------------------------------------------------------------- */
.info-comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 30px;
  font-size: 14px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-radius: 8px;
  overflow: hidden;
}

.info-comparison-table thead {
  background: var(--bps-theme-color);
  color: #fff;
}

.info-comparison-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: none;
}

.info-comparison-table tbody tr {
  border-bottom: 1px solid #eee;
  transition: background 0.15s;
}

.info-comparison-table tbody tr:last-child {
  border-bottom: none;
}

.info-comparison-table tbody tr:nth-child(even) {
  background: #f8f9fa;
}

.info-comparison-table tbody tr:hover {
  background: #f0f4ff;
}

.info-comparison-table tbody td {
  padding: 11px 16px;
  color: #333;
  vertical-align: middle;
  border: none;
}

.info-comparison-table tbody td:first-child {
  font-weight: 600;
  color: var(--bps-theme-color);
}

/* --------------------------------------------------------------------------
   INFO IMAGE - .info-image
   -------------------------------------------------------------------------- */
.info-image {
  margin: 20px 0 25px;
  border-radius: 8px;
  overflow: hidden;
}

.info-image img {
  width: 100%;
  height: auto;
  max-height: 450px;
  object-fit: cover;
  display: block;
  border-radius: 8px;
}

/* --------------------------------------------------------------------------
   INFO CONTENT - general typography improvements
   -------------------------------------------------------------------------- */
.single-post.is-info-post .entry-content h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--bps-theme-color);
  margin: 35px 0 15px;
  padding-bottom: 8px;
  border-bottom: 2px solid #f0f0f0;
}

.single-post.is-info-post .entry-content h3 {
  font-size: 17px;
  font-weight: 600;
  color: #2c3e50;
  margin: 20px 0 10px;
}

.single-post.is-info-post .entry-content p {
  font-size: 16px;
  line-height: 1.75;
  color: #444;
  margin-bottom: 14px;
}

.single-post.is-info-post .entry-content strong {
  color: var(--bps-theme-color);
  font-weight: 600;
}

.single-post.is-info-post .entry-content em {
  color: #555;
  font-style: italic;
}

/* FAQ section styling */
.single-post.is-info-post .entry-content h2:last-of-type,
.single-post.is-info-post .entry-content h2.faq-heading {
  color: var(--bps-theme-color);
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .info-toc {
    padding: 15px 18px;
  }

  .info-comparison-table {
    font-size: 13px;
  }

  .info-comparison-table thead th,
  .info-comparison-table tbody td {
    padding: 9px 11px;
  }

  .info-image img {
    max-height: 280px;
  }
}
