/**
 * BookRivo CSS Module 04: WooCommerce & Bookstore Catalog Components
 *
 * Shared Product Card (.bookrivo-book-card), Shop/Catalog Archive Banner & Category Rail,
 * Catalog Filter Sidebar & Mobile Drawer, Packages Archive, Single Product Page,
 * Frequently Bought Together (FBT), Mini-Cart Slide-Out Drawer, Classic Checkout,
 * Smart Order Bump, and My Account.
 *
 * @package BookRivo
 * @since 1.0.0
 */
/* ==========================================================================
   BOOK CARD (3:4 ASPECT RATIO COVER)
   ========================================================================== */
.books-grid,
.bookrivo-books-grid,
ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.book-card,
.bookrivo-book-card {
  border: 1px solid #e7ebe5;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  min-width: 0;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: 0 1px 4px rgba(23, 61, 45, 0.03);
}

.book-card:hover,
.bookrivo-book-card:hover {
  box-shadow: 0 10px 22px rgba(18, 55, 45, 0.08);
  transform: translateY(-3px);
  border-color: #cbd8c8;
}

.book-art,
.bookrivo-cover-stage {
  height: 240px;
  background: #f9f8f5 !important;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 12px 14px;
  overflow: hidden;
  border-bottom: 1px solid #edf0eb;
  flex-shrink: 0;
}

.book-card .bookrivo-cover-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
}

.bookrivo-cover-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  height: 100%;
  max-height: 100%;
}

.book-art img,
.bookrivo-cover-image {
  max-width: 82%;
  max-height: 216px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 2px 4px 4px 2px;
  filter: drop-shadow(0 6px 14px rgba(18, 55, 45, 0.12));
  transition: transform 0.22s ease;
  display: block;
  margin: 0 auto;
}

.book-card:hover .book-art img,
.bookrivo-book-card:hover .bookrivo-cover-image {
  transform: scale(1.025);
}

.placeholder-cover {
  height: 210px;
  width: 155px;
  background: linear-gradient(145deg, #263d37, #0f2726);
  color: #f3d5a0;
  border-left: 8px solid rgba(255, 255, 255, 0.14);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 13px;
  box-shadow: 9px 13px 14px rgba(24, 39, 27, 0.15);
  border-radius: 2px;
  font: 800 20px/1.4 var(--bookrivo-font-display);
}

/* Ensure NO discount badge overlays cover area */
.bookrivo-cover-stage .badge-off,
.bookrivo-cover-stage .bookrivo-badge,
.bookrivo-cover-stage .badge-sale,
.bookrivo-cover-stage .onsale,
.book-card > .onsale {
  display: none !important;
}

.bookrivo-spine-shadow {
  display: none;
}

.book-desc,
.bookrivo-card-details {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  box-sizing: border-box;
}

.book-topic,
.bookrivo-card-category {
  font-family: var(--bookrivo-font-body, system-ui, -apple-system, sans-serif);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #b08238;
  margin: 0 0 4px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 15px;
  line-height: 1.4;
}

.bookrivo-card-category-empty {
  visibility: hidden;
}

.book-topic a,
.bookrivo-card-category a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.book-topic a:hover,
.bookrivo-card-category a:hover {
  color: var(--bookrivo-forest, #173d2d);
}

.book-title,
.bookrivo-card-title {
  font-family: var(--bookrivo-font-heading, 'Noto Sans Bengali', sans-serif);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.36;
  color: var(--bookrivo-forest, #173d2d);
  margin: 0 0 5px 0;
  height: 41px;
  min-height: 41px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.book-title a,
.bookrivo-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.book-title a:hover,
.bookrivo-card-title a:hover {
  color: #c79a57;
}

.book-author,
.bookrivo-card-author {
  font-family: var(--bookrivo-font-body, system-ui, -apple-system, sans-serif);
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  margin: 0 0 10px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-height: 17px;
  line-height: 1.4;
}

.book-author a,
.bookrivo-card-author a,
.bookrivo-author-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.book-author a:hover,
.bookrivo-card-author a:hover,
.bookrivo-author-link:hover {
  color: var(--bookrivo-forest, #173d2d);
  text-decoration: underline;
}

/* Strictly hide "By" prefix in product cards */
.bookrivo-book-card .bookrivo-author-byline .by-text,
.book-card .bookrivo-author-byline .by-text,
.bookrivo-card-author .by-text {
  display: none !important;
}

.bookrivo-author-byline {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  display: block;
}

.price-row,
.bookrivo-card-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  margin-bottom: 10px;
  padding-top: 8px;
  border-top: 1px dashed #edf2eb;
  min-height: 30px;
  box-sizing: border-box;
}

.bookrivo-price-cluster {
  display: inline-flex;
  align-items: baseline;
  gap: 7px;
}

.bookrivo-price-reg,
.price-row del {
  font-size: 12px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.bookrivo-price-sale,
.price,
.bookrivo-price {
  font-size: 17.5px;
  font-weight: 800;
  color: var(--bookrivo-forest, #173d2d);
  text-decoration: none;
  letter-spacing: -0.2px;
}

.price-row ins {
  text-decoration: none;
}

.bookrivo-discount-pill,
.badge-sale-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  padding: 2.5px 6px;
  border-radius: 4px;
  letter-spacing: 0.1px;
}

.book-actions,
.bookrivo-card-actions {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-top: 0;
  position: relative;
}

.book-actions .button,
.book-actions .add_to_cart_button,
.bookrivo-card-actions .button,
.bookrivo-card-actions .add_to_cart_button,
.bookrivo-card-actions .bookrivo-btn-full {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  min-height: 38px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  background: var(--bookrivo-forest, #173d2d) !important;
  color: #ffffff !important;
  border-radius: 7px !important;
  font-family: var(--bookrivo-font-body, system-ui, -apple-system, sans-serif) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border: none !important;
  cursor: pointer !important;
  text-decoration: none !important;
  padding: 0 12px !important;
  box-shadow: 0 1px 3px rgba(23, 61, 45, 0.08) !important;
  transition: background-color 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease !important;
  text-align: center !important;
  outline: none !important;
  box-sizing: border-box !important;
}

.book-actions .bookrivo-btn-text,
.bookrivo-card-actions .bookrivo-btn-text {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: inline-block !important;
  vertical-align: middle !important;
}


.book-actions .button:hover,
.book-actions .add_to_cart_button:hover,
.bookrivo-card-actions .button:hover,
.bookrivo-card-actions .add_to_cart_button:hover,
.bookrivo-card-actions .bookrivo-btn-full:hover {
  background: #245741 !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 12px rgba(23, 61, 45, 0.18) !important;
}

/* Accessible focus: Clean forest-green ring, NO orange outline */
.book-actions .button:focus,
.book-actions .button:focus-visible,
.book-actions .add_to_cart_button:focus,
.book-actions .add_to_cart_button:focus-visible,
.bookrivo-card-actions .button:focus,
.bookrivo-card-actions .button:focus-visible,
.bookrivo-card-actions .add_to_cart_button:focus,
.bookrivo-card-actions .add_to_cart_button:focus-visible,
.bookrivo-card-actions .bookrivo-btn-full:focus,
.bookrivo-card-actions .bookrivo-btn-full:focus-visible {
  outline: 2px solid var(--bookrivo-forest, #173d2d) !important;
  outline-offset: 2px !important;
  box-shadow: 0 0 0 3px rgba(23, 61, 45, 0.22) !important;
}

/* Suppress redundant WooCommerce AJAX 'View cart' link injected beside the button */
.book-actions .added_to_cart,
.bookrivo-card-actions .added_to_cart {
  display: none !important;
}

/* Button Loading State during AJAX Add to Cart */
.book-actions .button.loading,
.book-actions .add_to_cart_button.loading,
.bookrivo-card-actions .button.loading,
.bookrivo-card-actions .add_to_cart_button.loading {
  position: relative !important;
  opacity: 0.82 !important;
  pointer-events: none !important;
  color: transparent !important;
}
.book-actions .button.loading::after,
.book-actions .add_to_cart_button.loading::after,
.bookrivo-card-actions .button.loading::after,
.bookrivo-card-actions .add_to_cart_button.loading::after {
  content: "" !important;
  position: absolute !important;
  width: 16px !important;
  height: 16px !important;
  top: 50% !important;
  left: 50% !important;
  margin-top: -8px !important;
  margin-left: -8px !important;
  border: 2px solid rgba(255, 255, 255, 0.35) !important;
  border-top-color: #ffffff !important;
  border-radius: 50% !important;
  animation: bookrivoCartSpinner 0.6s linear infinite !important;
  display: block !important;
}
@keyframes bookrivoCartSpinner {
  to { transform: rotate(360deg); }
}

/* Persistent "Added to Cart" / In-Cart State (Soft-Green Success Styling) */
.book-actions .button.is-in-cart,
.book-actions .button.added,
.book-actions .add_to_cart_button.is-in-cart,
.book-actions .add_to_cart_button.added,
.bookrivo-card-actions .button.is-in-cart,
.bookrivo-card-actions .button.added,
.bookrivo-card-actions .add_to_cart_button.is-in-cart,
.bookrivo-card-actions .add_to_cart_button.added {
  background: #eef7f2 !important;
  color: #1b5e3a !important;
  border: 1px solid #a3d9b8 !important;
  box-shadow: 0 1px 3px rgba(27, 94, 58, 0.08) !important;
}
.book-actions .button.is-in-cart:hover,
.book-actions .button.added:hover,
.book-actions .add_to_cart_button.is-in-cart:hover,
.book-actions .add_to_cart_button.added:hover,
.bookrivo-card-actions .button.is-in-cart:hover,
.bookrivo-card-actions .button.added:hover,
.bookrivo-card-actions .add_to_cart_button.is-in-cart:hover,
.bookrivo-card-actions .add_to_cart_button.added:hover {
  background: #e2f2e9 !important;
  color: #14492c !important;
  border-color: #88cfa4 !important;
  box-shadow: 0 2px 5px rgba(27, 94, 58, 0.12) !important;
}
.book-actions .button.is-in-cart .bookrivo-btn-check,
.book-actions .button.added .bookrivo-btn-check,
.book-actions .add_to_cart_button.is-in-cart .bookrivo-btn-check,
.book-actions .add_to_cart_button.added .bookrivo-btn-check,
.bookrivo-card-actions .button.is-in-cart .bookrivo-btn-check,
.bookrivo-card-actions .button.added .bookrivo-btn-check,
.bookrivo-card-actions .add_to_cart_button.is-in-cart .bookrivo-btn-check,
.bookrivo-card-actions .add_to_cart_button.added .bookrivo-btn-check {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin-right: 5px;
}
.bookrivo-card-actions .button .bookrivo-btn-check svg,
.book-actions .button .bookrivo-btn-check svg {
  width: 14px;
  height: 14px;
  stroke: #1b5e3a;
  stroke-width: 2.2;
}

/* Out of stock product button */
.product.outofstock .bookrivo-card-actions .button,
.bookrivo-book-card.outofstock .bookrivo-card-actions .button {
  background: #64748b !important;
  color: #ffffff !important;
}

/* Hide redundant arrow button */
.book-actions .detail-link,
.bookrivo-card-actions .detail-link {
  display: none !important;
}

.no-books {
  grid-column: 1 / -1;
  padding: 40px;
  text-align: center;
  background: #fff;
  border-radius: 12px;
  color: #68796a;
}


/* Shared Product Card Responsive Breakpoints */
@media (max-width: 1050px) {
  .books-grid,
  .bookrivo-books-grid,
  ul.products {
    gap: 15px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .book-art,
  .bookrivo-cover-stage {
    height: 232px;
  }
  .book-art img,
  .bookrivo-cover-image {
    height: 191px;
  }
}

@media (max-width: 768px) {
  .books-grid,
  .bookrivo-books-grid,
  ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .book-art,
  .bookrivo-cover-stage {
    height: 195px !important;
    padding: 10px 8px !important;
    background: #f9f8f5 !important;
  }
  .bookrivo-cover-wrapper {
    max-height: 175px !important;
  }
  .book-art img,
  .bookrivo-cover-image {
    max-width: 86% !important;
    max-height: 175px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }
  .book-desc,
  .bookrivo-card-details {
    padding: 10px 10px 12px !important;
  }
  .book-topic,
  .bookrivo-card-category {
    font-size: 9.5px !important;
    min-height: 13px !important;
    margin-bottom: 3px !important;
  }
  .book-title,
  .bookrivo-card-title {
    font-size: 13.5px !important;
    line-height: 1.38 !important;
    height: 38px !important;
    min-height: 38px !important;
    margin-bottom: 4px !important;
  }
  .book-author,
  .bookrivo-card-author {
    font-size: 11.5px !important;
    margin-bottom: 6px !important;
    min-height: 16px !important;
  }
  .price-row,
  .bookrivo-card-price-row {
    margin: auto 0 8px !important;
    padding-top: 8px !important;
    gap: 5px !important;
    min-height: 28px !important;
    display: flex !important;
    align-items: baseline !important;
    justify-content: space-between !important;
  }
  .price,
  .bookrivo-price,
  .bookrivo-price-sale {
    font-size: 15.5px !important;
    font-weight: 800 !important;
  }
  .old-price,
  .bookrivo-price-reg {
    font-size: 11px !important;
  }
  .bookrivo-discount-pill,
  .badge-sale-pill {
    font-size: 9.5px !important;
    padding: 2px 5px !important;
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca !important;
  }
  .book-actions,
  .bookrivo-card-actions {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
  }
  .book-actions .button,
  .book-actions .add_to_cart_button,
  .book-actions button,
  .bookrivo-card-actions .button,
  .bookrivo-card-actions .add_to_cart_button,
  .bookrivo-card-actions .bookrivo-btn-full {
    width: 100% !important;
    height: 36px !important;
    min-height: 36px !important;
    font-size: 12px !important;
    padding: 0 8px !important;
    border-radius: 6px !important;
    outline: none !important;
  }
}

@media (max-width: 414px) {
  .bookrivo-cover-stage,
  .book-art {
    height: 190px !important;
    padding: 12px 10px !important;
  }
}

@media (max-width: 380px) {
  .book-art,
  .bookrivo-cover-stage {
    height: 175px !important;
    padding: 10px 8px !important;
  }
  .bookrivo-cover-wrapper {
    max-height: 150px !important;
  }
  .book-desc,
  .bookrivo-card-details {
    padding: 10px 8px 12px !important;
  }
  .book-title,
  .bookrivo-card-title {
    font-size: 12.5px !important;
    min-height: 33px !important;
  }
}

@media (max-width: 320px) {
  .book-art,
  .bookrivo-cover-stage {
    height: 160px !important;
    padding: 8px 6px !important;
    background: #f9f8f5 !important;
  }
  .bookrivo-cover-wrapper {
    max-height: 140px !important;
  }
  .book-art img,
  .bookrivo-cover-image {
    max-width: 86% !important;
    max-height: 140px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
  }
  .book-desc,
  .bookrivo-card-details {
    padding: 8px 6px 10px !important;
  }
  .book-title,
  .bookrivo-card-title {
    font-size: 12px !important;
    min-height: 32px !important;
    height: 32px !important;
  }
  .book-author,
  .bookrivo-card-author {
    font-size: 10.5px !important;
    margin-bottom: 4px !important;
  }
  .price-row,
  .bookrivo-card-price-row {
    margin: auto 0 6px !important;
    padding-top: 6px !important;
    gap: 4px !important;
    min-height: 24px !important;
  }
  .price,
  .bookrivo-price,
  .bookrivo-price-sale {
    font-size: 13.5px !important;
    font-weight: 800 !important;
  }
  .old-price,
  .bookrivo-price-reg {
    font-size: 10px !important;
  }
  .bookrivo-discount-pill,
  .badge-sale-pill {
    font-size: 8.5px !important;
    padding: 1.5px 4px !important;
  }
  .book-actions .button,
  .bookrivo-card-actions .button,
  .bookrivo-card-actions .add_to_cart_button {
    height: 32px !important;
    min-height: 32px !important;
    font-size: 11px !important;
    border-radius: 5px !important;
  }
}
/* ==========================================================================
   ARCHIVE & CATALOG LAYOUT
   ========================================================================== */
.bookrivo-archive-banner {
  background: linear-gradient(110deg, #edf0e7 1%, #f4f4eb 65%, #e3e9de 100%);
  padding: 40px 0;
  border-bottom: 1px solid var(--bookrivo-line);
}

.archive-banner {
  background: linear-gradient(110deg, #edf0e7 1%, #f4f4eb 65%, #e3e9de 100%);
  border: 1px solid #e2e8df;
  border-radius: 16px;
  min-height: 184px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  overflow: hidden;
  margin-bottom: 24px;
  box-sizing: border-box;
}

.archive-banner.no-banner-desc {
  min-height: 152px;
}

.archive-banner .banner-copy {
  padding: 30px 40px;
  position: relative;
  z-index: 2;
  align-self: center;
  min-width: 0;
}

.archive-banner .eyebrow {
  color: #c79a57;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.archive-banner .eyebrow-line {
  height: 1px;
  width: 22px;
  background: #c79a57;
  display: inline-block;
  flex-shrink: 0;
}

.archive-banner .banner-heading,
.archive-banner h1 {
  font-size: 32px;
  font-weight: 800;
  color: #173d2d;
  line-height: 1.3;
  margin: 0 0 8px;
  font-family: var(--bookrivo-font-editorial, 'Noto Sans Bengali', var(--bookrivo-font-heading, sans-serif));
  word-break: normal;
  overflow-wrap: break-word;
}

.archive-banner.no-banner-desc .banner-heading,
.archive-banner.no-banner-desc h1 {
  margin-bottom: 0;
}

.archive-banner .banner-desc,
.archive-banner .banner-desc p {
  font-family: var(--bookrivo-font-body, 'Noto Sans Bengali', sans-serif);
  font-size: 14px;
  color: #55695a;
  line-height: 1.75;
  margin: 0;
  max-width: 580px;
  word-break: normal;
  overflow-wrap: break-word;
}

.archive-banner .banner-stats {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px 16px 0;
}

.archive-banner .catalogue-seal {
  background: rgba(255, 253, 246, 0.82);
  border: 1px solid #e1e5dc;
  width: 134px;
  height: 134px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  border-radius: 50%;
  transform: rotate(8deg);
  box-shadow: 0 12px 35px rgba(23, 61, 45, 0.08);
  margin: 0;
  flex-shrink: 0;
}

.archive-banner .catalogue-seal strong {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  color: #173d2d;
  font-family: var(--bookrivo-font-heading, Georgia, serif);
}

.archive-banner .catalogue-seal span {
  font-size: 11px;
  font-weight: 700;
  color: #506b58;
  margin-top: 4px;
  text-align: center;
}

@media (max-width: 767px) {
  .archive-banner,
  .archive-banner.no-banner-desc {
    display: block !important;
    grid-template-columns: 1fr !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin-bottom: 18px !important;
    border-radius: 14px;
  }

  .archive-banner .banner-copy {
    padding: 22px 20px !important;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
  }

  .archive-banner .eyebrow {
    justify-content: center;
    font-size: 11px;
    letter-spacing: 1.4px;
    margin-bottom: 6px;
  }

  .archive-banner .eyebrow-line {
    width: 16px;
  }

  .archive-banner .banner-heading,
  .archive-banner h1 {
    font-family: var(--bookrivo-font-editorial, 'Noto Sans Bengali', sans-serif);
    font-size: clamp(22px, 5.8vw, 26px) !important;
    line-height: 1.36 !important;
    margin: 0 0 6px !important;
    max-width: 100% !important;
    text-align: center;
  }

  .archive-banner.no-banner-desc .banner-heading,
  .archive-banner.no-banner-desc h1 {
    margin-bottom: 0 !important;
  }

  .archive-banner .banner-desc,
  .archive-banner .banner-desc p {
    font-size: 13.5px !important;
    line-height: 1.65 !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    text-align: center;
  }

  .archive-banner .banner-stats {
    display: none !important;
  }

  .bookrivo-archive-page .bookrivo-breadcrumbs {
    padding: 14px 0 10px !important;
  }

  .discovery-rail-section {
    margin-bottom: 18px !important;
    padding-bottom: 12px !important;
  }
}

@media (max-width: 360px) {
  .archive-banner .banner-copy {
    padding: 18px 14px !important;
  }
  .archive-banner .banner-heading,
  .archive-banner h1 {
    font-size: 20px !important;
  }
  .archive-banner .banner-desc,
  .archive-banner .banner-desc p {
    font-size: 13px !important;
  }
}

.banner-grid {
  display: grid;
  grid-template-columns: 1fr 220px;
  align-items: center;
  gap: 24px;
}

@media (max-width: 767px) {
  .banner-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .banner-badge-column {
    display: none;
  }
}

.banner-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--bookrivo-gold);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.banner-title {
  font-family: var(--bookrivo-font-display);
  font-size: 34px;
  color: var(--bookrivo-forest);
  margin: 0 0 8px;
  letter-spacing: -0.8px;
}

.banner-desc {
  font-size: 13px;
  color: #5d6f61;
  max-width: 600px;
  margin: 0;
  line-height: 1.8;
}

.catalogue-seal {
  background-color: rgba(255, 255, 255, 0.85);
  border: 1px solid #dce2d7;
  border-radius: 50%;
  width: 130px;
  height: 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  box-shadow: 0 8px 24px rgba(24, 57, 47, 0.08);
}

.catalogue-seal strong {
  font-size: 38px;
  line-height: 1;
  color: var(--bookrivo-forest);
}

.catalogue-seal span {
  font-size: 10px;
  font-weight: 700;
  color: var(--bookrivo-muted);
  margin-top: 4px;
}

.bookrivo-category-rail {
  padding: 16px 0;
  border-bottom: 1px solid var(--bookrivo-line);
  background-color: var(--bookrivo-white);
}

.catrail-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  white-space: nowrap;
  padding: 4px 0;
}

.catrail-scroll::-webkit-scrollbar {
  display: none;
}

.catpill {
  border: 1px solid #dce4d9;
  background-color: var(--bookrivo-white);
  color: #4b6252;
  border-radius: 30px;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
  transition: all 0.18s;
}

.catpill:hover {
  background-color: #f4f7f2;
}

.catpill.active {
  background-color: var(--bookrivo-forest);
  color: var(--bookrivo-white);
  border-color: var(--bookrivo-forest);
}

.catpill .catdot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--bookrivo-gold);
}

.catalog-content-row {
  padding: 32px 0 60px;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  gap: 16px;
}

.results-info {
  font-size: 12px;
  color: var(--bookrivo-muted);
}

.woocommerce-ordering select {
  padding: 8px 12px;
  border: 1px solid #dce2d7;
  border-radius: 6px;
  font-size: 12px;
  color: var(--bookrivo-forest);
  background: var(--bookrivo-white);
}


.bookrivo-specs-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
}

.bookrivo-specs-table th,
.bookrivo-specs-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bookrivo-line);
  text-align: left;
  font-size: 13px;
}

.bookrivo-specs-table th {
  width: 160px;
  color: var(--bookrivo-muted);
  font-weight: 600;
}

.bookrivo-specs-table td {
  color: var(--bookrivo-forest);
  font-weight: 700;
}

/* Single Product Book Hook Teaser */
.bookrivo-book-hook {
  background: rgba(23, 61, 45, 0.04);
  border-left: 3px solid var(--bookrivo-forest);
  border-radius: 0 8px 8px 0;
  padding: 12px 16px;
  margin: 14px 0 16px;
}
.bookrivo-book-hook p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--bookrivo-forest);
  font-weight: 500;
}

/* Flap Text Tab Content */
.bookrivo-flap-content {
  margin: 12px 0 20px;
}
.bookrivo-flap-inner {
  background: #ffffff;
  border: 1px solid var(--bookrivo-line);
  border-radius: 12px;
  padding: 24px 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.02);
}
.bookrivo-flap-header {
  margin-bottom: 14px;
}
.bookrivo-flap-badge {
  display: inline-block;
  background: #edf3ec;
  color: var(--bookrivo-forest);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 12px;
  border-radius: 20px;
}
.bookrivo-flap-text {
  font-size: 15px;
  line-height: 1.85;
  color: #2d3748;
  max-width: 820px;
}
.bookrivo-flap-text p:last-child {
  margin-bottom: 0;
}

/* External Partner Stores Tab Content */
.bookrivo-external-stores-tab-wrapper {
  margin: 12px 0 24px;
}
.bookrivo-external-stores-lead {
  font-size: 14px;
  color: var(--bookrivo-muted);
  margin-bottom: 20px;
}
.bookrivo-partner-stores-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.bookrivo-partner-card {
  background: #ffffff;
  border: 1px solid var(--bookrivo-line);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.bookrivo-partner-card:hover {
  border-color: var(--bookrivo-forest);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(23,61,45,0.08);
}
.partner-verified-pill {
  display: inline-block;
  background: #eaf5eb;
  color: #1e7e34;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 12px;
  margin-bottom: 8px;
}
.partner-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--bookrivo-forest);
  margin: 0 0 4px;
}
.partner-host {
  font-size: 12px;
  color: #8a998c;
  display: block;
  margin-bottom: 16px;
}
.partner-card-cta .bookrivo-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* Frequently Bought Together (FBT) Section */
.bookrivo-fbt-section {
  margin-top: 40px;
  background: #ffffff;
  border: 1px solid var(--bookrivo-line);
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}
.fbt-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--bookrivo-gold);
  margin-bottom: 4px;
}
.fbt-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--bookrivo-forest);
  margin: 0 0 22px;
}
.fbt-layout {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}
.fbt-stage {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  flex-wrap: wrap;
}
.fbt-stage-item {
  position: relative;
  width: 125px;
  transition: opacity 0.25s ease, filter 0.25s ease;
}
.fbt-stage-item.is-dimmed {
  opacity: 0.25;
  filter: grayscale(90%);
}
.fbt-cover-wrap {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(0,0,0,0.12);
  background: #f1f3ed;
}
.fbt-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.fbt-primary-badge {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(23, 61, 45, 0.92);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 2;
}
.fbt-plus-symbol {
  font-size: 24px;
  font-weight: 700;
  color: #94a3b8;
  transition: opacity 0.25s ease;
}
.fbt-plus-symbol.is-dimmed {
  opacity: 0.25;
}
.fbt-action-box {
  flex: 1.15;
  background: var(--bookrivo-ivory);
  border: 1px solid #e7ede4;
  border-radius: 12px;
  padding: 22px 24px;
}
.fbt-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
}
.fbt-total-label {
  font-size: 15px;
  font-weight: 600;
  color: #475569;
}
.fbt-total-amount {
  font-size: 26px;
  font-weight: 800;
  color: var(--bookrivo-forest);
}
.fbt-add-btn {
  width: 100%;
  height: 48px;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
}
.fbt-perk-note {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #15803d;
  margin-bottom: 16px;
}
.fbt-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid #e2e8df;
  padding-top: 14px;
}
.fbt-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #334155;
  cursor: pointer;
  line-height: 1.4;
}
.fbt-check-item input {
  margin-top: 3px;
  accent-color: var(--bookrivo-forest);
  cursor: pointer;
}
.fbt-item-link {
  color: var(--bookrivo-forest);
  text-decoration: none;
  font-weight: 700;
}
.fbt-item-link:hover {
  text-decoration: underline;
}
.fbt-item-price {
  color: #64748b;
  font-weight: 600;
}

@media (max-width: 991px) {
  .fbt-layout {
    flex-direction: column;
  }
  .fbt-action-box {
    width: 100%;
  }
}


/* ==========================================================================
   CLASSIC WOOCOMMERCE CHECKOUT STYLING & REMEDIATION
   ========================================================================== */
.bookrivo-checkout-shell {
  max-width: 1200px;
  margin: 28px auto 60px;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ==========================================================================
   COMPACT INLINE CHECKOUT LOGIN & COUPON ACTIONS
   ========================================================================== */
.bookrivo-checkout-actions-dock {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  min-height: auto;
  box-sizing: border-box;
}

/* Zero-shift checkout inline actions docking: prevent space reservation above form before docking */
.bookrivo-checkout-shell > .bookrivo-inline-login-wrap,
.bookrivo-checkout-shell > .bookrivo-inline-coupon-wrap {
  display: none !important;
}

.bookrivo-checkout-actions-dock .bookrivo-inline-login-wrap {
  display: inline-flex;
}

.bookrivo-checkout-actions-dock .bookrivo-inline-coupon-wrap {
  display: block;
  width: 100%;
}

.bookrivo-inline-login-wrap {
  display: inline-flex;
  flex-direction: column;
}

.bookrivo-inline-coupon-wrap {
  display: block;
  width: 100%;
}

.bookrivo-checkout-inline-toggle {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #5c6f60;
  margin: 0;
  padding: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

.bookrivo-checkout-inline-toggle::before {
  content: none !important;
  display: none !important;
}

.bookrivo-checkout-inline-toggle .inline-toggle-prompt {
  color: #5c6f60;
  font-weight: 500;
  font-size: 13px;
}

.bookrivo-checkout-inline-toggle a.showlogin,
.bookrivo-checkout-inline-toggle a.showcoupon {
  color: #173d2d !important;
  font-weight: 750 !important;
  font-size: 13px !important;
  text-decoration: underline !important;
  cursor: pointer;
  background: transparent !important;
  padding: 0 !important;
  border: none !important;
  margin: 0 !important;
  transition: color 0.15s ease;
}

.bookrivo-checkout-inline-toggle a.showlogin:hover,
.bookrivo-checkout-inline-toggle a.showcoupon:hover {
  color: #245842 !important;
}

.bookrivo-checkout-inline-toggle a.showlogin:focus-visible,
.bookrivo-checkout-inline-toggle a.showcoupon:focus-visible {
  outline: 2px solid #173d2d !important;
  outline-offset: 3px !important;
  border-radius: 2px !important;
}

/* Collapsible Coupon Form */
.checkout_coupon.woocommerce-form-coupon {
  background: #fbfbf9;
  border: 1px solid #dce4da;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 12px 0 6px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}

.checkout_coupon.woocommerce-form-coupon[style*="display: none"],
.checkout_coupon.woocommerce-form-coupon[style*="display:none"] {
  display: none !important;
}

.checkout_coupon.woocommerce-form-coupon p {
  margin: 0 !important;
}

.checkout_coupon.woocommerce-form-coupon .form-row-first {
  flex: 1 1 200px !important;
  min-width: 180px !important;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
}

.checkout_coupon.woocommerce-form-coupon .form-row-last {
  flex: 0 0 auto !important;
  margin: 0 !important;
  float: none !important;
  width: auto !important;
}

.checkout_coupon.woocommerce-form-coupon input.input-text {
  height: 40px !important;
  border: 1.5px solid #dce2d7 !important;
  border-radius: 7px !important;
  padding: 0 12px !important;
  font-size: 13px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.checkout_coupon.woocommerce-form-coupon input.input-text:focus {
  border-color: #173d2d !important;
  box-shadow: 0 0 0 3px rgba(23, 61, 45, 0.08) !important;
}

.checkout_coupon.woocommerce-form-coupon .button {
  height: 40px !important;
  background: #173d2d !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 7px !important;
  padding: 0 18px !important;
  font-family: var(--bookrivo-font-bengali, 'Noto Sans Bengali', sans-serif) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  white-space: nowrap !important;
}

.checkout_coupon.woocommerce-form-coupon .button:hover {
  background: #245842 !important;
}

/* Collapsible Login Form */
.woocommerce-no-js form.woocommerce-form-login,
.woocommerce-no-js form.woocommerce-form-login.login,
form.woocommerce-form-login.login[style*="display: none"],
form.woocommerce-form-login.login[style*="display:none"] {
  display: none !important;
}

form.woocommerce-form-login.login {
  background: #fbfbf9 !important;
  border: 1px solid #dce4da !important;
  border-radius: 10px !important;
  padding: 16px 18px !important;
  margin: 12px 0 6px 0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

form.woocommerce-form-login.login p:first-child {
  font-size: 13px !important;
  color: #55695a !important;
  margin: 0 0 12px 0 !important;
}

form.woocommerce-form-login.login .form-row {
  margin-bottom: 12px !important;
}

form.woocommerce-form-login.login input.input-text {
  height: 40px !important;
  border: 1.5px solid #dce2d7 !important;
  border-radius: 7px !important;
  padding: 0 12px !important;
  font-size: 13px !important;
}

form.woocommerce-form-login.login .button {
  height: 40px !important;
  background: #173d2d !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 7px !important;
  padding: 0 20px !important;
  font-family: var(--bookrivo-font-bengali, 'Noto Sans Bengali', sans-serif) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  cursor: pointer !important;
}

form.woocommerce-form-login.login .button:hover {
  background: #245842 !important;
}

/* Header intro */
.checkout-header-intro {
  margin-bottom: 28px;
}

.checkout-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #c79a57;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.checkout-kicker::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1.5px;
  background: #c79a57;
}

.checkout-title {
  font-family: var(--bookrivo-font-heading, Georgia, serif);
  font-size: 32px;
  font-weight: 800;
  color: #173d2d;
  line-height: 1.3;
  margin: 0 0 8px;
}

.checkout-subtitle {
  font-size: 14px;
  color: #55695a;
  line-height: 1.6;
  margin: 0;
  max-width: 600px;
}

/* ==========================================================================
   MAIN TWO-COLUMN LAYOUT
   ========================================================================== */
.bookrivo-checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

/* Explicit layout placement: notices span full width, columns stay side-by-side */
.bookrivo-checkout-layout > .woocommerce-NoticeGroup,
.bookrivo-checkout-layout > .woocommerce-NoticeGroup-checkout,
.bookrivo-checkout-layout > .woocommerce-NoticeGroup-updateOrderReview,
.bookrivo-checkout-layout > .woocommerce-notices-wrapper,
.bookrivo-checkout-layout > .woocommerce-error,
.bookrivo-checkout-layout > .woocommerce-message,
.bookrivo-checkout-layout > .woocommerce-info {
  grid-column: 1 / -1;
  width: 100%;
}

.bookrivo-checkout-layout > .bookrivo-checkout-col-fields {
  grid-column: 1;
}

.bookrivo-checkout-layout > .bookrivo-checkout-col-summary {
  grid-column: 2;
}

/* Order summary column: NOT sticky to avoid overflow clipping and jumping during AJAX */
.bookrivo-checkout-col-summary {
  position: static;
}

/* Panels */
.bookrivo-panel {
  background-color: #ffffff;
  border: 1px solid #e2e8df;
  border-radius: 14px;
  padding: 26px 28px;
  box-shadow: 0 4px 18px rgba(18, 55, 45, 0.03);
  box-sizing: border-box;
}

.panel-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid #eef2eb;
}

.step-num {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #173d2d, #275943);
  color: #ffffff;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  flex: none;
  box-shadow: 0 3px 8px rgba(23,61,45,0.18);
}

.panel-title {
  font-family: var(--bookrivo-font-heading, Georgia, serif);
  font-size: 20px;
  font-weight: 800;
  color: #173d2d;
  margin: 0;
  line-height: 1.3;
}

.panel-desc {
  font-size: 12px;
  color: #64748b;
  margin: 3px 0 0;
}

/* Override WooCommerce default floated col2-set inside customer details */
.bookrivo-checkout-layout #customer_details.col2-set {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.bookrivo-checkout-layout #customer_details .col-1,
.bookrivo-checkout-layout #customer_details .col-2 {
  width: 100% !important;
  float: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Hide redundant WooCommerce default "Billing details" heading */
.bookrivo-checkout-layout .woocommerce-billing-fields > h3 {
  display: none !important;
}

/* Style additional notes heading */
.bookrivo-checkout-layout .woocommerce-additional-fields > h3 {
  font-family: var(--bookrivo-font-heading, Georgia, serif);
  font-size: 16px;
  font-weight: 750;
  color: #173d2d;
  margin: 20px 0 10px;
  padding-top: 16px;
  border-top: 1px dashed #e2e8df;
}

/* ==========================================================================
   BookRivo Collapsible Checkout Accordions (Order Notes & Coupon)
   ========================================================================== */
.bookrivo-checkout-accordion-wrap {
  width: 100%;
  box-sizing: border-box;
  background: #ffffff;
  border: 1px solid #e2e8df;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 0 10px 0;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bookrivo-checkout-accordion-wrap:hover {
  border-color: #cbd5e1;
}

.bookrivo-checkout-accordion-wrap.is-expanded {
  border-color: #2d6a4f;
  box-shadow: 0 1px 4px rgba(23, 61, 45, 0.06);
}

.bookrivo-additional-fields-section {
  margin-top: 8px;
  margin-bottom: 0;
}

.bookrivo-accordion-trigger {
  width: 100%;
  min-height: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: #f8faf8;
  border: none;
  border-radius: 0;
  color: #173d2d;
  font-family: var(--bookrivo-font-body, 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
  transition: background-color 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.bookrivo-accordion-trigger:hover {
  background: #f0f4f1;
  color: #1b4332;
}

.bookrivo-accordion-trigger:focus-visible {
  outline: 2px solid #2d6a4f;
  outline-offset: -2px;
}

.bookrivo-accordion-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.bookrivo-accordion-icon {
  flex-shrink: 0;
  color: #2d6a4f;
  display: inline-flex;
  align-items: center;
}

.bookrivo-accordion-text {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: inherit;
  line-height: 1.4;
  word-break: break-word;
}

.bookrivo-coupon-active-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  padding: 1px 8px;
  margin-left: 6px;
  line-height: 1.5;
}

.bookrivo-accordion-chevron {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 8px;
  color: #5c6f60;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), color 0.15s ease;
}

.bookrivo-accordion-trigger.is-expanded .bookrivo-accordion-chevron,
.bookrivo-accordion-trigger[aria-expanded="true"] .bookrivo-accordion-chevron {
  transform: rotate(180deg);
  color: #2d6a4f;
}

.bookrivo-accordion-content {
  padding: 14px;
  background: #ffffff;
  border-top: 1px solid #edf2ee;
  box-sizing: border-box;
}

/* Order Notes Specifics */
.bookrivo-order-notes-accordion .woocommerce-additional-fields__field-wrapper {
  margin: 0;
  padding: 0;
}

.bookrivo-order-notes-accordion p.form-row.notes {
  margin: 0;
  padding: 0;
}

.bookrivo-order-notes-accordion p.form-row.notes label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  margin-bottom: 6px;
}

.bookrivo-order-notes-accordion textarea#order_comments {
  width: 100% !important;
  min-height: 72px;
  height: 72px;
  max-height: 160px;
  padding: 10px 12px !important;
  font-family: inherit;
  font-size: 13.5px;
  line-height: 1.5;
  color: #1e293b;
  background: #fdfdfd;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  box-sizing: border-box;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bookrivo-order-notes-accordion textarea#order_comments:focus {
  border-color: #2d6a4f !important;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12) !important;
  outline: none !important;
}

/* Coupon Specifics */
form.checkout_coupon.bookrivo-accordion-content {
  border: none !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  background: #ffffff !important;
  box-shadow: none !important;
  border-top: 1px solid #edf2ee !important;
}

.bookrivo-coupon-fields-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.bookrivo-coupon-fields-row p.form-row {
  margin: 0 !important;
  padding: 0 !important;
}

.bookrivo-coupon-fields-row p.form-row-first {
  flex: 1 1 180px;
  min-width: 0;
  width: auto !important;
  float: none !important;
}

.bookrivo-coupon-fields-row p.form-row-first input#coupon_code {
  width: 100% !important;
  height: 42px !important;
  padding: 8px 12px !important;
  font-family: inherit;
  font-size: 13.5px;
  color: #1e293b;
  background: #fdfdfd;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.bookrivo-coupon-fields-row p.form-row-first input#coupon_code:focus {
  border-color: #2d6a4f !important;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.12) !important;
  outline: none !important;
}

.bookrivo-coupon-fields-row p.form-row-last {
  flex: 0 0 auto;
  width: auto !important;
  float: none !important;
}

.bookrivo-coupon-fields-row p.form-row-last button[name="apply_coupon"] {
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 18px !important;
  font-family: inherit;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  background: #173d2d !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  transition: background-color 0.15s ease, transform 0.1s ease;
}

.bookrivo-coupon-fields-row p.form-row-last button[name="apply_coupon"]:hover {
  background: #245842 !important;
}

.bookrivo-coupon-fields-row p.form-row-last button[name="apply_coupon"]:active {
  transform: scale(0.98);
}

@media (max-width: 400px) {
  .bookrivo-coupon-fields-row {
    flex-direction: column;
    align-items: stretch;
  }
  .bookrivo-coupon-fields-row p.form-row-first,
  .bookrivo-coupon-fields-row p.form-row-last {
    width: 100% !important;
    flex: 1 1 100% !important;
  }
  .bookrivo-coupon-fields-row p.form-row-last button[name="apply_coupon"] {
    width: 100% !important;
  }
}

/* ==========================================================================
   BookRivo Smart Mobile Sticky Checkout Confirmation Bar
   ========================================================================== */

/* Desktop & Tablet: Never show sticky confirmation bar */
.bookrivo-mobile-sticky-checkout {
  display: none !important;
}

@media (max-width: 767px) {
  /* Hide standard mobile bottom navigation on checkout only */
  body.woocommerce-checkout:not(.woocommerce-order-received) .bookrivo-mobile-bottom-bar {
    display: none !important;
  }

  /* Hide floating WhatsApp button on mobile checkout only */
  body.woocommerce-checkout:not(.woocommerce-order-received) .whatsapp-sticky-icon {
    display: none !important;
  }

  /* Reserve bottom clearance on checkout so content is never hidden behind sticky bar */
  body.woocommerce-checkout:not(.woocommerce-order-received) {
    padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)) !important;
  }

  /* Sticky Confirmation Bar Container */
  .bookrivo-mobile-sticky-checkout {
    display: block !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background: #ffffff !important;
    border-top: 1px solid #e2e8df !important;
    box-shadow: 0 -4px 18px rgba(18, 55, 45, 0.08) !important;
    z-index: 998 !important;
    box-sizing: border-box !important;
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease !important;
    pointer-events: auto;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
  }

  /* Never show on order received (Thank you page) */
  body.woocommerce-order-received .bookrivo-mobile-sticky-checkout {
    display: none !important;
  }

  /* Hidden when native button is visible or keyboard is open */
  .bookrivo-mobile-sticky-checkout.is-hidden {
    transform: translateY(105%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .sticky-checkout-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)) 16px;
    box-sizing: border-box;
    width: 100%;
    min-height: 64px;
  }

  /* Left: Payable Amount & Payment Status */
  .sticky-checkout-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    flex: 1 1 auto;
  }

  .sticky-checkout-total-wrap {
    display: flex;
    align-items: baseline;
    gap: 6px;
    line-height: 1.2;
  }

  .sticky-checkout-total-label {
    font-size: 11.5px;
    font-weight: 500;
    color: #5c6f60;
    font-family: var(--bookrivo-font-body, 'Noto Sans Bengali', sans-serif);
    white-space: nowrap;
  }

  .sticky-checkout-total-amount {
    font-size: 16.5px;
    font-weight: 800;
    color: #12372D;
    font-family: var(--bookrivo-font-body, 'Noto Sans Bengali', sans-serif);
    letter-spacing: -0.2px;
    white-space: nowrap;
    font-feature-settings: "tnum";
    font-variant-numeric: tabular-nums;
  }

  .sticky-checkout-payment-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.3;
    margin-top: 2px;
    color: #5c6f60;
    font-family: var(--bookrivo-font-body, 'Noto Sans Bengali', sans-serif);
    transition: color 0.15s ease;
  }

  .sticky-checkout-payment-status .status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #94a3b8;
    flex-shrink: 0;
    transition: background-color 0.15s ease;
  }

  /* When Bangla QR discount is applied */
  .sticky-checkout-payment-status.has-discount {
    color: #15803d;
    font-weight: 700;
  }

  .sticky-checkout-payment-status.has-discount .status-dot {
    background: #16a34a;
    box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
  }

  /* Right: Dark Green Confirmation Button */
  .sticky-checkout-right {
    flex-shrink: 0;
  }

  .sticky-checkout-confirm-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    background: #12372D !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 8px !important;
    min-height: 46px !important;
    height: 46px !important;
    padding: 0 18px !important;
    font-family: var(--bookrivo-font-body, 'Noto Sans Bengali', sans-serif) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    box-shadow: 0 2px 8px rgba(18, 55, 45, 0.25) !important;
    transition: background 0.15s ease, transform 0.1s ease, opacity 0.15s ease !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .sticky-checkout-confirm-btn:hover {
    background: #1b4a3d !important;
  }

  .sticky-checkout-confirm-btn:active {
    transform: scale(0.97) !important;
    background: #0c2720 !important;
  }

  .sticky-checkout-confirm-btn:focus-visible {
    outline: 2px solid #C79A57 !important;
    outline-offset: 2px !important;
  }

  .sticky-checkout-confirm-btn:disabled,
  .sticky-checkout-confirm-btn.is-loading,
  .sticky-checkout-confirm-btn.is-recalculating {
    opacity: 0.65 !important;
    cursor: not-allowed !important;
    transform: none !important;
  }

  .sticky-checkout-confirm-btn .btn-arrow {
    font-size: 15px;
    transition: transform 0.15s ease;
  }

  .sticky-checkout-confirm-btn:hover:not(:disabled) .btn-arrow {
    transform: translateX(2px);
  }

  .sticky-checkout-confirm-btn .btn-spinner {
    display: none;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: bookrivoSpin 0.6s linear infinite;
  }

  .sticky-checkout-confirm-btn.is-loading .btn-arrow {
    display: none !important;
  }

  .sticky-checkout-confirm-btn.is-loading .btn-spinner {
    display: inline-block !important;
  }

  @keyframes bookrivoSpin {
    to { transform: rotate(360deg); }
  }

  /* Extra Narrow Mobile (<= 350px) */
  @media (max-width: 350px) {
    .sticky-checkout-inner {
      padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) 10px;
      gap: 8px;
    }
    .sticky-checkout-confirm-btn {
      padding: 0 12px !important;
      font-size: 13px !important;
    }
    .sticky-checkout-total-amount {
      font-size: 15px;
    }
    .sticky-checkout-total-label,
    .sticky-checkout-payment-status {
      font-size: 10.5px;
    }
  }
}

/* Form Fields */
.bookrivo-checkout-layout .woocommerce-billing-fields__field-wrapper,
.bookrivo-checkout-layout .woocommerce-additional-fields__field-wrapper,
.bookrivo-checkout-layout .woocommerce-shipping-fields__field-wrapper {
  display: block;
}

.bookrivo-checkout-layout .woocommerce-billing-fields__field-wrapper::after,
.bookrivo-checkout-layout .woocommerce-additional-fields__field-wrapper::after {
  content: "";
  display: table;
  clear: both;
}

.bookrivo-checkout-layout .form-row {
  margin-bottom: 18px;
  padding: 0;
  width: 100%;
  box-sizing: border-box;
}

.bookrivo-checkout-layout .form-row-first,
.bookrivo-checkout-layout .form-row-last {
  width: calc(50% - 9px) !important;
}

.bookrivo-checkout-layout .form-row-first {
  float: left;
  clear: left;
}

.bookrivo-checkout-layout .form-row-last {
  float: right;
  clear: none;
}

.bookrivo-checkout-layout .form-row-wide {
  clear: both !important;
  float: none !important;
  width: 100% !important;
}

.bookrivo-checkout-layout .form-row label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #173d2d;
  margin-bottom: 7px;
  line-height: 1.4;
}

.bookrivo-checkout-layout .form-row label abbr.required {
  color: #d93829;
  text-decoration: none;
  font-weight: 800;
  margin-left: 2px;
}

.bookrivo-checkout-layout .form-row input.input-text,
.bookrivo-checkout-layout .form-row textarea,
.bookrivo-checkout-layout .form-row select {
  width: 100%;
  height: 44px;
  border: 1.5px solid #dce2d7;
  border-radius: 8px;
  padding: 0 14px;
  font-size: 13.5px;
  color: #173d2d;
  background-color: #ffffff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}

.bookrivo-checkout-layout .form-row textarea {
  height: auto;
  min-height: 80px;
  padding: 10px 14px;
  line-height: 1.6;
}

.bookrivo-checkout-layout .form-row input.input-text:focus,
.bookrivo-checkout-layout .form-row textarea:focus,
.bookrivo-checkout-layout .form-row select:focus {
  border-color: #173d2d;
  box-shadow: 0 0 0 3px rgba(23, 61, 45, 0.08);
  background-color: #ffffff;
}

/* Validation states */
.woocommerce-invalid input.input-text,
.woocommerce-invalid textarea,
.woocommerce-invalid select {
  border-color: #d93829 !important;
  background-color: #fffdfc !important;
}

.woocommerce-validated input.input-text {
  border-color: #2e6940 !important;
}

/* Select2 Dropdown polish */
.bookrivo-checkout-layout .select2-container {
  width: 100% !important;
}

.bookrivo-checkout-layout .select2-container .select2-selection--single {
  height: 44px !important;
  border: 1.5px solid #dce2d7 !important;
  border-radius: 8px !important;
  padding: 0 14px !important;
  background-color: #ffffff !important;
  box-sizing: border-box !important;
  outline: none !important;
  display: flex !important;
  align-items: center !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.bookrivo-checkout-layout .select2-container--default.select2-container--open .select2-selection--single,
.bookrivo-checkout-layout .select2-container--default.select2-container--focus .select2-selection--single {
  border-color: #173d2d !important;
  box-shadow: 0 0 0 3px rgba(23, 61, 45, 0.08) !important;
}

.bookrivo-checkout-layout .select2-container--default .select2-selection--single .select2-selection__rendered {
  line-height: 40px !important;
  padding-left: 0 !important;
  padding-right: 20px !important;
  color: #173d2d !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
}

.bookrivo-checkout-layout .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 42px !important;
  right: 12px !important;
  top: 1px !important;
}

.select2-dropdown {
  border: 1.5px solid #173d2d !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(23,61,45,0.12) !important;
  z-index: 9999 !important;
}

/* Checkbox alignments */
.bookrivo-checkout-layout .form-row.create-account {
  margin: 12px 0 16px;
}

.bookrivo-checkout-layout .form-row.create-account label.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.bookrivo-checkout-layout .form-row.create-account input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: #173d2d;
  margin: 0;
  cursor: pointer;
}

/* Review Order Table */
.bookrivo-review-order-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  margin-bottom: 20px;
}

.bookrivo-review-order-table thead th {
  padding: 10px 0 12px;
  border-bottom: 2px solid #eef1ec;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: #768679;
  letter-spacing: 0.8px;
}

.bookrivo-review-order-table tbody td {
  padding: 14px 0;
  border-bottom: 1px solid #f0f3ee;
  vertical-align: middle;
}

.bookrivo-review-order-table .review-product-cell {
  display: flex;
  align-items: center;
  gap: 14px;
}

.bookrivo-review-order-table .review-thumb-wrapper {
  width: 44px;
  height: 62px;
  background: #f4f3ec;
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

.bookrivo-review-order-table .review-book-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.bookrivo-review-order-table .review-info-wrapper {
  flex: 1;
  min-width: 0;
}

.bookrivo-review-order-table .review-item-title {
  font-family: var(--bookrivo-font-heading, Georgia, serif);
  font-size: 14px;
  font-weight: 750;
  color: #173d2d;
  line-height: 1.38;
  display: block;
  word-break: break-word;
  overflow-wrap: break-word;
}

.bookrivo-review-order-table .review-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.bookrivo-review-order-table .review-qty-pill {
  font-size: 11px;
  font-weight: 700;
  background: #edf3eb;
  color: #275237;
  padding: 2px 7px;
  border-radius: 4px;
}

.bookrivo-review-order-table .review-item-author {
  font-size: 11.5px;
  color: #64748b;
}

.bookrivo-review-order-table td.product-total {
  text-align: right;
  font-size: 14.5px;
  font-weight: 750;
  color: #173d2d;
  white-space: nowrap;
}

/* Review Order Table Totals */
.bookrivo-review-order-table tfoot th,
.bookrivo-review-order-table tfoot td {
  padding: 11px 0;
  border-bottom: 1px solid #f0f3ee;
}

.bookrivo-review-order-table tfoot th {
  font-weight: 600;
  color: #5c6f60;
  text-align: left;
}

.bookrivo-review-order-table tfoot td {
  text-align: right;
  font-weight: 700;
  color: #173d2d;
}

.bookrivo-review-order-table tr.order-total th,
.bookrivo-review-order-table tr.order-total td {
  font-size: 19px;
  font-weight: 800;
  color: #173d2d;
  border-top: 2px solid #173d2d;
  border-bottom: none;
  padding-top: 16px;
}

/* Shipping choices in checkout */
.bookrivo-review-order-table tr.woocommerce-shipping-totals th {
  vertical-align: middle;
  padding-top: 14px;
  white-space: nowrap;
}

.bookrivo-review-order-table tr.woocommerce-shipping-totals td {
  text-align: right;
  padding-top: 14px;
  white-space: nowrap;
}

#shipping_method {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

#shipping_method li {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

#shipping_method input[type="radio"] {
  accent-color: #173d2d;
  width: 16px;
  height: 16px;
  cursor: pointer;
  margin: 0;
}

#shipping_method label {
  cursor: pointer;
  font-size: 13px;
  color: #173d2d;
  line-height: 1.4;
  word-break: break-word;
}

/* Projonmo Core Shipping Promotion Notice */
.projonmo-shipping-promo-message,
.projonmo-shipping-promo-banner {
  background: #f0f7ef !important;
  border: 1px solid #c9e2c6 !important;
  border-radius: 8px !important;
  padding: 10px 14px !important;
  font-size: 12.5px !important;
  color: #1e512c !important;
  font-weight: 600 !important;
  margin: 10px 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* ==========================================================================
   AUTOMATIC SMART CHECKOUT ORDER BUMP CARD
   ========================================================================== */
.bookrivo-order-bump-box {
  background: #fffdf9;
  border: 1.5px dashed #cfb78f;
  border-radius: 14px;
  padding: 18px 20px;
  margin: 22px 0;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(23, 61, 45, 0.03);
}

.bookrivo-order-bump-box:hover {
  border-color: #b89255;
  box-shadow: 0 4px 14px rgba(23, 61, 45, 0.05);
}

.bookrivo-order-bump-box.is-active {
  background: #f6faf5;
  border: 1.5px solid #1a4d36;
  box-shadow: 0 4px 18px rgba(23, 61, 45, 0.08);
}

.bump-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
  padding-bottom: 11px;
  border-bottom: 1px dashed #eee8db;
}

.bookrivo-order-bump-box.is-active .bump-header-row {
  border-bottom-color: #dbe7da;
}

.bump-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fdf3e3;
  color: #8c5b16;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  padding: 3px 9px;
  border-radius: 6px;
  border: 1px solid #fae2be;
}

.bump-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d97706;
  display: inline-block;
  animation: bumpPulse 1.8s infinite;
}

@keyframes bumpPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.bump-discount-pill {
  background: #173d2d;
  color: #ffffff;
  font-size: 11.5px;
  font-weight: 800;
  padding: 3px 9px;
  border-radius: 6px;
  letter-spacing: 0.2px;
}

.bookrivo-order-bump-box.is-active .bump-discount-pill {
  background: #256649;
}

.bump-main-grid {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.bump-cover-col {
  flex-shrink: 0;
}

.bump-cover-wrapper {
  width: 84px;
  height: 120px;
  background: #f1ede4;
  border: 1px solid #e3decb;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}

.bump-spine-shadow {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 5px;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.18), transparent);
  z-index: 2;
  pointer-events: none;
}

.bump-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.bump-thumb-fallback {
  font-size: 32px;
}

.bump-info-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.bump-book-title {
  font-family: var(--bookrivo-font-heading, Georgia, serif);
  font-size: 16px;
  font-weight: 800;
  color: #173d2d;
  margin: 0 0 3px;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: break-word;
}

.bump-book-author {
  font-size: 12.5px;
  color: #64748b;
  margin-bottom: 5px;
  line-height: 1.4;
}

.bump-book-author a {
  color: inherit;
  text-decoration: none;
}

.bump-book-hook {
  font-size: 12px;
  color: #4b584d;
  margin: 0 0 10px;
  line-height: 1.45;
}

.bump-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.bump-sale-price {
  font-size: 17px;
  font-weight: 800;
  color: #173d2d;
  text-decoration: none;
}

.bump-reg-price {
  font-size: 12.5px;
  color: #94a3b8;
  text-decoration: line-through;
  font-weight: 500;
}

.bump-badge-saving {
  font-size: 11px;
  font-weight: 700;
  background: #eaf4e8;
  color: #276135;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid #d4e8d0;
}

.bump-action-trigger {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 13px;
  background: #f5efe1;
  border: 1px solid #ded5be;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
}

.bump-action-trigger:hover {
  background: #eedfca;
  border-color: #c9b999;
}

.bookrivo-order-bump-box.is-active .bump-action-trigger {
  background: #e5f0e3;
  border-color: #b7d6b3;
}

.bookrivo-bump-checkbox {
  width: 18px;
  height: 18px;
  accent-color: #173d2d;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

.bump-action-text {
  font-size: 13px;
  font-weight: 700;
  color: #173d2d;
  line-height: 1.35;
}

.bump-loading-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  display: none;
  place-items: center;
  border-radius: 14px;
  z-index: 5;
}

.bookrivo-order-bump-box.bump-loading .bump-loading-overlay {
  display: grid;
}

.bump-spinner {
  width: 26px;
  height: 26px;
  border: 3px solid #dce4da;
  border-top-color: #173d2d;
  border-radius: 50%;
  animation: bumpSpin 0.7s linear infinite;
}

/* ==========================================================================
   PAYMENT METHODS & PLACE ORDER
   ========================================================================== */
#payment {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin-top: 20px !important;
}

#payment ul.payment_methods {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 16px 0 !important;
  border: none !important;
}

#payment li.wc_payment_method {
  position: relative !important;
  background: #ffffff !important;
  border: 1.5px solid #dce4da !important;
  border-radius: 10px !important;
  margin-bottom: 10px !important;
  padding: 14px 16px !important;
  min-height: 54px !important;
  box-sizing: border-box !important;
  transition: border-color 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease !important;
  cursor: pointer !important;
  user-select: none !important;
  list-style: none !important;
}

#payment li.wc_payment_method:hover {
  border-color: #8eb38b !important;
  background: #fafcfa !important;
}

#payment li.wc_payment_method.is-selected,
#payment li.wc_payment_method:has(> input[type="radio"]:checked) {
  background: #f4f9f5 !important;
  border-color: #173d2d !important;
  box-shadow: 0 0 0 1px #173d2d, 0 4px 12px rgba(23, 61, 45, 0.08) !important;
}

#payment li.wc_payment_method:focus-within {
  border-color: #173d2d !important;
}

#payment li.wc_payment_method > input[type="radio"] {
  accent-color: #173d2d !important;
  width: 19px !important;
  height: 19px !important;
  cursor: pointer !important;
  margin: 0 10px 0 0 !important;
  vertical-align: middle !important;
  flex-shrink: 0 !important;
}

#payment li.wc_payment_method > input[type="radio"]:focus-visible {
  outline: 2px solid #c79a57 !important;
  outline-offset: 2px !important;
}

#payment li.wc_payment_method > label {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: calc(100% - 34px) !important;
  min-height: 26px !important;
  font-family: var(--bookrivo-font-bengali, 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #173d2d !important;
  line-height: 1.4 !important;
  cursor: pointer !important;
  margin: 0 !important;
  vertical-align: middle !important;
}

#payment div.payment_box::before,
.woocommerce-checkout #payment div.payment_box::before {
  content: none !important;
  display: none !important;
}

#payment .payment_box {
  background: #ffffff !important;
  border: 1px solid #d8e5da !important;
  border-left: 3px solid #173d2d !important;
  border-radius: 8px !important;
  padding: 10px 13px !important;
  margin: 10px 0 2px 0 !important;
  font-family: var(--bookrivo-font-bengali, 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
  font-size: 13.5px !important;
  color: #2d4736 !important;
  line-height: 1.55 !important;
  cursor: pointer !important;
}

#payment .payment_box p {
  margin: 0 !important;
}

.woocommerce-terms-and-conditions-wrapper {
  margin: 16px 0 12px;
  font-size: 12.5px;
  color: #55695a;
  line-height: 1.5;
}

.woocommerce-terms-and-conditions-wrapper label.checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  cursor: pointer;
}

.woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: #173d2d;
  flex-shrink: 0;
}

#payment .place-order {
  padding: 0 !important;
  margin: 16px 0 0 !important;
}

.bookrivo-checkout-layout #place_order,
.woocommerce-checkout-payment #place_order,
#place_order {
  width: 100% !important;
  min-height: 52px !important;
  background-color: var(--bookrivo-forest, #173d2d) !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-family: var(--bookrivo-font-bengali, 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif) !important;
  font-size: 16.5px !important;
  font-weight: 700 !important;
  line-height: 1.4 !important;
  letter-spacing: normal !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(23, 61, 45, 0.22) !important;
  transition: all 0.2s ease !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.bookrivo-checkout-layout #place_order:hover,
.woocommerce-checkout-payment #place_order:hover,
#place_order:hover {
  background-color: #23543f !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(23, 61, 45, 0.28) !important;
}

/* ==========================================================================
   WOOCOMMERCE NOTICES & VALIDATION ERROR ALERTS
   ========================================================================== */
.woocommerce-NoticeGroup,
.woocommerce-NoticeGroup-checkout,
.woocommerce-NoticeGroup-updateOrderReview,
.woocommerce-notices-wrapper {
  width: 100%;
  margin-bottom: 24px;
}

.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
  position: relative !important;
  list-style: none !important;
  padding: 14px 18px 14px 48px !important;
  border-radius: 10px !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
  margin: 0 0 20px !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  word-wrap: break-word !important;
}

.woocommerce-error::before,
.woocommerce-message::before,
.woocommerce-info::before {
  position: absolute !important;
  top: 14px !important;
  left: 18px !important;
  margin: 0 !important;
  line-height: 1.6 !important;
  font-size: 16px !important;
  display: inline-block !important;
  width: 18px !important;
  height: 18px !important;
  text-align: center !important;
}

.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.6 !important;
}

.woocommerce-message .button,
.woocommerce-info .button,
.woocommerce-error .button {
  float: right;
  margin: -4px 0 0 10px !important;
}

.woocommerce-error {
  background-color: #fdf3f2 !important;
  border: 1px solid #f5c4c0 !important;
  border-left: 4px solid #d93829 !important;
  color: #a72316 !important;
}

.woocommerce-error li {
  margin: 0 !important;
  padding: 0 !important;
}

.woocommerce-message {
  background-color: #f1f8f1 !important;
  border: 1px solid #cce5cb !important;
  border-left: 4px solid #2e6940 !important;
  color: #1e512c !important;
}

.woocommerce-info {
  background-color: #faf8f2 !important;
  border: 1px solid #eedec3 !important;
  border-left: 4px solid #c79a57 !important;
  color: #6d5225 !important;
}

/* BlockUI Loading Overlay */
.blockUI.blockOverlay {
  background: rgba(255, 255, 255, 0.6) !important;
  opacity: 0.8 !important;
  border-radius: 12px !important;
}

/* ==========================================================================
   CHECKOUT RESPONSIVENESS (1440px, 1024px, 768px, 414px, 375px, 320px)
   ========================================================================== */
@media (max-width: 991px) {
  .bookrivo-checkout-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .bookrivo-checkout-layout > .woocommerce-NoticeGroup,
  .bookrivo-checkout-layout > .woocommerce-NoticeGroup-checkout,
  .bookrivo-checkout-layout > .woocommerce-NoticeGroup-updateOrderReview,
  .bookrivo-checkout-layout > .woocommerce-notices-wrapper,
  .bookrivo-checkout-layout > .woocommerce-error,
  .bookrivo-checkout-layout > .woocommerce-message,
  .bookrivo-checkout-layout > .woocommerce-info,
  .bookrivo-checkout-layout > .bookrivo-checkout-col-fields,
  .bookrivo-checkout-layout > .bookrivo-checkout-col-summary {
    grid-column: 1;
  }
}

@media (max-width: 767px) {
  .bookrivo-checkout-shell {
    padding: 0 16px;
    margin: 20px auto 48px;
  }
  .checkout-title {
    font-size: 26px;
  }
  .bookrivo-panel {
    padding: 20px 18px;
    border-radius: 12px;
  }
  /* On mobile and tablet under 768px, ensure all form rows are full width */
  .bookrivo-checkout-layout .form-row-first,
  .bookrivo-checkout-layout .form-row-last {
    width: 100% !important;
    float: none !important;
    clear: both !important;
  }
  #shipping_method {
    align-items: flex-end;
  }
  #shipping_method li {
    justify-content: flex-end;
    text-align: right;
    white-space: nowrap;
  }
  .bookrivo-review-order-table tr.woocommerce-shipping-totals td {
    text-align: right;
    white-space: nowrap;
  }
}

@media (max-width: 480px) {
  .bookrivo-checkout-shell {
    padding: 0 12px;
    margin: 16px auto 40px;
  }
  .checkout-title {
    font-size: 22px;
  }
  .checkout-subtitle {
    font-size: 13px;
  }
  .bookrivo-panel {
    padding: 16px 14px;
    border-radius: 10px;
  }
  .panel-header {
    gap: 10px;
    margin-bottom: 18px;
    padding-bottom: 12px;
  }
  .step-num {
    width: 32px;
    height: 32px;
    font-size: 13px;
    border-radius: 8px;
  }
  .panel-title {
    font-size: 18px;
  }
  .panel-desc {
    font-size: 11.5px;
  }
  /* Compact inline actions dock on mobile */
  .bookrivo-checkout-actions-dock {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-top: 0;
    padding-top: 0;
    border-top: none;
  }
  .bookrivo-inline-login-wrap,
  .bookrivo-inline-coupon-wrap {
    width: 100%;
  }
  /* Review Table on Small Screens */
  .bookrivo-review-order-table {
    font-size: 13px;
  }
  .bookrivo-review-order-table .review-thumb-wrapper {
    width: 38px;
    height: 52px;
  }
  .bookrivo-review-order-table .review-product-cell {
    gap: 10px;
  }
  .bookrivo-review-order-table .review-item-title {
    font-size: 13px;
  }
  .bookrivo-review-order-table td.product-total {
    font-size: 13.5px;
  }
  /* Mobile Notice Styling */
  .woocommerce-error,
  .woocommerce-message,
  .woocommerce-info {
    padding: 12px 14px 12px 42px !important;
    font-size: 13px !important;
  }
  .woocommerce-error::before,
  .woocommerce-message::before,
  .woocommerce-info::before {
    top: 12px !important;
    left: 14px !important;
    font-size: 15px !important;
  }
  /* Bump Card on Small Screens (<= 767px) */
  .bookrivo-order-bump-box {
    padding: 14px;
    border-radius: 12px;
  }
  .bump-main-grid {
    gap: 14px;
  }
  .bump-cover-wrapper {
    width: 74px;
    height: 106px;
  }
  .bump-book-title {
    font-size: 15px;
  }
  .bump-book-hook {
    font-size: 11.5px;
    margin-bottom: 7px;
  }
  .bump-price-row {
    gap: 8px;
    margin-bottom: 8px;
  }
  .bump-sale-price {
    font-size: 15.5px;
  }
  .bump-action-trigger {
    width: 100%;
    padding: 7px 11px;
  }
  .bump-action-text {
    font-size: 12.5px;
  }
  /* Payment methods */
  #payment li.wc_payment_method {
    padding: 11px 13px !important;
  }
  #payment li.wc_payment_method > label {
    font-size: 13px !important;
  }
  .bookrivo-checkout-layout #place_order,
  .woocommerce-checkout-payment #place_order,
  #place_order {
    min-height: 48px !important;
    font-size: 15.5px !important;
    font-family: var(--bookrivo-font-bengali, 'Noto Sans Bengali', sans-serif) !important;
    font-weight: 700 !important;
    letter-spacing: normal !important;
  }
}

@media (max-width: 480px) {
  .bookrivo-order-bump-box {
    padding: 12px 13px;
  }
  .bump-main-grid {
    gap: 12px;
  }
  .bump-cover-wrapper {
    width: 68px;
    height: 98px;
  }
  .bump-book-title {
    font-size: 14px;
    line-height: 1.35;
  }
  .bump-book-hook {
    font-size: 11px;
    margin-bottom: 6px;
  }
  .bump-price-row {
    gap: 7px;
    margin-bottom: 7px;
  }
  .bump-sale-price {
    font-size: 15px;
  }
  .bump-badge-saving {
    font-size: 10px;
    padding: 1.5px 6px;
  }
  .bump-action-trigger {
    padding: 6px 9px;
  }
  .bump-action-text {
    font-size: 12px;
  }
}

@media (max-width: 340px) {
  .bookrivo-checkout-shell {
    padding: 0 8px;
  }
  .bookrivo-panel {
    padding: 14px 10px;
  }
  .bookrivo-order-bump-box {
    padding: 10px 11px;
  }
  .bump-main-grid {
    gap: 10px;
  }
  .bump-cover-wrapper {
    width: 58px;
    height: 84px;
  }
  .bump-book-title {
    font-size: 13.5px;
  }
  .bump-price-row {
    gap: 6px;
    margin-bottom: 6px;
  }
  .bump-sale-price {
    font-size: 14px;
  }
  .bump-reg-price {
    font-size: 11.5px;
  }
  .bump-action-trigger {
    padding: 5px 8px;
    gap: 6px;
  }
  .bump-action-text {
    font-size: 11px;
  }
}


/* ==========================================================================
   BookRivo Packages Archive Component Styles (package-archive.html prototype)
   ========================================================================== */

.bookrivo-pkg-hero-section {
  background-color: var(--bookrivo-cream-soft);
  border-bottom: 1px solid var(--bookrivo-border);
  padding: 40px 0 50px;
}

.bookrivo-breadcrumbs {
  font-size: 13px;
  color: var(--bookrivo-muted);
  margin-bottom: 24px;
}

.bookrivo-breadcrumbs a {
  color: var(--bookrivo-forest);
  text-decoration: none;
}

.bookrivo-breadcrumbs .sep {
  margin: 0 6px;
}

.pkg-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
}

.bookrivo-eyebrow {
  display: inline-block;
  color: var(--bookrivo-gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.pkg-hero-title {
  font-family: var(--bookrivo-font-editorial);
  font-size: 2.35rem;
  line-height: 1.2;
  color: var(--bookrivo-forest);
  margin: 0 0 16px;
}

.pkg-hero-desc {
  font-size: 1.05rem;
  line-height: 1.65;
  color: #4a4843;
  margin-bottom: 24px;
  max-width: 580px;
}

.pkg-hero-stats {
  display: flex;
  gap: 24px;
  margin-top: 30px;
}

.pkg-hero-stats .stat-box {
  background: var(--bookrivo-white);
  border: 1px solid var(--bookrivo-border);
  padding: 12px 18px;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
}

.pkg-hero-stats .stat-box strong {
  font-size: 1.15rem;
  color: var(--bookrivo-forest);
}

.pkg-hero-stats .stat-box span {
  font-size: 12px;
  color: var(--bookrivo-muted);
}

.pkg-cover-stack {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  min-height: 280px;
}

.pkg-cover-stack .stack-cover {
  position: absolute;
  width: 170px;
  height: 235px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: -8px 12px 24px rgba(0,0,0,0.22);
  transition: transform 0.25s ease;
}

.pkg-cover-stack .stack-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f5f2ea;
  display: block;
}

.pkg-cover-stack .stack-cover-1 { transform: rotate(-8deg) translateX(-45px); z-index: 1; }
.pkg-cover-stack .stack-cover-2 { transform: rotate(0deg); z-index: 2; }
.pkg-cover-stack .stack-cover-3 { transform: rotate(8deg) translateX(45px); z-index: 1; }

.bookrivo-pkg-collection-section {
  padding: 60px 0 80px;
}

.collection-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 30px;
}

.collection-title {
  font-family: var(--bookrivo-font-editorial);
  font-size: 2rem;
  color: var(--bookrivo-forest);
  margin: 0 0 6px;
}

.collection-subtitle {
  color: var(--bookrivo-muted);
  font-size: 0.95rem;
  margin: 0;
}

.collection-count-seal {
  background: var(--bookrivo-white);
  border: 1px solid var(--bookrivo-border);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--bookrivo-forest);
}

.bookrivo-packages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.bookrivo-packcard {
  background: var(--bookrivo-white);
  border: 1px solid var(--bookrivo-border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bookrivo-packcard:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.packcard-cover-stage {
  background: #E8EFEA;
  padding: 30px 20px 20px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
}

.packcard-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--bookrivo-forest);
  color: var(--bookrivo-white);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  z-index: 4;
}

.packcard-count-pill {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--bookrivo-forest, #173d2d);
  border: 1px solid rgba(23, 61, 45, 0.14);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  z-index: 4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.packcard-cover-stage {
  text-decoration: none;
}

.packcard-price .pkg-final-val {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--bookrivo-forest, #173d2d);
}

.packcard-price .pkg-reg-val {
  font-size: 0.9rem;
  font-weight: 500;
  color: #88968d;
  margin-left: 6px;
}

.packcard-cta-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  text-align: center;
}

/* Dedicated Package Detail Page Visual Stage */
.bookrivo-single-product-page .gallery.package-detail-gallery {
  min-height: 410px;
  padding: 36px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.pkg-detail-stage {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

.pkg-detail-stack {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  min-height: 250px;
  width: 100%;
}

.pkg-stage-cover {
  width: 138px;
  height: 204px;
  border-radius: 5px;
  overflow: hidden;
  background: #f5f2ea;
  box-shadow: -6px 10px 22px rgba(18, 55, 45, 0.22);
  border: 2px solid #ffffff;
  transition: transform 0.25s ease, box-shadow 0.25s ease, z-index 0.25s;
  display: block;
}

.pkg-stage-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.pkg-stage-cover-1 {
  transform: rotate(-8deg) translateX(18px);
  z-index: 1;
}

.pkg-stage-cover-2 {
  transform: translateY(-6px) scale(1.06);
  z-index: 3;
}

.pkg-stage-cover-3 {
  transform: rotate(8deg) translateX(-18px);
  z-index: 2;
}

.pkg-stage-cover-4 {
  transform: rotate(13deg) translateX(-28px);
  z-index: 1;
}

.pkg-stage-cover:hover {
  transform: translateY(-10px) scale(1.08) !important;
  z-index: 10 !important;
  box-shadow: 0 16px 32px rgba(18, 55, 45, 0.28);
}

.pkg-stage-caption {
  text-align: center;
}

.pkg-stage-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 99px;
  background: #ffffff;
  color: #173d2d;
  font-size: 12.5px;
  font-weight: 700;
  border: 1px solid #d4dfd4;
  box-shadow: 0 2px 8px rgba(18, 55, 45, 0.06);
}

.bookrivo-single-product-page .info .kicker-chip.pkg-kicker-chip {
  background: #fdf6e9;
  color: #8c5d19;
  border-color: #ebd6b0;
}

.bookrivo-single-product-page .info .package-purchase-row {
  display: flex;
  width: 100%;
  margin-top: 12px;
}

.bookrivo-single-product-page .info .package-submit-btn {
  width: 100%;
  justify-content: center;
  height: 48px;
  font-size: 15px;
}

.packcard-cover-stack {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.packcard-cover-stack .mini-cover {
  width: 90px;
  height: 125px;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: -4px 6px 12px rgba(0,0,0,0.18);
}

.packcard-cover-stack .mini-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f5f2ea;
  display: block;
}

.packcard-cover-stack .mini-cover-1 { transform: rotate(-5deg) translateX(10px); }
.packcard-cover-stack .mini-cover-2 { transform: scale(1.05); z-index: 2; }
.packcard-cover-stack .mini-cover-3 { transform: rotate(5deg) translateX(-10px); }

.packcard-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.packcard-eyebrow {
  font-size: 11px;
  font-weight: 800;
  color: var(--bookrivo-gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.packcard-title {
  font-size: 1.15rem;
  margin: 0 0 10px;
  line-height: 1.35;
}

.packcard-title a {
  color: var(--bookrivo-ink);
  text-decoration: none;
}

.packcard-title a:hover {
  color: var(--bookrivo-forest);
}

.packcard-desc {
  font-size: 0.875rem;
  color: var(--bookrivo-muted);
  line-height: 1.5;
  margin-bottom: 16px;
  flex-grow: 1;
}

.packcard-price-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--bookrivo-border-light);
}

.packcard-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--bookrivo-forest);
}

.packcard-badge-saving {
  background: var(--bookrivo-gold-soft);
  color: var(--bookrivo-forest);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

@media (max-width: 1024px) {
  .bookrivo-packages-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .bookrivo-pkg-hero-section {
    padding: 22px 0 26px;
  }
  .bookrivo-pkg-hero-section .bookrivo-breadcrumbs {
    margin-bottom: 14px;
  }
  .pkg-hero-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .pkg-hero-copy {
    text-align: center;
  }
  .pkg-hero-title {
    font-family: var(--bookrivo-font-editorial, 'Noto Sans Bengali', sans-serif);
    font-size: clamp(22px, 5.8vw, 26px);
    line-height: 1.35;
    margin-bottom: 10px;
  }
  .pkg-hero-desc {
    font-size: 13.5px;
    line-height: 1.65;
    max-width: 100%;
    margin: 0 auto 18px;
  }
  .pkg-hero-stats {
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
  }
  .pkg-hero-visual,
  .pkg-cover-stack {
    display: none;
  }
  .bookrivo-packages-grid {
    grid-template-columns: 1fr;
  }
  .collection-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* ==========================================================================
   BOOKRIVO SHOP & ARCHIVE FILTERS & MOBILE DRAWER (v1.5.0)
   ========================================================================== */

/* Mobile Backdrop: hidden on desktop */
.bookrivo-filter-backdrop {
  display: none;
}

.catalog-layout-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

.catalog-layout-grid.has-sidebar > .catalog-filters-sidebar {
  grid-column: 1 / 2;
  width: 100%;
  max-width: 280px;
}

.catalog-layout-grid.has-sidebar > .catalog-results-col {
  grid-column: 2 / 3;
  min-width: 0;
  width: 100%;
}

.catalog-layout-grid.full-width {
  grid-template-columns: 1fr !important;
}

.catalog-layout-grid.full-width > .catalog-results-col {
  grid-column: 1 / -1 !important;
}

/* Product Grid inside catalog results */
.woocommerce ul.products.bookrivo-book-grid,
ul.products.bookrivo-book-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 24px !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 36px 0 !important;
  width: 100% !important;
  float: none !important;
  clear: both !important;
  box-sizing: border-box !important;
}

.woocommerce ul.products.bookrivo-book-grid::before,
.woocommerce ul.products.bookrivo-book-grid::after {
  display: none !important;
}

.woocommerce ul.products.bookrivo-book-grid li.product,
.woocommerce ul.products.bookrivo-book-grid .bookrivo-book-card {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  float: none !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

.woocommerce ul.products.bookrivo-book-grid.columns-3,
ul.products.bookrivo-book-grid.columns-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

/* Sidebar Desktop Appearance */
.bookrivo-filter-sidebar {
  background: #FAFBF9;
  border: 1px solid #E5EBE2;
  border-radius: 14px;
  padding: 22px 20px;
  position: sticky;
  top: 24px;
  box-shadow: 0 4px 18px rgba(18, 55, 45, 0.03);
  transition: all 0.2s ease;
}

.filter-sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid #E5EBE2;
}

.filter-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #173D2D;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.filter-header-icon {
  color: #C79A57;
  flex-shrink: 0;
}

.filter-count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 800;
  background: #C79A57;
  color: #ffffff;
  border-radius: 10px;
}

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

.filter-clear-all-link {
  font-size: 12px;
  font-weight: 700;
  color: #C79A57;
  text-decoration: none;
  transition: color 0.15s;
}

.filter-clear-all-link:hover {
  color: #173D2D;
  text-decoration: underline;
}

.filter-drawer-close-btn {
  display: none;
}

.filter-drawer-footer {
  display: none;
}

/* Search in Catalog Input */
.filter-group-search {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #EEF2EC;
}

.catalog-search-filter-form {
  margin: 0;
}

.catalog-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.catalog-search-input {
  width: 100% !important;
  padding: 8px 36px 8px 12px !important;
  font-size: 13px !important;
  border: 1px solid #DCE3D9 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  color: #173D2D !important;
  height: 38px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease;
}

.catalog-search-input:focus {
  border-color: #12372D !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(18, 55, 45, 0.1) !important;
}

.catalog-search-submit-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 6px;
  color: #738A7A;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s;
}

.catalog-search-submit-btn:hover {
  color: #173D2D;
}

/* Filter Groups */
.filter-group {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #EEF2EC;
}

.filter-group:last-of-type {
  border-bottom: none;
  margin-bottom: 10px;
  padding-bottom: 0;
}

.filter-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.filter-group-title {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #2C4535 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  margin: 0 0 10px !important;
}

.filter-group-header .filter-group-title {
  margin: 0 !important;
}

.group-active-indicator {
  font-size: 10px;
  font-weight: 800;
  background: #12372D;
  color: #ffffff;
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.filter-items-scroll {
  max-height: 240px;
  overflow-y: auto;
  padding-right: 4px;
}

.filter-items-scroll::-webkit-scrollbar {
  width: 4px;
}

.filter-items-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.filter-items-scroll::-webkit-scrollbar-thumb {
  background: #D5DFD1;
  border-radius: 4px;
}

.filter-items-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.filter-item {
  margin: 0;
}

.filter-item-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  text-decoration: none !important;
  color: #4B6050;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s ease;
}

.filter-item-link:hover {
  background: #EFF3ED;
  color: #12372D;
}

.filter-item.is-active .filter-item-link {
  background: #E8EFE5;
  color: #12372D;
  font-weight: 700;
}

.custom-checkbox {
  width: 17px;
  height: 17px;
  border: 1.5px solid #C4D0C1;
  border-radius: 4px;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.custom-checkbox.checked {
  background: #12372D;
  border-color: #12372D;
}

.filter-item-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-item-count {
  font-size: 11px;
  font-weight: 600;
  color: #7B8E80;
  background: #ffffff;
  border: 1px solid #DFE6DC;
  border-radius: 12px;
  padding: 1px 7px;
  flex-shrink: 0;
}

.filter-item.is-active .filter-item-count {
  background: #12372D;
  color: #ffffff;
  border-color: #12372D;
}

/* Sidebar Bundles Promo Callout */
.filter-sidebar-promo {
  background: #F7F3E9;
  border: 1px solid #EBE3D3;
  border-radius: 10px;
  padding: 14px 16px;
  margin-top: 14px;
}

.promo-title {
  font-size: 13px;
  color: #173D2D;
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
}

.promo-desc {
  font-size: 12px;
  color: #5C6E60;
  line-height: 1.5;
  margin: 0 0 10px;
}

.promo-link {
  font-size: 12px;
  font-weight: 800;
  color: #173D2D;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.promo-link:hover {
  color: #C79A57;
}

/* Active Filter Chips Bar */
.catalog-active-chips-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 12px 16px;
  background: #F6F8F4;
  border: 1px solid #E4EAE1;
  border-radius: 10px;
}

.active-chips-label {
  font-size: 12px;
  font-weight: 800;
  color: #2C4535;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-right: 4px;
}

.active-chips-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bookrivo-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #ffffff;
  border: 1px solid #D5DFD1;
  border-radius: 20px;
  font-size: 12px;
  color: #173D2D;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  transition: all 0.15s ease;
}

.bookrivo-filter-chip:hover {
  border-color: #B52B27;
  background: #FDF4F4;
  color: #B52B27;
}

.chip-group {
  font-weight: 700;
  color: #7B8E80;
  font-size: 11px;
}

.chip-label {
  font-weight: 600;
}

.chip-remove {
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  margin-left: 2px;
  color: #9AABA0;
}

.bookrivo-filter-chip:hover .chip-remove {
  color: #B52B27;
}

.bookrivo-clear-chips-link {
  font-size: 12px;
  font-weight: 700;
  color: #B52B27;
  text-decoration: underline !important;
  margin-left: 6px;
}

.bookrivo-clear-chips-link:hover {
  color: #8C1C19;
}

/* Toolbar Controls */
.catalog-toolbar-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 14px;
  border-bottom: 1px solid #EDF1EB;
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.catalog-count-info {
  font-size: 13px;
  font-weight: 600;
  color: #5C6F60;
}

.catalog-sort-wrap .woocommerce-ordering {
  margin: 0;
}

.catalog-sort-wrap .woocommerce-ordering select {
  padding: 8px 14px;
  border: 1px solid #DCE3D9;
  border-radius: 8px;
  font-size: 13px;
  color: #173D2D;
  background: #ffffff;
  cursor: pointer;
  outline: none;
}

.catalog-sort-wrap .woocommerce-ordering select:focus {
  border-color: #12372D;
}

/* Mobile Filter Trigger Button */
.bookrivo-mobile-filter-trigger {
  display: none;
}

/* Empty Results State */
.bookrivo-empty-results {
  text-align: center;
  padding: 60px 24px;
  background: #FAFBF9;
  border: 1px dashed #D5DFD1;
  border-radius: 16px;
  margin: 20px 0;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 14px;
  opacity: 0.85;
}

.empty-title {
  font-family: var(--bookrivo-font-display, Georgia, serif);
  font-size: 22px;
  font-weight: 800;
  color: #173D2D;
  margin: 0 0 10px;
}

.empty-desc {
  font-size: 14px;
  color: #5D6F61;
  line-height: 1.7;
  max-width: 480px;
  margin: 0 auto 22px;
}

.empty-actions .button {
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700;
  background: #12372D !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  display: inline-block;
  transition: all 0.2s ease;
}

.empty-actions .button:hover {
  background: #1B4D3E !important;
  box-shadow: 0 4px 14px rgba(18, 55, 45, 0.2);
}

/* ==========================================================================
   RESPONSIVE STYLES & MOBILE FILTER DRAWER (< 1024px)
   ========================================================================== */

@media (max-width: 1023px) {
  .catalog-layout-grid.has-sidebar {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .bookrivo-mobile-filter-trigger {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #D5DFD1;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #173D2D;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
    transition: all 0.15s ease;
  }

  .bookrivo-mobile-filter-trigger * {
    pointer-events: none;
  }

  .filter-drawer-close-btn * {
    pointer-events: none;
  }

  .bookrivo-mobile-filter-trigger:hover {
    background: #F4F7F2;
    border-color: #173D2D;
  }

  .mobile-filter-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 10px;
    font-weight: 800;
    background: #C79A57;
    color: #ffffff;
    border-radius: 9px;
  }

  /* Backdrop */
  .bookrivo-filter-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(18, 55, 45, 0.45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 99990;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .bookrivo-filter-backdrop.is-visible {
    opacity: 1;
    pointer-events: auto;
  }

  /* Slide-in Drawer Container */
  .bookrivo-filter-sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 330px !important;
    max-width: 86vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    background: #ffffff !important;
    z-index: 99995 !important;
    transform: translateX(-100%) !important;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
    box-shadow: 6px 0 28px rgba(0,0,0,0.2) !important;
    display: flex !important;
    flex-direction: column !important;
    padding: 0 !important;
    border: none !important;
    border-radius: 0 !important;
  }

  .bookrivo-filter-sidebar.is-open {
    transform: translateX(0) !important;
  }

  .filter-sidebar-header {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    padding: 18px 20px !important;
    background: #FAFBF9;
    border-bottom: 1px solid #E5EBE2 !important;
    margin-bottom: 0 !important;
    flex-shrink: 0;
  }

  .filter-drawer-close-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #ffffff;
    border: 1px solid #DCE3D9;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    color: #173D2D;
    cursor: pointer;
    transition: all 0.15s ease;
  }

  .filter-drawer-close-btn:hover {
    background: #EFF3ED;
    border-color: #173D2D;
  }

  .filter-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px !important;
  }

  .filter-drawer-footer {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 14px 20px !important;
    background: #FAFBF9;
    border-top: 1px solid #E5EBE2 !important;
    flex-shrink: 0;
  }

  .drawer-btn-apply {
    flex: 1;
    padding: 11px 16px;
    background: #12372D;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: background 0.15s;
  }

  .drawer-btn-apply:hover {
    background: #1B4D3E;
  }

  .drawer-btn-reset {
    padding: 11px 16px;
    background: #ffffff;
    color: #556B5A;
    border: 1px solid #DCE3D9;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    text-align: center;
    transition: all 0.15s;
  }

  .drawer-btn-reset:hover {
    background: #EFF3ED;
    color: #12372D;
  }

  body.bookrivo-filter-drawer-open {
    overflow: hidden !important;
  }
}

@media (max-width: 600px) {
  .catalog-toolbar-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .toolbar-left {
    justify-content: space-between;
    width: 100%;
  }

  .toolbar-right {
    width: 100%;
  }

  .catalog-sort-wrap .woocommerce-ordering,
  .catalog-sort-wrap .woocommerce-ordering select {
    width: 100% !important;
  }
}


/* Responsive Grid Columns Breakpoints */
@media (max-width: 1200px) {
  .woocommerce ul.products.bookrivo-book-grid,
  ul.products.bookrivo-book-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 20px !important;
  }
}

@media (max-width: 1023px) {
  .catalog-layout-grid.has-sidebar > .catalog-filters-sidebar {
    grid-column: auto !important;
  }
  .catalog-layout-grid.has-sidebar > .catalog-results-col {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 900px) {
  .woocommerce ul.products.bookrivo-book-grid,
  ul.products.bookrivo-book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
  }
}

@media (max-width: 480px) {
  .woocommerce ul.products.bookrivo-book-grid,
  ul.products.bookrivo-book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}


/* ==========================================================================
   BookRivo Single Book UX Design System (Matching Approved Reference)
   ========================================================================== */


.bookrivo-single-product-page .notice {
  background: var(--green);
  color: #e8eee8;
  text-align: center;
  font-size: 12.5px;
  padding: 8px 16px;
  font-weight: 600;
  letter-spacing: 0.2px;
}

.bookrivo-single-product-page .wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

.bookrivo-single-product-page .bread {
  color: #818a83;
  font-size: 12.5px;
  padding: 18px 0 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.bookrivo-single-product-page .bread a {
  color: #586960;
  text-decoration: none;
  transition: color 0.15s;
}

.bookrivo-single-product-page .bread a:hover {
  color: var(--green);
}

.bookrivo-single-product-page .bread b {
  color: var(--green);
  font-weight: 700;
}

.bookrivo-single-product-page > .wrap > .product,
.bookrivo-single-product-page > .product {
  display: grid;
  grid-template-columns: minmax(280px, 410px) minmax(0, 1fr);
  gap: 44px;
  padding: 8px 0 42px;
  align-items: start;
}

/* Gallery Showcase */
.bookrivo-single-product-page .gallery {
  background: linear-gradient(155deg, #f6f7f1 0%, #efefe5 100%);
  border: 1px solid #e6e7dc;
  border-radius: 16px;
  padding: 36px 24px 26px;
  position: sticky;
  top: 96px;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  box-sizing: border-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 8px 28px rgba(24, 57, 47, 0.04);
}

.bookrivo-single-product-page .gallery .badge {
  position: absolute;
  top: 18px;
  left: 18px;
  background: #c88b34;
  color: white;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.3px;
  z-index: 5;
}

/* Clean Flat Book Cover Presentation (No artificial 3D spines, rotations, or skew) */
.bookrivo-single-product-page .gallery .book {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: fit-content;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border: none !important;
  border-left: none !important;
  border-radius: 4px;
  background: #192723;
  color: white;
  transform: none !important;
  box-shadow: 0 8px 24px rgba(24, 57, 47, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.bookrivo-single-product-page .gallery .book:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(24, 57, 47, 0.16), 0 3px 8px rgba(0, 0, 0, 0.06);
}

/* Ensure all book formats (Hardcover, Paperback, Ebook, Pocket) render identically flat without artificial spines or overlays */
.bookrivo-single-product-page .gallery .book.binding-hardcover,
.bookrivo-single-product-page .gallery .book.binding-paperback,
.bookrivo-single-product-page .gallery .book.binding-ebook,
.bookrivo-single-product-page .gallery .book.binding-pocket {
  border: none !important;
  border-left: none !important;
  border-radius: 4px;
  transform: none !important;
  box-shadow: 0 8px 24px rgba(24, 57, 47, 0.12), 0 2px 6px rgba(0, 0, 0, 0.04);
}

.bookrivo-single-product-page .gallery .book.binding-hardcover:hover,
.bookrivo-single-product-page .gallery .book.binding-paperback:hover,
.bookrivo-single-product-page .gallery .book.binding-ebook:hover,
.bookrivo-single-product-page .gallery .book.binding-pocket:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 12px 28px rgba(24, 57, 47, 0.16), 0 3px 8px rgba(0, 0, 0, 0.06);
}

/* Eliminate artificial spine highlights, creases, and pseudo-element overlays */
.bookrivo-single-product-page .gallery .book::before,
.bookrivo-single-product-page .gallery .book::after,
.bookrivo-single-product-page .gallery .book.binding-hardcover::before,
.bookrivo-single-product-page .gallery .book.binding-hardcover::after,
.bookrivo-single-product-page .gallery .book.binding-paperback::before,
.bookrivo-single-product-page .gallery .book.binding-paperback::after,
.bookrivo-single-product-page .gallery .book.binding-ebook::before,
.bookrivo-single-product-page .gallery .book.binding-ebook::after,
.bookrivo-single-product-page .gallery .book.binding-pocket::before,
.bookrivo-single-product-page .gallery .book.binding-pocket::after {
  display: none !important;
  content: none !important;
}

.bookrivo-single-product-page .gallery .book .book-cover-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 380px;
  object-fit: contain;
  object-position: center;
  background: transparent;
  border-radius: 4px;
  display: block;
}

.bookrivo-single-product-page .gallery .book small {
  z-index: 1;
  color: #dbbb80;
  letter-spacing: 2px;
  font-size: 11px;
  text-transform: uppercase;
}

.bookrivo-single-product-page .gallery .book strong {
  z-index: 1;
  font-family: var(--bookrivo-font-body);
  font-size: 26px;
  margin: 18px 0;
  padding: 0 12px;
  line-height: 1.25;
}

.bookrivo-single-product-page .gallery .book span {
  z-index: 1;
  color: #f5e4c5;
  font-size: 12px;
}

.bookrivo-single-product-page .gallery .thumbs {
  position: static;
  margin-top: 14px;
  margin-bottom: 0;
  display: flex;
  gap: 8px;
  z-index: 6;
  justify-content: center;
}

/* Gallery Sample Reading Button Placement & Style */
.bookrivo-single-product-page .gallery-sample-btn-wrap {
  margin-top: 14px;
  display: flex;
  justify-content: center;
  width: 100%;
  z-index: 5;
}

.bookrivo-single-product-page .gallery-sample-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: #ffffff;
  color: var(--green, #12372d);
  border: 1.5px solid #b8cbbd;
  border-radius: 8px;
  padding: 8px 18px;
  font-family: var(--bookrivo-font-body, system-ui, -apple-system, sans-serif);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(24, 57, 47, 0.05);
  text-decoration: none;
  box-sizing: border-box;
}

.bookrivo-single-product-page .gallery-sample-btn:hover {
  border-color: var(--green, #12372d);
  background: #f2f7f3;
  color: var(--green, #12372d);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(24, 57, 47, 0.09);
}

.bookrivo-single-product-page .gallery-sample-btn:focus-visible {
  outline: 2px solid var(--green, #12372d);
  outline-offset: 2px;
}

.bookrivo-single-product-page .gallery-sample-btn svg {
  color: #a87932;
  flex-shrink: 0;
  transition: transform 0.18s ease;
}

.bookrivo-single-product-page .gallery-sample-btn:hover svg {
  transform: scale(1.08);
}

.bookrivo-single-product-page .gallery .thumb {
  width: 36px;
  height: 45px;
  border: 2px solid white;
  border-radius: 4px;
  background: #333;
  color: white;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.15s, border-color 0.15s;
}

.bookrivo-single-product-page .gallery .thumb.active {
  border-color: var(--green);
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(21, 57, 46, 0.35);
}

.bookrivo-single-product-page .gallery .thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: #f5f2ea;
  display: block;
}

/* Info Column */
.bookrivo-single-product-page .info {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-width: 0;
}

/* 1. Top Meta Cleanup: Single Compact Category Chip */
.bookrivo-single-product-page .info .pdp-kicker,
.bookrivo-single-product-page .info .kicker {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.bookrivo-single-product-page .info .pdp-kicker::before,
.bookrivo-single-product-page .info .kicker::before {
  display: none !important;
  content: none !important;
}

.bookrivo-single-product-page .info .kicker-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: #f5efe2;
  border: 1px solid #e6d8be;
  color: #8c6327;
  font-family: var(--bookrivo-font-body);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-decoration: none;
  line-height: 1.3;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.bookrivo-single-product-page .info .kicker-chip:hover {
  background: #ecdfca;
  border-color: #d6c098;
  color: var(--green);
}

/* 2. Strong Product Title & Contributor Hierarchy */
.bookrivo-single-product-page .info h1 {
  font-family: var(--bookrivo-font-heading);
  font-size: clamp(24px, 2.75vw, 34px);
  margin: 2px 0 8px;
  line-height: 1.32;
  color: var(--green);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.bookrivo-single-product-page .info .by {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-family: var(--bookrivo-font-body);
  font-size: 14px;
  color: #54665c;
  margin-bottom: 14px;
  line-height: 1.55;
}

.bookrivo-single-product-page .info .by-group {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.bookrivo-single-product-page .info .by-label {
  color: #6b7b71;
  font-weight: 500;
}

.bookrivo-single-product-page .info .by-sep {
  color: #b4c0b8;
  font-weight: 700;
}

.bookrivo-single-product-page .info .by a {
  color: #1c583e;
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px dashed rgba(28, 88, 62, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.bookrivo-single-product-page .info .by a:hover {
  color: var(--green);
  border-bottom-style: solid;
  border-bottom-color: var(--green);
}

/* Price & Availability Summary Bar */
.bookrivo-single-product-page .info .pdp-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 13px 16px;
  margin: 0 0 16px;
  background: #fbfaf6;
  border: 1px solid #e7e5dc;
  border-radius: 12px;
}

.bookrivo-single-product-page .info .price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  flex-wrap: wrap;
  font-family: var(--bookrivo-font-body);
}

.bookrivo-single-product-page .info .price strong {
  font-size: 30px;
  color: var(--green);
  font-weight: 700;
  line-height: 1.1;
}

.bookrivo-single-product-page .info .price .old {
  text-decoration: line-through;
  color: #8c968e;
  font-size: 16px;
  font-weight: 500;
}

.bookrivo-single-product-page .info .price .off {
  background: #faebd9;
  border: 1px solid #edd0af;
  color: #9e4f19;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  line-height: 1.3;
  align-self: center;
}

.bookrivo-single-product-page .info .pdp-status-group {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.bookrivo-single-product-page .info .pdp-availability-pill,
.bookrivo-single-product-page .info .stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eaf5ee;
  border: 1px solid #cce5d4;
  color: #21683b;
  font-size: 12.5px;
  font-weight: 700;
  margin: 0;
  line-height: 1.3;
}

.bookrivo-single-product-page .info .pdp-availability-pill .stock-dot,
.bookrivo-single-product-page .info .stock .stock-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #258549;
  box-shadow: 0 0 0 3px rgba(37, 133, 73, 0.16);
}

.bookrivo-single-product-page .info .pdp-availability-pill.out-of-stock,
.bookrivo-single-product-page .info .stock.out-of-stock {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

.bookrivo-single-product-page .info .pdp-availability-pill.out-of-stock .stock-dot,
.bookrivo-single-product-page .info .stock.out-of-stock .stock-dot {
  background: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.16);
}

.bookrivo-single-product-page .info .stars.pdp-review-jump {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 12.5px;
  text-decoration: none;
  color: #6b7870;
  transition: color 0.15s ease;
}

.bookrivo-single-product-page .info .stars.pdp-review-jump:hover {
  color: var(--green);
}

.bookrivo-single-product-page .info .stars .star-icons {
  color: #c58b2b;
  letter-spacing: 1px;
  font-size: 13px;
  line-height: 1;
}

.bookrivo-single-product-page .info .stars.is-no-rating {
  color: #5c6b61;
}

.bookrivo-single-product-page .info .stars .star-prompt-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8c9b91;
  transition: color 0.15s ease;
}

.bookrivo-single-product-page .info .stars.is-no-rating:hover .star-prompt-icon {
  color: #c58b2b;
}

.bookrivo-single-product-page .info .stars .star-label,
.bookrivo-single-product-page .info .stars .star-count {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* 3. Highlighted Book Hook Card */
.bookrivo-single-product-page .info .book-hook-card {
  position: relative;
  background: linear-gradient(135deg, #f5f8f4 0%, #faf8f1 100%);
  border: 1px solid #dce5dc;
  border-left: 4px solid var(--green);
  border-radius: 10px;
  padding: 13px 16px 14px;
  margin: 0 0 18px;
  max-width: 100%;
  box-shadow: 0 2px 8px rgba(24, 57, 47, 0.03);
}

.bookrivo-single-product-page .info .book-hook-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--bookrivo-font-body);
  font-size: 11.5px;
  font-weight: 700;
  color: #9b6c28;
  margin-bottom: 5px;
  letter-spacing: 0.3px;
}

.bookrivo-single-product-page .info .book-hook-label svg {
  color: #b88435;
  flex-shrink: 0;
}

.bookrivo-single-product-page .info .book-hook-text {
  margin: 0;
  color: #21372c;
  font-family: var(--bookrivo-font-body);
  font-size: 14.5px;
  font-weight: 500;
  line-height: 1.65;
}

/* 4 & 5. Purchase Action Area + Secondary Look Inside Button */
.bookrivo-single-product-page .info form.cart {
  margin: 0 0 12px;
}

.bookrivo-single-product-page .info .purchase {
  display: flex;
  gap: 10px;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 0;
}

.bookrivo-single-product-page .info .purchase .actions {
  display: flex;
  flex: 1;
  min-width: 200px;
}

.bookrivo-single-product-page .info .purchase .actions .primary {
  width: 100%;
}

.bookrivo-single-product-page .info .purchase .qty {
  border: 1.5px solid #cfd9d1;
  display: inline-flex;
  border-radius: 9px;
  align-items: center;
  background: #ffffff;
  height: 46px;
  box-sizing: border-box;
  overflow: hidden;
  flex-shrink: 0;
}

.bookrivo-single-product-page .info .purchase .qty button {
  border: 0;
  background: none;
  padding: 0 13px;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  color: #173d2d;
  height: 100%;
  transition: background-color 0.15s ease;
}

.bookrivo-single-product-page .info .purchase .qty button:hover {
  background: #eff4ef;
}

.bookrivo-single-product-page .info .purchase .qty input.qty-input {
  width: 38px;
  min-width: 32px;
  text-align: center;
  border: none;
  background: transparent;
  font-family: var(--bookrivo-font-body);
  font-weight: 700;
  font-size: 14.5px;
  color: #173d2d;
  outline: none;
  padding: 0;
  -moz-appearance: textfield;
}

.bookrivo-single-product-page .info .purchase .qty input.qty-input::-webkit-outer-spin-button,
.bookrivo-single-product-page .info .purchase .qty input.qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.bookrivo-single-product-page .primary {
  background: var(--green);
  color: #ffffff;
  border: 1.5px solid var(--green);
  border-radius: 9px;
  padding: 0 24px;
  min-width: 172px;
  font-family: var(--bookrivo-font-body);
  font-weight: 700;
  font-size: 14.5px;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: 0 3px 10px rgba(24, 57, 47, 0.16);
}

.bookrivo-single-product-page .primary:hover {
  background: #214d3d;
  border-color: #214d3d;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(24, 57, 47, 0.22);
}

/* Suppress duplicate WooCommerce 'View Cart' links beside the button */
.bookrivo-single-product-page .purchase .added_to_cart,
.bookrivo-single-product-page .bundlebar .added_to_cart,
.bookrivo-campaign-landing-page .added_to_cart {
  display: none !important;
}

/* Single Product Button Icon & Spinner Elements */
.bookrivo-single-product-page .primary .bookrivo-btn-cart-icon,
.bookrivo-single-product-page .primary .bookrivo-btn-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bookrivo-single-product-page .primary .bookrivo-btn-spinner {
  width: 15px;
  height: 15px;
  border: 2.2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: bookrivoCartSpinner 0.6s linear infinite;
  flex-shrink: 0;
}

/* Pending State: "Adding..." with loading indicator */
.bookrivo-single-product-page .primary.is-loading {
  background: #234f3e !important;
  border-color: #234f3e !important;
  color: #ffffff !important;
  opacity: 0.92;
  cursor: wait !important;
  pointer-events: none;
  transform: none !important;
}

/* Successful Persistent State: "✓ Added to Cart" (Soft-Green Styling) */
.bookrivo-single-product-page .primary.is-in-cart,
.bookrivo-single-product-page .primary.added {
  background: #eef7f2 !important;
  color: #1b5e3a !important;
  border: 1.5px solid #a3d9b8 !important;
  box-shadow: 0 1px 3px rgba(27, 94, 58, 0.08) !important;
}

.bookrivo-single-product-page .primary.is-in-cart:hover,
.bookrivo-single-product-page .primary.added:hover {
  background: #e2f2e9 !important;
  color: #14492c !important;
  border-color: #88cfa4 !important;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(27, 94, 58, 0.12) !important;
}

.bookrivo-single-product-page .primary.is-in-cart .bookrivo-btn-check svg,
.bookrivo-single-product-page .primary.added .bookrivo-btn-check svg {
  stroke: #1b5e3a;
}

/* Out-of-Stock Disabled Button State */
.bookrivo-single-product-page .primary.is-out-of-stock {
  background: #64748b !important;
  border-color: #64748b !important;
  color: #ffffff !important;
  cursor: not-allowed !important;
  opacity: 0.85;
  box-shadow: none !important;
  transform: none !important;
}

/* Quantity Stepper Locked State when Simple Product is Already in Cart */
.bookrivo-single-product-page .info .purchase .qty.is-locked {
  background: #f4f7f4;
  border-color: #dce4de;
  opacity: 0.72;
}

.bookrivo-single-product-page .info .purchase .qty.is-locked button {
  cursor: not-allowed;
  color: #8fa095;
  pointer-events: none;
}

.bookrivo-single-product-page .info .purchase .qty.is-locked input.qty-input {
  color: #5c7064;
  pointer-events: none;
}

/* Toast Error Styling */
.bookrivo-single-product-page .toast.is-error {
  background: #b91c1c;
}

.bookrivo-single-product-page .outline,
.bookrivo-single-product-page .purchase .look-inside-button.bookrivo-look-inside-btn {
  position: static !important;
  top: auto !important;
  left: auto !important;
  z-index: auto !important;
  margin: 0 !important;
  border: 1.5px solid #b8cbbd !important;
  border-radius: 9px !important;
  padding: 0 18px !important;
  background: #ffffff !important;
  color: var(--green) !important;
  font-family: var(--bookrivo-font-body) !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  cursor: pointer;
  transition: all 0.18s ease;
  height: 46px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  box-sizing: border-box;
  box-shadow: 0 1px 3px rgba(24, 57, 47, 0.05) !important;
}

.bookrivo-single-product-page .outline:hover,
.bookrivo-single-product-page .purchase .look-inside-button.bookrivo-look-inside-btn:hover {
  border-color: var(--green) !important;
  background: #f2f7f3 !important;
  color: var(--green) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(24, 57, 47, 0.09) !important;
}

.bookrivo-single-product-page .purchase .look-inside-button.bookrivo-look-inside-btn svg {
  color: #a87932;
  flex-shrink: 0;
}

/* Supportive Multi-Book Shopping CTA Bar */
.bookrivo-single-product-page .info .pdp-multibook-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  padding: 9px 13px;
  margin: 0 0 16px;
  background: #f8faf8;
  border: 1px dashed #cbd9ce;
  border-radius: 9px;
}

.bookrivo-single-product-page .info .multibook-copy {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  color: #52655a;
  font-weight: 500;
}

.bookrivo-single-product-page .info .multibook-copy svg {
  color: #266b49;
  flex-shrink: 0;
}

.bookrivo-single-product-page .info .multibook-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 0;
  padding: 2px 0;
  color: var(--green);
  font-family: var(--bookrivo-font-body);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  border-bottom: 1.5px solid rgba(24, 57, 47, 0.35);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.bookrivo-single-product-page .info .multibook-cta-link:hover {
  color: #9e6d25;
  border-bottom-color: #9e6d25;
}

.bookrivo-single-product-page .info .multibook-cta-link .cta-text-full {
  display: inline;
}

.bookrivo-single-product-page .info .multibook-cta-link .cta-text-short {
  display: none;
}

/* 6. Redesigned Trust/Service Highlights (3 Compact Mini-Cards) */
.bookrivo-single-product-page .info .pdp-trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}

.bookrivo-single-product-page .info .pdp-trust-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 11px;
  background: #ffffff;
  border: 1px solid #e4eae4;
  border-radius: 9px;
  box-shadow: 0 1px 2px rgba(24, 57, 47, 0.03);
}

.bookrivo-single-product-page .info .pdp-trust-card .trust-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: #eff5f0;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bookrivo-single-product-page .info .pdp-trust-card .trust-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bookrivo-single-product-page .info .pdp-trust-card .trust-text strong {
  font-family: var(--bookrivo-font-body);
  font-size: 12px;
  font-weight: 700;
  color: #1c3a2e;
  line-height: 1.25;
}

.bookrivo-single-product-page .info .pdp-trust-card .trust-text small {
  font-family: var(--bookrivo-font-body);
  font-size: 10.5px;
  color: #6b7c72;
  line-height: 1.3;
  margin-top: 1px;
}

/* 7. Redesigned Quick Book Specs (Polished Mini-Spec Cards Grid) */
.bookrivo-single-product-page .info .pdp-quick-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(125px, 1fr));
  gap: 10px;
  margin: 0 0 22px;
}

.bookrivo-single-product-page .info .spec-mini-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  background: #faf9f5;
  border: 1px solid #e6e4da;
  border-radius: 9px;
}

.bookrivo-single-product-page .info .spec-mini-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #f1eadb;
  color: #966827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bookrivo-single-product-page .info .spec-mini-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.bookrivo-single-product-page .info .spec-mini-label {
  font-family: var(--bookrivo-font-body);
  font-size: 11px;
  color: #707c74;
  font-weight: 500;
  line-height: 1.2;
}

.bookrivo-single-product-page .info .spec-mini-value {
  font-family: var(--bookrivo-font-body);
  font-size: 13px;
  color: #18392f;
  font-weight: 700;
  line-height: 1.3;
  margin-top: 2px;
}

/* 8. Product Tabs Polish & Selective Editorial Serif Typography */
.bookrivo-single-product-page .info .tabnav {
  border-bottom: 1.5px solid #e3e8e3;
  display: flex;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

.bookrivo-single-product-page .info .tabnav button {
  background: transparent;
  border: 0;
  border-bottom: 2.5px solid transparent;
  padding: 10px 14px;
  color: #5f7065;
  font-family: var(--bookrivo-font-body);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  border-radius: 8px 8px 0 0;
  outline: none;
  margin-bottom: -1.5px;
}

.bookrivo-single-product-page .info .tabnav button:hover {
  color: var(--green);
  background: #f5f8f5;
}

.bookrivo-single-product-page .info .tabnav button.active {
  color: var(--green);
  font-weight: 700;
  background: #f4f7f4;
  border-bottom: 2.5px solid var(--green);
}

.bookrivo-single-product-page .info .tabcontent-wrap {
  margin-top: 16px;
  background: #ffffff;
  border: 1px solid #e7ece7;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 2px 10px rgba(24, 57, 47, 0.02);
}

.bookrivo-single-product-page .info .description {
  font-family: var(--bookrivo-font-body);
  font-size: 14px;
  color: #2f4238;
  max-width: 780px;
  line-height: 1.75;
}

/* Global Noto Sans Bengali for long-form description & flap text */
.bookrivo-single-product-page .info .pdp-editorial-prose {
  font-family: var(--bookrivo-font-editorial);
  font-size: 15px;
  color: #26382f;
  line-height: 1.85;
}

.bookrivo-single-product-page .info .pdp-editorial-prose p,
.bookrivo-single-product-page .info .description p {
  margin: 0 0 14px;
}

.bookrivo-single-product-page .info .pdp-editorial-prose p:last-child,
.bookrivo-single-product-page .info .description p:last-child {
  margin-bottom: 0;
}

/* Original Flap Copy Card */
.bookrivo-single-product-page .info .flap-copy-card {
  background: #fdfbf6;
  border: 1px solid #ede4d1;
  border-radius: 10px;
  padding: 16px 18px;
}

.bookrivo-single-product-page .info .flap-copy-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--bookrivo-font-body);
  font-size: 11.5px;
  font-weight: 700;
  color: #9a6b26;
  background: #f6eedc;
  border: 1px solid #e6d6b8;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 12px;
}

/* Book Details / Specifications Table */
.bookrivo-single-product-page .info .bookrivo-specs-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--bookrivo-font-body);
  font-size: 13.5px;
}

.bookrivo-single-product-page .info .bookrivo-specs-table tr {
  border-bottom: 1px solid #edf2ed;
}

.bookrivo-single-product-page .info .bookrivo-specs-table tr:last-child {
  border-bottom: none;
}

.bookrivo-single-product-page .info .bookrivo-specs-table th {
  text-align: left;
  padding: 10px 12px;
  color: #586b5f;
  font-weight: 600;
  width: 36%;
  background: #fafcfa;
  border-radius: 6px 0 0 6px;
}

.bookrivo-single-product-page .info .bookrivo-specs-table td {
  padding: 10px 14px;
  color: #173d2d;
  font-weight: 700;
}

/* Available at Other Stores Tab */
.bookrivo-single-product-page .info .bookrivo-ext-stores-wrap {
  padding: 4px 0;
}

.bookrivo-single-product-page .info .ext-store-lead {
  font-family: var(--bookrivo-font-body);
  font-size: 13.5px;
  color: #54665b;
  margin: 0 0 14px;
}

.bookrivo-single-product-page .info .ext-store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
}

.bookrivo-single-product-page .info .ext-store-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  background: #fbfcfa;
  border: 1px solid #d8e3da;
  border-radius: 9px;
  text-decoration: none;
  color: #173d2d;
  font-family: var(--bookrivo-font-body);
  font-size: 13.5px;
  font-weight: 700;
  transition: all 0.16s ease;
}

.bookrivo-single-product-page .info .ext-store-card:hover {
  background: #f2f7f3;
  border-color: var(--green);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(24, 57, 47, 0.06);
}

.bookrivo-single-product-page .info .ext-store-cta {
  font-size: 12px;
  color: #a6742b;
  font-weight: 700;
}

/* Sections */
.bookrivo-single-product-page .section {
  padding: 38px 0;
  border-top: 1px solid #eaede7;
}

.bookrivo-single-product-page .sectop {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.bookrivo-single-product-page .eyebrow {
  font-size: 11px;
  color: #bc883b;
  letter-spacing: 2px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.bookrivo-single-product-page .section h2 {
  font-family: var(--bookrivo-font-heading);
  font-size: 25px;
  line-height: 1.3;
  margin: 4px 0;
  color: var(--green);
  font-weight: 700;
}

.bookrivo-single-product-page .section .sub {
  font-size: 13px;
  color: #718076;
}

/* Upsell Multi-Book Section */
.bookrivo-single-product-page .upsell {
  background: var(--paper);
}

.bookrivo-single-product-page .pickgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.bookrivo-single-product-page .pick {
  border: 1px solid #e2e8e2;
  border-radius: 12px;
  padding: 14px 16px;
  background: #ffffff;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  box-sizing: border-box;
}

.bookrivo-single-product-page .pick:hover {
  border-color: #a7c0af;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(18, 55, 45, 0.06);
}

.bookrivo-single-product-page .pick.checked {
  border-color: #5f9272;
  background: #f6fbf7;
  box-shadow: 0 0 0 1px #5f9272, 0 3px 10px rgba(95, 146, 114, 0.1);
}

.bookrivo-single-product-page .pick .check {
  accent-color: #12372D;
  width: 18px;
  height: 18px;
  position: absolute;
  right: 12px;
  top: 12px;
  cursor: pointer;
  margin: 0;
  z-index: 2;
}

/* Front Cover Container & Image Presentation */
.bookrivo-single-product-page .fbt-cover-container,
.bookrivo-single-product-page .mini-book {
  flex: 0 0 76px;
  width: 76px;
  height: 110px;
  background: #f7f5f0;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 6px;
  padding: 3px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: none;
  box-sizing: border-box;
}

.bookrivo-single-product-page .fbt-cover-container img,
.bookrivo-single-product-page .mini-book img,
.bookrivo-single-product-page .fbt-cover-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
  display: block;
  border-radius: 4px;
}

.bookrivo-single-product-page .fbt-cover-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #12372D;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px;
  border-radius: 4px;
}

.bookrivo-single-product-page .pbody {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bookrivo-single-product-page .ptitle {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  color: #12372D;
  margin: 0 0 3px;
  padding-right: 22px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.bookrivo-single-product-page .pmeta {
  color: #6f7a74;
  font-size: 11px;
  font-weight: 500;
  margin: 0 0 6px;
}

.bookrivo-single-product-page .pprice {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.2;
}

.bookrivo-single-product-page .fbt-sale-price,
.bookrivo-single-product-page .fbt-regular-price-only {
  font-size: 15px;
  font-weight: 800;
  color: #12372D;
  text-decoration: none;
}

.bookrivo-single-product-page .fbt-regular-price {
  font-size: 12px;
  color: #8c9690;
  text-decoration: line-through;
  font-weight: 500;
}

.bookrivo-single-product-page .fbt-discount-pill {
  font-size: 10px;
  font-weight: 700;
  background: rgba(199, 154, 87, 0.15);
  color: #996a2c;
  padding: 1px 5px;
  border-radius: 3px;
  line-height: 1.3;
}

/* FBT Dynamic Summary Bar */
.bookrivo-single-product-page .bundlebar {
  margin-top: 20px;
  background: #f4f8f5;
  border: 1px solid #d5e2d7;
  border-radius: 12px;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  box-sizing: border-box;
}

.bookrivo-single-product-page .bundlebar-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bookrivo-single-product-page .bundlebar-count {
  font-size: 12px;
  font-weight: 600;
  color: #567261;
}

.bookrivo-single-product-page .bundlebar-financials {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}

.bookrivo-single-product-page .bundlebar-total-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.bookrivo-single-product-page .bundlebar-cur-total {
  font-size: 26px;
  font-weight: 900;
  color: #12372D;
  line-height: 1.1;
}

.bookrivo-single-product-page .bundlebar-reg-total {
  font-size: 15px;
  font-weight: 500;
  color: #8c9690;
  text-decoration: line-through;
}

.bookrivo-single-product-page .bundlebar-savings-row {
  display: inline-flex;
  align-items: center;
}

.bookrivo-single-product-page .bundlebar-savings-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(18, 55, 45, 0.08);
  color: #12372D;
  border: 1px solid rgba(18, 55, 45, 0.15);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.bookrivo-single-product-page .bundlebar-savings-badge svg {
  flex-shrink: 0;
  color: #12372D;
}

.bookrivo-single-product-page .bundlebar-savings-badge strong {
  font-weight: 800;
  color: #12372D;
}

.bookrivo-single-product-page .bundlebar-note {
  font-size: 11px;
  color: #65796d;
}

.bookrivo-single-product-page .bundlebar-cta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.bookrivo-single-product-page .bundlebar-cta button.primary {
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  white-space: nowrap;
  font-family: 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.bookrivo-single-product-page .bundlebar-cta button.primary.is-success,
.bookrivo-single-product-page .bundlebar-cta button.primary.is-in-cart {
  background: #15803d !important;
  border-color: #15803d !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(21, 128, 61, 0.28) !important;
  cursor: default;
}

.bookrivo-single-product-page .bundlebar-cta button.primary.is-success:hover,
.bookrivo-single-product-page .bundlebar-cta button.primary.is-in-cart:hover {
  background: #166534 !important;
  border-color: #166534 !important;
  color: #ffffff !important;
}

.bookrivo-single-product-page .bundlebar-cta button.primary.is-loading {
  background: #234f3e !important;
  border-color: #234f3e !important;
  color: #ffffff !important;
  opacity: 0.92;
  cursor: wait !important;
  pointer-events: none;
}

.bookrivo-single-product-page .bundlebar-cta .fbt-feedback-msg {
  display: block;
  font-size: 13px;
  line-height: 1.4;
  margin-top: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  font-family: 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
}

.bookrivo-single-product-page .bundlebar-cta .fbt-feedback-msg.is-error {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.bookrivo-single-product-page .bundlebar-cta .fbt-feedback-msg.is-warning {
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fde68a;
}

/* Recommendations Grid */
.bookrivo-single-product-page .recs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.bookrivo-single-product-page .rec {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  padding: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.bookrivo-single-product-page .rec:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(24, 53, 45, 0.06);
}

/* Mobile Sticky Bar (Hidden by default on desktop) */
.bookrivo-single-product-page .sticky {
  display: none !important;
}

/* Interactive Toast */
.bookrivo-single-product-page .toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--green);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  display: none;
  z-index: 1000;
  font-size: 13.5px;
  font-weight: 700;
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .bookrivo-single-product-page > .wrap > .product,
  .bookrivo-single-product-page > .product {
    grid-template-columns: minmax(250px, 340px) minmax(0, 1fr);
    gap: 32px;
  }
  .bookrivo-single-product-page .info .pdp-trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 850px) {
  .bookrivo-single-product-page > .wrap > .product,
  .bookrivo-single-product-page > .product {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-bottom: 24px;
  }
  .bookrivo-single-product-page .gallery {
    position: relative;
    top: auto;
    min-height: 360px;
    padding: 28px 20px 24px;
  }
  .bookrivo-single-product-page .pickgrid {
    grid-template-columns: 1fr 1fr;
  }
  .bookrivo-single-product-page .recs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  /* 1. Mobile Delivery Upsell Reminder */
  .bookrivo-single-product-page .info .pdp-multibook-bar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 7px 11px 8px;
    margin: 0 0 14px;
    border-radius: 8px;
    border: 1px dashed #cbd9ce;
    background: #f8faf8;
  }
  .bookrivo-single-product-page .info .multibook-copy {
    font-size: 11.5px;
    line-height: 1.35;
    gap: 6px;
    color: #45584d;
  }
  .bookrivo-single-product-page .info .multibook-copy svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
  }
  .bookrivo-single-product-page .info .multibook-cta-link {
    font-size: 11.5px;
    padding: 0;
    margin-left: 20px;
    line-height: 1.3;
  }
  .bookrivo-single-product-page .info .multibook-cta-link .cta-text-full {
    display: none;
  }
  .bookrivo-single-product-page .info .multibook-cta-link .cta-text-short {
    display: inline;
  }

  /* 2. Mobile Delivery Benefits: ONE Compact Vertically Stacked Group */
  .bookrivo-single-product-page .info .pdp-trust-grid {
    display: flex;
    flex-direction: column;
    gap: 0;
    background: #ffffff;
    border: 1px solid #dce4dd;
    border-radius: 9px;
    overflow: hidden;
    margin: 0 0 14px;
    box-shadow: 0 1px 2px rgba(24, 57, 47, 0.03);
  }
  .bookrivo-single-product-page .info .pdp-trust-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 12px;
    min-height: 38px;
    height: 38px;
    box-sizing: border-box;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
  .bookrivo-single-product-page .info .pdp-trust-card + .pdp-trust-card {
    border-top: 1px solid #edf2ee;
  }
  .bookrivo-single-product-page .info .pdp-trust-card .trust-icon {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: #eef5f0;
    color: var(--green);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .bookrivo-single-product-page .info .pdp-trust-card .trust-icon svg {
    width: 13px;
    height: 13px;
  }
  .bookrivo-single-product-page .info .pdp-trust-card .trust-text {
    flex-direction: row;
    align-items: center;
  }
  .bookrivo-single-product-page .info .pdp-trust-card .trust-text strong {
    font-size: 12.5px;
    font-weight: 600;
    color: #1a382b;
    line-height: 1.2;
  }
  /* On mobile ONLY, visually hide redundant secondary descriptions */
  .bookrivo-single-product-page .info .pdp-trust-card .trust-text small {
    display: none;
  }

  /* 3. Mobile Book Information: Compact 2-Column Grid */
  .bookrivo-single-product-page .info .pdp-quick-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 16px;
  }
  .bookrivo-single-product-page .info .spec-mini-card {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    min-height: 40px;
    background: #faf9f5;
    border: 1px solid #e7e5dc;
    border-radius: 7px;
    box-sizing: border-box;
  }
  .bookrivo-single-product-page .info .spec-mini-icon {
    width: 22px;
    height: 22px;
    border-radius: 4px;
    background: #f1eadb;
    color: #966827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }
  .bookrivo-single-product-page .info .spec-mini-icon svg {
    width: 12px;
    height: 12px;
  }
  .bookrivo-single-product-page .info .spec-mini-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }
  .bookrivo-single-product-page .info .spec-mini-label {
    font-size: 10px;
    color: #6c7870;
    line-height: 1.15;
    font-weight: 500;
  }
  .bookrivo-single-product-page .info .spec-mini-value {
    font-size: 12px;
    font-weight: 700;
    color: #173d2d;
    line-height: 1.25;
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 4. Product Tabs on Mobile */
  .bookrivo-single-product-page .info .tabnav {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 5px;
    padding: 2px 2px 6px;
    margin: 4px 0 0;
    border-bottom: 1.5px solid #e3e8e3;
    -webkit-mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, black calc(100% - 24px), transparent 100%);
  }
  .bookrivo-single-product-page .info .tabnav::-webkit-scrollbar {
    display: none;
  }
  .bookrivo-single-product-page .info .tabnav button {
    white-space: nowrap;
    padding: 7px 12px;
    font-size: 12.5px;
    font-weight: 600;
    flex-shrink: 0;
    border-radius: 6px;
    border: 0;
    background: transparent;
    border-bottom: 2px solid transparent;
    transition: all 0.15s ease;
  }
  .bookrivo-single-product-page .info .tabnav button.active {
    color: var(--green);
    background: #eaf1ec;
    font-weight: 700;
    border-bottom-color: var(--green);
  }

  /* 5. Mobile Sales Hook Card */
  .bookrivo-single-product-page .info .book-hook-card {
    padding: 10px 13px 11px;
    margin: 0 0 14px;
    border-radius: 8px;
  }
  .bookrivo-single-product-page .info .book-hook-label {
    font-size: 11px;
    margin-bottom: 4px;
  }
  .bookrivo-single-product-page .info .book-hook-text {
    font-size: 13.5px;
    line-height: 1.55;
    word-break: break-word;
  }
}

@media (max-width: 560px) {
  .bookrivo-single-product-page .wrap {
    padding: 0 15px;
  }
  .bookrivo-single-product-page .bread {
    font-size: 11px;
    padding: 12px 0 10px;
  }
  .bookrivo-single-product-page .gallery {
    min-height: auto;
    padding: 22px 14px 20px;
  }
  .bookrivo-single-product-page .gallery .book {
    transform: none !important;
    max-height: 280px;
    max-width: 240px;
  }
  .bookrivo-single-product-page .gallery .book .book-cover-img {
    max-height: 280px;
    max-width: 240px;
  }
  .bookrivo-single-product-page .info .pdp-summary-bar {
    padding: 11px 13px;
    gap: 10px;
  }
  .bookrivo-single-product-page .info .price strong {
    font-size: 26px;
  }
  .bookrivo-single-product-page .info .purchase {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
  }
  .bookrivo-single-product-page .info .purchase.purchase-out-of-stock {
    grid-template-columns: 1fr;
  }
  .bookrivo-single-product-page .info .purchase .primary {
    width: 100%;
    min-width: 0;
    padding: 0 14px;
    font-size: 13.5px;
  }
  .bookrivo-single-product-page .sticky .primary {
    min-width: 0;
    height: 38px;
  }
  .bookrivo-single-product-page .info .purchase .look-inside-button.bookrivo-look-inside-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
  .bookrivo-single-product-page .info .tabcontent-wrap {
    padding: 14px 15px;
  }
  .bookrivo-single-product-page .pickgrid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .bookrivo-single-product-page .section {
    padding: 28px 0;
  }
  .bookrivo-single-product-page .section h2 {
    font-size: 22px;
  }
  .bookrivo-single-product-page .bundlebar {
    align-items: stretch;
    flex-direction: column;
    padding: 16px;
    gap: 14px;
  }
  .bookrivo-single-product-page .fbt-cover-container,
  .bookrivo-single-product-page .pick .mini-book {
    width: 68px;
    height: 98px;
    flex: 0 0 68px;
  }
  .bookrivo-single-product-page .bundlebar-cta,
  .bookrivo-single-product-page .bundlebar-cta button.primary,
  .bookrivo-single-product-page .bundlebar button {
    width: 100%;
  }
  .bookrivo-single-product-page .recs {
    gap: 10px;
  }
  .bookrivo-single-product-page .rec {
    padding: 10px;
  }
  .bookrivo-single-product-page .rec .mini-book {
    width: 86px;
    height: 127px;
  }
  .bookrivo-single-product-page > .wrap > .product,
  .bookrivo-single-product-page > .product {
    padding-bottom: 20px;
  }
}

/* ==========================================================================
   MOBILE STICKY ADD TO CART BAR (Up to 767px)
   ========================================================================== */
@media (max-width: 767px) {
  .bookrivo-single-product-page .sticky {
    display: flex !important;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    box-sizing: border-box;
    transform: translateY(105%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, visibility 0.28s ease;
  }

  body.pdp-sticky-active .bookrivo-single-product-page .sticky,
  .bookrivo-single-product-page.pdp-sticky-active .sticky {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .bookrivo-single-product-page .sticky-price-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    line-height: 1.15;
    flex-shrink: 0;
    min-width: 0;
  }

  .bookrivo-single-product-page .sticky-price-wrap .sticky-price {
    font-size: 19px;
    font-weight: 800;
    color: var(--green, #12372d);
    font-family: var(--bookrivo-font-body, system-ui, sans-serif);
    letter-spacing: -0.01em;
  }

  .bookrivo-single-product-page .sticky-price-wrap .sticky-price-old {
    font-size: 12px;
    color: #718096;
    text-decoration: line-through;
    margin-top: 1px;
    font-weight: 500;
  }

  .bookrivo-single-product-page .sticky-btn-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 1 1 auto;
    min-width: 0;
  }

  .bookrivo-single-product-page .sticky .primary.sticky-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    max-width: 220px;
    min-height: 44px;
    padding: 10px 18px;
    background: var(--green, #12372d);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: var(--bookrivo-font-body, system-ui, sans-serif);
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(18, 55, 45, 0.15);
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
  }

  .bookrivo-single-product-page .sticky .primary.sticky-buy-btn:hover {
    background: #0d2b23;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(18, 55, 45, 0.22);
  }

  .bookrivo-single-product-page .sticky .primary.sticky-buy-btn:active {
    transform: translateY(0);
  }

  .bookrivo-single-product-page .sticky .primary.sticky-buy-btn.is-out-of-stock {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    transform: none !important;
  }

  .bookrivo-single-product-page .sticky .primary.sticky-buy-btn.is-in-cart {
    background: #0d2b23;
  }

  /* WhatsApp Collision Prevention on Single Product */
  .whatsapp-sticky-icon {
    transition: bottom 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s ease !important;
  }

  body.pdp-sticky-active .whatsapp-sticky-icon {
    bottom: calc(78px + env(safe-area-inset-bottom, 0px)) !important;
  }

  body.single-product {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 360px) {
  .bookrivo-single-product-page .sticky {
    padding: 8px 12px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }
  .bookrivo-single-product-page .sticky-price-wrap .sticky-price {
    font-size: 16.5px;
  }
  .bookrivo-single-product-page .sticky-price-wrap .sticky-price-old {
    font-size: 11px;
  }
  .bookrivo-single-product-page .sticky .primary.sticky-buy-btn {
    font-size: 13px;
    padding: 9px 12px;
    min-height: 42px;
  }
}

/* ==========================================================================
   MINI-CART SLIDE-OUT DRAWER
   ========================================================================== */
.bookrivo-cart-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 99998;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.bookrivo-cart-drawer-overlay.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.bookrivo-cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  height: 100%;
  height: 100dvh;
  background-color: #ffffff;
  z-index: 99999;
  transform: translateX(105%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s;
  box-shadow: -4px 0 35px rgba(18, 44, 29, 0.22);
  display: flex;
  flex-direction: column;
}

.bookrivo-cart-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

.bookrivo-cart-drawer-header {
  padding: 16px 20px;
  border-bottom: 1px solid #e7ebe8;
  background: #fafaf9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.cart-drawer-header-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-drawer-header-title .drawer-header-cart-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--bookrivo-forest, #173d2d);
  display: block;
}

.bookrivo-cart-drawer-header h3 {
  margin: 0;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  color: #173d2d;
  line-height: 1.2;
}

.cart-drawer-header-title .drawer-header-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 12px;
  background: #173d2d;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}

.bookrivo-cart-drawer-header .drawer-close-btn {
  background: #eef2ea;
  border: 0;
  color: #173d2d;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, transform 0.1s ease;
}

.bookrivo-cart-drawer-header .drawer-close-btn:hover {
  background: #e0e8db;
}

.bookrivo-cart-drawer-header .drawer-close-btn:focus-visible {
  outline: 2px solid #173d2d;
  outline-offset: 2px;
}

.bookrivo-cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
}

.bookrivo-cart-drawer-body .widget_shopping_cart_content {
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Cart Items List */
.bookrivo-cart-drawer .woocommerce-mini-cart {
  list-style: none;
  margin: 0;
  padding: 12px 18px;
  flex: 1;
  overflow-y: auto;
}

.bookrivo-cart-drawer .woocommerce-mini-cart-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f3f1;
  position: relative;
}

.bookrivo-cart-drawer .woocommerce-mini-cart-item:last-child {
  border-bottom: none;
}

.bookrivo-cart-drawer .mini-cart-thumb {
  width: 52px;
  height: 74px;
  flex-shrink: 0;
  border-radius: 4px;
  overflow: hidden;
  background: #f6f7f5;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.bookrivo-cart-drawer .mini-cart-thumb img,
.bookrivo-cart-drawer .mini-cart-thumb .mini-cart-item-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.bookrivo-cart-drawer .mini-cart-info {
  flex: 1;
  min-width: 0;
  padding-right: 4px;
}

.bookrivo-cart-drawer .mini-cart-title {
  margin: 0 0 4px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.35;
  color: #1e293b;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bookrivo-cart-drawer .mini-cart-title a {
  color: inherit;
  text-decoration: none;
}

.bookrivo-cart-drawer .mini-cart-title a:hover {
  color: #173d2d;
}

.bookrivo-cart-drawer .mini-cart-meta {
  font-size: 13px;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.bookrivo-cart-drawer .mini-cart-meta .mini-cart-qty {
  font-weight: 600;
  color: #475569;
}

.bookrivo-cart-drawer .mini-cart-meta .amount,
.bookrivo-cart-drawer .mini-cart-meta .mini-cart-price {
  font-weight: 700;
  color: #173d2d;
}

.bookrivo-cart-drawer .mini-cart-actions-col {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bookrivo-cart-drawer .mini-cart-item a.mini-cart-remove,
.bookrivo-cart-drawer .mini-cart-item .remove.mini-cart-remove,
.bookrivo-cart-drawer .mini-cart-remove {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background-color: #f8fafc !important;
  color: #64748b !important;
  text-decoration: none !important;
  line-height: 1 !important;
  font-size: 13px !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  box-sizing: border-box !important;
}

.bookrivo-cart-drawer .mini-cart-item a.mini-cart-remove:hover,
.bookrivo-cart-drawer .mini-cart-item .remove.mini-cart-remove:hover,
.bookrivo-cart-drawer .mini-cart-remove:hover {
  background-color: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #ef4444 !important;
  transform: scale(1.05);
}

.bookrivo-cart-drawer .mini-cart-item a.mini-cart-remove:focus-visible,
.bookrivo-cart-drawer .mini-cart-remove:focus-visible {
  outline: 2px solid #ef4444 !important;
  outline-offset: 2px !important;
}

.bookrivo-cart-drawer .mini-cart-item a.mini-cart-remove svg,
.bookrivo-cart-drawer .mini-cart-item .remove.mini-cart-remove svg,
.bookrivo-cart-drawer .mini-cart-remove svg {
  width: 15px !important;
  height: 15px !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Footer / Subtotal & Actions */
.bookrivo-cart-drawer .mini-cart-footer {
  padding: 10px 16px max(10px, env(safe-area-inset-bottom)) !important;
  border-top: 1px solid #e7ebe8 !important;
  background: #ffffff !important;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.04) !important;
  margin-top: auto !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

.bookrivo-cart-drawer .mini-cart-subtotal {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  margin: 0 0 2px !important;
  padding: 0 !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  box-sizing: border-box !important;
}

.bookrivo-cart-drawer .mini-cart-subtotal span:first-child {
  text-align: left !important;
}

.bookrivo-cart-drawer .mini-cart-subtotal .amount {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #173d2d !important;
  text-align: right !important;
}

.bookrivo-cart-drawer .mini-cart-note {
  display: block !important;
  width: 100% !important;
  font-size: 11px !important;
  color: #64748b !important;
  margin: 0 0 8px !important;
  padding: 0 !important;
  text-align: left !important;
  line-height: 1.35 !important;
  box-sizing: border-box !important;
}

.bookrivo-cart-drawer .mini-cart-actions {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.bookrivo-cart-drawer .mini-cart-btn-checkout {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  padding: 9px 16px !important;
  min-height: 40px !important;
  box-sizing: border-box !important;
  background: var(--bookrivo-forest, #173d2d) !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  transition: background 0.15s ease !important;
}

.bookrivo-cart-drawer .mini-cart-btn-checkout:hover {
  background: #245741 !important;
}

.bookrivo-cart-drawer .mini-cart-btn-checkout svg {
  stroke: #ffffff !important;
  width: 15px !important;
  height: 15px !important;
}

.bookrivo-cart-drawer .mini-cart-btn-view {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 6px 14px !important;
  min-height: 34px !important;
  box-sizing: border-box !important;
  background: #f8fafc !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.bookrivo-cart-drawer .mini-cart-btn-view:hover {
  background: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

/* Hide legacy payment title or divider completely */
.bookrivo-cart-drawer .mini-cart-payment-title,
.bookrivo-cart-drawer .mini-cart-payments-compact-title {
  display: none !important;
}

/* Compact Single-Row Payment Methods Indicator (Defensive: handles both new and legacy classes) */
.bookrivo-cart-drawer .mini-cart-payments-compact,
.bookrivo-cart-drawer .mini-cart-payment-methods {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 5px !important;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  font-size: 11px !important;
  color: #5c6f60 !important;
  line-height: 1.25 !important;
  text-align: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.bookrivo-cart-drawer .mini-cart-payments-label {
  font-weight: 600 !important;
  color: #718274 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.bookrivo-cart-drawer .mini-cart-payments-list,
.bookrivo-cart-drawer .mini-cart-payment-badges {
  display: inline-flex !important;
  align-items: center !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  gap: 5px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
  white-space: nowrap !important;
}

.bookrivo-cart-drawer .mini-cart-pay-item,
.bookrivo-cart-drawer .mini-cart-pay-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  font-weight: 600 !important;
  color: #243d2c !important;
  white-space: nowrap !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  font-size: inherit !important;
  line-height: inherit !important;
  flex-shrink: 0 !important;
}

.bookrivo-cart-drawer .mini-cart-pay-icon,
.bookrivo-cart-drawer .mini-cart-pay-badge svg {
  flex-shrink: 0 !important;
  width: 12px !important;
  height: 12px !important;
  color: #2d6a4f !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.bookrivo-cart-drawer .mini-cart-pay-text,
.bookrivo-cart-drawer .mini-cart-pay-badge span {
  font-size: inherit !important;
  font-weight: 600 !important;
  color: inherit !important;
  white-space: nowrap !important;
}

.bookrivo-cart-drawer .mini-cart-pay-sep {
  color: #a4b3a6 !important;
  font-weight: 700 !important;
  font-size: 11px !important;
  line-height: 1 !important;
  margin: 0 1px !important;
  user-select: none !important;
  flex-shrink: 0 !important;
}

.bookrivo-cart-drawer .mini-cart-pay-badge.bqr-badge:not(:last-child)::after {
  content: "·" !important;
  margin-left: 5px !important;
  color: #a4b3a6 !important;
  font-weight: bold !important;
}

@media (max-width: 340px) {
  .bookrivo-cart-drawer .mini-cart-footer {
    padding: 8px 10px max(8px, env(safe-area-inset-bottom)) !important;
  }
  .bookrivo-cart-drawer .mini-cart-payments-compact,
  .bookrivo-cart-drawer .mini-cart-payment-methods {
    font-size: 10px !important;
    gap: 3px !important;
  }
  .bookrivo-cart-drawer .mini-cart-pay-icon,
  .bookrivo-cart-drawer .mini-cart-pay-badge svg {
    width: 11px !important;
    height: 11px !important;
  }
}

/* Empty Cart State */
.bookrivo-cart-drawer .bookrivo-mini-cart-empty {
  padding: 40px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
}

.bookrivo-cart-drawer .empty-cart-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #eef2ea;
  color: #173d2d;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.bookrivo-cart-drawer .empty-cart-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 6px;
}

.bookrivo-cart-drawer .empty-cart-text {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 18px;
  max-width: 240px;
  line-height: 1.4;
}

.bookrivo-cart-drawer .empty-cart-browse-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 10px 20px !important;
  background: #173d2d !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: background 0.15s ease !important;
}

.bookrivo-cart-drawer .empty-cart-browse-btn:hover {
  background: #245741 !important;
}

@media (max-width: 480px) {
  .bookrivo-cart-drawer {
    width: 100vw;
    max-width: 100vw;
  }
  .bookrivo-cart-drawer .mini-cart-footer {
    padding: 10px 14px max(10px, env(safe-area-inset-bottom)) !important;
  }
}

/* 8. Single Product Customer Reviews Tab Styling */
.bookrivo-product-reviews-wrap {
  padding: 6px 0;
}

.bookrivo-product-reviews-wrap .woocommerce-Reviews-title {
  font-size: 18.5px;
  font-weight: 800;
  color: #173d2d;
  margin: 0 0 20px;
  font-family: var(--bookrivo-font-heading, 'Noto Sans Bengali', sans-serif);
}

.bookrivo-product-reviews-wrap .commentlist,
.woocommerce #reviews #comments ol.commentlist {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 0 30px 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  width: 100% !important;
}

.bookrivo-product-reviews-wrap .commentlist li.review,
.woocommerce #reviews #comments ol.commentlist li.review {
  background: #ffffff !important;
  border: 1px solid #ede8de !important;
  border-radius: 10px !important;
  padding: 18px 20px !important;
  margin: 0 !important;
  box-shadow: 0 1px 4px rgba(23, 61, 45, 0.02) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.bookrivo-product-reviews-wrap .comment_container,
.woocommerce #reviews #comments ol.commentlist li .comment_container {
  display: flex !important;
  flex-direction: row !important;
  gap: 16px !important;
  align-items: start !important;
  width: 100% !important;
}

.bookrivo-product-reviews-wrap .comment_container .avatar,
.woocommerce #reviews #comments ol.commentlist li img.avatar {
  position: static !important;
  top: auto !important;
  left: auto !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #ede8de !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  flex-shrink: 0 !important;
}

.bookrivo-product-reviews-wrap .comment-text,
.woocommerce #reviews #comments ol.commentlist li .comment-text {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: auto !important;
  margin: 0 !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}

.bookrivo-product-reviews-wrap .comment-text .meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: #70796f;
  margin: 0 0 6px;
}

.bookrivo-product-reviews-wrap .comment-text .woocommerce-review__author {
  font-size: 14px;
  font-weight: 700;
  color: #173d2d;
}

.bookrivo-product-reviews-wrap .comment-text .woocommerce-review__verified {
  font-size: 11px;
  color: #15803d;
  background: #dcfce7;
  padding: 1px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.bookrivo-product-reviews-wrap .comment-text .description {
  font-size: 13.5px;
  line-height: 1.7;
  color: #2c3a32;
  margin-top: 6px;
}

.bookrivo-product-reviews-wrap .star-rating {
  font-size: 13px;
  color: #eab308;
  letter-spacing: 2px;
  float: right;
}

.bookrivo-product-reviews-wrap .woocommerce-noreviews {
  background: #fbf9f4;
  border: 1px dashed #d4ccbd;
  border-radius: 8px;
  padding: 18px 20px;
  font-size: 13.5px;
  color: #64748b;
  margin-bottom: 24px;
}

/* Review Submission Form */
.bookrivo-product-reviews-wrap #review_form_wrapper {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid #ede8de;
}

.bookrivo-product-reviews-wrap .comment-reply-title {
  font-size: 16.5px;
  font-weight: 800;
  color: #173d2d;
  margin: 0 0 10px;
  display: block;
}

.bookrivo-product-reviews-wrap .comment-notes {
  font-size: 12px;
  color: #70796f;
  margin-bottom: 14px;
}

.bookrivo-product-reviews-wrap .comment-form-rating {
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.bookrivo-product-reviews-wrap .comment-form-rating label {
  font-size: 13px;
  font-weight: 700;
  color: #173d2d;
  margin: 0;
}

.bookrivo-product-reviews-wrap .comment-form-rating .stars a {
  color: #d4ccbd;
  text-decoration: none;
  font-size: 17px;
  transition: color 0.12s ease;
}

.bookrivo-product-reviews-wrap .comment-form-rating .stars a:hover,
.bookrivo-product-reviews-wrap .comment-form-rating .stars a.active {
  color: #eab308;
}

.bookrivo-product-reviews-wrap .comment-form-comment label,
.bookrivo-product-reviews-wrap .comment-form-author label,
.bookrivo-product-reviews-wrap .comment-form-email label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #173d2d;
  margin-bottom: 5px;
}

.bookrivo-product-reviews-wrap input[type="text"],
.bookrivo-product-reviews-wrap input[type="email"],
.bookrivo-product-reviews-wrap textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d4ccbd;
  border-radius: 7px;
  font-size: 13.5px;
  background: #fbf9f4;
  color: #173d2d;
  outline: none;
  box-sizing: border-box;
  font-family: inherit;
  transition: all 0.18s ease;
}

.bookrivo-product-reviews-wrap input[type="text"]:focus,
.bookrivo-product-reviews-wrap input[type="email"]:focus,
.bookrivo-product-reviews-wrap textarea:focus {
  background: #ffffff;
  border-color: #173d2d;
  box-shadow: 0 0 0 3px rgba(23, 61, 45, 0.12);
}

.bookrivo-product-reviews-wrap .comment-form-cookies-consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: #5c6b61;
  margin: 10px 0 16px;
}

.bookrivo-product-reviews-wrap .form-submit .submit,
.woocommerce #reviews #review_form #submit {
  background: #173d2d !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 7px !important;
  padding: 10px 24px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  box-shadow: 0 2px 6px rgba(23, 61, 45, 0.15) !important;
}

.bookrivo-product-reviews-wrap .form-submit .submit:hover,
.woocommerce #reviews #review_form #submit:hover {
  background: #245741 !important;
  transform: translateY(-1px) !important;
}


/* WooCommerce My Account Styling */
.woocommerce-account .woocommerce {
  background: #ffffff;
  border: 1px solid #e2e8df;
  border-radius: 14px;
  padding: 28px 32px;
  box-shadow: 0 4px 18px rgba(18, 55, 45, 0.03);
}

.woocommerce-account .woocommerce h2 {
  font-family: var(--bookrivo-font-display, Georgia, serif);
  font-size: 20px;
  font-weight: 800;
  color: #173d2d;
  margin: 0 0 16px;
}

.woocommerce-account form.woocommerce-form-login,
.woocommerce-account form.woocommerce-form-register {
  border: 1px solid #e2e8df !important;
  border-radius: 12px !important;
  padding: 22px 24px !important;
  margin: 0 !important;
  background: #fafbf9 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
  list-style: none;
  padding: 0;
  margin: 0;
  border: 1px solid #e2e8df;
  border-radius: 10px;
  overflow: hidden;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
  border-bottom: 1px solid #eef2eb;
  margin: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
  border-bottom: 0;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
  display: block;
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #24352d;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
  background: #173d2d;
  color: #ffffff;
}


@media (max-width: 768px) {
  .woocommerce-account .woocommerce {
    padding: 20px 16px;
    border-radius: 10px;
  }
  .woocommerce-account form.woocommerce-form-login,
  .woocommerce-account form.woocommerce-form-register {
    padding: 16px 14px !important;
  }
}
@media (max-width: 480px) {
  .bookrivo-product-reviews-wrap .comment_container {
    grid-template-columns: 36px 1fr;
    gap: 10px;
  }
  .bookrivo-product-reviews-wrap .comment_container .avatar {
    width: 36px !important;
    height: 36px !important;
  }
}

/* ==========================================================================
   GLOBAL COVER INTEGRITY & SINGLE CHECKMARK ENFORCEMENT
   ========================================================================== */
.wc-block-components-product-image img,
.wc-block-cart-items__row .wc-block-cart-item__image img,
.woocommerce-cart-form__cart-item .product-thumbnail img {
  object-fit: contain !important;
  object-position: center !important;
  width: auto !important;
  max-width: 72px !important;
  max-height: 102px !important;
  height: auto !important;
  border-radius: 4px;
  background: #f6f4ee;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Suppress WooCommerce core .added::after / .added::before checkmark icon so only ONE check icon renders */
.woocommerce a.button.added::after,
.woocommerce button.button.added::after,
.woocommerce input.button.added::after,
.woocommerce #respond input#submit.added::after,
.woocommerce a.button.added::before,
.woocommerce button.button.added::before,
.add_to_cart_button.added::after,
.add_to_cart_button.is-in-cart::after,
.single_add_to_cart_button.added::after,
.single_add_to_cart_button.is-in-cart::after,
.button.added::after,
.button.is-in-cart::after {
  content: none !important;
  display: none !important;
}

/* Dedicated Package Detail Page Form Layout (Full-Width Stacked Builder + CTA) */
.bookrivo-single-product-page .info form.cart.package-cart-form {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  gap: 14px !important;
  margin: 0 0 16px !important;
}

.bookrivo-single-product-page .info form.cart.package-cart-form .bookshop-package-builder {
  width: 100% !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.bookrivo-single-product-page .info form.cart.package-cart-form .purchase.package-purchase-row {
  display: flex !important;
  width: 100% !important;
  margin: 0 !important;
}

.bookrivo-single-product-page .info form.cart.package-cart-form .purchase.package-purchase-row .package-submit-btn {
  width: 100% !important;
  min-height: 48px !important;
  justify-content: center !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

@media (max-width: 560px) {
  .bookrivo-single-product-page .gallery.package-detail-gallery {
    min-height: 280px;
    padding: 24px 12px 18px;
  }
  .pkg-detail-stack {
    min-height: 180px;
  }
  .pkg-stage-cover {
    width: 104px;
    height: 154px;
  }
  .bookrivo-single-product-page .info h1 {
    font-size: 21px;
    word-break: break-word;
  }
  .bookrivo-single-product-page .info form.cart.package-cart-form .bookshop-package-builder {
    padding: 14px 12px !important;
  }
}

/* ==========================================================================
   CURATED READING COLLECTION CARDS & RATIONALE BLOCK
   ========================================================================== */
.packcard-factual-meta {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: #54665b;
  background: #f3f6f2;
  border: 1px solid #dfe7dd;
  border-radius: 6px;
  padding: 2px 8px;
  line-height: 1.4;
}

.bookrivo-single-product-page .info .pkg-factual-price-note {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 500;
  color: #4f6357;
  background: #f2f5f1;
  border: 1px solid #dce4da;
  border-radius: 6px;
  padding: 3px 9px;
}

.bookrivo-single-product-page .info .pkg-separate-buy-note {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 500;
  color: #556b5d;
  background: #f6f8f5;
  border: 1px dashed #cedbd0;
  border-radius: 6px;
  padding: 3px 9px;
}

.packcard-factual-meta.separate-buy {
  background: #f6f8f5;
  border: 1px dashed #cedbd0;
  color: #556b5d;
}

@media (max-width: 480px) {
  .packcard-price-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .bookrivo-single-product-page .info .price {
    flex-wrap: wrap;
    gap: 6px;
    align-items: baseline;
  }
}

.bookrivo-single-product-page .info .collection-rationale-card {
  background: #f9f8f3;
  border: 1px solid #e2ddd0;
  border-left: 4px solid #173d2d;
  border-radius: 12px;
  padding: 18px 20px;
  margin: 0 0 18px;
  box-shadow: 0 2px 10px rgba(23, 61, 45, 0.03);
}

.bookrivo-single-product-page .info .collection-rationale-header {
  margin-bottom: 10px;
}

.bookrivo-single-product-page .info .collection-rationale-eyebrow {
  display: block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #8b6220;
  margin-bottom: 4px;
}

.bookrivo-single-product-page .info .collection-rationale-title {
  font-family: var(--bookrivo-font-display, Georgia, serif);
  font-size: 18px;
  font-weight: 800;
  color: #173d2d;
  margin: 0;
  line-height: 1.35;
}

.bookrivo-single-product-page .info .collection-rationale-body {
  font-family: var(--bookrivo-font-editorial, var(--bookrivo-font-body));
  font-size: 14.5px;
  color: #26382f;
  line-height: 1.75;
}

.bookrivo-single-product-page .info .collection-rationale-body p {
  margin: 0 0 10px;
}

.bookrivo-single-product-page .info .collection-rationale-body p:last-child {
  margin-bottom: 0;
}

.bookrivo-single-product-page .info .reading-sequence-card {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #d8d2c3;
}

.bookrivo-single-product-page .info .reading-sequence-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #173d2d;
  margin-bottom: 5px;
}

.bookrivo-single-product-page .info .reading-sequence-text {
  font-size: 13.5px;
  color: #36493e;
  line-height: 1.6;
  margin: 0;
}

/* ==========================================================================
   CAMPAIGN LANDING PAGE (CONVERSION-FOCUSED MULTI-BOOK SYSTEM)
   ========================================================================== */
.bookrivo-campaign-landing-page {
  padding-top: 20px;
  padding-bottom: 40px;
  overflow-x: clip;
}

.bookrivo-campaign-landing-page .campaign-lp-banner {
  margin-bottom: 22px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e4e8e1;
}

.bookrivo-campaign-landing-page .campaign-lp-banner img {
  width: 100%;
  height: auto;
  display: block;
}

.bookrivo-campaign-landing-page .campaign-lp-intro-bar {
  background: #f8f7f2;
  border: 1px solid #e5e1d5;
  border-left: 4px solid #173d2d;
  border-radius: 12px;
  padding: 16px 22px;
  margin-bottom: 24px;
}

.bookrivo-campaign-landing-page .campaign-lp-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #966827;
  margin-bottom: 4px;
}

.bookrivo-campaign-landing-page .campaign-lp-page-title {
  font-family: var(--bookrivo-font-display, Georgia, serif);
  font-size: 20px;
  font-weight: 800;
  color: #173d2d;
  margin: 0 0 4px;
  line-height: 1.35;
}

.bookrivo-campaign-landing-page .campaign-lp-page-lead {
  font-size: 14px;
  color: #4a5d52;
  margin: 0;
  line-height: 1.6;
}

.bookrivo-campaign-landing-page .campaign-main-subtitle {
  margin: -4px 0 10px;
  font-size: 14px;
  font-weight: 600;
}

.bookrivo-campaign-landing-page .campaign-main-subtitle a {
  color: #4f6659;
  text-decoration: underline;
}

.bookrivo-campaign-landing-page .campaign-direct-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 10px 14px;
  margin: 0 0 18px;
  background: #f5f9f6;
  border: 1px dashed #bfd2c4;
  border-radius: 9px;
}

.bookrivo-campaign-landing-page .campaign-checkout-shortcut {
  font-size: 13px;
  font-weight: 700;
  color: #173d2d;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bookrivo-campaign-landing-page .campaign-checkout-shortcut:hover {
  color: #966827;
  text-decoration: underline;
}

.bookrivo-campaign-landing-page .campaign-optional-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #173d2d;
  background: #e9f2ec;
  border: 1px solid #c9ddd0;
  padding: 4px 12px;
  border-radius: 999px;
}

.bookrivo-campaign-landing-page .pprice-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.bookrivo-campaign-landing-page .pprice-old {
  font-size: 12px;
  color: #8b968f;
}

.bookrivo-campaign-landing-page .campaign-pick-status {
  font-size: 11.5px;
  font-weight: 700;
  color: #266b49;
}

.bookrivo-campaign-landing-page .campaign-pick-card.is-already-in-cart .campaign-pick-status {
  color: #1b5e3a;
}

.bookrivo-campaign-landing-page .campaign-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
}

.bookrivo-campaign-landing-page .campaign-action-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.bookrivo-campaign-landing-page .campaign-continue-checkout-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  padding: 0 20px;
  border-radius: 9px;
  border: 1.5px solid #173d2d;
  background: #ffffff;
  color: #173d2d;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.18s ease;
  box-sizing: border-box;
}

.bookrivo-campaign-landing-page .campaign-continue-checkout-btn:hover {
  background: #173d2d;
  color: #ffffff;
}

.bookrivo-campaign-landing-page .campaign-continue-browsing-link {
  font-size: 13px;
  font-weight: 700;
  color: #4f6357;
  text-decoration: underline;
  padding: 6px 8px;
}

.bookrivo-campaign-landing-page .campaign-continue-browsing-link:hover {
  color: #173d2d;
}

.bookrivo-campaign-landing-page .campaign-details-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 32px;
  align-items: start;
}

.bookrivo-campaign-landing-page .campaign-details-specs {
  background: #fafbf9;
  border: 1px solid #e3e8e1;
  border-radius: 12px;
  padding: 20px;
}

.bookrivo-campaign-landing-page .campaign-details-specs h3 {
  font-size: 17px;
  font-weight: 800;
  color: #173d2d;
  margin: 0 0 14px;
}

@media (max-width: 850px) {
  .bookrivo-campaign-landing-page .campaign-details-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 560px) {
  .bookrivo-campaign-landing-page .campaign-lp-intro-bar {
    padding: 13px 15px;
    margin-bottom: 18px;
  }
  .bookrivo-campaign-landing-page .campaign-lp-page-title {
    font-size: 18px;
  }
  .bookrivo-campaign-landing-page .campaign-action-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .bookrivo-campaign-landing-page .campaign-action-buttons .primary,
  .bookrivo-campaign-landing-page .campaign-action-buttons .campaign-continue-checkout-btn {
    width: 100%;
  }
  .bookrivo-campaign-landing-page .campaign-continue-browsing-link {
    text-align: center;
  }
}

/* ==========================================================================
   MULTI-BOOK LONG-FORM SALES LANDING PAGE SYSTEM (.bookrivo-multibook-lp)
   ========================================================================== */
.bookrivo-multibook-lp {
  padding-top: 0;
  padding-bottom: 56px;
  background: #faf9f5;
}

.bookrivo-multibook-lp.theme-forest_classic {
  background: #f5f8f6;
}

.bookrivo-multibook-lp .clp-uncropped-cover {
  width: 100%;
  height: 100%;
  object-fit: contain !important;
  object-position: center !important;
  display: block;
}

/* ==========================================================================
   SECTION 1: EDITORIAL MULTI-BOOK CAMPAIGN HERO (PREMIUM BOOKSTORE LOOK)
   ========================================================================== */
.clp-editorial-hero {
  position: relative;
  padding: 38px 0 46px;
  background: linear-gradient(180deg, #fbf8f1 0%, #f7f3e8 100%);
  border-bottom: 1px solid #eae3d2;
  overflow: hidden;
}

.bookrivo-multibook-lp.theme-forest_classic .clp-editorial-hero {
  background: linear-gradient(180deg, #f2f7f4 0%, #e6efe9 100%);
  border-bottom-color: #d7e3dc;
}

.clp-editorial-hero .wrap {
  position: relative;
}

.clp-editorial-hero-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 36px 44px;
  align-items: center;
}

.clp-editorial-hero-grid.is-text-only {
  grid-template-columns: 1fr;
  max-width: 780px;
  margin: 0 auto;
  text-align: left;
}

/* --- Left Column: Editorial Content --- */
.clp-hero-content-col {
  display: flex;
  flex-direction: column;
  max-width: 620px;
}

.clp-hero-eyebrow-line {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.clp-hero-eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #1a4231;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.clp-eyebrow-icon {
  font-size: 14px;
}

.clp-eyebrow-accent-rule {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #c5a059 0%, rgba(197, 160, 89, 0.05) 95%);
}

.clp-hero-main-title {
  font-family: var(--bookrivo-font-display, Georgia, serif);
  font-size: clamp(26px, 3.2vw, 38px);
  font-weight: 800;
  color: #123324;
  line-height: 1.25;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.clp-hero-sub-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #b37e28;
  line-height: 1.4;
  margin: 0 0 12px;
}

.clp-hero-story-lead {
  margin: 0 0 20px;
}

.clp-hero-story-lead p {
  font-size: 15px;
  color: #3b4e44;
  line-height: 1.72;
  margin: 0;
}

/* --- Price & Savings Card --- */
.clp-hero-price-card {
  background: #ffffff;
  border: 1px solid #dfd8c7;
  border-radius: 12px;
  padding: 15px 18px;
  margin-bottom: 18px;
  box-shadow: 0 4px 18px rgba(18, 51, 36, 0.05);
}

.clp-price-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-bottom: 10px;
}

.clp-price-card-caption {
  font-size: 14px;
  font-weight: 700;
  color: #36483f;
}

.clp-price-card-figures {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.clp-price-payable {
  font-size: 27px;
  font-weight: 850;
  color: #123324;
  line-height: 1;
}

.clp-price-regular {
  font-size: 15.5px;
  color: #8c9790;
  font-weight: 600;
  text-decoration: line-through;
}

.clp-hero-savings-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e8f5ec;
  border: 1px solid #b7e3c5;
  color: #126333;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
}

.clp-savings-check {
  font-size: 12px;
  font-weight: 800;
}

.clp-hero-extra-discount-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 6px;
}

/* --- Hero CTA Action Buttons --- */
.clp-hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin-bottom: 20px;
}

.clp-btn-order-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 10px 22px;
  background: #173d2d;
  color: #ffffff !important;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  border: 1px solid #133426;
  box-shadow: 0 4px 14px rgba(23, 61, 45, 0.22);
  transition: background 0.18s ease, transform 0.15s ease, box-shadow 0.18s ease;
  cursor: pointer;
}

.clp-btn-order-primary:hover {
  background: #1f503b;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(23, 61, 45, 0.3);
  color: #ffffff !important;
}

.clp-btn-order-primary.is-out-of-stock {
  background: #a3aba6;
  border-color: #939b96;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.clp-cart-svg {
  display: flex;
  align-items: center;
  justify-content: center;
}

.clp-btn-caret {
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.clp-btn-details-secondary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14.5px;
  font-weight: 700;
  color: #173d2d;
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 6px;
  line-height: 1.3;
  transition: color 0.15s ease, background 0.15s ease;
}

.clp-btn-details-secondary:hover {
  color: #0b2218;
  background: rgba(23, 61, 45, 0.06);
}

.clp-btn-details-secondary .clp-caret {
  font-size: 16px;
  font-weight: 800;
}

/* --- Micro-Trust Strip --- */
.clp-hero-trust-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding-top: 16px;
  border-top: 1px solid #e7decb;
}

.clp-trust-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12.5px;
  font-weight: 650;
  color: #3b4e44;
}

.clp-trust-ico {
  font-size: 14px;
}

/* --- Right Column: Visual Staging (Medallion, Arch & 3D Podium) --- */
.clp-hero-visual-col {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-top: 24px;
  min-height: 380px;
}

/* Circular Gold Medallion Badge */
.clp-gold-medallion {
  position: absolute;
  top: 6px;
  right: 18px;
  z-index: 10;
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fae8a8 0%, #d8b248 50%, #a67c1e 100%);
  padding: 3px;
  box-shadow: 0 8px 20px rgba(118, 86, 21, 0.32), inset 0 1px 2px rgba(255, 255, 255, 0.9);
  border: 1px solid #fff2bf;
  box-sizing: border-box;
}

.clp-medallion-inner {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #382405;
  box-sizing: border-box;
}

.clp-medallion-count {
  font-size: 14px;
  font-weight: 850;
  line-height: 1.1;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.4);
}

.clp-medallion-note {
  font-size: 9px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.9;
  margin-top: 1px;
}

/* Architectural Arch Frame */
.clp-stage-arch-frame {
  position: relative;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.clp-arch-backdrop {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  height: 330px;
  background: linear-gradient(180deg, #173d2d 0%, #0d251a 100%);
  border-radius: 200px 200px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.4), 0 14px 36px rgba(13, 37, 26, 0.18);
  z-index: 1;
  overflow: hidden;
}

.clp-arch-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(197, 160, 89, 0.18) 0%, transparent 70%);
  border-radius: 50%;
}

/* 3-Book Staging Composition */
.clp-podium-staging {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  margin-bottom: -4px;
  perspective: 1200px;
}

.clp-stage-book {
  position: relative;
  display: block;
  text-decoration: none;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  transform-origin: bottom center;
}

.clp-stage-book:hover {
  transform: translateY(-6px) scale(1.02);
  z-index: 6 !important;
}

.clp-book-3d-wrap {
  position: relative;
  display: block;
}

.clp-book-cover-surface {
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background: #ffffff;
  line-height: 0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}

.clp-podium-cover-img {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1.5;
  object-fit: contain !important;
  object-position: center !important;
  display: block;
}

.clp-podium-cover-fallback {
  width: 100%;
  aspect-ratio: 1 / 1.5;
  background: #173d2d;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  box-sizing: border-box;
}

/* Spine shadow & surface sheen */
.clp-book-spine-depth {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 2;
  border-radius: 3px 0 0 3px;
}

.clp-book-sheen-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, transparent 55%);
  pointer-events: none;
  z-index: 1;
}

/* Three Book Layout Positions */
.clp-stage-book.pos-center {
  z-index: 4;
  width: clamp(140px, 15vw, 175px);
  margin: 0 -16px;
  transform: translateY(-16px) scale(1.04);
}

.clp-stage-book.pos-center .clp-book-cover-surface {
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.38), -6px 0 16px rgba(0, 0, 0, 0.25), 6px 0 16px rgba(0, 0, 0, 0.25);
}

.clp-stage-book.pos-left {
  z-index: 2;
  width: clamp(120px, 13vw, 152px);
  transform: rotate(-4.5deg) translateY(0);
}

.clp-stage-book.pos-left .clp-book-cover-surface {
  box-shadow: -8px 12px 24px rgba(0, 0, 0, 0.32);
}

.clp-stage-book.pos-right {
  z-index: 2;
  width: clamp(120px, 13vw, 152px);
  transform: rotate(4.5deg) translateY(0);
}

.clp-stage-book.pos-right .clp-book-cover-surface {
  box-shadow: 8px 12px 24px rgba(0, 0, 0, 0.32);
}

/* Two-book and single-book fallbacks */
.clp-podium-staging.count-2 .clp-stage-book {
  margin: 0 10px;
  transform: none;
  width: clamp(130px, 14vw, 165px);
}

.clp-podium-staging.count-1 .clp-stage-book {
  transform: none;
  width: clamp(145px, 16vw, 185px);
}

/* Stone Podium Shelf */
.clp-stage-stone-podium {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
}

.clp-stone-top {
  height: 11px;
  background: linear-gradient(180deg, #f3ede2 0%, #e1d7c5 100%);
  border-radius: 4px 4px 0 0;
  border: 1px solid #d3c7b3;
  border-bottom: none;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.85);
}

.clp-stone-front {
  height: 18px;
  background: linear-gradient(180deg, #cdc1ad 0%, #b4a58f 100%);
  border: 1px solid #a3947d;
  border-top: 1px solid #ded5c2;
  box-shadow: 0 8px 20px rgba(18, 42, 29, 0.16);
}

.clp-stone-shadow {
  height: 10px;
  background: radial-gradient(ellipse at center, rgba(18, 42, 29, 0.22) 0%, transparent 72%);
}

/* --- Responsive Breakpoints for Hero --- */
@media (max-width: 900px) {
  .clp-editorial-hero {
    padding: 30px 0 38px;
  }

  .clp-editorial-hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .clp-hero-content-col {
    max-width: 100%;
  }

  .clp-hero-visual-col {
    min-height: auto;
    padding-top: 36px;
    margin-top: 20px;
  }

  .clp-stage-arch-frame {
    max-width: 380px;
    margin-top: 8px;
  }

  .clp-arch-backdrop {
    height: 270px;
  }

  .clp-gold-medallion {
    top: -6px;
    right: 8px;
    width: 68px;
    height: 68px;
  }

  .clp-medallion-count {
    font-size: 12.5px;
  }
}

@media (max-width: 480px) {
  .clp-editorial-hero {
    padding: 22px 0 28px;
  }

  .clp-hero-main-title {
    font-size: 24px;
  }

  .clp-hero-price-card {
    padding: 14px 16px;
  }

  .clp-price-card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .clp-hero-cta-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .clp-btn-order-primary {
    width: 100%;
    justify-content: center;
  }

  .clp-btn-details-secondary {
    justify-content: center;
  }

  .clp-hero-trust-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    margin-bottom: 6px;
  }

  .clp-hero-visual-col {
    padding-top: 32px;
    margin-top: 18px;
  }

  .clp-stage-arch-frame {
    max-width: 320px;
    margin-top: 10px;
  }

  .clp-arch-backdrop {
    height: 225px;
  }

  .clp-stage-book.pos-center {
    width: 110px;
    margin: 0 -10px;
  }

  .clp-stage-book.pos-left,
  .clp-stage-book.pos-right {
    width: 95px;
  }

  .clp-gold-medallion {
    width: 62px;
    height: 62px;
    top: -8px;
    right: 2px;
  }

  .clp-medallion-count {
    font-size: 11.5px;
  }

  .clp-medallion-note {
    font-size: 8px;
  }
}

/* SECTION 2: WHY READ THESE BOOKS TOGETHER? & WHO SHOULD READ */
.clp-why-section {
  padding-top: 36px;
  padding-bottom: 18px;
}

.clp-editorial-two-col {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 24px;
  align-items: stretch;
}

.clp-editorial-two-col.is-single-col {
  grid-template-columns: 1fr;
}

.clp-why-rationale-card {
  background: #ffffff;
  border: 1px solid #e3ddd0;
  border-left: 5px solid #173d2d;
  border-radius: 14px;
  padding: 26px 28px;
  box-shadow: 0 4px 16px rgba(19, 49, 36, 0.04);
}

.clp-why-rationale-card h2,
.clp-sequence-box h2,
.clp-authors-card h2 {
  font-family: var(--bookrivo-font-display, Georgia, serif);
  font-size: 22px;
  font-weight: 800;
  color: #173d2d;
  margin: 4px 0 14px;
  line-height: 1.35;
}

.clp-editorial-prose {
  font-size: 15px;
  line-height: 1.8;
  color: #2b3d33;
}

.clp-editorial-prose p {
  margin: 0 0 12px;
}

.clp-editorial-prose p:last-child {
  margin-bottom: 0;
}

.clp-who-audience-card {
  background: #f3f7f4;
  border: 1px solid #cfe0d5;
  border-radius: 14px;
  padding: 24px 22px;
}

.clp-who-audience-card h3 {
  font-family: var(--bookrivo-font-display, Georgia, serif);
  font-size: 19px;
  font-weight: 800;
  color: #173d2d;
  margin: 4px 0 14px;
}

.clp-audience-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clp-audience-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.55;
  color: #24382d;
  font-weight: 500;
}

.clp-check-bullet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #173d2d;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 2px;
}

/* SECTION 3: INDIVIDUAL MAIN CAMPAIGN BOOK INTRODUCTIONS */
.clp-books-showcase-section {
  padding-top: 28px;
  padding-bottom: 24px;
}

.clp-book-intros-stack {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.clp-book-intro-card {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #e2ddd0;
  border-radius: 16px;
  padding: 24px 26px;
  box-shadow: 0 4px 16px rgba(19, 49, 36, 0.04);
}

.clp-book-intro-card.is-reversed {
  grid-template-columns: 1fr 240px;
}

.clp-book-intro-card.is-reversed .clp-book-intro-cover-col {
  order: 2;
}

.clp-book-intro-card.is-reversed .clp-book-intro-body-col {
  order: 1;
}

.clp-book-intro-frame {
  width: 100%;
  max-width: 210px;
  aspect-ratio: 2 / 3;
  margin: 0 auto;
  background: #faf8f3;
  border: 1px solid #e6e0d2;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  box-shadow: 0 6px 18px rgba(19, 49, 36, 0.08);
}

.clp-book-intro-topmeta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.clp-book-index-badge {
  background: #f0ece1;
  color: #6e4e19;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 999px;
}

.clp-book-stock-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 999px;
}

.clp-book-stock-pill.in-stock {
  background: #e7f4ec;
  color: #156c39;
}

.clp-book-stock-pill.out-of-stock {
  background: #fee2e2;
  color: #b91c1c;
}

.clp-book-intro-title {
  font-family: var(--bookrivo-font-display, Georgia, serif);
  font-size: 21px;
  font-weight: 800;
  margin: 0 0 6px;
  line-height: 1.35;
}

.clp-book-intro-title a {
  color: #173d2d;
  text-decoration: none;
}

.clp-book-intro-title a:hover {
  color: #8b5e1b;
}

.clp-book-contributors {
  font-size: 13.5px;
  color: #54665b;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.clp-book-contributors a {
  color: #173d2d;
  font-weight: 600;
  text-decoration: underline;
}

.clp-book-hook-quote {
  margin: 0 0 12px;
  padding: 10px 14px;
  background: #faf7ef;
  border-left: 3.5px solid #b5842f;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #3a301e;
  line-height: 1.55;
}

.clp-book-intro-prose {
  font-size: 14.5px;
  line-height: 1.75;
  color: #2f4238;
  margin-bottom: 16px;
}

.clp-book-intro-prose p {
  margin: 0 0 8px;
}

.clp-book-intro-prose p:last-child {
  margin-bottom: 0;
}

.clp-book-intro-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 16px;
  padding-top: 12px;
  border-top: 1px dashed #e5dfd1;
}

.clp-book-price-tag {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.clp-book-price-tag strong {
  font-size: 20px;
  font-weight: 800;
  color: #173d2d;
}

.clp-book-price-tag del {
  font-size: 14px;
  color: #8c9690;
}

.clp-book-spec-chip {
  font-size: 12px;
  font-weight: 600;
  color: #53665b;
  background: #f1f5f2;
  padding: 2px 8px;
  border-radius: 6px;
}

.clp-book-intro-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.clp-book-detail-link {
  font-size: 13.5px;
  font-weight: 700;
  color: #173d2d;
  text-decoration: underline;
}

/* SECTION 4: LEARNING OUTCOMES GRID */
.clp-outcomes-section {
  padding-top: 24px;
  padding-bottom: 24px;
}

.clp-outcomes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.clp-outcome-card {
  background: #ffffff;
  border: 1px solid #e2ddd0;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 2px 10px rgba(19, 49, 36, 0.03);
}

.clp-outcome-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: #173d2d;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
}

.clp-outcome-content h3 {
  font-size: 16px;
  font-weight: 800;
  color: #173d2d;
  margin: 0 0 6px;
  line-height: 1.35;
}

.clp-outcome-content p {
  font-size: 13.5px;
  color: #3f5247;
  line-height: 1.6;
  margin: 0;
}

/* OPTIONAL SECTIONS: SEQUENCE, AUTHORS, VIDEO */
.clp-sequence-box,
.clp-authors-card {
  background: #ffffff;
  border: 1px solid #e2ddd0;
  border-radius: 14px;
  padding: 24px 26px;
}

.clp-video-embed-frame {
  position: relative;
  width: 100%;
  max-width: 820px;
  aspect-ratio: 16 / 9;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.clp-video-embed-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* SECTION 5: READER TESTIMONIALS */
.clp-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 24px;
}

.clp-testimonial-card {
  margin: 0;
  background: #ffffff;
  border: 1px solid #e6dfd1;
  border-radius: 14px;
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 3px 14px rgba(18, 55, 45, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-sizing: border-box;
  height: 100%;
}

.clp-testimonial-card:hover {
  transform: translateY(-2.5px);
  border-color: rgba(199, 154, 87, 0.45);
  box-shadow: 0 8px 22px rgba(18, 55, 45, 0.08);
}

.clp-testimonial-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.clp-testimonial-stars {
  color: #eab308;
  font-size: 16px;
  letter-spacing: 2px;
  line-height: 1;
}

.clp-testimonial-verified-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11.5px;
  font-weight: 600;
  color: #15803d;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 9999px;
  padding: 2px 8px;
}

.clp-testimonial-quote {
  font-family: var(--bookrivo-font-body, 'Noto Sans Bengali', sans-serif);
  font-size: 14.5px;
  line-height: 1.7;
  color: #27382f;
  margin: 0;
  flex-grow: 1;
}

.clp-testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid #f0ebe0;
}

.clp-testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.clp-avatar-placeholder {
  background: linear-gradient(135deg, #12372d 0%, #1f5042 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
}

.clp-author-details {
  min-width: 0;
  flex: 1;
}

.clp-author-name {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #12372d;
  line-height: 1.3;
}

.clp-testimonial-book-link,
.clp-testimonial-book-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #6b7280;
  margin-top: 3px;
  text-decoration: none;
  transition: color 0.15s ease;
  line-height: 1.35;
}

.clp-testimonial-book-link:hover {
  color: #12372d;
  text-decoration: underline;
}

.clp-book-icon {
  font-size: 11px;
}

/* SECTION 6: MID-PAGE PRICE & PURCHASE SUMMARY */
.clp-summary-books-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 18px;
}

.clp-summary-book-row {
  display: grid;
  grid-template-columns: 28px 54px 1fr auto;
  gap: 14px;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid #e0dbd0;
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.clp-summary-book-row.is-selected {
  border-color: #173d2d;
  background: #fbfdfb;
}

.clp-included-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #173d2d;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.clp-summary-thumb {
  width: 52px;
  height: 76px;
  background: #f8f6f0;
  border: 1px solid #e6e0d2;
  border-radius: 6px;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.clp-summary-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.clp-summary-book-title {
  font-size: 15px;
  font-weight: 700;
  color: #173d2d;
  line-height: 1.35;
}

.clp-summary-book-author {
  font-size: 12.5px;
  color: #5a6c61;
}

.clp-summary-cart-badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  color: #1d6b42;
}

.clp-summary-price-col {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.clp-summary-price {
  font-size: 17px;
  font-weight: 800;
  color: #173d2d;
}

.clp-summary-reg {
  font-size: 12.5px;
  color: #8c9690;
}

.clp-summary-total-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.clp-summary-total-reg {
  font-size: 15px;
  color: #8c9690;
}

/* SECTION 7: FAQ ACCORDION */
.clp-faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.clp-faq-item {
  background: #ffffff;
  border: 1px solid #e0dad0;
  border-radius: 12px;
  overflow: hidden;
}

.clp-faq-item.is-open {
  border-color: #173d2d;
}

.clp-faq-q-wrap {
  margin: 0;
}

.clp-faq-trigger {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-align: left;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  color: #173d2d;
  cursor: pointer;
}

.clp-faq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #eef3ef;
  color: #173d2d;
  font-size: 16px;
  font-weight: 800;
  flex-shrink: 0;
}

.clp-faq-panel {
  padding: 0 20px 16px;
  border-top: 1px dashed #ece7dc;
}

.clp-faq-answer {
  padding-top: 12px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #304238;
}

.clp-faq-answer p {
  margin: 0 0 8px;
}

.clp-faq-answer p:last-child {
  margin-bottom: 0;
}

/* SECTION 8: FINAL ORDER CTA */
.clp-final-cta-section {
  padding-top: 24px;
  padding-bottom: 16px;
}

.clp-final-cta-box {
  background: linear-gradient(135deg, #173d2d 0%, #102a1f 100%);
  color: #ffffff;
  border-radius: 18px;
  padding: 32px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: 0 14px 34px rgba(16, 42, 31, 0.18);
}

.clp-final-cta-copy {
  flex: 1 1 380px;
}

.clp-final-cta-copy .eyebrow {
  color: #e6c17a !important;
}

.clp-final-cta-copy h2 {
  font-family: var(--bookrivo-font-display, Georgia, serif);
  font-size: clamp(21px, 2.5vw, 28px);
  font-weight: 800;
  color: #ffffff !important;
  margin: 4px 0 8px;
  line-height: 1.35;
}

.clp-final-cta-copy p {
  font-size: 14.5px;
  color: #d6e3dc !important;
  margin: 0 0 14px;
  line-height: 1.65;
}

.clp-final-price-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 14px;
}

.clp-final-price-pill strong {
  font-size: 20px;
  font-weight: 800;
  color: #f7d694;
}

.clp-final-price-pill del {
  color: #b5c7bd;
  font-size: 13px;
}

.clp-final-cta-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 260px;
}

.clp-final-cta-actions .clp-unified-cta-btn {
  background: #d99b26;
  color: #132a1f;
  flex: none;
  width: 100%;
}

.clp-final-cta-actions .clp-unified-cta-btn:hover:not(:disabled) {
  background: #eab03b;
}

.clp-final-cta-actions .clp-unified-cta-btn.is-in-cart {
  background: #258552;
  color: #ffffff;
}

.clp-final-cta-actions .clp-secondary-checkout-btn {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #ffffff;
  width: 100%;
}

.clp-final-cta-actions .clp-secondary-checkout-btn:hover {
  background: #ffffff;
  color: #173d2d;
}

/* RESPONSIVE BREAKPOINTS (1024px, 768px, 414px, 375px, 320px) */
@media (max-width: 960px) {
  .clp-hero-grid,
  .clp-editorial-two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .clp-hero-stage-col {
    order: -1;
  }
  .clp-book-intro-card,
  .clp-book-intro-card.is-reversed {
    grid-template-columns: 180px 1fr;
    gap: 20px;
  }
  .clp-book-intro-card.is-reversed .clp-book-intro-cover-col {
    order: 1;
  }
  .clp-book-intro-card.is-reversed .clp-book-intro-body-col {
    order: 2;
  }
}

@media (max-width: 680px) {
  .clp-hero-section {
    padding: 22px 0 28px;
  }
  .clp-book-intro-card,
  .clp-book-intro-card.is-reversed {
    grid-template-columns: 1fr;
    padding: 18px 16px;
  }
  .clp-book-intro-frame {
    max-width: 165px;
  }
  .clp-why-rationale-card,
  .clp-who-audience-card {
    padding: 18px 16px;
  }
  .clp-final-cta-box {
    padding: 22px 18px;
  }
  .clp-final-cta-actions {
    width: 100%;
    min-width: 0;
  }
}

@media (max-width: 480px) {
  .clp-multi-cover-showcase {
    padding: 14px 10px;
  }
  .clp-multi-cover-showcase.is-trio-composition {
    gap: 8px;
  }
  .clp-stage-cover-frame {
    padding: 4px;
  }
  .clp-stage-book-caption strong {
    font-size: 10.5px;
  }
  .clp-hero-price-box {
    padding: 14px 13px;
  }
  .clp-combined-selling {
    font-size: 24px;
  }
  .clp-cta-group {
    flex-direction: column;
    align-items: stretch;
  }
  .clp-unified-cta-btn,
  .clp-secondary-checkout-btn {
    width: 100%;
    flex: none;
    padding-left: 12px;
    padding-right: 12px;
    font-size: 14px;
  }
  .clp-summary-book-row {
    grid-template-columns: 22px 44px 1fr auto;
    gap: 9px;
    padding: 10px 11px;
  }
  .clp-summary-thumb {
    width: 44px;
    height: 64px;
  }
  .clp-summary-book-title {
    font-size: 13.5px;
  }
  .clp-summary-price {
    font-size: 15px;
  }
  .clp-faq-trigger {
    padding: 14px 14px;
    font-size: 14.5px;
  }
}

/* ==========================================================================
   Distraction-Free Campaign Header & Footer
   ========================================================================== */
.bookrivo-campaign-header {
  background: #ffffff;
  border-bottom: 1px solid #e2e8df;
  padding: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow 0.2s ease;
}

.bookrivo-campaign-header .campaign-header-row,
.campaign-header-row.header-main-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 58px;
  padding-top: 6px;
  padding-bottom: 6px;
  box-sizing: border-box;
}

.bookrivo-campaign-header .site-branding,
.bookrivo-campaign-header .bookrivo-branding,
.bookrivo-campaign-header .custom-logo-link {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.bookrivo-campaign-header .custom-logo {
  max-height: 42px;
  width: auto;
  height: auto;
  display: block;
}

.campaign-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.campaign-header-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #173d2d;
  font-size: 13.5px;
  text-decoration: none;
  font-weight: 700;
  padding: 5px 12px;
  min-height: 36px;
  box-sizing: border-box;
  background: #f4f7f4;
  border-radius: 999px;
  border: 1px solid #d8e5da;
  transition: background 0.15s ease, color 0.15s ease;
}

.campaign-header-phone:hover {
  background: #e9f0ea;
  color: #115e3b;
}

.campaign-header-order-btn {
  padding: 7px 16px !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 36px !important;
  box-sizing: border-box !important;
  gap: 6px !important;
  white-space: nowrap !important;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

/* Sticky Header Behavior & Smooth Anchors */
.bookrivo-campaign-header.is-sticky,
.bookrivo-campaign-header.site-header-sticky {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.page-template-template-landing-page section[id],
.page-template-template-landing-page div[id],
.page-template-template-landing-page [id^="clp"] {
  scroll-margin-top: 68px;
}

@media (max-width: 767px) {
  .bookrivo-campaign-header .campaign-header-row,
  .campaign-header-row.header-main-row {
    min-height: 48px;
    padding-top: 4px;
    padding-bottom: 4px;
    gap: 10px;
  }
  .bookrivo-campaign-header .custom-logo {
    max-height: 36px;
  }
  .campaign-header-order-btn {
    padding: 6px 12px !important;
    font-size: 12px !important;
    min-height: 34px !important;
  }
  .page-template-template-landing-page section[id],
  .page-template-template-landing-page div[id],
  .page-template-template-landing-page [id^="clp"] {
    scroll-margin-top: 56px;
  }
}

@media (max-width: 360px) {
  .bookrivo-campaign-header .custom-logo {
    max-height: 32px;
  }
  .campaign-header-order-btn {
    padding: 5px 10px !important;
    font-size: 11.5px !important;
  }
}

.bookrivo-campaign-footer {
  background: #11281e;
  border-top: 2px solid #204d39;
}

/* ==========================================================================
   Embedded Checkout Section Inside Landing Page
   ========================================================================== */
.clp-embedded-checkout-section {
  padding: 48px 0 64px;
  background: #f7faf7;
  border-top: 1px solid #e1e9e2;
}

.clp-embedded-checkout-card {
  background: #ffffff;
  border: 1px solid #dbe5dc;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(23, 61, 45, 0.06);
  padding: 32px 36px;
}

.clp-checkout-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 28px;
}

.clp-checkout-header .eyebrow {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: #15803d;
  background: #dcfce7;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.clp-checkout-title {
  font-family: var(--bookrivo-font-heading);
  font-size: 26px;
  font-weight: 800;
  color: #173d2d;
  margin: 0 0 10px;
}

.clp-checkout-desc {
  font-size: 14px;
  line-height: 1.65;
  color: #4b6354;
  margin: 0;
}

/* Unrelated Cart Items Notice */
.clp-unrelated-cart-notice {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 14px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.clp-unrelated-cart-notice .unrelated-notice-body {
  flex: 1;
  min-width: 260px;
}

.clp-unrelated-cart-notice strong {
  display: block;
  font-size: 13.5px;
  color: #1e3a8a;
  margin-bottom: 3px;
}

.clp-unrelated-cart-notice p {
  font-size: 12.5px;
  color: #1e40af;
  margin: 0 0 8px;
}

.unrelated-items-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.unrelated-item-chip {
  background: #dbeafe;
  color: #1e3a8a;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.clp-remove-cart-item-btn {
  background: none;
  border: 0;
  color: #ef4444;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  padding: 0 2px;
}

.clp-clear-unrelated-btn {
  background: #2563eb !important;
  color: #ffffff !important;
  border: 0 !important;
  font-size: 12.5px !important;
  padding: 8px 14px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
}

.clp-clear-unrelated-btn:hover {
  background: #1d4ed8 !important;
}

/* Embedded Checkout Container inside Landing Page */
.clp-woocommerce-checkout-wrap .bookrivo-checkout-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

@media (max-width: 900px) {
  .clp-woocommerce-checkout-wrap .bookrivo-checkout-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .clp-embedded-checkout-card {
    padding: 20px 16px;
  }
  .campaign-header-phone {
    display: none;
  }
}

/* ==========================================================================
   BookRivo — Landing Page V2 New Sections & Enhancements
   ========================================================================== */

/* Centered Section Header Helper */
.clp-center-sectop,
.bookrivo-single-product-page .clp-center-sectop,
.page-template-template-landing-page .sectop.clp-center-sectop {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  max-width: 680px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 36px !important;
  width: 100% !important;
}

.clp-center-sectop > div,
.bookrivo-single-product-page .clp-center-sectop > div,
.page-template-template-landing-page .sectop.clp-center-sectop > div {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.clp-center-sectop .eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 8px !important;
  text-align: center !important;
}

.clp-center-sectop h2 {
  font-size: clamp(24px, 3.2vw, 32px);
  color: #12372d;
  line-height: 1.3;
  margin: 0 0 10px 0;
  text-align: center !important;
  width: 100% !important;
}

.clp-center-sectop .sub {
  font-size: clamp(14px, 1.8vw, 16px);
  color: #4b5563;
  line-height: 1.6;
  text-align: center !important;
  max-width: 620px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Section B: Customer's Problem ("আপনারও কি এমন হয়?") */
.clp-problem-section {
  background: #fdfbf7;
  padding: 56px 0 64px;
  border-bottom: 1px solid #eee8db;
}

.clp-problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.clp-problem-card {
  background: #ffffff;
  border: 1px solid #eae4d5;
  border-radius: 14px;
  padding: 24px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  box-shadow: 0 4px 14px rgba(26, 66, 49, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.clp-problem-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(26, 66, 49, 0.08);
  border-color: #c5a059;
}

.clp-problem-card-icon {
  font-size: 26px;
  line-height: 1;
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbf8f1;
  border: 1px solid #ede5d4;
  border-radius: 12px;
}

.clp-problem-card-title {
  font-size: 16.5px;
  font-weight: 700;
  color: #12372d;
  margin: 0 0 8px 0;
  line-height: 1.35;
}

.clp-problem-card-desc {
  font-size: 14.5px;
  color: #4b5563;
  line-height: 1.55;
  margin: 0;
}

.clp-problem-bridge-card {
  background: linear-gradient(135deg, #12372d 0%, #1e4a3c 100%);
  color: #ffffff;
  border-radius: 14px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 8px 26px rgba(18, 55, 45, 0.16);
}

.clp-problem-bridge-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.clp-bridge-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.clp-bridge-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15px;
  line-height: 1.5;
}

.clp-bridge-text strong {
  color: #f7f3e8;
  font-size: 16px;
}

.clp-bridge-text span {
  color: #d1fae5;
  font-size: 14px;
}

.clp-problem-bridge-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #c5a059;
  color: #ffffff !important;
  font-size: 14.5px;
  font-weight: 700;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.clp-problem-bridge-btn:hover {
  background: #b38838;
  transform: translateY(-1px);
}

/* Synergy Shield & Sword Grid inside Why Together */
.clp-synergy-duo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 26px;
}

.clp-synergy-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border-radius: 12px;
  background: #fdfbf7;
  border: 1px solid #e7ded0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.synergy-shield {
  border-left: 4px solid #12372d;
}

.synergy-sword {
  border-left: 4px solid #c5a059;
}

.synergy-icon {
  font-size: 26px;
  flex-shrink: 0;
}

.synergy-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.synergy-body strong {
  font-size: 15px;
  color: #12372d;
}

.synergy-body span {
  font-size: 13px;
  color: #526071;
  line-height: 1.4;
}

/* Authentic Customer Review Screenshots Grid */
.clp-review-screenshots-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 38px;
}

.clp-review-screenshot-card {
  background: #ffffff;
  border: 1px solid #eae3d2;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clp-review-screenshot-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.clp-screenshot-frame {
  width: 100%;
  background: #f8fafc;
  overflow: hidden;
  border-bottom: 1px solid #eee8db;
}

.clp-screenshot-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.clp-screenshot-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.clp-screenshot-stars {
  color: #eab308;
  font-size: 13px;
  letter-spacing: 2px;
}

.clp-screenshot-quote {
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
  margin: 0;
  font-style: italic;
}

.clp-verified-reader-tag {
  font-size: 11px;
  font-weight: 600;
  color: #15803d;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  padding-top: 8px;
}

.clp-testimonial-stars {
  color: #eab308;
  font-size: 13px;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

/* Section H: Reassurance Store Policies */
.clp-policies-section {
  background: linear-gradient(180deg, #faf7ef 0%, #f4ede0 100%);
  padding: 64px 0 72px;
  border-top: 1px solid #e7ded0;
  border-bottom: 1px solid #e7ded0;
  position: relative;
}

.clp-policies-section .sectop,
.clp-policies-section .sectop.clp-center-sectop {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  max-width: 680px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 34px !important;
  width: 100% !important;
}

.clp-policies-section .sectop > div,
.clp-policies-section .sectop.clp-center-sectop > div {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.clp-policies-section .eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #12372d;
  background: rgba(18, 55, 45, 0.06);
  border: 1px solid rgba(18, 55, 45, 0.12);
  border-radius: 9999px;
  padding: 5px 14px;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 12px !important;
  letter-spacing: 0.2px;
  text-align: center !important;
}

.clp-policies-section h2 {
  font-family: var(--bookrivo-font-heading, 'Noto Sans Bengali', sans-serif);
  font-size: clamp(23px, 3.2vw, 32px);
  font-weight: 800;
  color: #12372d;
  margin: 0 0 10px 0;
  line-height: 1.3;
  text-align: center !important;
  width: 100% !important;
}

.clp-policies-section .sub {
  font-family: var(--bookrivo-font-body, 'Noto Sans Bengali', sans-serif);
  font-size: clamp(14px, 1.5vw, 15.5px);
  color: #4b5563;
  max-width: 620px !important;
  width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
  line-height: 1.65;
  text-align: center !important;
}

.clp-policies-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 22px;
}

/* Row 1: Top 3 cards each span 2 columns (2 + 2 + 2 = 6) */
.clp-policies-grid .clp-policy-card:nth-child(1),
.clp-policies-grid .clp-policy-card:nth-child(2),
.clp-policies-grid .clp-policy-card:nth-child(3) {
  grid-column: span 2;
}

/* Row 2: Bottom 2 cards each span 3 columns (3 + 3 = 6) */
.clp-policies-grid .clp-policy-card:nth-child(4),
.clp-policies-grid .clp-policy-card:nth-child(5) {
  grid-column: span 3;
}

.clp-policy-card {
  background: #ffffff;
  border: 1px solid #e8e1d2;
  border-radius: 14px;
  padding: 24px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  box-shadow: 0 3px 14px rgba(18, 55, 45, 0.04), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  box-sizing: border-box;
  height: 100%;
}

.clp-policy-card:hover {
  transform: translateY(-2.5px);
  border-color: rgba(199, 154, 87, 0.5);
  box-shadow: 0 8px 24px rgba(18, 55, 45, 0.08);
}

.clp-policy-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #f0f7f3 0%, #e2efe7 100%);
  border: 1px solid rgba(18, 55, 45, 0.14);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #12372d;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.8), 0 2px 6px rgba(18, 55, 45, 0.05);
}

.clp-policy-icon svg {
  width: 22px;
  height: 22px;
  stroke: #12372d;
}

.clp-policy-body {
  flex: 1;
  min-width: 0;
}

.clp-policy-body h3 {
  font-family: var(--bookrivo-font-heading, 'Noto Sans Bengali', sans-serif);
  font-size: 16.5px;
  font-weight: 700;
  color: #12372d;
  margin: 0 0 6px 0;
  line-height: 1.35;
  letter-spacing: normal;
}

.clp-policy-body p {
  font-family: var(--bookrivo-font-body, 'Noto Sans Bengali', sans-serif);
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

.clp-policy-link {
  color: #12372d;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(18, 55, 45, 0.35);
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.clp-policy-link:hover {
  color: #0b221c;
}

.clp-policy-whatsapp-link {
  color: #15803d;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(21, 128, 61, 0.35);
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.clp-policy-whatsapp-link:hover {
  color: #166534;
}

/* Mobile Sticky Bottom CTA Bar */
.clp-mobile-sticky-bar {
  display: none;
}

@media (max-width: 768px) {
  .clp-mobile-sticky-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-top: 1px solid #e2d9c8;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    transform: translateY(110%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .clp-mobile-sticky-bar.is-active {
    transform: translateY(0);
  }

  .clp-sticky-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 14px;
  }

  .clp-sticky-pricing {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .clp-sticky-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
  }

  .clp-sticky-label {
    font-size: 12px;
    color: #64748b;
    font-weight: 500;
  }

  .clp-sticky-price {
    font-size: 18px;
    font-weight: 800;
    color: #12372d;
  }

  .clp-sticky-regular {
    font-size: 13px;
    color: #94a3b8;
    text-decoration: line-through;
  }

  .clp-sticky-savings {
    font-size: 11px;
    font-weight: 700;
    color: #15803d;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 4px;
    padding: 1px 5px;
    width: fit-content;
  }

  .clp-sticky-cta-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #12372d;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    padding: 11px 20px;
    border-radius: 8px;
    text-decoration: none !important;
    min-height: 44px;
    box-shadow: 0 4px 14px rgba(18, 55, 45, 0.25);
    flex-shrink: 0;
  }

  .clp-sticky-cta-btn:active {
    transform: scale(0.98);
  }

  /* Responsive Adjustments for Problem, Synergy & Reviews */
  .clp-problem-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .clp-problem-bridge-card {
    flex-direction: column;
    text-align: center;
    padding: 20px;
  }

  .clp-problem-bridge-content {
    flex-direction: column;
    text-align: center;
  }

  .clp-synergy-duo-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .clp-review-screenshots-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .clp-policies-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .clp-policies-grid .clp-policy-card {
    grid-column: span 1 !important;
    padding: 18px 16px;
    gap: 14px;
  }

  .clp-policy-icon {
    width: 44px;
    height: 44px;
  }

  .clp-policy-icon svg {
    width: 20px;
    height: 20px;
  }

  .clp-policy-body h3 {
    font-size: 15.5px;
  }

  .clp-policy-body p {
    font-size: 13px;
    line-height: 1.55;
  }

  .clp-testimonials-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .clp-review-screenshots-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clp-policies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .clp-policies-grid .clp-policy-card {
    grid-column: span 1 !important;
  }

  .clp-policies-grid .clp-policy-card:nth-child(5) {
    grid-column: span 2 !important;
  }

  .clp-testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
  }

  .clp-testimonials-grid .clp-testimonial-card:nth-child(3) {
    grid-column: span 2;
  }
}

/* ==========================================================================
   BookRivo — Responsive Thank You / Order Received & Bangla QR Integration
   ========================================================================== */

/* Isolation from checkout grid & Thank You Clean Spacing */
.woocommerce-order-received .bookrivo-checkout-layout,
.woocommerce-checkout .woocommerce-order,
.woocommerce-order-received .site-main .bookrivo-container {
  display: block;
  grid-template-columns: none;
}

.woocommerce-order-received .site-main.bookrivo-standard-page {
  padding-top: 20px;
  padding-bottom: 48px;
}

.woocommerce-order-received .entry-content .woocommerce,
.woocommerce-order-received .entry-content > .woocommerce {
  margin-top: 0 !important;
  margin-bottom: 24px;
}

.woocommerce-order-received .bookrivo-thankyou-wrapper {
  margin-top: 0 !important;
}

.woocommerce-order-received .woocommerce-notices-wrapper:empty {
  display: none;
  margin: 0;
  padding: 0;
}

.bookrivo-thankyou-wrapper {
  max-width: 800px;
  margin: 0 auto 48px auto;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
}

.bookrivo-order-success-card {
  background: #ffffff;
  border: 1px solid #e4eae2;
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 10px 36px rgba(41, 70, 52, 0.05);
  text-align: left;
  box-sizing: border-box;
  position: relative;
}

.bqr-mobile-compact-header {
  display: none;
}

.bookrivo-order-failed-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 14px;
  padding: 32px 24px;
  text-align: center;
}

.bookrivo-order-failed-box .failed-icon-badge {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.bookrivo-order-failed-box .failed-title {
  color: #991b1b;
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 10px 0;
}

.bookrivo-order-failed-box .failed-desc {
  color: #7f1d1d;
  font-size: 14.5px;
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 24px auto;
}

/* Success Header */
.bookrivo-thankyou-header {
  text-align: center;
  margin-bottom: 28px;
}

.bookrivo-thankyou-header .success-icon-badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #eaf5ec;
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  transition: transform 0.2s ease;
}

.bookrivo-thankyou-header .success-icon-badge svg {
  width: 32px;
  height: 32px;
}

.bookrivo-thankyou-header .thankyou-title {
  font-size: 24px;
  font-weight: 700;
  color: #18392f;
  margin: 0 0 10px 0;
  line-height: 1.35;
}

.bookrivo-thankyou-header .thankyou-subtitle {
  color: #68786d;
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0 auto;
  max-width: 560px;
}

/* Order Overview Horizontal / Responsive Summary */
.bookrivo-order-overview-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  list-style: none;
  padding: 16px 20px;
  margin: 0 0 28px 0;
  background: #f8faf6;
  border: 1px solid #e8eee5;
  border-radius: 12px;
  text-align: left;
  box-sizing: border-box;
}

.bookrivo-order-overview-list .overview-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bookrivo-order-overview-list .overview-label {
  color: #7b8e7e;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  display: block;
}

.bookrivo-order-overview-list .overview-value {
  color: #18392f;
  font-size: 14.5px;
  font-weight: 700;
  word-break: break-word;
  line-height: 1.3;
}

.bookrivo-order-overview-list .order-total-highlight {
  color: #16a34a;
  font-size: 16px;
}

/* Actions wrapper */
.bookrivo-thankyou-actions {
  width: 100%;
}

/* Bangla QR Container within Thank You card */
.bookrivo-order-success-card .bqr-panel-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0;
  margin: 0 0 28px 0;
  box-sizing: border-box;
}

.bookrivo-order-success-card .bqr-panel {
  width: 100%;
  max-width: 100%;
  margin: 0;
  background: #fbfdfc;
  border: 1.5px solid #cce3d8;
  border-radius: 14px;
  padding: 26px 28px;
  box-shadow: 0 4px 18px rgba(18, 55, 45, 0.04);
  box-sizing: border-box;
  text-align: left;
}

.bookrivo-order-success-card .bqr-amount-block {
  background: #ffffff;
  border: 1px solid #dbe6e0;
  border-radius: 10px;
  padding: 14px 18px;
}

.bookrivo-order-success-card .bqr-amount-figure {
  font-size: 26px;
  font-weight: 700;
  color: #16a34a;
}

.bookrivo-order-success-card .bqr-qr-box {
  background: #ffffff;
  border: 1px solid #e1ebe5;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
}

.bookrivo-order-success-card .bqr-qr-img-wrap {
  background: #f8faf7;
  border: 1px solid #e6eee9;
  border-radius: 8px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bookrivo-order-success-card .bqr-qr-img {
  max-width: 240px;
  width: 100%;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 6px;
}

.bookrivo-order-success-card .bqr-instructions-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bookrivo-order-success-card .bqr-instruction-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: #2d3748;
  line-height: 1.5;
}

.bookrivo-order-success-card .bqr-inst-badge {
  background: #173d2d;
  color: #ffffff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  min-width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  margin-top: 1px;
}

.bookrivo-order-success-card .bqr-text-input,
.bookrivo-order-success-card .bqr-file-input {
  min-height: 44px;
  border: 1px solid #c8d8ce;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  color: #1e293b;
  box-sizing: border-box;
}

.bookrivo-order-success-card .bqr-submit-btn {
  background: #173d2d !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  padding: 13px 20px !important;
  min-height: 46px !important;
  cursor: pointer;
  transition: background 0.2s ease;
  width: 100%;
}

.bookrivo-order-success-card .bqr-submit-btn:hover {
  background: #0f2a1e !important;
}

/* Order Details Table Styling */
.bookrivo-order-success-card .woocommerce-order-details {
  margin: 28px 0 0 0;
  text-align: left;
}

.bookrivo-order-success-card .woocommerce-order-details__title {
  font-size: 18px;
  font-weight: 700;
  color: #18392f;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #eef2ed;
}

.bookrivo-order-success-card .woocommerce-table--order-details {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
}

.bookrivo-order-success-card .woocommerce-table--order-details th,
.bookrivo-order-success-card .woocommerce-table--order-details td {
  padding: 12px 14px;
  border-bottom: 1px solid #eef2ed;
  text-align: left;
}

.bookrivo-order-success-card .woocommerce-table--order-details thead th {
  background: #f8faf6;
  font-weight: 700;
  color: #18392f;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.bookrivo-order-success-card .woocommerce-table--order-details tfoot th {
  font-weight: 600;
  color: #55695c;
  text-align: left;
}

.bookrivo-order-success-card .woocommerce-table--order-details tfoot td {
  text-align: right;
  color: #18392f;
  font-weight: 600;
}

.bookrivo-order-success-card .woocommerce-table--order-details tfoot tr:last-child th,
.bookrivo-order-success-card .woocommerce-table--order-details tfoot tr:last-child td {
  font-size: 16px;
  font-weight: 700;
  color: #16a34a;
  border-top: 2px solid #e8eee5;
}

/* Customer Details Section */
.bookrivo-order-success-card .woocommerce-customer-details {
  background: #fcfdfb;
  border: 1px solid #e8eee5;
  border-radius: 12px;
  padding: 20px 22px;
  margin-top: 24px;
  text-align: left;
}

.bookrivo-order-success-card .woocommerce-customer-details .woocommerce-column__title {
  font-size: 16px;
  font-weight: 700;
  color: #18392f;
  margin: 0 0 12px 0;
}

.bookrivo-order-success-card .woocommerce-customer-details address {
  font-style: normal;
  font-size: 14px;
  line-height: 1.6;
  color: #4b5563;
}

/* Admin Copy Order Summary Tools */
.bookrivo-admin-order-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px dashed #d1dcce;
}

.bookrivo-copy-order-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  color: #173d2d;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 9px 16px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.bookrivo-copy-order-btn:hover {
  background: #f8faf6;
  border-color: #16a34a;
  color: #16a34a;
}

.bookrivo-copy-order-btn.is-copied {
  background: #eaf5ec;
  border-color: #16a34a;
  color: #16a34a;
}

.bookrivo-copy-feedback {
  font-size: 13px;
  font-weight: 600;
  color: #16a34a;
  display: inline-flex;
  align-items: center;
  animation: fadeIn 0.2s ease;
}

/* --------------------------------------------------------------------------
   Responsive Breakpoints for Thank You Page
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .woocommerce-order-received .site-main.bookrivo-standard-page {
    padding-top: 14px !important;
    padding-bottom: 32px;
  }

  .woocommerce-order-received .entry-content .woocommerce,
  .woocommerce-order-received .entry-content > .woocommerce {
    margin-top: 0 !important;
    margin-bottom: 16px;
  }

  .bookrivo-thankyou-wrapper,
  .woocommerce-order-received .bookrivo-thankyou-wrapper {
    margin: 0 auto 20px auto !important;
    padding: 0;
  }

  .bookrivo-order-success-card {
    padding: 16px 14px;
    border-radius: 12px;
    margin-top: 0;
  }

  .bookrivo-order-success-card.is-bqr-order {
    padding: 12px 12px 16px 12px;
  }

  .bqr-mobile-compact-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 14px;
  }

  .bqr-mobile-compact-header .bqr-mch-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #065f46;
    font-size: 15px;
    font-weight: 700;
  }

  .bqr-mobile-compact-header .bqr-mch-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    background: #10b981;
    color: #ffffff;
    border-radius: 50%;
  }

  .bqr-mobile-compact-header .bqr-mch-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 13.5px;
    color: #047857;
    font-weight: 600;
  }

  .bqr-mobile-compact-header .bqr-mch-total {
    font-weight: 800;
  }

  .bookrivo-order-success-card.is-bqr-order .hide-on-bqr-mobile {
    display: none !important;
  }

  .bookrivo-order-success-card.is-bqr-order .bookrivo-thankyou-actions {
    margin-top: 0 !important;
  }

  .bookrivo-order-success-card.is-bqr-order .bqr-panel {
    margin-top: 0 !important;
    border-color: #10b981 !important;
  }

  .bookrivo-thankyou-header {
    margin-bottom: 20px;
  }

  .bookrivo-thankyou-header .success-icon-badge {
    width: 54px;
    height: 54px;
    margin-bottom: 12px;
  }

  .bookrivo-thankyou-header .success-icon-badge svg {
    width: 28px;
    height: 28px;
  }

  .bookrivo-thankyou-header .thankyou-title {
    font-size: 20px;
    line-height: 1.35;
    margin-bottom: 8px;
  }

  .bookrivo-thankyou-header .thankyou-subtitle {
    font-size: 13px;
    line-height: 1.5;
  }

  .bookrivo-order-overview-list {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
    margin-bottom: 20px;
    border-radius: 10px;
  }

  .bookrivo-order-overview-list .overview-label {
    font-size: 11px;
  }

  .bookrivo-order-overview-list .overview-value {
    font-size: 13.5px;
  }

  .bookrivo-order-success-card .bqr-panel {
    padding: 16px 12px;
    border-radius: 10px;
    margin-bottom: 20px;
  }

  .bqr-grid-card {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }

  .bqr-heading-area {
    order: 1 !important;
    text-align: center !important;
  }

  .bqr-heading {
    font-size: 16.5px !important;
  }

  .bqr-amount-block {
    order: 2 !important;
    padding: 12px 14px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .bqr-amount-figure {
    font-size: 24px !important;
  }

  .bqr-qr-column {
    order: 3 !important;
    width: 100% !important;
  }

  .bqr-qr-box {
    padding: 12px !important;
  }

  .bqr-qr-img-wrap {
    padding: 6px !important;
  }

  .bqr-qr-img {
    max-width: 210px !important;
    width: 100% !important;
    height: auto !important;
    margin: 0 auto !important;
  }

  .bqr-qr-controls {
    display: flex !important;
    justify-content: center !important;
    gap: 12px !important;
    margin-top: 10px !important;
  }

  .bqr-instructions-block {
    order: 4 !important;
    width: 100% !important;
    gap: 8px !important;
  }

  .bqr-instruction-row {
    font-size: 13px !important;
    gap: 8px !important;
  }

  .bqr-form-block {
    order: 5 !important;
    width: 100% !important;
  }

  .bqr-text-input {
    width: 100% !important;
    min-height: 44px !important;
    box-sizing: border-box !important;
  }

  .bqr-submit-btn {
    width: 100% !important;
    min-height: 44px !important;
  }

  .bookrivo-order-success-card .woocommerce-table--order-details th,
  .bookrivo-order-success-card .woocommerce-table--order-details td {
    padding: 10px 8px;
    font-size: 13px;
  }

  .bookrivo-order-success-card .woocommerce-customer-details {
    padding: 14px 14px;
    margin-top: 18px;
  }

  .bookrivo-admin-order-tools {
    justify-content: center;
    margin-top: 18px;
  }

  .bookrivo-copy-order-btn {
    width: 100%;
    justify-content: center;
    min-height: 44px;
  }
}

@media (max-width: 360px) {
  .bookrivo-order-success-card {
    padding: 14px 10px;
  }

  .bookrivo-order-overview-list {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .bqr-qr-img {
    max-width: 185px !important;
  }

  .bqr-amount-figure {
    font-size: 22px !important;
  }
}

/* ==========================================================================
   CART PAGE POLISH: REMOVE DESCRIPTIONS & CENTER CROSS-SELL IMAGES
   ========================================================================== */

/* 1. Remove ONLY product description/excerpt in Cart item rows;
      preserve variation attributes & Bookshop Essentials package metadata */
.wc-block-cart-items__row .wc-block-components-product-metadata__description,
.wp-block-woocommerce-cart .wc-block-components-product-metadata__description,
.woocommerce-cart-form .product-description {
  display: none !important;
}

/* 2. Center Cross-Sell Product Images & Card Content */
.wp-block-woocommerce-cart .wp-block-woocommerce-cart-cross-sells-block .cross-sells-product,
.wp-block-woocommerce-cart-cross-sells-block .cross-sells-product,
.cross-sells ul.products li.product {
  text-align: center !important;
  vertical-align: top !important;
}

.wp-block-woocommerce-cart-cross-sells-block .cross-sells-product > div {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-align: center !important;
  width: 100% !important;
}

.wp-block-woocommerce-cart-cross-sells-block .cross-sells-product .wc-block-components-product-image,
.cross-sells .wc-block-components-product-image {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin: 0 auto 14px auto !important;
  text-align: center !important;
}

.wp-block-woocommerce-cart-cross-sells-block .cross-sells-product .wc-block-components-product-image a,
.cross-sells .wc-block-components-product-image a {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  margin: 0 auto !important;
  width: auto !important;
  max-width: 100% !important;
}

.wp-block-woocommerce-cart-cross-sells-block .cross-sells-product .wc-block-components-product-image img,
.cross-sells .wc-block-components-product-image img {
  display: block !important;
  margin: 0 auto !important;
  object-fit: contain !important;
  object-position: center center !important;
  width: auto !important;
  height: auto !important;
  max-width: 105px !important;
  max-height: 155px !important;
  border-radius: 4px !important;
  background: #f6f4ee !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1) !important;
}

.wp-block-woocommerce-cart-cross-sells-block .cross-sells-product .wc-block-components-product-title,
.wp-block-woocommerce-cart-cross-sells-block .cross-sells-product .wc-block-components-product-rating-stars,
.wp-block-woocommerce-cart-cross-sells-block .cross-sells-product .wc-block-components-product-price,
.wp-block-woocommerce-cart-cross-sells-block .cross-sells-product .wc-block-components-product-button {
  text-align: center !important;
  justify-content: center !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.wp-block-woocommerce-cart-cross-sells-block .cross-sells-product .wc-block-components-product-rating-stars__container {
  display: flex !important;
  justify-content: center !important;
  margin: 0 auto !important;
}

@media (max-width: 767px) {
  .wp-block-woocommerce-cart .wp-block-woocommerce-cart-cross-sells-block .cross-sells-product,
  .wp-block-woocommerce-cart-cross-sells-block .cross-sells-product {
    margin-bottom: 24px !important;
    padding-right: 0 !important;
    width: 100% !important;
  }
}

/* ==========================================================================
   CART PAGE LAYOUT STABILITY & ZERO-CLS REMEDIATION
   ========================================================================== */

/* 1. Prevent footer jump: reserve container height for filled cart */
.wp-block-woocommerce-cart {
  min-height: 720px;
}

/* 2. Order summary totals stabilization: reserve space for hydrated subtotals & fees */
.wp-block-woocommerce-cart-order-summary-block {
  min-height: 285px;
}

.wp-block-woocommerce-cart-order-summary-totals-block {
  min-height: 115px;
}

.wc-block-cart__sidebar {
  min-height: 380px;
}

/* 3. Skeleton row matching: hide redundant 2nd+ placeholder rows during REST loading */
.wc-block-cart-items__row ~ .wc-block-cart-items__row:has(.wc-block-components-skeleton__element),
.wc-block-cart-items tbody tr:nth-child(n+2):has(.wc-block-components-skeleton__element) {
  display: none !important;
}

.wc-block-cart-items__row:has(.wc-block-components-skeleton__element) {
  height: 143px !important;
  min-height: 143px !important;
}

/* 4. Cross-sells image dimension reservation: eliminate image load layout shift */
.wp-block-woocommerce-cart-cross-sells-block .cross-sells-product .wc-block-components-product-image,
.cross-sells .wc-block-components-product-image {
  min-height: 155px !important;
}

/* 5. Mobile cart layout stabilization: enforce vertical column stack in CSS before React adds is-mobile */
@media (max-width: 768px) {
  .wp-block-woocommerce-cart .wc-block-components-sidebar-layout,
  .wp-block-woocommerce-cart .wp-block-woocommerce-filled-cart-block {
    display: flex !important;
    flex-direction: column !important;
  }

  .wp-block-woocommerce-cart .wc-block-cart__main,
  .wp-block-woocommerce-cart .wp-block-woocommerce-cart-items-block {
    order: 1 !important;
    width: 100% !important;
    min-height: 540px !important;
  }

  .wp-block-woocommerce-cart .wc-block-cart__sidebar,
  .wp-block-woocommerce-cart .wp-block-woocommerce-cart-totals-block {
    order: 2 !important;
    width: 100% !important;
    min-height: auto !important;
  }
}


/* ==========================================================================
   CHECKOUT PLACE ORDER BUTTON WITH LIVE TOTAL — RESPONSIVE REFINEMENT
   ========================================================================== */
.bookrivo-checkout-layout #place_order,
.woocommerce-checkout-payment #place_order,
#place_order {
  text-align: center !important;
  padding: 12px 18px !important;
  box-sizing: border-box !important;
}

@media (max-width: 380px) {
  .bookrivo-checkout-layout #place_order,
  .woocommerce-checkout-payment #place_order,
  #place_order {
    font-size: 14.5px !important;
    padding: 10px 12px !important;
  }
}

/* ==========================================================================
   POST-ORDER BIDIRECTIONAL PAYMENT METHOD SWITCHER & COD CONFIRMATION CARD
   ========================================================================== */
.projonmo-payment-switch-shell {
  width: 100%;
  margin: 18px 0 22px;
  box-sizing: border-box;
  font-family: var(--bookrivo-font-bengali, 'Noto Sans Bengali', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
}

.projonmo-switch-success-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #f0fdf4;
  border: 1.5px solid #86efac;
  border-left: 4px solid #16a34a;
  border-radius: 10px;
  padding: 13px 16px;
  margin-bottom: 18px;
  color: #14532d;
  font-size: 14px;
  line-height: 1.55;
  box-sizing: border-box;
}

.projonmo-switch-success-banner .switch-banner-icon {
  width: 24px;
  height: 24px;
  background: #16a34a;
  color: #ffffff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.projonmo-switch-success-banner .switch-banner-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

/* Active COD Payment Confirmation Card */
.projonmo-cod-active-card {
  background: #fbfcf9;
  border: 1.5px solid #d6e3d4;
  border-radius: 12px;
  padding: 20px 22px;
  margin-bottom: 18px;
  box-sizing: border-box;
  box-shadow: 0 2px 10px rgba(23, 61, 45, 0.04);
}

.projonmo-cod-active-card .cod-card-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.projonmo-cod-active-card .cod-status-pill {
  background: #e8f3ea;
  color: #173d2d;
  border: 1px solid #c3dec8;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
}

.projonmo-cod-active-card .cod-order-ref {
  font-size: 12.5px;
  color: #5c6f60;
  font-weight: 600;
}

.projonmo-cod-active-card .cod-card-heading {
  font-size: 19px;
  font-weight: 800;
  color: #173d2d;
  margin: 0 0 6px;
  line-height: 1.35;
}

.projonmo-cod-active-card .cod-card-desc {
  font-size: 14px;
  color: #47594b;
  margin: 0 0 14px;
  line-height: 1.55;
}

.projonmo-cod-active-card .cod-payable-highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #dce6da;
  border-left: 4px solid #173d2d;
  border-radius: 8px;
  padding: 12px 16px;
}

.projonmo-cod-active-card .cod-payable-label {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}

.projonmo-cod-active-card .cod-payable-amount {
  font-size: 20px;
  font-weight: 800;
  color: #173d2d;
}

/* Payment Method Switcher Card */
.projonmo-payment-switcher-card {
  background: #ffffff;
  border: 1.5px solid #dce4da;
  border-radius: 12px;
  padding: 16px 18px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(23, 61, 45, 0.03);
}

.projonmo-payment-switcher-card .switcher-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.projonmo-payment-switcher-card .switcher-bar-info {
  flex: 1 1 260px;
  min-width: 0;
}

.projonmo-payment-switcher-card .switcher-eyebrow {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #173d2d;
  margin-bottom: 3px;
}

.projonmo-payment-switcher-card .switcher-subtext {
  font-size: 13.5px;
  color: #4b5e50;
  margin: 0;
  line-height: 1.5;
}

.projonmo-switch-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 16px;
  background: #f4f8f4;
  color: #173d2d;
  border: 1.5px solid #173d2d;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.projonmo-switch-toggle-btn:hover,
.projonmo-switch-toggle-btn[aria-expanded="true"] {
  background: #173d2d;
  color: #ffffff;
}

.projonmo-switch-confirm-panel {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #d5dfd3;
}

.projonmo-switch-confirm-panel .switch-preview-header {
  margin-bottom: 12px;
}

.projonmo-switch-confirm-panel .switch-preview-title {
  font-size: 15.5px;
  font-weight: 800;
  color: #173d2d;
  margin: 0 0 4px;
}

.projonmo-switch-confirm-panel .switch-preview-note {
  font-size: 12.5px;
  color: #64748b;
  margin: 0;
}

.projonmo-switch-confirm-panel .switch-comparison-grid {
  background: #f8faf8;
  border: 1px solid #dfe7dd;
  border-radius: 9px;
  padding: 12px 14px;
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.projonmo-switch-confirm-panel .switch-comp-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 13.5px;
}

.projonmo-switch-confirm-panel .comp-label {
  color: #475569;
  font-weight: 600;
}

.projonmo-switch-confirm-panel .comp-val {
  color: #1e293b;
  text-align: right;
}

.projonmo-switch-confirm-panel .comp-target-method {
  color: #173d2d;
  background: #e6f2e8;
  padding: 2px 8px;
  border-radius: 5px;
}

.projonmo-switch-confirm-panel .delta-removed {
  color: #b45309;
  font-weight: 600;
}

.projonmo-switch-confirm-panel .delta-added {
  color: #15803d;
  font-weight: 700;
}

.projonmo-switch-confirm-panel .switch-comp-row.is-total-row {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px solid #dce5da;
  font-size: 15px;
}

.projonmo-switch-confirm-panel .comp-revised-total {
  font-size: 17px;
  font-weight: 800;
  color: #173d2d;
}

.projonmo-switch-feedback {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-left: 4px solid #dc2626;
  color: #991b1b;
  padding: 10px 12px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.projonmo-switch-confirm-panel .switch-form-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.projonmo-switch-confirm-btn {
  flex: 1 1 220px;
  min-height: 46px;
  padding: 10px 18px;
  background: #173d2d;
  color: #ffffff;
  border: 0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: center;
}

.projonmo-switch-confirm-btn:hover {
  background: #23543f;
}

.projonmo-switch-confirm-btn:disabled {
  opacity: 0.65;
  cursor: wait;
}

.projonmo-switch-cancel-btn {
  min-height: 46px;
  padding: 10px 16px;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
}

.projonmo-switch-cancel-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

/* Locked / Support Fallback State */
.projonmo-payment-switcher-card.is-locked {
  background: #fffdf9;
  border-color: #f3dec0;
}

.projonmo-payment-switcher-card .switcher-locked-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.projonmo-payment-switcher-card .switcher-locked-info {
  flex: 1 1 240px;
  min-width: 0;
}

.projonmo-payment-switcher-card .switcher-locked-title {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #78350f;
  margin-bottom: 3px;
}

.projonmo-payment-switcher-card .switcher-locked-reason {
  font-size: 13px;
  color: #92400e;
  margin: 0;
  line-height: 1.5;
}

.projonmo-switch-support-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 15px;
  background: #173d2d;
  color: #ffffff !important;
  text-decoration: none !important;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 700;
  transition: background 0.15s ease;
  box-sizing: border-box;
  text-align: center;
}

.projonmo-switch-support-btn:hover {
  background: #23543f;
  color: #ffffff !important;
}

@media (max-width: 767px) {
  .projonmo-cod-active-card {
    padding: 16px 14px;
  }
  .projonmo-cod-active-card .cod-card-heading {
    font-size: 17px;
  }
  .projonmo-cod-active-card .cod-payable-highlight {
    padding: 10px 12px;
  }
  .projonmo-cod-active-card .cod-payable-amount {
    font-size: 18px;
  }
  .projonmo-payment-switcher-card {
    padding: 14px 14px;
  }
  .projonmo-switch-toggle-btn,
  .projonmo-switch-support-btn,
  .projonmo-switch-confirm-btn,
  .projonmo-switch-cancel-btn {
    width: 100%;
    white-space: normal;
    line-height: 1.35;
  }
  .projonmo-switch-confirm-panel .switch-comp-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
  }
  .projonmo-switch-confirm-panel .comp-val {
    text-align: left;
  }
}

/* ==========================================================================
   PRODUCT-LEVEL POCKET BOOK FORMAT PRESENTATION (CSS-Only Visual Scaling)
   ========================================================================== */

/* 1. Single Product Gallery: ~80% visual cover scale, centered, compact stage height */
.bookrivo-single-product-page .gallery.is-pocket-gallery {
  min-height: 380px;
  padding: 28px 24px 22px;
}

.bookrivo-single-product-page .gallery .book.format-pocket,
.bookrivo-single-product-page .gallery .book.binding-pocket {
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

.bookrivo-single-product-page .gallery .book.format-pocket .book-cover-img,
.bookrivo-single-product-page .gallery .book.binding-pocket .book-cover-img {
  max-width: 100%;
  max-height: 304px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Single Product Kicker Badge ("পকেট সংস্করণ") */
.bookrivo-single-product-page .pdp-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.bookrivo-single-product-page .kicker-chip.pocket-edition-chip {
  background: #f6efe2;
  color: #7c5620;
  border: 1px solid #e2d1b3;
  font-weight: 700;
}

/* 2. Product Cards: Slightly smaller cover (~80% scale) across Shop, Categories,
      Homepage, Related Products, Cross-sells, and FBT while preserving card grid alignment */
.book-card.is-pocket-book .book-art img,
.bookrivo-book-card.is-pocket-book .bookrivo-cover-image {
  max-width: 66%;
  max-height: 173px;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Subtle "পকেট সংস্করণ" Badge on Product Card Cover Stage */
.bookrivo-cover-stage .bookrivo-pocket-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #6e4b1b;
  background: rgba(251, 246, 236, 0.94);
  border: 1px solid rgba(212, 187, 145, 0.85);
  border-radius: 999px;
  box-shadow: 0 2px 5px rgba(20, 35, 27, 0.06);
  pointer-events: none;
  letter-spacing: 0.01em;
}

/* FBT Companion Cards & Cross-Sell Cards */
.bookrivo-single-product-page .pick.is-pocket-book .fbt-cover-container .fbt-cover-img {
  max-width: 80%;
  max-height: 80%;
  width: auto;
  height: auto;
  object-fit: contain;
}

.is-pocket-book .wc-block-components-product-image img {
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive Breakpoints for Pocket Book Presentation */
@media (max-width: 1050px) {
  .book-card.is-pocket-book .book-art img,
  .bookrivo-book-card.is-pocket-book .bookrivo-cover-image {
    max-width: 66%;
    max-height: 153px;
    height: auto;
  }
}

@media (max-width: 850px) {
  .bookrivo-single-product-page .gallery.is-pocket-gallery {
    min-height: 300px;
    padding: 24px 18px 20px;
  }
}

@media (max-width: 768px) {
  .book-card.is-pocket-book .book-art img,
  .bookrivo-book-card.is-pocket-book .bookrivo-cover-image {
    max-width: 68% !important;
    max-height: 140px !important;
    width: auto !important;
    height: auto !important;
  }

  .bookrivo-cover-stage .bookrivo-pocket-badge {
    top: 6px;
    right: 6px;
    padding: 2px 6px;
    font-size: 9.5px;
  }
}

@media (max-width: 560px) {
  .bookrivo-single-product-page .gallery.is-pocket-gallery {
    min-height: auto;
    padding: 18px 14px 16px;
  }

  .bookrivo-single-product-page .gallery .book.format-pocket,
  .bookrivo-single-product-page .gallery .book.binding-pocket {
    max-height: 224px;
    max-width: 192px;
  }

  .bookrivo-single-product-page .gallery .book.format-pocket .book-cover-img,
  .bookrivo-single-product-page .gallery .book.binding-pocket .book-cover-img {
    max-height: 224px;
    max-width: 192px;
  }
}

@media (max-width: 380px) {
  .book-card.is-pocket-book .bookrivo-cover-wrapper {
    max-height: 120px !important;
  }

  .book-card.is-pocket-book .book-art img,
  .bookrivo-book-card.is-pocket-book .bookrivo-cover-image {
    max-width: 68% !important;
    max-height: 120px !important;
  }
}

@media (max-width: 320px) {
  .book-card.is-pocket-book .book-art img,
  .bookrivo-book-card.is-pocket-book .bookrivo-cover-image {
    max-width: 68% !important;
    max-height: 112px !important;
  }
}

/* ==========================================================================
   Ebook-Only Product Cards & Single Product Page (Projonmo External Retailer Model)
   ========================================================================== */

/* 1. Product Card "ই-বুক" Badge & "বিস্তারিত দেখুন" CTA */
.bookrivo-cover-stage .bookrivo-ebook-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #164435;
  background: rgba(235, 245, 240, 0.96);
  border: 1px solid rgba(152, 196, 174, 0.9);
  border-radius: 999px;
  box-shadow: 0 2px 5px rgba(20, 35, 27, 0.06);
  pointer-events: none;
  letter-spacing: 0.01em;
}

.bookrivo-card-actions .bookrivo-btn-ebook-details {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
  text-decoration: none !important;
}

/* 2. Single Product Page Gallery Badge & Kicker Chip ("ই-বুক") */
.bookrivo-single-product-page .gallery .badge.ebook-gallery-badge {
  background: #173d2d;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
}

.bookrivo-single-product-page .info .kicker-chip.ebook-kicker-chip {
  background: #eaf4ef;
  border: 1px solid #bcd8c8;
  color: #154533;
  font-weight: 700;
}

.bookrivo-single-product-page .info .kicker-chip.ebook-kicker-chip:hover {
  background: #dcece3;
  border-color: #9dc5ae;
  color: #0f3325;
}

/* 3. Ebook-Only Notice ("ডিজিটাল সংস্করণ — হার্ডকপি নেই") & Direct Retailer Buttons */
.bookrivo-single-product-page .info .pdp-ebook-purchase-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 20px;
}

.bookrivo-single-product-page .info .pdp-ebook-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 16px;
  background: #f5f9f6;
  border: 1px solid #cfe0d5;
  border-left: 4px solid #173d2d;
  border-radius: 10px;
}

.bookrivo-single-product-page .info .pdp-ebook-notice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #e4efe8;
  color: #173d2d;
  flex-shrink: 0;
  margin-top: 1px;
}

.bookrivo-single-product-page .info .pdp-ebook-notice-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.bookrivo-single-product-page .info .pdp-ebook-notice-text strong {
  font-size: 14.5px;
  font-weight: 700;
  color: #143628;
  line-height: 1.35;
}

.bookrivo-single-product-page .info .pdp-ebook-notice-text span {
  font-size: 13px;
  color: #4c6155;
  line-height: 1.5;
}

.bookrivo-single-product-page .info .pdp-ebook-retailer-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  width: 100%;
}

.bookrivo-single-product-page .info .pdp-ebook-retailer-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 18px;
  border-radius: 10px;
  font-family: var(--bookrivo-font-body);
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none !important;
  text-align: center;
  box-sizing: border-box;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease, border-color 0.16s ease;
}

.bookrivo-single-product-page .info .pdp-ebook-btn-rokomari {
  background: #173d2d;
  color: #ffffff !important;
  border: 1.5px solid #173d2d;
  box-shadow: 0 3px 10px rgba(23, 61, 45, 0.14);
}

.bookrivo-single-product-page .info .pdp-ebook-btn-rokomari:hover {
  background: #1f503b;
  border-color: #1f503b;
  color: #ffffff !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(23, 61, 45, 0.2);
}

.bookrivo-single-product-page .info .pdp-ebook-btn-boitoi {
  background: #ffffff;
  color: #173d2d !important;
  border: 1.5px solid #173d2d;
  box-shadow: 0 2px 6px rgba(23, 61, 45, 0.06);
}

.bookrivo-single-product-page .info .pdp-ebook-btn-boitoi:hover {
  background: #f0f6f2;
  border-color: #123124;
  color: #123124 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(23, 61, 45, 0.11);
}

.bookrivo-single-product-page .info .pdp-ebook-btn-arrow {
  font-size: 14px;
  line-height: 1;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .bookrivo-cover-stage .bookrivo-ebook-card-badge {
    top: 6px;
    right: 6px;
    padding: 2px 6px;
    font-size: 9.5px;
  }

  .bookrivo-single-product-page .info .pdp-ebook-retailer-actions {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .bookrivo-single-product-page .info .pdp-ebook-retailer-btn {
    width: 100%;
    font-size: 14px;
    padding: 11px 14px;
  }
}

@media (max-width: 380px) {
  .bookrivo-single-product-page .info .pdp-ebook-notice {
    padding: 11px 12px;
    gap: 10px;
  }

  .bookrivo-single-product-page .info .pdp-ebook-notice-text strong {
    font-size: 13.5px;
  }

  .bookrivo-single-product-page .info .pdp-ebook-notice-text span {
    font-size: 12px;
  }
}

/* ==========================================================================
   Bengali Typography QA - Global Heading and LP Font Enforcement
   ========================================================================== */
.bookrivo-multibook-lp h1,
.bookrivo-multibook-lp h2,
.bookrivo-multibook-lp h3,
.bookrivo-multibook-lp h4,
.bookrivo-multibook-lp h5,
.bookrivo-multibook-lp h6,
.bookrivo-multibook-lp .section h2,
.bookrivo-multibook-lp .sectop h2,
.bookrivo-multibook-lp .clp-hero-main-title,
.bookrivo-multibook-lp .clp-checkout-title,
.bookrivo-multibook-lp .clp-why-rationale-card h2,
.bookrivo-packages-page .pkg-hero-title,
.bookrivo-packages-page .collection-title,
.bookrivo-packcard .packcard-title,
.bookrivo-single-product-page .info h1,
.bookrivo-single-product-page .section h2 {
  font-family: var(--bookrivo-font-heading, 'Noto Sans Bengali', sans-serif);
}

/* ==========================================================================
   Projonmo Out of Stock Notification System
   Badges, Product Card CTAs, Single Product Page Integration & Accessible Modal
   ========================================================================== */

/* 1. Out of Stock Badge on Product Card Cover Stage */
.bookrivo-cover-stage .bookrivo-stock-badge.out-of-stock {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  padding: 2.5px 8.5px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #822222;
  background: rgba(254, 242, 242, 0.96);
  border: 1px solid rgba(248, 113, 113, 0.45);
  border-radius: 999px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.04);
  pointer-events: none;
  letter-spacing: 0.02em;
}

@media (max-width: 768px) {
  .bookrivo-cover-stage .bookrivo-stock-badge.out-of-stock {
    top: 6px;
    right: 6px;
    padding: 2px 7px;
    font-size: 9.5px;
  }
}

/* 2. Product Card Notification Button */
.book-actions .button.projonmo-stock-alert-btn,
.bookrivo-card-actions .button.projonmo-stock-alert-btn {
  background: #ffffff !important;
  color: #12372D !important;
  border: 1.5px solid #12372D !important;
  box-shadow: none !important;
  font-weight: 700 !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  text-align: center !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.book-actions .button.projonmo-stock-alert-btn:hover,
.bookrivo-card-actions .button.projonmo-stock-alert-btn:hover {
  background: #12372D !important;
  color: #ffffff !important;
  border-color: #12372D !important;
  box-shadow: 0 4px 12px rgba(18, 55, 45, 0.15) !important;
}

/* 3. Single Product Page Purchase Area & Sticky Buy Bar */
.bookrivo-single-product-page .info .purchase.bookrivo-pdp-notify-purchase {
  display: flex;
  width: 100%;
  margin: 18px 0 14px 0;
}

.bookrivo-single-product-page .info .purchase.bookrivo-pdp-notify-purchase .single_add_to_cart_button.projonmo-stock-alert-btn {
  width: 100%;
  height: 48px;
  background: #12372D;
  color: #ffffff;
  border: none;
  border-radius: 9px;
  font-size: 15.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(18, 55, 45, 0.2);
}

.bookrivo-single-product-page .info .purchase.bookrivo-pdp-notify-purchase .single_add_to_cart_button.projonmo-stock-alert-btn:hover {
  background: #1b4d40;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(18, 55, 45, 0.28);
}

.bookrivo-single-product-page .sticky-buy-btn.projonmo-stock-alert-btn {
  background: #12372D !important;
  color: #ffffff !important;
  cursor: pointer !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  border: none !important;
}

/* 4. Projonmo Back in Stock Subscription Modal */
.projonmo-stock-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.projonmo-stock-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(18, 35, 27, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.projonmo-stock-dialog {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 440px;
  border-radius: 14px;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.22);
  padding: 26px 24px 22px;
  box-sizing: border-box;
  z-index: 2;
  animation: projonmoModalIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes projonmoModalIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.projonmo-stock-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f1f4f2;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #4a5d55;
  transition: all 0.15s ease;
}

.projonmo-stock-close:hover {
  background: #e2e8e5;
  color: #12372D;
}

.stock-modal-icon-badge {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #edf5f1;
  color: #12372D;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.projonmo-stock-title {
  font-size: 19px;
  font-weight: 700;
  color: #12372D;
  margin: 0 0 5px 0;
}

.projonmo-stock-product-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #8c6a28;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.projonmo-stock-desc {
  font-size: 12.5px;
  color: #555555;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.projonmo-stock-form .form-group {
  margin-bottom: 13px;
}

.projonmo-stock-form .form-group label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: #2b3933;
  margin-bottom: 4px;
}

.projonmo-stock-form .form-group label .optional {
  font-weight: 400;
  color: #888888;
  font-size: 11.5px;
}

.projonmo-stock-form .form-group label .required-note {
  color: #b91c1c;
}

.projonmo-stock-form .stock-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid #d5ded9;
  border-radius: 8px;
  font-size: 13.5px;
  box-sizing: border-box;
  transition: border-color 0.15s ease;
  font-family: inherit;
}

.projonmo-stock-form .stock-input:focus {
  border-color: #12372D;
  outline: none;
  box-shadow: 0 0 0 3px rgba(18, 55, 45, 0.1);
}

.contact-or-hint {
  font-size: 11.5px;
  color: #66756e;
  margin: -4px 0 12px 0;
  line-height: 1.35;
}

.consent-notice {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  background: #fbfbf9;
  border: 1px solid #ede8de;
  padding: 8px 11px;
  border-radius: 7px;
  font-size: 11px;
  color: #6a6f6c;
  line-height: 1.45;
  margin-bottom: 14px;
}

.consent-notice svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #8c6a28;
}

.stock-submit-btn {
  width: 100%;
  height: 44px;
  background: #12372D;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.stock-submit-btn:hover {
  background: #1b4d40;
}

.stock-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.projonmo-stock-feedback {
  padding: 10px 13px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1.45;
  margin-bottom: 13px;
}

.projonmo-stock-feedback.is-error {
  background: #fef2f2;
  border: 1px solid #f87171;
  color: #991b1b;
}

.projonmo-stock-feedback.is-success {
  background: #f0fdf4;
  border: 1px solid #4ade80;
  color: #166534;
}

body.projonmo-modal-open {
  overflow: hidden;
}

