/*
HeavyDutyPR Growth Engine
Version: 2.3.3
Purpose: Review article layout, homepage hub styling, product review styling, comparison tables, affiliate buttons, TOC, sidebar widgets, and mobile table handling.
*/

/* Main article readability */
.entry-content-single {
  font-size: 17px;
  line-height: 1.75;
}

.entry-content-single > p:first-of-type {
  font-size: 18px;
  line-height: 1.8;
  color: #243447;
}

/* Hero image */
.entry-image-single img {
  border-radius: 18px;
  box-shadow: 0 12px 34px rgba(5, 40, 71, 0.12);
}

/* Table of contents */
#ez-toc-container {
  border: 1px solid #dbe3ea !important;
  border-radius: 16px;
  padding: 20px 22px !important;
  margin: 30px 0;
  background: #f7f9fb !important;
  box-shadow: 0 8px 22px rgba(5, 40, 71, 0.06);
}

#ez-toc-container .ez-toc-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #052847;
}

#ez-toc-container a {
  color: #084378;
  text-decoration: none;
}

#ez-toc-container a:hover {
  text-decoration: underline;
}

/* Section headings */
.entry-content-single h2 {
  margin-top: 56px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 2px solid #e6edf3;
  font-size: 32px;
  line-height: 1.25;
  color: #052847;
}

.entry-content-single h3 {
  margin-top: 46px;
  margin-bottom: 18px;
  padding: 18px 20px;
  border-left: 6px solid #052847;
  border-radius: 12px;
  background: #f7f9fb;
  font-size: 25px;
  line-height: 1.3;
  color: #052847;
}

.entry-content-single h4 {
  margin-top: 28px;
  margin-bottom: 12px;
  font-size: 20px;
  color: #052847;
}

/* Product images */
.entry-content-single .wp-block-image {
  margin: 22px 0 14px;
}

.entry-content-single .wp-block-image img {
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
}

/* Amazon button */
.entry-content-single .no-margin {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 24px;
}

.amz-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: min(100%, 320px);
  min-height: 48px;
  height: auto !important;
  padding: 12px 24px !important;
  border-radius: 999px !important;
  background: #052847 !important;
  border: 1px solid #052847 !important;
  color: #ffffff !important;
  font-size: 16px;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  white-space: nowrap;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(5, 40, 71, 0.18);
  transition: all 0.2s ease;
  margin: 14px auto 24px auto;
}

.amz-button:hover {
  background: #084378 !important;
  border-color: #084378 !important;
  color: #ffffff !important;
  opacity: 1 !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(5, 40, 71, 0.22);
  text-decoration: none !important;
}

@media (max-width: 768px) {
  .amz-button {
    width: min(100%, 290px);
    font-size: 15px;
    padding: 12px 18px !important;
  }
}

/* Lists inside product reviews */
.entry-content-single ul.wp-block-list {
  padding-left: 0;
  list-style: none;
}

.entry-content-single ul.wp-block-list li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 26px;
}

.entry-content-single ul.wp-block-list li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #052847;
}

/* Comparison tables */
.entry-content-single .wp-block-table {
  margin: 26px 0 36px;
  border-radius: 16px;
  overflow-x: auto;
  box-shadow: 0 8px 24px rgba(5, 40, 71, 0.08);
}

.entry-content-single .wp-block-table table {
  border-collapse: separate;
  border-spacing: 0;
  background: #ffffff;
}

.entry-content-single .wp-block-table th {
  background: #052847;
  color: #ffffff;
  font-weight: 700;
  border-color: #052847 !important;
}

.entry-content-single .wp-block-table td,
.entry-content-single .wp-block-table th {
  padding: 14px 16px !important;
  border-color: #e6edf3 !important;
  vertical-align: top;
}

.entry-content-single .wp-block-table tbody tr:nth-child(even) {
  background: #f7f9fb;
}

/* Affiliate disclosure / after entry */
.after-entry blockquote {
  border-left: 5px solid #052847;
  border-radius: 14px;
  background: #f7f9fb;
  padding: 18px 22px;
  color: #243447;
}

/* Author box */
.author-box {
  border: 1px solid #e6edf3;
  border-radius: 18px;
  padding: 24px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(5, 40, 71, 0.06);
}

/* Sidebar widgets */
.sidebar .widget {
  border: 1px solid #e6edf3;
  border-radius: 16px;
  padding: 20px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(5, 40, 71, 0.05);
}

.sidebar .widget-title {
  color: #052847;
  font-size: 20px;
}

/* Quick Recommendations styling - no post editing required.
   This targets the common structure: H2 Quick Recommendations > H3 > product paragraph > description paragraph.
   Supports up to 8 recommendation cards. */
.entry-content-single h2:has(.ez-toc-section#Quick_Recommendations) {
  margin-top: 52px;
  margin-bottom: 22px;
}

.entry-content-single h2:has(.ez-toc-section#Quick_Recommendations) + h3,
.entry-content-single h2:has(.ez-toc-section#Quick_Recommendations) + h3 + p + p + h3,
.entry-content-single h2:has(.ez-toc-section#Quick_Recommendations) + h3 + p + p + h3 + p + p + h3,
.entry-content-single h2:has(.ez-toc-section#Quick_Recommendations) + h3 + p + p + h3 + p + p + h3 + p + p + h3,
.entry-content-single h2:has(.ez-toc-section#Quick_Recommendations) + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3,
.entry-content-single h2:has(.ez-toc-section#Quick_Recommendations) + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3,
.entry-content-single h2:has(.ez-toc-section#Quick_Recommendations) + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3,
.entry-content-single h2:has(.ez-toc-section#Quick_Recommendations) + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 {
  padding: 16px 18px;
  border-left: 0;
  border-radius: 14px 14px 0 0;
  background: #052847;
  color: #ffffff;
  margin-top: 22px;
  margin-bottom: 0;
  font-size: 20px;
}

.entry-content-single h2:has(.ez-toc-section#Quick_Recommendations) + h3 + p,
.entry-content-single h2:has(.ez-toc-section#Quick_Recommendations) + h3 + p + p + h3 + p,
.entry-content-single h2:has(.ez-toc-section#Quick_Recommendations) + h3 + p + p + h3 + p + p + h3 + p,
.entry-content-single h2:has(.ez-toc-section#Quick_Recommendations) + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p,
.entry-content-single h2:has(.ez-toc-section#Quick_Recommendations) + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p,
.entry-content-single h2:has(.ez-toc-section#Quick_Recommendations) + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p,
.entry-content-single h2:has(.ez-toc-section#Quick_Recommendations) + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p,
.entry-content-single h2:has(.ez-toc-section#Quick_Recommendations) + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p {
  margin: 0;
  padding: 18px 20px 8px;
  border-left: 1px solid #e6edf3;
  border-right: 1px solid #e6edf3;
  background: #ffffff;
  font-weight: 700;
  color: #052847;
}

.entry-content-single h2:has(.ez-toc-section#Quick_Recommendations) + h3 + p + p,
.entry-content-single h2:has(.ez-toc-section#Quick_Recommendations) + h3 + p + p + h3 + p + p,
.entry-content-single h2:has(.ez-toc-section#Quick_Recommendations) + h3 + p + p + h3 + p + p + h3 + p + p,
.entry-content-single h2:has(.ez-toc-section#Quick_Recommendations) + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p,
.entry-content-single h2:has(.ez-toc-section#Quick_Recommendations) + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p,
.entry-content-single h2:has(.ez-toc-section#Quick_Recommendations) + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p,
.entry-content-single h2:has(.ez-toc-section#Quick_Recommendations) + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p,
.entry-content-single h2:has(.ez-toc-section#Quick_Recommendations) + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p + h3 + p + p {
  margin-top: 0;
  margin-bottom: 22px;
  padding: 0 20px 18px;
  border-left: 1px solid #e6edf3;
  border-right: 1px solid #e6edf3;
  border-bottom: 1px solid #e6edf3;
  border-radius: 0 0 14px 14px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(5, 40, 71, 0.06);
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .entry-content-single {
    font-size: 16px;
  }

  .entry-content-single h2 {
    font-size: 27px;
  }

  .entry-content-single h3 {
    font-size: 22px;
    padding: 16px;
  }

  .amz-button {
    width: 100%;
  }

  .entry-content-single .wp-block-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    border-radius: 16px;
  }

  .entry-content-single .wp-block-table::before {
    content: "Swipe left to view full comparison table";
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #5b6775;
    font-weight: 600;
  }

  .entry-content-single .wp-block-table table {
    min-width: 760px;
    width: 760px;
    table-layout: auto !important;
  }

  .entry-content-single .wp-block-table table.has-fixed-layout {
    table-layout: auto !important;
  }

  .entry-content-single .wp-block-table th,
  .entry-content-single .wp-block-table td {
    white-space: normal;
    word-break: normal !important;
    overflow-wrap: normal !important;
    hyphens: none;
    font-size: 15px;
    line-height: 1.45;
  }

  .entry-content-single .wp-block-table th {
    white-space: nowrap;
  }

  .entry-content-single .wp-block-table td:first-child,
  .entry-content-single .wp-block-table th:first-child {
    min-width: 180px;
  }
}

/* Slim affiliate disclosure inserted by plugin */
.hdpr-affiliate-note {
  margin: 16px 0 22px;
  padding: 10px 14px;
  border: 1px solid #e3ebf2;
  border-left: 4px solid #052847;
  border-radius: 10px;
  background: #f8fafc;
  color: #324150;
  font-size: 13.5px;
  line-height: 1.5;
  box-shadow: none;
}

.hdpr-affiliate-note strong {
  color: #052847;
  font-weight: 800;
}



/* Hide older theme/hook disclosure block when Growth Engine top disclosure is active */
body.hdpr-has-growth-disclosure .after-entry {
  display: none !important;
}

/* HeavyDutyPR Homepage Hub Styling */
body.home .sidebar,
body.home .after-entry,
body.home .adjacent-entry-pagination,
body.home .author-box {
  display: none !important;
}

body.home .content-sidebar-wrap {
  display: block;
  max-width: 1180px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 28px;
  padding-right: 28px;
}

body.home .content,
body.home .content.has-content-sidebar,
body.home .entry,
body.home .entry-wrap-single,
body.home .entry-content-single {
  width: 100% !important;
  max-width: 100% !important;
}

body.home #h-welcome-to-heavy-duty-pr {
  max-width: 820px;
  margin-top: 0;
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #052847;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

body.home .entry-content-single > p {
  max-width: 820px;
  font-size: 18px;
  line-height: 1.75;
  color: #2f3c4a;
}

body.home .entry-content-single > h2:not(#h-welcome-to-heavy-duty-pr) {
  margin-top: 62px;
  margin-bottom: 22px;
  padding: 0 0 14px;
  border-bottom: 2px solid #e6edf3;
  color: #052847;
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.18;
  letter-spacing: -0.03em;
}

body.home .entry-content-single > ul.wp-block-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-left: 0;
  margin: 24px 0 42px;
  list-style: none;
}

body.home .entry-content-single > ul.wp-block-list li {
  position: relative;
  padding: 18px 18px 18px 44px;
  border: 1px solid #e6edf3;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(5, 40, 71, 0.05);
}

body.home .entry-content-single > ul.wp-block-list li::before {
  content: "";
  position: absolute;
  top: 24px;
  left: 20px;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #052847;
}

body.home .mai-grid.entries-grid {
  margin-bottom: 48px;
}

body.home .mai-grid.entries-grid .entries-wrap {
  gap: 22px !important;
}

body.home .mai-grid.entries-grid .entry-grid {
  height: 100%;
}

body.home .mai-grid.entries-grid .entry-wrap-grid {
  position: relative;
  height: 100%;
  min-height: 190px;
  padding: 26px 24px;
  border: 1px solid #e3eaf1;
  border-left: 6px solid #052847;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 10px 28px rgba(5, 40, 71, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

body.home .mai-grid.entries-grid .entry-grid:hover .entry-wrap-grid {
  transform: translateY(-4px);
  border-color: #cdd9e5;
  box-shadow: 0 16px 34px rgba(5, 40, 71, 0.12);
}

body.home .mai-grid.entries-grid .entry-title {
  margin: 0 !important;
  padding: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 19px;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

body.home .mai-grid.entries-grid .entry-title-link {
  display: block;
  color: #052847;
  text-decoration: none;
}

body.home .mai-grid.entries-grid .entry-title-link:hover {
  color: #084378;
  text-decoration: none;
}

body.home .mai-grid.entries-grid .entry-title-link::before {
  content: "Buying Guide";
  display: block;
  width: fit-content;
  margin-bottom: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #edf3f8;
  color: #052847;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body.home .mai-grid.entries-grid .entry-title-link::after {
  content: "Read guide →";
  display: block;
  margin-top: 22px;
  color: #084378;
  font-size: 14px;
  font-weight: 800;
}

@media (max-width: 768px) {
  body.home .content-sidebar-wrap {
    padding-left: 18px;
    padding-right: 18px;
  }

  body.home .entry-content-single > ul.wp-block-list {
    grid-template-columns: 1fr;
  }

  body.home .mai-grid.entries-grid .entry-wrap-grid {
    min-height: auto;
    padding: 22px 20px;
  }

  body.home .mai-grid.entries-grid .entry-title {
    font-size: 17px;
  }
}

/* HeavyDutyPR Growth Engine - Smart Internal Linking */
.hdpr-smart-link-box {
  margin: 44px 0 38px;
  padding: 24px 24px 26px;
  border: 1px solid #dfe8f0;
  border-left: 6px solid #052847;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 12px 30px rgba(5, 40, 71, 0.08);
  color: #243447;
}

.entry-content-single .hdpr-smart-link-box .hdpr-box-eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #edf3f8;
  color: #052847;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.entry-content-single .hdpr-smart-link-box .hdpr-box-title {
  margin: 0 0 12px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #052847;
  font-size: clamp(24px, 3vw, 30px);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.entry-content-single .hdpr-smart-link-box .hdpr-box-text {
  margin: 0 0 18px;
  max-width: 820px;
  color: #3a4654;
  font-size: 16px;
  line-height: 1.65;
}

.hdpr-smart-link-box a {
  color: #084378;
  font-weight: 700;
  text-decoration: none;
}

.hdpr-smart-link-box a:hover {
  text-decoration: underline;
}

.entry-content-single .hdpr-related-list,
.entry-content-single .hdpr-hub-guide-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
  padding-left: 0;
  list-style: none;
}

.entry-content-single .hdpr-hub-guide-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.entry-content-single .hdpr-related-list li,
.entry-content-single .hdpr-hub-guide-list li {
  position: relative;
  margin: 0;
  padding: 14px 16px 14px 38px;
  border: 1px solid #e6edf3;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(5, 40, 71, 0.04);
}

.entry-content-single .hdpr-related-list li::before,
.entry-content-single .hdpr-hub-guide-list li::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 17px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #052847;
}

.hdpr-box-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 999px;
  background: #052847;
  color: #ffffff !important;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(5, 40, 71, 0.16);
  transition: all 0.2s ease;
}

.hdpr-box-button:hover {
  background: #084378;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(5, 40, 71, 0.22);
}

@media (max-width: 768px) {
  .hdpr-smart-link-box {
    margin: 34px 0 30px;
    padding: 22px 18px;
  }

  .entry-content-single .hdpr-hub-guide-list {
    grid-template-columns: 1fr;
  }

  .hdpr-box-button {
    width: 100%;
  }
}

/* AI Answer Blocks - compact visible reader-friendly summaries generated after admin analysis */
.hdpr-ai-answer-box {
  margin: 24px 0 32px;
  padding: 20px 24px;
  border: 1px solid #dce7f1;
  border-left: 5px solid #052847;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  box-shadow: 0 8px 22px rgba(5, 40, 71, 0.06);
}

.hdpr-ai-answer-box .hdpr-box-eyebrow,
.hdpr-ai-checklist-box .hdpr-box-eyebrow {
  margin: 0 0 8px;
  color: #052847;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hdpr-ai-answer-section + .hdpr-ai-answer-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid #e4edf5;
}

.entry-content-single .hdpr-ai-answer-box h2,
.entry-content-single .hdpr-ai-checklist-box h2 {
  margin: 0 0 10px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #052847 !important;
  font-size: 20px !important;
  line-height: 1.25 !important;
  letter-spacing: -0.015em;
}

.hdpr-ai-answer-box p {
  margin: 0;
  color: #2f3c4a;
  font-size: 16px;
  line-height: 1.65;
}

/* AI checklist is intentionally placed lower near the buying guide, not inside the top summary. */
.hdpr-ai-checklist-box {
  margin: 36px 0 34px;
  padding: 22px 24px;
  border: 1px solid #dce7f1;
  border-left: 5px solid #052847;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(5, 40, 71, 0.05);
}

.hdpr-ai-checklist-box ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 0;
  padding-left: 20px;
}

.hdpr-ai-checklist-box li {
  margin: 0;
  color: #2f3c4a;
  font-size: 15px;
  line-height: 1.45;
}

@media (max-width: 768px) {
  .hdpr-ai-answer-box,
  .hdpr-ai-checklist-box {
    padding: 18px;
    border-radius: 16px;
  }

  .hdpr-ai-answer-box p {
    font-size: 16px;
  }

  .hdpr-ai-checklist-box ul {
    grid-template-columns: 1fr;
  }
}

/* Smart Product CTA List - compact conversion box using existing Amazon links */
.hdpr-product-cta-box {
  margin: 24px 0 34px;
  padding: 22px 24px;
  border: 1px solid #dce7f1;
  border-left: 5px solid #052847;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbfd 100%);
  box-shadow: 0 10px 26px rgba(5, 40, 71, 0.07);
}

.hdpr-product-cta-eyebrow {
  margin: 0 0 8px !important;
  color: #052847;
  font-size: 11px !important;
  line-height: 1.2 !important;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.entry-content-single .hdpr-product-cta-box h2 {
  margin: 0 0 8px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #052847 !important;
  font-size: 24px !important;
  line-height: 1.18 !important;
  letter-spacing: -0.025em;
  box-shadow: none !important;
}

.hdpr-product-cta-intro {
  max-width: 760px;
  margin: 0 0 18px !important;
  color: #4d5b68;
  font-size: 15.5px !important;
  line-height: 1.6 !important;
}

.entry-content-single .hdpr-product-cta-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.entry-content-single .hdpr-product-cta-list li::marker {
  content: "";
}

.hdpr-product-cta-item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  min-height: 160px;
  margin: 0 !important;
  padding: 16px;
  border: 1px solid #e2ebf3;
  border-radius: 15px;
  background: #ffffff;
}

.hdpr-product-cta-copy {
  min-width: 0;
}

.hdpr-product-cta-rank {
  display: inline-block;
  margin-bottom: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #edf3f8;
  color: #052847;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hdpr-product-cta-copy strong {
  display: block;
  color: #052847;
  font-size: 16.5px;
  line-height: 1.35;
}

.hdpr-product-cta-note {
  display: block;
  margin-top: 7px;
  color: #52606d;
  font-size: 14px;
  line-height: 1.45;
}

.hdpr-product-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 132px;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #052847;
  color: #ffffff !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none !important;
  box-shadow: 0 8px 18px rgba(5, 40, 71, 0.16);
  transition: all 0.2s ease;
}

.hdpr-product-cta-button:hover {
  background: #084378;
  color: #ffffff !important;
  text-decoration: none !important;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(5, 40, 71, 0.22);
}

@media (max-width: 768px) {
  .hdpr-product-cta-box {
    padding: 18px;
    border-radius: 16px;
  }

  .entry-content-single .hdpr-product-cta-list {
    grid-template-columns: 1fr;
  }

  .hdpr-product-cta-item {
    min-height: auto;
    gap: 12px;
    padding: 15px;
  }

  .hdpr-product-cta-button {
    width: 100%;
  }
}

/* v2.3.3 AI-guided product shortlist with existing product images */
.hdpr-product-cta-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  grid-template-rows: auto auto;
  gap: 12px 14px;
  align-items: start;
  min-height: 0;
}

.hdpr-product-cta-media {
  grid-row: 1 / span 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 13px;
  background: #f5f8fb;
  overflow: hidden;
  text-decoration: none !important;
}

.hdpr-product-cta-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #ffffff;
}

.hdpr-product-cta-button {
  grid-column: 2;
}

@media (max-width: 768px) {
  .hdpr-product-cta-item {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 11px 12px;
  }

  .hdpr-product-cta-media {
    width: 82px;
    height: 82px;
  }

  .hdpr-product-cta-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.hdpr-product-cta-item.hdpr-product-cta-no-image {
  grid-template-columns: 1fr;
}

.hdpr-product-cta-item.hdpr-product-cta-no-image .hdpr-product-cta-button {
  grid-column: 1;
}
