/* Karuzela e-booków obok logo. Istniejące cztery slajdy, linki i animacja pozostają. */
#masthead #wm4-banner {
    width:780px;
    max-width:min(62vw,100%);
    height:160px;
    margin:10px 0;
    background:linear-gradient(115deg,#fff 0%,#f8faf6 64%,#edf4ed 100%);
    border:1px solid #dce5dc;
    border-radius:12px;
    box-shadow:0 3px 12px rgba(24,62,38,.06);
    font-family:inherit;
    color:#254538;
}
#masthead #wm4-banner .wm4-item {
    grid-template-columns:90px minmax(0,1fr) 120px;
    grid-template-rows:minmax(0,1fr);
    gap:16px;
    padding:10px 17px;
    align-items:center;
    min-height:0;
}
#masthead #wm4-banner .wm4-image {align-self:center; min-height:0;}
#masthead #wm4-banner .wm4-image img {
    display:block; width:90px; height:132px; object-fit:contain; object-position:center;
    margin:0; border-radius:3px; box-shadow:none;
}
#masthead #wm4-banner .wm4-copy {
    display:flex!important; flex-direction:column; justify-content:center;
    align-items:stretch; gap:5px; min-height:0; min-width:0; padding:0;
}
#masthead #wm4-banner .wm4-copy p,
#masthead #wm4-banner .wm4-image p { margin:0!important; padding:0!important; }
#masthead #wm4-banner .wm4-copy > br,
#masthead #wm4-banner .wm4-copy p > br:only-child,
#masthead #wm4-banner .wm4-image > br {display:none!important;}
#masthead #wm4-banner .wm4-copy p:empty {display:none!important;}
#masthead #wm4-banner .wm4-tag {
    color:#52715d; font-size:10px; font-weight:650; line-height:1.2; margin:0;
    letter-spacing:.35px;
}
#masthead #wm4-banner .wm4-title,
#masthead #wm4-banner .wm4-title-long {
    font-size:clamp(16px,1.55vw,21px); font-weight:750; line-height:1.15;
    color:#123e2c; margin:0; letter-spacing:-.25px;
}
#masthead #wm4-banner .wm4-description {
    font-size:12px; line-height:1.35; color:#4c6052; margin:0;
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
#masthead #wm4-banner .wm4-highlights {display:none!important;}
#masthead #wm4-banner .wm4-item::after {
    content:'Zobacz e-book  →'; grid-column:3; grid-row:1; align-self:center;
    background:#15543a; color:white; border-radius:7px; padding:10px 8px;
    text-align:center; font-weight:650; font-size:12px; line-height:1.3; pointer-events:none;
}
#masthead #wm4-banner:hover .wm4-item::after {background:#0b422c;}
#masthead #wm4-banner .wm4-link:focus-visible {outline:3px solid #b66c00;outline-offset:-3px;}
@media(max-width:1100px){
    #masthead #wm4-banner {width:580px;max-width:min(60vw,100%);height:150px;}
    #masthead #wm4-banner .wm4-item {grid-template-columns:76px minmax(0,1fr);gap:12px;padding:10px 13px;}
    #masthead #wm4-banner .wm4-image img {width:76px;height:120px;}
    #masthead #wm4-banner .wm4-title,#masthead #wm4-banner .wm4-title-long {font-size:16px;}
    #masthead #wm4-banner .wm4-description {font-size:11px;}
    #masthead #wm4-banner .wm4-item::after {display:none;}
}
@media(max-width:767px){
    #masthead #wm4-banner {width:92vw;max-width:100%;height:138px;margin:8px auto;}
    #masthead #wm4-banner .wm4-item {grid-template-columns:64px minmax(0,1fr);gap:10px;padding:8px 10px;}
    #masthead #wm4-banner .wm4-image img {width:64px;height:106px;}
    #masthead #wm4-banner .wm4-tag {font-size:9px;}
    #masthead #wm4-banner .wm4-title,#masthead #wm4-banner .wm4-title-long {font-size:14px;}
    #masthead #wm4-banner .wm4-description {font-size:10px;}
}
