:root {
  --acpt-red: #c91535;
  --acpt-red-dark: #9f102b;
  --acpt-black: #111111;
  --acpt-muted: #666666;
  --acpt-line: #eeeeee;
  --acpt-shadow: 0 6px 22px rgba(0, 0, 0, 0.07);
}

.ac-no-autolink,
.ac-no-autolink * {
  box-sizing: border-box;
}

.ac-rec-section {
  margin: 40px 0;
}

.ac-rec-header {
  text-align: center;
  margin-bottom: 22px;
}

.ac-rec-header h2 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: #111111;
}

.ac-rec-header p {
  margin: 0;
  font-size: 13px;
  color: #777777;
}

.ac-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin: 0 5%;
}

.ac-product-card {
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ac-product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 9px 26px rgba(0, 0, 0, 0.11);
}

.ac-product-img-link {
  display: block;
  text-decoration: none;
}

.ac-product-img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  padding: 14px;
  background: #ffffff;
  display: block;
}

.ac-product-content {
  padding: 0 16px 16px;
}

.ac-product-body {
  padding: 0 16px 18px;
}

.ac-product-category {
  display: block;
  margin-bottom: 8px;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #c91535;
}

.ac-product-title {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 700;
}

.ac-product-title a {
  color: #111111;
  text-decoration: none;
}

.ac-product-title a:hover {
  color: #c91535;
}

.ac-buy-btn,
.ac-single-buy-btn {
  display: inline-block;
  background: #c91535;
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 13px 20px;
}

.ac-buy-btn:hover,
.ac-single-buy-btn:hover {
  background: #9f102b;
  color: #ffffff !important;
}

.ac-affiliate-note {
  margin: 28px 0 0;
  text-align: center;
  font-size: 12px;
  color: #666666;
}

.ac-single-product {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  align-items: center;
  background: #ffffff;
  border: 1px solid #eeeeee;
  border-radius: 14px;
  padding: 24px;
  margin: 34px 0;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.07);
  font-family: Arial, Helvetica, sans-serif;
  width: 100%;
}

.ac-single-img-wrap {
  text-align: center;
}

.ac-single-img-wrap a {
  display: block;
  text-decoration: none !important;
}

.ac-single-img {
  width: 100%;
  max-width: 300px;
  height: 320px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}

.ac-single-content h2 {
  margin: 8px 0 12px;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  color: #111111;
}

.ac-single-content p {
  font-size: 15px;
  line-height: 1.7;
  color: #333333;
}

.ac-product-points {
  margin: 16px 0;
  padding-left: 20px;
}

.ac-product-points li {
  margin-bottom: 8px;
  font-size: 15px;
  line-height: 1.5;
}

.ac-product-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.ac-product-meta div {
  background: #f7f7f7;
  border-radius: 8px;
  padding: 12px;
}

.ac-product-meta strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  color: #111111;
}

.ac-product-meta span {
  display: block;
  font-size: 13px;
  color: #555555;
}

.ac-rating-box {
  margin: 24px 0 18px;
  padding: 16px;
  background: #f7f7f7;
  border-radius: 10px;
}

.ac-rating-overall {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 9px 0;
  border-bottom: 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 700;
}

.ac-rating-overall span {
  color: #333333;
}

.ac-rating-overall strong {
  display: flex;
  align-items: center;
  color: #111111;
  font-weight: 700;
  white-space: nowrap;
}

.ac-star-rating {
  --rating: 5;
  --star-size: 15px;
  --star-color: #c91535;
  --star-empty: #d9d9d9;
  position: relative;
  display: inline-block;
  font-size: var(--star-size);
  line-height: 1;
  letter-spacing: 1px;
  margin-right: 7px;
  vertical-align: middle;
  white-space: nowrap;
}

.ac-star-rating::before {
  content: "★★★★★";
  color: var(--star-empty);
}

.ac-star-rating::after {
  content: "★★★★★";
  position: absolute;
  left: 0;
  top: 0;
  width: calc((var(--rating) / 5) * 100%);
  overflow: hidden;
  white-space: nowrap;
  color: var(--star-color);
}

.ac-buy-center {
  text-align: center;
  margin: 22px 0 14px;
}

.ac-small-note {
  margin-top: 12px !important;
  text-align: center;
  font-size: 12px !important;
  color: #777777 !important;
}

.ac-single-product .ac-product-points a,
.ac-single-product .ac-product-meta a,
.ac-single-product .ac-rating-box a {
  color: inherit !important;
  text-decoration: none !important;
  pointer-events: none !important;
  cursor: default !important;
}

@media (max-width: 900px) {
  .ac-product-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ac-single-product {
    grid-template-columns: 1fr;
  }

  .ac-single-img {
    height: 280px;
  }
}

@media (max-width: 580px) {
  .ac-rec-header h2 {
    font-size: 22px;
    letter-spacing: 3px;
  }

  .ac-product-grid {
    grid-template-columns: 1fr;
  }

  .ac-product-img {
    height: 220px;
  }

  .ac-single-product {
    padding: 18px;
  }

  .ac-single-content h2 {
    font-size: 22px;
  }

  .ac-product-meta {
    grid-template-columns: 1fr;
  }

  .ac-rating-overall {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .ac-rating-overall strong {
    white-space: normal;
  }
}

/* Existing list, pick list, and card grid templates */
.acpt-no-autolink,
.acpt-no-autolink * {
    box-sizing: border-box;
}

.acpt-kicker {
    margin: 0 0 10px;
    color: var(--acpt-red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.acpt-buy-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
    margin-top: 22px;
    padding: 20px 26px;
    color: #fff !important;
    background: linear-gradient(180deg, #da123a, var(--acpt-red));
    border-radius: 14px;
    box-shadow: 0 14px 28px rgba(207, 15, 51, .22);
    font-size: 18px;
    line-height: 1;
    font-weight: 850;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    letter-spacing: .01em;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}

.acpt-buy-button:hover {
    transform: translateY(-1px);
    background: linear-gradient(180deg, #e21842, var(--acpt-red-dark));
    box-shadow: 0 18px 34px rgba(207, 15, 51, .28);
}

.acpt-buy-button-small {
    display: inline-flex;
    width: auto;
    min-width: 118px;
    margin-top: 0;
    padding: 13px 18px;
    border-radius: 8px;
    font-size: 13px;
}

.acpt-amazon-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: #fff;
    font-family: Georgia, serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    text-transform: lowercase;
}

.acpt-buy-button-small .acpt-amazon-mark {
    display: none;
}

.acpt-disclosure {
    margin: 20px 0 0;
    color: var(--acpt-muted);
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.acpt-list-wrap,
.acpt-card-grid-wrap {
    width: 100%;
    margin: 28px auto;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.acpt-list-table {
    overflow: hidden;
    width: 100%;
    background: #fff;
    border: 1px solid rgba(17, 19, 24, .08);
    border-radius: 18px;
    box-shadow: 0 20px 55px rgba(17, 19, 24, .08);
}

.acpt-list-head,
.acpt-list-row {
    display: grid;
    grid-template-columns: 48px minmax(280px, 2fr) minmax(130px, .8fr) minmax(120px, .65fr) minmax(130px, .8fr) 100px 130px;
    gap: 18px;
    align-items: center;
    padding: 18px 24px;
}

.acpt-list-head {
    color: #3a3030;
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--acpt-line);
}

.acpt-list-row {
    min-height: 128px;
    color: #111318;
    font-size: 16px;
    border-bottom: 1px solid var(--acpt-line);
}

.acpt-list-row:last-child {
    border-bottom: 0;
}

.acpt-rank,
.acpt-price {
    color: var(--acpt-red);
    font-size: 20px;
    font-weight: 850;
}

.acpt-list-product {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 18px;
    align-items: center;
}

.acpt-list-product img {
    width: 84px;
    height: 104px;
    object-fit: contain;
}

.acpt-list-product h4 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.25;
    font-weight: 850;
}

.acpt-muted {
    margin: 0;
    color: var(--acpt-muted);
    font-size: 14px;
}

.acpt-pick-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    color: var(--acpt-red);
    background: #fff0f3;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 850;
    white-space: nowrap;
}

.acpt-list-disclosure {
    margin-top: 18px;
}

.acpt-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.acpt-product-card {
    display: flex;
    flex-direction: column;
    min-height: 310px;
    padding: 18px;
    background: #fff;
    border: 1px solid rgba(17, 19, 24, .08);
    border-radius: 14px;
    box-shadow: 0 18px 42px rgba(17, 19, 24, .07);
}

.acpt-card-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 150px;
    margin-bottom: 14px;
}

.acpt-card-image img {
    max-width: 100%;
    max-height: 150px;
    object-fit: contain;
}

.acpt-product-card h4 {
    flex: 1;
    margin: 0 0 16px;
    color: var(--acpt-black);
    font-size: 18px;
    line-height: 1.35;
    font-weight: 850;
}

@media (max-width: 980px) {
    .acpt-list-head {
        display: none;
    }

    .acpt-list-row {
        grid-template-columns: 44px 1fr;
        gap: 12px;
    }

    .acpt-list-row > div:nth-child(n+3) {
        grid-column: 2;
    }

    .acpt-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .acpt-buy-button {
        padding: 18px 18px;
        font-size: 15px;
    }

    .acpt-list-product {
        grid-template-columns: 70px 1fr;
    }

    .acpt-list-product img {
        width: 70px;
        height: 88px;
    }

    .acpt-card-grid {
        grid-template-columns: 1fr;
    }
}

.acpt-api-warning {
  margin: 24px 0;
  padding: 14px 16px;
  color: #7a3b00;
  background: #fff7e6;
  border: 1px solid #ffd28a;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
}


/* Compact horizontal product card template */
.ac-horizontal-product-card-wrap,
.ac-horizontal-product-card,
.ac-horizontal-product-card *,
.ac-horizontal-product-card a,
.ac-horizontal-product-card h3,
.ac-horizontal-product-card span,
.ac-horizontal-product-card div {
  box-sizing: border-box !important;
  font-family: "Poppins", Arial, sans-serif !important;
}

/* Article content width wrapper */
.ac-horizontal-product-card-wrap {
  width: 100% !important;
  max-width: 760px !important;
  margin: 28px auto !important;
  padding: 0 !important;
}

/* Main product card */
.ac-horizontal-product-card {
  width: 100% !important;
  max-width: 760px !important;
  aspect-ratio: 1073 / 305 !important;
  min-height: 92px !important;

  display: grid !important;
  grid-template-columns: 22% minmax(0, 1fr) minmax(96px, 31%) !important;
  align-items: center !important;
  column-gap: 4% !important;

  padding: 3% !important;
  margin: 28px auto !important;

  color: inherit !important;
  background: transparent !important;

  overflow: hidden !important;
  border: 1px solid rgba(120, 120, 120, 0.42) !important;
  border-radius: 12px !important;
  box-shadow: 0 7px 0px rgba(0, 0, 0, 0.14) !important;
}

/* When wrapper exists, avoid double margin */
.ac-horizontal-product-card-wrap .ac-horizontal-product-card {
  margin: 0 auto !important;
}

/* Product image */
.ac-horizontal-product-card .ac-product-image {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: clamp(8px, 2vw, 22px) !important;
  background: #ffffff !important;
  overflow: hidden !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.ac-horizontal-product-card .ac-product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Product content */
.ac-horizontal-product-card .ac-product-info {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.ac-horizontal-product-card .ac-product-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  background: #ff580b !important;
  color: #ffffff !important;

  font-size: clamp(6px, 1.3vw, 14px) !important;
  font-weight: 700 !important;
  line-height: 1 !important;

  padding: clamp(3px, 0.8vw, 10px) clamp(5px, 1vw, 12px) !important;
  margin: 0 0 clamp(5px, 1.3vw, 17px) 0 !important;

  white-space: nowrap !important;
}

.ac-horizontal-product-card .ac-product-title {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;

  color: inherit !important;
  font-size: clamp(15px, 3vw, 29px) !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em !important;

  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.ac-horizontal-product-card .ac-product-stars {
  margin: clamp(5px, 1.2vw, 14px) 0 0 0 !important;
  padding: 0 !important;

  color: #f65a00 !important;
  font-size: clamp(13px, 2.8vw, 30px) !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: clamp(1px, 0.25vw, 3px) !important;

  white-space: nowrap !important;
}

.ac-horizontal-product-card .ac-product-price {
  margin: clamp(5px, 1.2vw, 13px) 0 0 0 !important;
  padding: 0 !important;

  color: inherit !important;
  font-size: clamp(16px, 3vw, 31px) !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: -0.04em !important;

  white-space: nowrap !important;
}

/* Amazon button */
.ac-horizontal-product-card .ac-product-action {
  width: 100% !important;
  min-width: 0 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  overflow: hidden !important;
}

.ac-horizontal-product-card .ac-amazon-btn {
  width: 100% !important;
  max-width: 289px !important;
  min-width: 0 !important;

  height: clamp(34px, 5.4vw, 57px) !important;
  border-radius: clamp(6px, 1vw, 11px) !important;

  background: #ff9800 !important;
  color: #111111 !important;

  text-decoration: none !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;

  font-size: clamp(9px, 2.2vw, 24px) !important;
  font-weight: 500 !important;
  line-height: 1 !important;

  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  gap: clamp(4px, 1.2vw, 20px) !important;
  padding: 0 clamp(6px, 1vw, 16px) !important;

  white-space: nowrap !important;
  overflow: hidden !important;
}

.ac-horizontal-product-card .ac-amazon-btn img {
  width: clamp(14px, 3vw, 34px) !important;
  height: clamp(14px, 3vw, 34px) !important;

  object-fit: contain !important;
  display: block !important;
  flex: 0 0 auto !important;

  margin: 0 !important;
  padding: 0 !important;
}

.ac-horizontal-product-card .ac-amazon-btn span {
  display: inline-block !important;
  min-width: 0 !important;

  color: #111111 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

/* Tablet */
@media (max-width: 900px) {
  .ac-horizontal-product-card-wrap {
    width: 100% !important;
    max-width: 760px !important;
    margin: 24px auto !important;
    padding: 0 14px !important;
  }

  .ac-horizontal-product-card {
    width: calc(100% - 28px) !important;
    max-width: 760px !important;
    margin: 24px auto !important;

    grid-template-columns: 22% minmax(0, 1fr) minmax(96px, 31%) !important;
    column-gap: 4% !important;

    border-radius: 12px !important;
    border: 1px solid rgba(120, 120, 120, 0.42) !important;
    box-shadow: 0 7px 0px rgba(0, 0, 0, 0.14) !important;
  }

  .ac-horizontal-product-card-wrap .ac-horizontal-product-card {
    width: 100% !important;
    margin: 0 auto !important;
  }
}

/* Mobile */
@media (max-width: 520px) {
  .ac-horizontal-product-card-wrap {
    width: 100% !important;
    margin: 20px auto !important;
    padding: 0 12px !important;
  }

  .ac-horizontal-product-card {
    width: calc(100% - 22px) !important;
    max-width: 760px !important;
    margin: 20px auto !important;

    grid-template-columns: 22% minmax(0, 1fr) minmax(96px, 32%) !important;
    column-gap: 3.5% !important;

    padding: 3% !important;
    min-height: 94px !important;

    border-radius: 12px !important;
    border: 1px solid rgba(120, 120, 120, 0.45) !important;
    box-shadow: 0 7px 0px rgba(0, 0, 0, 0.14) !important;
  }

  .ac-horizontal-product-card-wrap .ac-horizontal-product-card {
    width: 100% !important;
    margin: 0 auto !important;
  }

  .ac-horizontal-product-card .ac-product-badge {
    font-size: 7px !important;
    padding: 4px 5px !important;
    margin-bottom: 6px !important;
  }

  .ac-horizontal-product-card .ac-product-title {
    font-size: 18px !important;
  }

  .ac-horizontal-product-card .ac-product-stars {
    font-size: 14px !important;
    margin-top: 6px !important;
    letter-spacing: 1px !important;
  }

  .ac-horizontal-product-card .ac-product-price {
    font-size: 18px !important;
    margin-top: 6px !important;
  }

  .ac-horizontal-product-card .ac-amazon-btn {
    height: 38px !important;
    font-size: 9.5px !important;
    gap: 4px !important;
    padding: 0 5px !important;
    border-radius: 6px !important;
  }

  .ac-horizontal-product-card .ac-amazon-btn img {
    width: 14px !important;
    height: 14px !important;
  }
}

/* Fix Buy on Amazon button cropping */
.ac-horizontal-product-card {
  grid-template-columns: 22% minmax(0, 1fr) minmax(140px, 34%) !important;
}

.ac-horizontal-product-card .ac-product-action {
  overflow: visible !important;
  justify-content: center !important;
}

.ac-horizontal-product-card .ac-amazon-btn {
  width: 100% !important;
  max-width: 230px !important;
  min-width: 140px !important;
  height: clamp(34px, 5vw, 46px) !important;

  font-size: clamp(10px, 1.45vw, 18px) !important;
  font-weight: 600 !important;

  gap: 7px !important;
  padding: 0 10px !important;

  overflow: hidden !important;
}

.ac-horizontal-product-card .ac-amazon-btn span {
  display: inline-block !important;
  color: #111111 !important;
  font-size: inherit !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: unset !important;
}

.ac-horizontal-product-card .ac-amazon-btn img {
  width: clamp(14px, 2vw, 22px) !important;
  height: clamp(14px, 2vw, 22px) !important;
  flex: 0 0 auto !important;
}

/* Tablet */
@media (max-width: 900px) {
  .ac-horizontal-product-card {
    grid-template-columns: 22% minmax(0, 1fr) minmax(135px, 35%) !important;
  }

  .ac-horizontal-product-card .ac-amazon-btn {
    min-width: 135px !important;
    font-size: 12px !important;
    padding: 0 9px !important;
    gap: 6px !important;
  }
}

/* Mobile */
@media (max-width: 520px) {
  .ac-horizontal-product-card {
    grid-template-columns: 22% minmax(0, 1fr) minmax(116px, 36%) !important;
  }

  .ac-horizontal-product-card .ac-amazon-btn {
    min-width: 116px !important;
    height: 34px !important;
    font-size: 8.8px !important;
    padding: 0 6px !important;
    gap: 4px !important;
  }

  .ac-horizontal-product-card .ac-amazon-btn img {
    width: 13px !important;
    height: 13px !important;
  }
}

/* Very small mobile */
@media (max-width: 390px) {
  .ac-horizontal-product-card {
    grid-template-columns: 21% minmax(0, 1fr) minmax(108px, 37%) !important;
  }

  .ac-horizontal-product-card .ac-amazon-btn {
    min-width: 108px !important;
    height: 32px !important;
    font-size: 8px !important;
    padding: 0 5px !important;
    gap: 3px !important;
  }

  .ac-horizontal-product-card .ac-amazon-btn img {
    width: 12px !important;
    height: 12px !important;
  }
}
