/* ==========================================================================
   AffiliateCMS Pro shortcodes ([acms_list], [acms_card], [acms_grid]) in PCMag style.
   Reference: pcmag.com/picks "Our top tested picks" rows (120x68 thumb, red kicker, 16px bold name,
   red "See It" button with 3px hard shadow, centred "expand pros & cons" divider) and the
   "Deeper dive" card (white, 6px radius, soft shadow, accordion rows).
   The plugin loads its stylesheet late (inside the shortcode), so every rule is prefixed with
   body.pcmag to win on specificity without touching the plugin.
   ========================================================================== */

body.pcmag {
    --acms-font: var(--pc-font);
    --acms-star-active: var(--pc-accent);
    --acms-price-color: var(--pc-ink);
    --acms-price-savings: var(--pc-accent);
    --acms-radius: 6px;
    --acms-radius-lg: 6px;
}

/* ---------- Shared: badges and buttons ---------- */
body.pcmag .acms-btn--primary,
body.pcmag .acms-btn--amazon,
body.pcmag .acms-list__action .acms-btn--amazon {
    background: var(--pc-accent); border: 0; border-radius: 6px; color: var(--pc-on-accent);
    min-height: 38px; padding: 8px 24px; font-size: 14px; font-weight: 700; line-height: 21px;
    text-transform: none; letter-spacing: 0; box-shadow: 3px 3px 0 var(--pc-accent-shadow); transform: none;
}
body.pcmag .acms-btn--primary:hover,
body.pcmag .acms-btn--amazon:hover {
    background: var(--pc-accent-dark); color: var(--pc-on-accent); transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--pc-accent-shadow);
}
body.pcmag .acms-btn--outline {
    background: var(--pc-accent); border: 0; border-radius: 6px; color: var(--pc-on-accent); text-transform: none; font-weight: 700;
    min-height: 38px; box-shadow: 3px 3px 0 var(--pc-accent-shadow);
}
body.pcmag .acms-btn--outline:hover { background: var(--pc-accent-dark); color: var(--pc-on-accent); }
body.pcmag .acms-btn--affiliate {
    border: 2px solid var(--pc-accent); border-radius: 6px; background: transparent; color: var(--pc-accent);
    min-height: 34px; padding: 4px 16px; font-size: 13px; font-weight: 700;
}
body.pcmag .acms-btn--affiliate:hover { background: var(--pc-accent); color: var(--pc-on-accent); }
body.pcmag .acms-btn i { font-size: 12px; opacity: .85; }

body.pcmag .acms-list .acms-badge,
body.pcmag .acms-card .acms-badge:not(.acms-badge--discount) {
    background: none; border: 0; padding: 0; box-shadow: none; border-radius: 0;
    color: var(--pc-accent); font-size: 14px; font-weight: 700; letter-spacing: 0; text-transform: none; line-height: 17.5px;
}
body.pcmag .acms-list .acms-badge--prime, body.pcmag .acms-card .acms-badge--prime { color: var(--pc-muted); font-size: 12px; font-weight: 640; }
body.pcmag .acms-badge--discount, body.pcmag .acms-list__discount {
    background: var(--pc-accent); color: var(--pc-on-accent); border-radius: 3px; font-weight: 700;
}
body.pcmag .acms-stars__star--filled { color: var(--pc-accent); }
body.pcmag .acms-disclaimer { margin: 12px 0 0; font-size: 12px; line-height: 18px; color: var(--pc-muted); }

/* ---------- [acms_list]: PCMag "top tested picks" rows ---------- */
body.pcmag .acms-list { max-width: none !important; margin: 32px 0; gap: 0; font-family: var(--pc-font); }
body.pcmag .acms-list__item {
    margin-left: 0; background: transparent; border: 0; border-bottom: 1px solid var(--pc-rule-strong);
    border-radius: 0; box-shadow: none; transform: none;
}
body.pcmag .acms-list__item:hover { border-color: var(--pc-rule-strong); box-shadow: none; }
body.pcmag .acms-list__rank {
    top: 20px; left: -6px; width: 24px; height: 24px; transform: none; font-size: 12px; z-index: 3;
    background: var(--pc-ink); box-shadow: none;
}
body.pcmag .acms-list__item:hover .acms-list__rank { transform: none; }
body.pcmag .acms-list__row--main {
    grid-template-columns: 96px minmax(0, 1fr); gap: 8px 16px; padding: 20px 0 12px; border-radius: 0; align-items: center;
}
body.pcmag .acms-list__image { width: 96px; height: 54px; border: 1px solid var(--pc-rule); border-radius: 0; background: #fff; }
body.pcmag .acms-list__item:hover .acms-list__image img { transform: none; }
body.pcmag .acms-list__discount { top: 2px; right: 2px; }
body.pcmag .acms-list__info { gap: 2px; }
body.pcmag .acms-list__badges { gap: 8px; }
body.pcmag .acms-list__title {
    font-size: 16px !important; font-weight: 700; font-stretch: 75%; line-height: 20px; -webkit-line-clamp: 3;
}
body.pcmag .acms-list__title a:hover { color: var(--pc-accent) !important; }
body.pcmag .acms-list__meta { gap: 2px 12px; font-size: 12px; line-height: 18px; color: var(--pc-muted); }
body.pcmag .acms-list__brand i, body.pcmag .acms-list__score-icon { color: var(--pc-ink); }
body.pcmag .acms-list__stock--in { color: #158a3e; }
body.pcmag .acms-list__stock--out { color: var(--pc-accent); }
body.pcmag .acms-list__price-action { grid-column: 1 / -1; align-items: stretch; gap: 8px; padding: 0; }
body.pcmag .acms-list__price-group { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 2px 6px; text-align: center; font-size: 12px; font-weight: 700; }
body.pcmag .acms-list__price-old-row { display: contents; }
body.pcmag .acms-list__price-current { order: 0; font-size: 14px; font-weight: 700; color: var(--pc-ink); }
body.pcmag .acms-list__price-old { order: 1; font-size: 12px; font-weight: 700; color: #4a4a4a; }
body.pcmag .acms-list__price-savings { order: 2; font-size: 12px; font-weight: 700; color: var(--pc-accent); }
body.pcmag .acms-list__action { gap: 8px; }
body.pcmag .acms-list__action .acms-btn { flex: none; width: 100%; padding: 8px 24px; font-size: 14px; }
body.pcmag .acms-list__action .acms-btn--affiliate { padding: 4px 16px; font-size: 13px; }
body.pcmag .acms-list__update { color: var(--pc-muted); }

/* Short review text under the row */
body.pcmag .acms-list__row--review { padding: 0 0 12px; font-size: 14px; line-height: 21px; color: var(--pc-ink); }

/* "Expand pros & cons": centred label between two hairlines, like pcmag.com */
body.pcmag .acms-list__row--toggle {
    position: relative; justify-content: center; padding: 8px 0 12px; border: 0; background: transparent; border-radius: 0 !important;
}
body.pcmag .acms-list__row--toggle::before, body.pcmag .acms-list__row--toggle::after {
    content: ""; flex: 1 1 0; border-top: 1px solid var(--pc-rule-strong);
}
body.pcmag .acms-list__row--toggle:hover { background: transparent; }
body.pcmag .acms-list__toggle-labels { order: 2; padding: 0 8px; }
body.pcmag .acms-list__row--toggle::before { order: 1; }
body.pcmag .acms-list__row--toggle::after { order: 4; }
body.pcmag .acms-list__expand-toggle { order: 3; padding-right: 8px; color: var(--pc-ink); font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; }
body.pcmag .acms-list__toggle-label { font-size: 12px; font-weight: 700; letter-spacing: .02em; color: var(--pc-ink); }
body.pcmag .acms-list__toggle-label i { display: none; }
body.pcmag .acms-list__expand-toggle:hover { color: var(--pc-accent); }
body.pcmag .acms-list__expand-text, body.pcmag .acms-list__collapse-text { display: none !important; }
body.pcmag .acms-list__expand-toggle i { font-size: 12px; }

/* Expanded details: "+" in green and "-" in red, bold 14px, two columns */
body.pcmag .acms-list__row--details { background: transparent; border-radius: 0; }
body.pcmag .acms-list__details-grid { border: 0; }
body.pcmag .acms-list__detail-section { padding: 8px 0 20px; background: transparent; }
body.pcmag .acms-list__detail-section h4 { font-size: 18px; font-weight: 640; font-stretch: 50%; color: var(--pc-ink); }
body.pcmag .acms-list__detail-section h4 i { color: var(--pc-ink); }
body.pcmag .acms-list__pros-cons { grid-template-columns: 1fr; gap: 16px; }
body.pcmag .acms-list__pros, body.pcmag .acms-list__cons { padding: 0; border: 0; background: transparent; }
body.pcmag .acms-list__pros h4, body.pcmag .acms-list__cons h4 { color: var(--pc-ink); }
body.pcmag .acms-list__pros li, body.pcmag .acms-list__cons li { padding: 4px 0 4px 28px; font-size: 14px; font-weight: 640; line-height: 21px; color: var(--pc-ink); }
body.pcmag .acms-list__pros li::before, body.pcmag .acms-list__cons li::before { top: 0; font-size: 22px; font-weight: 400; line-height: 29px; }
body.pcmag .acms-list__pros li::before { color: var(--pc-pro); }
body.pcmag .acms-list__cons li::before { color: var(--pc-accent); }
body.pcmag .acms-list__tab-content { font-size: 14px; line-height: 21px; color: var(--pc-ink); }

/* ---------- [acms_card]: single product, "Deeper dive" card ---------- */
body.pcmag .acms-card { max-width: 768px; margin: 32px 0; font-family: var(--pc-font); }
body.pcmag .acms-card__inner {
    border: 0; border-radius: 6px; background: var(--pc-bg); transform: none;
    box-shadow: 0 0 5px -1px rgba(0, 0, 0, .3), 0 2px 2px 0 rgba(0, 0, 0, .1);
}
body.pcmag .acms-card:hover .acms-card__inner { transform: none; box-shadow: 0 0 5px -1px rgba(0, 0, 0, .3), 0 4px 8px 0 rgba(0, 0, 0, .12); border-color: transparent; }
body.pcmag .acms-card__row { flex-direction: column; padding: 16px; gap: 16px; min-height: 0; }
body.pcmag .acms-card__image-col { flex: none; padding: 0; background: transparent; }
body.pcmag .acms-card__image-wrapper { aspect-ratio: 16 / 10; background: var(--pc-gray); }
body.pcmag .acms-card__content { padding: 0; gap: 8px; }
body.pcmag .acms-card__title { font-size: 24px !important; line-height: 1.15; font-weight: 640; font-stretch: 50%; letter-spacing: .01em; }
body.pcmag .acms-card__meta { gap: 4px 12px; font-size: 12px; color: var(--pc-muted); }
body.pcmag .acms-card__rating-value { font-weight: 700; color: var(--pc-accent); }
body.pcmag .acms-card__rating-count { color: var(--pc-muted); }
body.pcmag .acms-card__price-current { font-size: 24px; font-weight: 700; color: var(--pc-ink); }
body.pcmag .acms-card__price-original { font-size: 14px; color: #4a4a4a; }
body.pcmag .acms-card__price-savings { font-size: 14px; font-weight: 700; color: var(--pc-accent); }
body.pcmag .acms-card__actions .acms-btn { width: 100%; }
body.pcmag .acms-card__update { color: var(--pc-muted); }
body.pcmag .acms-card__features { border-top: 1px solid var(--pc-rule-strong); }
body.pcmag .acms-card__features-toggle { padding: 16px; background: transparent; }
body.pcmag .acms-card__features-toggle-left span { font-size: 18px; font-weight: 640; font-stretch: 50%; color: var(--pc-ink); }
body.pcmag .acms-card__features-toggle-left i, body.pcmag .acms-card__features-toggle-action { color: var(--pc-ink); }
body.pcmag .acms-card__features-toggle:hover .acms-card__features-toggle-arrow { color: var(--pc-accent); }

/* ---------- [acms_grid]: product tiles like homepage slides ---------- */
body.pcmag .acms-grid { max-width: none !important; margin: 32px 0; font-family: var(--pc-font); }
body.pcmag .acms-grid__item { border: 0; border-radius: 6px; box-shadow: 0 0 5px -1px rgba(0, 0, 0, .3), 0 2px 2px 0 rgba(0, 0, 0, .1); transform: none; }
body.pcmag .acms-grid__item:hover { transform: none; border-color: transparent; box-shadow: 0 0 5px -1px rgba(0, 0, 0, .3), 0 4px 8px 0 rgba(0, 0, 0, .12); }
body.pcmag .acms-grid__image { border-radius: 6px 6px 0 0; }
body.pcmag .acms-grid__title { font-size: 16px !important; font-weight: 700; font-stretch: 75%; line-height: 20px; text-align: left; }
body.pcmag .acms-grid__rating { justify-content: flex-start; }
body.pcmag .acms-grid__rating-value { color: var(--pc-accent); font-weight: 700; }
body.pcmag .acms-grid__price { justify-content: flex-start; }
body.pcmag .acms-grid__price-current { font-size: 18px; color: var(--pc-ink); }
body.pcmag .acms-grid__price-original { color: #4a4a4a; }
body.pcmag .acms-grid__price-discount { color: var(--pc-accent); }
body.pcmag .acms-grid__badge { background: var(--pc-accent) !important; color: var(--pc-on-accent) !important; border-radius: 0 3px 3px 0; padding: 2px 8px; font-size: 11px; font-weight: 700; text-transform: none; }
body.pcmag .acms-grid__store { background: rgba(41, 41, 41, .85); }

/* ---------- Tablet / desktop: price + button sit to the right of the row, as on pcmag.com ---------- */
@media (min-width: 640px) {
    body.pcmag .acms-list__row--main { grid-template-columns: 120px minmax(0, 1fr) 280px; align-items: center; gap: 8px 24px; }
    body.pcmag .acms-list__image { width: 120px; height: 68px; }
    body.pcmag .acms-list__price-action { grid-column: auto; }
    body.pcmag .acms-list__pros-cons { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (min-width: 768px) {
    body.pcmag .acms-card__row { flex-direction: row; padding: 24px; gap: 24px; }
    body.pcmag .acms-card__image-col { flex: 0 0 42%; }
    body.pcmag .acms-card__features-toggle { padding: 16px 24px; }
}

/* ---------- Polish ---------- */
/* "See It" has no external-link glyph on pcmag.com */
body.pcmag .acms-list .acms-btn i, body.pcmag .acms-card__actions .acms-btn i, body.pcmag .acms-grid .acms-btn i { display: none; }
body.pcmag .acms-list__title a i, body.pcmag .acms-list__title i { display: none; }
/* Row toggle reads "EXPAND PROS & CONS": prefix the label, hide the separate View/Hide text */
body.pcmag .acms-list__toggle-label::before { content: "Expand "; }
body.pcmag .acms-list__item .acms-list__expand-toggle[aria-expanded="true"] { color: var(--pc-accent); }
body.pcmag .acms-list__row--toggle:has(.acms-list__expand-toggle[aria-expanded="true"]) .acms-list__toggle-label::before { content: "Hide "; }
body.pcmag .acms-list__toggle-label { text-transform: uppercase; }
/* Prime / "Editor's Pick" badges sit on one line */
body.pcmag .acms-list__badges { margin-bottom: 2px; }
/* Rank bubble tucked on the thumbnail corner */
body.pcmag .acms-list__rank { top: 14px; left: -8px; }
/* First list in an article gets the same ruled heading as pcmag.com's "Our top tested picks" */
body.pcmag .acms-list::before {
    content: attr(data-heading); display: block; padding-bottom: 8px; margin-bottom: 4px; border-bottom: 1px solid var(--pc-rule-strong);
    font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; position: relative;
}
body.pcmag .acms-list:not([data-heading])::before { display: none; }
body.pcmag .acms-list__title a::after, body.pcmag .acms-card__title a::after, body.pcmag .acms-grid__title a::after { content: none !important; display: none !important; }
body.pcmag .acms-list__info, body.pcmag .acms-list__title, body.pcmag .acms-list__meta, body.pcmag .acms-list__badges { text-align: left; align-items: flex-start; justify-content: flex-start; }
body.pcmag .acms-list__badges { display: flex; }
body.pcmag .acms-list__rank { top: 12px; left: -4px; }

/* Parent's article bullet (.post-content ul:not([class]) li::before) must not paint over the plugin's +/- marks */
body.pcmag .post-content .acms-list__pros ul:not([class]) li,
body.pcmag .post-content .acms-list__cons ul:not([class]) li { padding: 4px 0 4px 28px; margin: 0; list-style: none; }
body.pcmag .post-content .acms-list__pros ul:not([class]) li::before,
body.pcmag .post-content .acms-list__cons ul:not([class]) li::before {
    position: absolute; left: 0; top: 0; width: auto; height: auto; border-radius: 0; background: none;
    font-size: 22px; font-weight: 400; line-height: 29px; transform: none;
}
body.pcmag .post-content .acms-list__pros ul:not([class]) li::before { content: "+"; color: var(--pc-pro); }
body.pcmag .post-content .acms-list__cons ul:not([class]) li::before { content: "\2212"; color: var(--pc-accent); }
body.pcmag .post-content .acms-list__detail-section h4 i { display: none; }
body.pcmag .post-content .acms-list__detail-section h4 { margin-bottom: 8px; }
