.abv-shopping-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body button:is(.abv-favorite-heart[data-abv-favorite-id],.abv-favorites-open[data-abv-favorites-open]),#abv-cart-quick-peek button.abv-cart-quick-peek__close{
    appearance:none;box-sizing:border-box;display:inline-grid!important;place-items:center;
    flex:0 0 44px;inline-size:44px!important;min-inline-size:44px!important;max-inline-size:44px!important;
    block-size:44px!important;min-block-size:44px!important;padding:0!important;margin:0!important;border:0!important;
    border-radius:8px!important;background:transparent!important;color:#17243d!important;box-shadow:none!important;cursor:pointer;
    position:relative;z-index:1;vertical-align:middle;
}
body button.abv-favorites-open{margin-inline:3px!important}
body button.abv-favorite-heart:disabled{cursor:default;opacity:1}
button:is(.abv-favorite-heart,.abv-favorites-open) svg,#abv-cart-quick-peek button.abv-cart-quick-peek__close svg{
    display:block;inline-size:20px;block-size:20px;fill:none!important;stroke:currentColor;
    stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;
}
button.abv-favorites-open svg{inline-size:22px;block-size:22px}
body button.abv-favorites-open:hover,#abv-cart-quick-peek button.abv-cart-quick-peek__close:hover{background:#eee4d4!important}
button.abv-favorite-heart[aria-pressed=true] svg,button.abv-favorites-open:has(.abv-favorite-count:not([hidden])) svg{fill:currentColor!important}
.abv-favorite-count{
    position:absolute;inset-block-start:1px;inset-inline-end:0;
    min-inline-size:15px;block-size:15px;padding-inline:3px;box-sizing:border-box;border-radius:10px;
    background:#17243d;color:#fff;font:700 9px/15px system-ui,sans-serif;text-align:center;
}
.abv-favorite-count[hidden]{display:none}

/* Header tools share a line-icon scale and leave the native cart/checkout behavior intact. */
#masthead .abv-header-search-source[hidden]{display:none!important}
#masthead :is(.abv-header-search-trigger,.abv-header-profile){
    appearance:none;box-sizing:border-box;display:inline-grid!important;place-items:center;flex:0 0 44px;
    inline-size:44px!important;min-inline-size:44px!important;block-size:44px!important;min-block-size:44px!important;
    margin:0!important;padding:0!important;border:0!important;border-radius:8px!important;
    background:transparent!important;color:#17243d!important;box-shadow:none!important;text-decoration:none;
}
#masthead .abv-header-search-trigger{cursor:pointer}
#masthead :is(.abv-header-search-trigger,.abv-header-profile):hover{background:#eee4d4!important}
#masthead :is(.abv-header-search-trigger,.abv-header-profile,.abv-favorites-open):focus-visible{
    outline:2px solid #1b4a8f!important;outline-offset:2px;
}
#masthead svg.abv-header-tool-icon{
    display:block;inline-size:22px!important;block-size:22px!important;flex:none;
    fill:none!important;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none;
}
#masthead button.abv-favorites-open[data-abv-favorites-open]{color:#ad3044!important}
#masthead button.abv-favorites-open[data-abv-favorites-open] svg{
    inline-size:22px;block-size:22px;stroke-width:1.7;
}
#masthead .abv-header-cart-tools > .elementor-widget-hfe-cart{flex:0 0 auto;inline-size:auto;min-inline-size:max-content}
#masthead .abv-header-cart-tools .hfe-menu-cart__toggle{
    display:inline-flex!important;align-items:center;justify-content:center;flex-wrap:nowrap;gap:3px;
}
#masthead .abv-header-cart-tools .hfe-menu-cart__toggle > a.hfe-cart-container{
    display:inline-flex!important;align-items:center;justify-content:center;flex:none;gap:7px;
    min-block-size:44px;padding:7px 13px!important;white-space:nowrap;
    color:#17243d!important;font-size:clamp(14px,1.3vw,18px)!important;line-height:1.15!important;
}
#masthead .abv-header-cart-tools .hfe-menu-cart__toggle > .abv-favorites-open{margin-inline:0!important}
#masthead .abv-header-cart-tools .hfe-cart-container .elementor-button-icon{
    display:inline-flex;align-items:center;margin-inline:0!important;font-size:12px;
}
#masthead .abv-header-cart-tools .hfe-cart-container .elementor-button-icon[data-counter]::before{top:-.55em;right:-.65em}
/* First three tools share a single spacing rhythm, and precede the cart in DOM order. */
#masthead .abv-header-cart-tools--ordered > .abv-header-quick-actions{
    display:inline-flex;flex:0 0 auto;align-items:center;gap:clamp(4px,.7vw,12px);
}
#masthead .abv-header-quick-actions > button.abv-favorites-open{margin-inline:0!important}
#masthead .abv-header-quick-actions > .elementor-widget-icon{
    flex:0 0 44px;width:44px!important;max-width:44px!important;margin:0!important;
}
#masthead .abv-header-quick-actions > .elementor-widget-icon .elementor-icon-wrapper{
    display:flex;align-items:center;justify-content:center;
}
@media(max-width:767px){
    #masthead .abv-header-cart-tools--ordered{
        display:flex!important;flex-direction:row;justify-content:center;align-items:center;
        gap:clamp(4px,1.4vw,10px);flex-wrap:wrap;min-inline-size:0;
    }
    #masthead .abv-header-cart-tools--ordered > .abv-header-quick-actions{gap:4px}
    #masthead .abv-header-cart-tools--ordered .hfe-menu-cart__toggle > a.hfe-cart-container{padding-inline:10px!important}
    #masthead .abv-header-mobile-nav > .e-con-inner{justify-content:flex-end}
}

@media (min-width:768px){
    #masthead .abv-header-desktop{
        display:grid!important;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:6px 12px;
        padding-inline:clamp(20px,4vw,84px)!important;
    }
    #masthead .abv-header-desktop > :is(.abv-header-nav,.abv-header-cart-tools){inline-size:auto!important;min-inline-size:0}
    #masthead .abv-header-desktop > .abv-header-logo{inline-size:clamp(55px,6vw,93px)!important}
    #masthead .abv-header-desktop > .abv-header-cart-tools{
        align-items:center;justify-content:flex-end;flex-wrap:nowrap;gap:clamp(5px,1vw,16px);padding-inline:0;
    }
    #masthead .abv-header-nav ul.hfe-nav-menu{justify-content:center;flex-wrap:wrap}
    #masthead .abv-header-nav ul.hfe-nav-menu > li > a.hfe-menu-item{
        padding-inline:clamp(7px,1vw,15px);font-size:clamp(17px,1.45vw,22px);white-space:nowrap;
    }
}
@media (min-width:768px) and (max-width:1240px){
    #masthead .abv-header-desktop{grid-template-columns:1fr auto;gap:4px 16px}
    #masthead .abv-header-desktop > .abv-header-logo{grid-column:1;grid-row:1;justify-self:start}
    #masthead .abv-header-desktop > .abv-header-cart-tools{grid-column:2;grid-row:1}
    #masthead .abv-header-desktop > .abv-header-nav{grid-column:1/-1;grid-row:2}
}

/* One cover control. Keep the book link and its layout intact. */
body .abv-favorite-cover-host{position:relative!important}
.abvcp-product__img.abv-favorite-cover-host > .abvcp-product__cover-link{
    display:flex;align-items:center;justify-content:center;inline-size:100%;block-size:100%;
}
body .abv-favorite-cover-host > button.abv-favorite-heart[data-abv-favorite-id]{
    position:absolute!important;inset:auto!important;
    inset-block-start:var(--abv-favorite-top,8px)!important;inset-inline-end:var(--abv-favorite-end,8px)!important;
    z-index:4;border:1px solid #ecd8d1!important;border-radius:50%!important;
    background:#fffaf4!important;color:#ad3044!important;
    box-shadow:0 2px 9px rgb(47 23 30/.17)!important;
}
body .abv-favorite-cover-host > button.abv-favorite-heart svg{inline-size:21px;block-size:21px}
body .abv-book-main-image + button.abv-favorite-heart svg{inline-size:23px;block-size:23px}
@media (prefers-reduced-motion:no-preference){
    button.abv-favorite-heart[data-abv-favorite-sparkle] svg{animation:abv-favorite-pop .47s ease-out both}
    button.abv-favorite-heart[data-abv-favorite-sparkle]::before,
    button.abv-favorite-heart[data-abv-favorite-sparkle]::after{
        content:'';position:absolute;pointer-events:none;inline-size:9px;block-size:9px;
        background:#b86a35;clip-path:polygon(50% 0,63% 37%,100% 50%,63% 63%,50% 100%,37% 63%,0 50%,37% 37%);
        animation:abv-favorite-star .47s ease-out both;
    }
    button.abv-favorite-heart[data-abv-favorite-sparkle]::before{inset:5px auto auto 5px;--abv-spark-x:-5px;--abv-spark-y:-4px}
    button.abv-favorite-heart[data-abv-favorite-sparkle]::after{inset:auto 5px 6px auto;--abv-spark-x:4px;--abv-spark-y:4px;animation-delay:.03s}
}
@keyframes abv-favorite-pop{0%{transform:scale(.86)}38%{transform:scale(1.18)}100%{transform:scale(1)}}
@keyframes abv-favorite-star{
    0%{opacity:0;transform:scale(.3)}35%{opacity:1}
    100%{opacity:0;transform:translate(var(--abv-spark-x),var(--abv-spark-y)) scale(.95)}
}

/* Book-cover stage: one box per card, with the original cover contained inside. */
body:not(.wp-admin) :is(.abv21-product.abv21h-product,.abv21-product,.abvcat2-card,.abvcp-product,.abvh-product,.abv-product-card)
:is(.abv21-product__image,.abvcat2-img-link,.abvcp-product__img,.abvh-product__image,.abvh-product__img,.abv-product-card__image,.abv-cover-stage) {
    --abv-cover-stage-height:clamp(144px,16vw,208px);
    --abv-cover-stage-pad:10px;
    display:grid!important;grid-template:minmax(0,1fr) / minmax(0,1fr);place-items:center!important;
    flex:none!important;box-sizing:border-box!important;
    inline-size:min(100%,calc(var(--abv-cover-stage-height) * .8))!important;
    block-size:var(--abv-cover-stage-height)!important;margin-inline:auto!important;
    min-block-size:0!important;max-block-size:none!important;
    padding:var(--abv-cover-stage-pad)!important;overflow:hidden!important;
    border-radius:12px!important;background:linear-gradient(155deg,#f9f4eb,#f1e9db)!important;
}
body:not(.wp-admin) .abvcat2-card .abvcat2-img-link {
    margin-block:12px!important;
}
body:not(.wp-admin) .abvcp-product--tip .abvcp-product__img {
    --abv-cover-stage-height:126px;--abv-cover-stage-pad:6px;
}
body:not(.wp-admin) :is(.abv21-product.abv21h-product,.abv21-product,.abvcat2-card,.abvcp-product,.abvh-product,.abv-product-card)
:is(.abv21-product__image,.abvcat2-img-link,.abvcp-product__img,.abvh-product__image,.abvh-product__img,.abv-product-card__image,.abv-cover-stage) img {
    display:block!important;inline-size:100%!important;block-size:100%!important;
    min-inline-size:0!important;min-block-size:0!important;max-inline-size:100%!important;max-block-size:100%!important;
    margin:0!important;object-fit:contain!important;object-position:center!important;
    transform:none!important;scale:none!important;translate:none!important;
    background:transparent!important;box-shadow:none!important;filter:none!important;
}
body:not(.wp-admin) .abvcp-product__img > .abvcp-product__cover-link {
    display:grid;grid-template:minmax(0,1fr) / minmax(0,1fr);place-items:center;
    inline-size:100%;block-size:100%;min-inline-size:0;min-block-size:0;
}
body:not(.wp-admin) :is(.abv-book-detail-grid,.abv-wrap--single) .abv-card .abv-book-main-image {
    box-sizing:border-box!important;flex:0 0 auto!important;display:grid!important;
    grid-template:minmax(0,1fr) / minmax(0,1fr);place-items:center!important;
    inline-size:100%!important;block-size:auto!important;block-size:min(620px,125cqi)!important;
    min-block-size:0!important;max-block-size:620px!important;aspect-ratio:4 / 5!important;
    padding:clamp(14px,2vw,24px)!important;
}
body:not(.wp-admin) :is(.abv-book-detail-grid,.abv-wrap--single) .abv-card .abv-book-main-image img {
    display:block!important;inline-size:100%!important;block-size:100%!important;
    min-inline-size:0!important;min-block-size:0!important;max-inline-size:100%!important;max-block-size:100%!important;
    margin:0!important;object-fit:contain!important;object-position:center!important;
    transform:none!important;scale:none!important;translate:none!important;
    background:transparent!important;box-shadow:none!important;
}
body:not(.wp-admin) .abv-wrap--single .abv-book-detail-grid > div > .abv-card:has(> .abv-book-main-image) {
    block-size:auto!important;min-block-size:0!important;align-self:start;container-type:inline-size;
}
body:not(.wp-admin) :is(.abv21-product.abv21h-product,.abv21-product,.abvcat2-card,.abvcp-product,.abvh-product,.abv-product-card,.abv-book-detail-grid .abv-card,.abv-recommendation-item) .abv-cover-stage[data-abv-cover-missing] img {display:none!important}
body:not(.wp-admin) .abv-cover-stage :is(.abv-cover-fallback,.abvcat2-img-empty) {
    display:grid!important;place-items:center;
    box-sizing:border-box;min-inline-size:0;max-inline-size:100%;max-block-size:100%;
    inline-size:min(100%,100px)!important;block-size:min(100%,132px)!important;
    border:1px solid #dbcdb7;border-radius:8px;
    color:#5d5144;background:#faf5e9;padding:6px;
    font:600 clamp(10px,2.7vw,12px)/1.25 system-ui,sans-serif;text-align:center;
    z-index:1;
}
body:not(.wp-admin) .abv-cover-stage .abv-cover-fallback[hidden] {display:none!important}
/* Cart/checkout suggestions keep their original compact size even when an image fails. */
body.abv-cart-surface .abv-flow-frame .abv-recommendation-item__cover {
    block-size:104px;
}
body:is(.abv-cart-surface,.abv-checkout-surface) .abv-flow-frame .abv-recommendation-item__cover img {
    inline-size:100%;block-size:100%;object-fit:contain;
}
body:is(.abv-cart-surface,.abv-checkout-surface) .abv-flow-frame .abv-recommendation-item__cover .abv-cover-fallback {
    inline-size:100%!important;block-size:100%!important;border:0;padding:3px;
    font-size:9px;overflow-wrap:anywhere;
}
@media(max-width:767px) {
    body:not(.wp-admin) :is(.abv21-product.abv21h-product,.abv21-product,.abvcat2-card,.abvcp-product,.abvh-product,.abv-product-card)
    :is(.abv21-product__image,.abvcat2-img-link,.abvcp-product__img,.abvh-product__image,.abvh-product__img,.abv-product-card__image,.abv-cover-stage) {
        --abv-cover-stage-height:clamp(120px,37vw,164px);--abv-cover-stage-pad:7px;
    }
    body.abv-public-page-novinky:not(.wp-admin) .abvcp-product:is(.abvcp-product--strip,.abvcp-product--grid) {
        grid-template-columns:clamp(78px,24vw,96px) minmax(0,1fr)!important;
    }
    body.abv-public-page-novinky:not(.wp-admin) .abvcp-product:is(.abvcp-product--strip,.abvcp-product--grid) .abvcp-product__img {
        --abv-cover-stage-height:clamp(98px,30vw,120px);--abv-cover-stage-pad:5px;
        margin:0!important;
    }
    body:not(.wp-admin) .abvcp-product--tip .abvcp-product__img {
        --abv-cover-stage-height:114px;--abv-cover-stage-pad:5px;
    }
}
@media(min-width:768px) and (max-width:1024px) {
    body.abv-public-page-novinky:not(.wp-admin) .abvcp-product--strip .abvcp-product__img {
        --abv-cover-stage-height:134px;--abv-cover-stage-pad:6px;margin:0!important;
    }
}
/* Cover hearts no longer reserve a column next to the cart action. */
body .abvcp-product.abvcp-product--shopping > .abvcp-product__actions{
    display:flex!important;align-items:center;flex-wrap:wrap;gap:8px;
}
.abvcp-product--shopping > .abvcp-product__actions > .abvcp-btn--ghost{
    flex:1 1 94px;min-inline-size:0;text-align:center;
}
.abvcp-product__quick{display:grid;place-items:center;flex:0 0 auto}
.abvcp-product__quick > :not([data-abv-favorite-id]){margin:0!important}
@media(min-width:1025px){
    .abv-public-page-novinky .abvcp-product--strip.abvcp-product--shopping > .abvcp-product__actions{margin-block-start:auto}
}
.abv-favorite-heart:focus-visible,.abv-favorites-open:focus-visible,.abv-cart-quick-peek :focus-visible,.abv-favorite-dialog :focus-visible,.abv-shopping-recommendations :focus-visible{outline:2px solid #1b4a8f!important;outline-offset:2px}
.abv-cart-quick-peek,.abv-favorite-dialog{box-sizing:border-box;border:1px solid #ded4c4;border-radius:14px;color:#14243d;background:#fffdf8;padding:16px;box-shadow:0 14px 35px rgba(16,31,54,.2);font:15px/1.45 system-ui,sans-serif}
.abv-cart-quick-peek{position:fixed;z-index:10150;max-height:min(62vh,480px);overflow:auto;width:min(348px,calc(100% - 24px));}
.abv-cart-quick-peek[hidden]{display:none!important}
body:has(#abv-cart-quick-peek:not([hidden])) #abv-global-cart-v2-tooltip{visibility:hidden!important}
.abv-favorite-dialog{width:min(560px,calc(100% - 24px));max-height:82dvh;overflow:auto;margin:auto;padding:22px}
.abv-favorite-dialog::backdrop{background:rgba(11,23,43,.55)}
.abv-shopping-top,.abv-shopping-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}
.abv-shopping-top h2{margin:0!important;font:700 22px/1.22 Georgia,serif;color:inherit}
#abv-cart-quick-peek .abv-shopping-top{gap:8px}
#abv-cart-quick-peek .abv-shopping-top h2{
    display:block!important;width:auto!important;min-width:0!important;padding:0!important;
    color:#17243d!important;font:700 24px/1.2 Georgia,serif!important;letter-spacing:normal!important;
    white-space:nowrap!important;text-transform:none!important;overflow-wrap:normal!important;
}
.abv-shopping-actions{justify-content:flex-start;flex-wrap:wrap}
.abv-cart-quick-peek ul,.abv-favorite-list ul{list-style:none;padding:0;margin:10px 0}
.abv-cart-quick-peek li,.abv-favorite-list li{display:flex;gap:12px;align-items:start;justify-content:space-between;border-top:1px solid #eee3d5;padding:8px 0}
.abv-cart-quick-peek li>a,.abv-cart-quick-peek li>span:first-child,.abv-favorite-list li>span{min-width:0;overflow-wrap:anywhere}
.abv-cart-quick-peek li>span:last-child{white-space:nowrap}
.abv-cart-quick-peek p{margin:10px 0}
.abv-cart-quick-peek a.abv-cart-quick-peek__book,.abv-favorite-list li>span>a{
    color:#17243d;text-decoration:none;font-weight:600;text-underline-offset:3px;
}
.abv-cart-quick-peek a.abv-cart-quick-peek__book:hover,.abv-favorite-list li>span>a:hover{text-decoration:underline}
.abv-cart-quick-peek li>span:last-child{color:#5a6575;font-variant-numeric:tabular-nums}
.abv-cart-quick-peek .abv-cart-quick-peek__subtotal{
    display:flex;justify-content:space-between;gap:12px;border-top:1px solid #e8dece;padding-top:10px;
}
.abv-favorite-list small{display:block;color:#5c6270}
.abv-shopping-link,.abv-shopping-cta{display:inline-flex;justify-content:center;align-items:center;min-height:44px;box-sizing:border-box;border:1px solid #ded4c4;border-radius:8px;background:#fffdf8;color:#14243d;font:600 13px/1.25 system-ui,sans-serif;padding:6px 10px;text-decoration:none;cursor:pointer}
.abv-shopping-cta{color:#fff;background:#14243d;border-color:#14243d}
.abv-shopping-link:hover{color:#14243d;background:#f4e8d7}
.abv-shopping-cta:hover{color:#fff;background:#243e66}
/* Panel labels must keep their own foreground even under page-wide link/button styles. */
#abv-cart-quick-peek .abv-shopping-actions > a.abv-shopping-cta{
    color:#fff!important;-webkit-text-fill-color:currentColor!important;
    background:#14243d!important;border-color:#14243d!important;text-decoration:none!important;
}
#abv-cart-quick-peek .abv-shopping-actions > a.abv-shopping-cta:is(:hover,:focus-visible,:active){
    background:#243e66!important;border-color:#243e66!important;
}
#abv-cart-quick-peek .abv-shopping-actions > a.abv-shopping-link,
dialog.abv-favorite-dialog button.abv-shopping-link{
    color:#14243d!important;-webkit-text-fill-color:currentColor!important;
    background:#fffdf8!important;border-color:#b5a386!important;text-decoration:none!important;
}
#abv-cart-quick-peek .abv-shopping-actions > a.abv-shopping-link:is(:hover,:focus-visible,:active),
dialog.abv-favorite-dialog button.abv-shopping-link:is(:hover,:focus-visible,:active){
    background:#f4e8d7!important;border-color:#977b55!important;
}
dialog.abv-favorite-dialog .abv-shopping-top h2{color:#14243d!important}
@media(max-width:390px){.abv-favorite-dialog{padding:14px}}

/* An outlined heart is an invitation to save; only stored books stay filled. */
body .abv-favorite-cover-host > button.abv-favorite-heart[data-abv-favorite-id]{
    border-color:#d99aa6!important;color:#ae2342!important;
    background:#fffaf7!important;box-shadow:0 2px 10px rgba(85,30,42,.20)!important;
}
body .abv-favorite-cover-host > button.abv-favorite-heart[data-abv-favorite-id][aria-pressed="true"]{
    border-color:#e1a1ae!important;color:#bb163b!important;background:#fff0f3!important;
}
body .abv-favorite-cover-host > button.abv-favorite-heart[data-abv-favorite-id]:not(:disabled):focus-visible{
    border-color:#b92747!important;color:#9e1634!important;background:#ffe3eb!important;
    box-shadow:0 0 0 4px rgba(180,33,67,.15),0 5px 14px rgba(85,30,42,.24)!important;
}
@media(hover:hover) and (pointer:fine){
    body .abv-favorite-cover-host > button.abv-favorite-heart[data-abv-favorite-id]:not(:disabled):hover{
        border-color:#b92747!important;color:#9e1634!important;background:#ffe3eb!important;
        box-shadow:0 0 0 4px rgba(180,33,67,.15),0 5px 14px rgba(85,30,42,.24)!important;
    }
    #masthead button.abv-favorites-open[data-abv-favorites-open]:hover{
        color:#9e1634!important;background:#ffe3eb!important;
        box-shadow:inset 0 0 0 1px #e6a8b6!important;
    }
}
@media(prefers-reduced-motion:no-preference){
    body .abv-favorite-cover-host > button.abv-favorite-heart[data-abv-favorite-id]{
        transition:background-color 160ms ease,border-color 160ms ease,box-shadow 160ms ease,transform 160ms ease;
    }
    button.abv-favorite-heart[data-abv-favorite-id] svg{
        transition:transform 160ms ease,fill 160ms ease,stroke 160ms ease;
    }
    @media(hover:hover) and (pointer:fine){
        body .abv-favorite-cover-host > button.abv-favorite-heart[data-abv-favorite-id]:not(:disabled):hover{transform:translateY(-2px)}
        button.abv-favorite-heart[data-abv-favorite-id]:not(:disabled):hover svg{transform:scale(1.13)}
    }
    body .abv-favorite-cover-host > button.abv-favorite-heart[data-abv-favorite-id]:not(:disabled):active{transform:scale(.92)}
}
