/* PioLipp Affiliate Manager v1.3 */
.pam-products{box-sizing:border-box;width:100%;max-width:100%;margin:34px 0;padding:clamp(18px,3vw,30px);background:#f7f9f6;border:1px solid #e0e8de;border-radius:18px;color:#193a2b}
.pam-products *{box-sizing:border-box}
.pam-head{display:flex;justify-content:space-between;align-items:start;gap:12px;flex-wrap:wrap}
.pam-eyebrow{font-size:11px;font-weight:750;letter-spacing:.12em;color:#4d7b3c}
.pam-products h2{font-size:clamp(20px,2.4vw,27px);line-height:1.25;margin:5px 0 8px;color:#173b29}
.pam-ad{font-size:12px;background:#e8efe4;padding:5px 9px;border-radius:5px;color:#31523a}
.pam-products .pam-label{font-size:12px;line-height:1.6;color:#58645c;margin:0 0 20px;max-width:780px}
.pam-grid{display:grid;grid-template-columns:1fr;gap:15px}
.pam-item{display:flex;gap:clamp(14px,2.5vw,24px);align-items:stretch;background:#fff;border:1px solid #e0e7df;border-radius:13px;padding:clamp(15px,2vw,22px);min-width:0;box-shadow:0 4px 18px rgba(21,57,36,.035)}
.pam-media{flex:0 0 clamp(110px,25%,175px);align-self:center;aspect-ratio:1;display:flex;align-items:center;justify-content:center;background:#fff;border:1px solid #edf0eb;border-radius:10px;overflow:hidden}
.pam-media img{display:block;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;padding:8px}
.pam-info{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.pam-provider{font-size:12px;font-weight:650;color:#547e41;margin-bottom:6px}
.pam-item h3{font-size:clamp(17px,2vw,20px);line-height:1.35;color:#163c2a;margin:0 0 8px;font-weight:700}
.pam-item .pam-brand{font-size:12px;color:#647068;margin:0 0 8px}
.pam-item .pam-description{font-size:14px;line-height:1.65;color:#4f5b53;margin:0 0 18px}
.pam-item .pam-button{display:inline-flex;align-items:center;gap:10px;margin-top:auto;background:#23513d;color:#fff!important;text-decoration:none!important;font-size:14px;font-weight:650;padding:11px 16px;border-radius:8px;transition:background .15s ease}
.pam-item .pam-button:hover,.pam-item .pam-button:focus{background:#34714f;color:#fff!important}
@media(max-width:600px){.pam-products{padding:16px;margin:25px 0}.pam-item{flex-direction:column}.pam-media{flex:auto;width:100%;max-height:220px;aspect-ratio:4/3}.pam-media img{max-height:210px}.pam-item .pam-button{width:100%;justify-content:center}.pam-products .pam-label{font-size:12px}}

/* Desktop: break out of the narrow text column to match the CTA width. */
@media (min-width: 768px) {
  body.single-post section.pam-products,
  body.single-post .entry-content section.pam-products,
  body.single-post .wp-block-post-content section.pam-products {
    display: block !important;
    box-sizing: border-box !important;
    width: 704px !important;
    min-width: 704px !important;
    max-width: 704px !important;
    position: relative !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    margin: 34px 0 !important;
    float: none !important;
    clear: both !important;
  }
}
@media (max-width: 767px) {
  body.single-post section.pam-products {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    left: auto !important;
    transform: none !important;
    margin: 25px 0 !important;
  }
}
body.single-post .pam-products .pam-grid,
body.single-post .pam-products .pam-item {width:100%;max-width:none;}

/* v1.4: clearly readable affiliate disclosure */
.pam-products .pam-label{font-size:14px!important;color:#334b3c!important;line-height:1.6}
.pam-products .pam-amazon-note{display:block;font-size:13px;color:#334b3c;margin:-9px 0 18px}
.pam-products .pam-ad{font-size:13px;font-weight:700}
