/* The banner is a preceding block, never the background of the purchase form. */
body.single-product.wp-theme-boemia:has(.fhw-product-mast) #wrapper {
    & #header {margin-bottom:0 !important;}
    & #primary #content-shop > #page-meta {margin-bottom:0 !important;}
    & #primary #content-shop .product > .fhw-product-mast {
        display:block; clear:both; margin:0 auto 16px; width:100%; max-width:1170px; background:#000;
        & :is(.thumbnails,a.zoom,img) {
            display:block !important; position:relative !important; inset:auto !important; float:none !important;
            box-sizing:border-box; transform:none !important; width:100% !important; min-width:0 !important;
            height:auto !important; min-height:0 !important; margin:0 !important; padding:0 !important;
        }
        & img {object-fit:contain; max-width:100% !important; max-height:510px !important;}
    }
}
body.single-product.wp-theme-boemia #wrapper #primary #content-shop :is(#product-28373,.fhw-product-layout).fhw-product-layout {
    & > .images[hidden] {display:none !important;}
    & .summary.entry-summary:has(.fhw-buy-form) {width:100% !important; max-width:100% !important; min-width:0 !important;}
    & .summary > .fhw-buy-heading {display:block !important; margin:0 0 18px !important; padding:0 !important; border:0;}
    & .summary > form.cart.fhw-buy-form {
        box-sizing:border-box; width:100% !important; padding:0 0 12px !important; margin:0 0 14px !important; border-bottom:1px solid #353739;
        &::before,&::after {content:none !important;}
        & > .simple-quantity:empty, & .woocommerce-price-and-add:not(:has(button,input,a)), & > .simple-quantity:not(:has(input,p.stock)) {display:none !important;}
        &.fhw-buy-row, & > .fhw-buy-row {display:flex !important; flex-flow:row wrap; align-items:flex-end; gap:8px 12px;}
        & .fhw-price-slot {order:0; align-self:center; max-width:100%; min-width:0; text-align:left; flex:0 1 auto;}
        & .fhw-price-slot p.price {justify-content:flex-start; align-items:center;}
        & .fhw-price-slot .woocs_price_info {display:none;}
        & .fhw-has-total > .fhw-base-range {display:none;}
        & .fhw-config-price:not([hidden]) {display:inline-block;}
        & .fhw-cable-saving {display:inline-block; padding:3px 6px; font:600 13px/1.2 Abel,sans-serif; color:#fff; background:#87302a;}
        & .fhw-buy-qty {order:1; display:grid; gap:4px; justify-items:start;}
        & .fhw-qty-hint {position:relative; align-self:center;}
        & .fhw-qty-hint > label {
            position:absolute; z-index:5; bottom:calc(100% + 4px); left:50%; transform:translateX(-50%);
            width:max-content; padding:4px 8px; border:1px solid #687078; border-radius:3px;
            background:#101214; color:white; opacity:0; pointer-events:none;
        }
        & .fhw-qty-hint:is(:hover,:focus-within) > label {opacity:1;}
        & .fhw-buy-qty label, & .variations label {margin:0; color:#ddd; font:600 15px/1.1 Abel,sans-serif;}
        & .fhw-buy-qty .quantity {position:static !important; display:inline-flex !important; align-items:center; float:none !important; inset:auto !important; margin:0 !important; width:82px !important; height:36px !important; padding:0 !important; transform:none !important;}
        & .fhw-buy-qty .quantity :is(.minus,.qty,.plus) {position:static !important; float:none !important; margin:0 !important; transform:none !important;}
        & .variations {order:2; display:block; border:0; background:none; margin:0 !important; width:auto !important; height:auto !important; max-width:100%;}
        & .variations :is(tbody,tr,th,td,label) {position:static !important; float:none !important; inset:auto !important; display:block; width:auto !important; height:auto !important; padding:0 !important; margin:0 !important; border:0; background:none; text-align:left;}
        & .variations select {display:inline-block !important; visibility:visible !important; opacity:1 !important; position:static !important; width:auto !important; height:36px !important; min-height:36px; margin:4px 0 0 !important; padding:3px 8px !important; background:#101112; border:1px solid #64676a; border-radius:3px; color:#fff;}
        & .variations .reset_variations {display:none !important;}
        & :is(.single_variation_wrap,.woocommerce-variation-add-to-cart) {display:contents !important;}
        & .single_variation {order:5; flex-basis:100%;}
        & .woocommerce-variation-price, & .single_variation:not(:has(.woocommerce-variation-description:not(:empty),.woocommerce-variation-availability:not(:empty))) {display:none !important;}
        & :is(.fhw-options-toggle,.fhw-buy-review,.single_add_to_cart_button) {
            position:static !important; inset:auto !important; float:none !important; transform:none !important;
            box-sizing:border-box; height:38px !important; min-height:38px !important; width:auto !important;
            margin:0 !important; padding:4px 12px !important; border:1px solid #65686b; border-radius:4px;
            font:600 16px/1.1 Abel,sans-serif !important; letter-spacing:normal; text-transform:none !important; white-space:nowrap; cursor:pointer;
        }
        & .fhw-options-toggle {order:2; width:132px !important; color:#eee; background:#111315 !important;}
        & :is(.single_add_to_cart_button,.fhw-buy-review) {order:3; margin-left:auto !important; background:#e1e6e8 !important; color:#151719 !important;}
        & .woocommerce-variation-add-to-cart-disabled .single_add_to_cart_button {visibility:hidden !important; pointer-events:none;}
        &.fhw-buy-config:not([data-fhw-review-ready]) :is(.fhw-buy-review,.woocommerce-price-and-add) {display:none !important;}
        &.fhw-buy-config .woocommerce-price-and-add {justify-content:flex-end; border:0;}
        &.fhw-buy-config .fhw-buy-row {margin-bottom:10px;}
        & :is(button,select):focus-visible {outline:2px solid #9bcbe8; outline-offset:2px;}
    }
}
body.single-product.wp-theme-boemia #wrapper #primary #content-shop .fhw-product-layout > .woocommerce-tabs > ul.wc-tabs {
    border-bottom:1px solid #414447 !important;
}
body.single-product.wp-theme-boemia #wrapper #primary #content-shop :is(#product-28373,.fhw-product-layout).fhw-product-layout > .images.fhw-product-photo {
    height:auto !important; max-height:none !important; min-width:0; box-sizing:border-box;
    & img[data-fhw-hero] {display:block !important; width:100% !important; height:auto !important; aspect-ratio:1 / 1 !important; object-fit:contain !important; background:#000;}
    & .fhw-photo-tools {position:relative; clear:both; display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:6px 12px; width:100%; margin:0; padding:10px 1px; box-sizing:border-box; background:#000;}
    & .fhw-photo-strip {position:static; display:flex; flex:1 1 190px; flex-wrap:wrap; align-items:center; gap:6px; margin:0; padding:0; min-height:0; min-width:0; height:auto; background:#000; border:0;}
    & .fhw-photo-choice {
        position:relative !important; display:grid !important; place-items:center; box-sizing:border-box; float:none !important;
        width:52px !important; height:52px !important; padding:3px !important; margin:0 !important;
        background:#050505 !important; border:1px solid #45494b !important; border-radius:3px;
    }
    & .fhw-photo-choice[aria-current="true"] {border-color:#e4e9ec !important; box-shadow:inset 0 0 0 1px #e4e9ec;}
    & .fhw-photo-choice img {
        position:static !important; display:block !important; float:none !important; inset:auto !important; object-fit:contain;
        width:100% !important; height:100% !important; min-width:0 !important; max-width:100% !important; min-height:0 !important;
        margin:0 !important; padding:0 !important; border:0 !important; opacity:1 !important; transform:none !important;
    }
    & .fhw-photo-expand {position:static; margin-left:auto; display:inline-flex; align-items:center; justify-content:center; min-height:36px; padding:0 10px; border:1px solid #4b5053; border-radius:3px; background:#101112; color:#eceff0; font:600 15px/1.2 Abel,sans-serif; text-decoration:none;}
    & .fhw-photo-tools a:focus-visible {outline:2px solid #9acdeb; outline-offset:2px;}
}
body.single-product dialog.fhw-photo-dialog {
    position:fixed; inset:0; margin:auto; width:fit-content; height:fit-content; max-width:94vw; max-height:94vh;
    padding:12px; box-sizing:border-box; border:1px solid #464a4c; border-radius:4px; background:#000; color:white;
    &::backdrop {background:rgba(0,0,0,.92);}
    & img {display:block; width:auto; height:auto; max-width:100%; max-height:78vh; object-fit:contain; margin:0 auto;}
    & img {cursor:zoom-out;}
    & button {display:block; margin:0 0 8px auto; padding:6px 12px; min-height:36px; background:#161819; color:#fff; border:1px solid #777; cursor:pointer;}
}

body.single-product.postid-28373 #wrapper #primary #content-shop #product-28373.fhw-product-layout {
    & > .fhw-cable-crumb {
        display:block; grid-column:1/-1; grid-row:1; clear:both; margin:0 0 12px; padding:0;
        font:400 14px/1.5 Abel,sans-serif; color:#bbb; overflow-wrap:anywhere; text-align:start;
    }
    & .fhw-cable-crumb :is(a,span) {font:inherit !important; text-transform:none;}
    & .fhw-cable-crumb a {color:#ddd; text-decoration:underline; text-underline-offset:3px;}
    & .fhw-cable-crumb [aria-hidden] {padding:0 4px; color:#999;}
    @media(min-width:900px) {
        & > .images:first-of-type, & > .images + .images, & > .summary.entry-summary {grid-row:2;}
    }
    @media(min-width:900px) and (max-width:1199px) {
        & > .images:first-of-type, & > .summary.entry-summary {grid-row:3;}
    }
}

/* The theme starts blinking both quantity buttons after a ten-second delay. */
body.wp-theme-boemia .quantity :is(.minus, .plus) {
    animation: none !important;
}

body #wrapper #back-top[data-fhw-visible] {
    position: fixed !important; inset: auto max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) auto !important;
    box-sizing: border-box; width: auto; height: auto; margin: 0 !important; padding: 0 !important;
    border: 1px solid #42464b !important; border-radius: 5px; background: #101112;
    z-index: 9900; transition: border-color .15s; opacity: 1 !important;
}
body #wrapper #back-top[data-fhw-visible="false"], .share_line:empty { display: none !important; }
body #wrapper #back-top[data-fhw-visible="true"] { display: block !important; }
body:has(#vcht_chatframe[data-side="right"]) #wrapper #back-top[data-fhw-visible] { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 54px) !important; }
body #wrapper #back-top[data-fhw-visible] a {
    display: grid; place-items: center; box-sizing: border-box; min-height: 44px; min-width: 60px;
    padding: 0 12px; color: #c2c5c8; text-decoration: none; opacity: 1;
}
body #wrapper #back-top a:focus-visible { outline: 2px solid #95c6e3; outline-offset: 2px; }

@media (max-width: 767px) {
    /* The two preset pages use a second images wrapper for their landscape banner. */
    body.single-product #wrapper #primary #content-shop :is(#product-27933,#product-28632,#product-28411).fhw-product-layout {
        display: flex !important; flex-direction: column; gap: 18px; align-items: stretch;
        & > .images + .images { order: -1; }
        & > .images + .images, & > .images + .images :is(.thumbnails, a.zoom, img) {
            display: block !important; position: static !important; inset: auto !important; float: none !important;
            box-sizing: border-box; width: 100% !important; max-width: 100% !important; min-width: 0 !important;
            height: auto !important; min-height: 0 !important; max-height: none !important;
            padding: 0 !important; margin: 0 !important; transform: none !important;
        }
        & > .images + .images { position: relative !important; }
        & > .images + .images .on_sale_wrap .onsale {
            position: absolute !important; inset: 0 0 auto auto !important; margin: 0 !important;
            width: auto !important; height: auto !important; z-index: 1;
        }
    }

    body.wp-theme-boemia #wrapper #primary :is(#content-shop,#content-page) .right_cover:has(+ li.product.list a.details) + li.product.list {
        & .product-thumbnail { grid-template-columns: minmax(0,1fr) !important; row-gap: 10px !important; }
        & .product-thumbnail > .product-actions, & .product-meta > :not(.woocommerce-loop-product__title),
        & .product-thumbnail > :is(.comingsoon,.list-groupx) { display: none !important; }
        & .product-thumbnail > .product-meta, & .product-meta > .woocommerce-loop-product__title {
            display: block !important; position: static !important; inset: auto !important;
            float: none !important; transform: none !important; width: 100% !important; min-width: 0 !important; max-width: 100% !important;
            height: auto !important; min-height: 0 !important; max-height: none !important; aspect-ratio: auto !important;
            margin: 0 !important; padding: 0 !important; background: transparent !important; overflow: visible !important;
            box-sizing: border-box;
        }
        & .product-thumbnail > .product-meta { grid-area: 2 / 1 !important; }
        & .product-meta > .woocommerce-loop-product__title { font-size: 19px !important; line-height: 1.3 !important; color: #eee; }
    }

    body.single-product #wrapper #primary #content-shop :is(#product-28632,.fhw-product-layout).fhw-product-layout > .summary .fhw-purchase-header.fhw-mobile-purchase {
        display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
        & > .library-title { flex: 0 0 100%; margin-bottom: 4px !important; }
        & > form.cart, & form.cart :is(.woocommerce-price-and-add,.woocommerce-add-to-cart) {
            width: auto !important; min-width: 0 !important; min-height: 0 !important;
            display: flex !important; margin: 0 !important; padding: 0 !important; gap: 0 !important; border: 0 !important;
        }
        & > form.cart { flex: 0 0 auto; }
        & form.cart .simple-quantity:empty { display: none; }
        & form.cart button.single_add_to_cart_button {
            font-size: clamp(13px,2.6vw,16px) !important; padding: 6px 8px !important;
            min-height: 44px !important; white-space: nowrap; line-height: 1.15 !important;
        }
        & > #wc-stripe-express-checkout-element {
            flex: 1 1 min(162px,54%); column-gap: 4px; flex-wrap: nowrap; width: auto !important; max-width: 380px !important; align-self: center;
        }
        & > .fhw-price-slot { margin-inline-start: auto; max-width: 100%; }
        & .fhw-price-slot .amount { font-size: clamp(26px,4.6vw,32px) !important; }
        & .fhw-price-slot p.price { gap: 2px 5px; }
        @media (max-width: 430px) {
            & .fhw-price-slot p.price { flex-direction: column; align-items: flex-end; gap: 0; }
        }
    }
}

/* The blue switch is the marker for these product features. Keep it one
   line tall when the label wraps on a phone. */
body.single-product li.li4 {
    list-style-type: none;
    background-size: auto 26px;
    background-position: left top;
    margin-inline: 0;
    padding-inline-start: 38px;
}

body.postid-26997.wp-theme-boemia #wrapper #tab-description {
    & .textblock ul.ul2:has(> li.li4) {margin-bottom:24px !important;}
    & .textblock center > img {position:static !important; inset:auto !important; display:block; max-width:100%; height:auto !important; margin:0 auto;}
}
body.single-product.wp-theme-boemia #wrapper #tab-description {
    & ul.ul2:has(> li.li4), & ul.ul2:has(> li:only-child > ul.ul2 > li.li4),
    & ul.ul2 > li:only-child:has(> ul.ul2 > li.li4) {
        list-style:none; margin-inline:0 !important; padding-inline:0 !important; text-indent:0;
    }
    & ul.ul2 > li.li4 {
        margin-inline:0 !important; padding-inline:28px 0 !important;
        background-position:-4px top; text-indent:0;
    }
    & .fhw-loom-models {
        display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(16px,3vw,32px);
        box-sizing:border-box; max-width:920px; margin:24px auto; width:100%;
    }
    & .fhw-loom-models a {display:block; min-width:0; padding:0; text-align:center; color:#eee;}
    & .fhw-loom-models img {
        display:block; position:static !important; float:none; box-sizing:border-box;
        width:100% !important; max-width:100% !important; height:auto !important; margin:0 !important;
    }
    & .fhw-loom-models span {display:block; margin-top:6px; color:inherit; line-height:1.3;}
    & .fhw-loom-models a:is(:focus-visible,:hover) {outline:2px solid #91c8e5; outline-offset:3px;}
    & .gallery-icon a:has(img) {cursor:zoom-in;}
}
@media (min-width:768px) {
    body.wp-theme-boemia #wrapper #primary .right_cover + li.product.list .product-thumbnail .product-meta .fhw-card-options {
        position:absolute !important; inset:72% auto auto 51.43% !important; transform:translate(-50%,-50%) !important;
        display:inline-flex; justify-content:center; align-items:center; box-sizing:border-box; white-space:nowrap;
        width:auto !important; height:auto !important; min-height:26px; margin:0 !important; padding:3px 12px;
        border:1px solid #65686b; border-radius:4px; background:#101214; color:#eee;
        font:600 clamp(12px,1.1vw,15px)/1.25 Abel,sans-serif; text-decoration:none; pointer-events:auto;
    }
    body.wp-theme-boemia #wrapper #primary .product-meta .fhw-card-options:is(:hover,:focus-visible) {border-color:#9acdeb; color:white;}
}
/* Boemia initialises its submenu arrows twice and recalculates padding on resize. */
#header #nav a > .sf-sub-indicator ~ .sf-sub-indicator { display: none !important; }
@media (min-width: 1200px) {
    #wrapper #header #nav > ul.level-1 {
        display:flex !important; align-items:center; justify-content:center;
        min-width:0 !important; max-width:100% !important; float:none !important;
        width:100% !important; margin-inline:0 !important; padding-inline:0 !important; box-sizing:border-box;
    }
    #wrapper #header #nav > ul.level-1 > li { flex:0 0 auto; margin-inline:0 !important; }
    #wrapper #header #nav > ul.level-1 > li > a { padding-inline:clamp(10px,1.3vw,20px) !important; white-space:nowrap; }
    #wrapper #header #nav > ul.level-1 > li.menu-item-has-children > a { padding-right:32px !important; }
}
#wrapper #topbar .widget_shopping_cart .fhw-cart-preview { position:relative; }
#wrapper #topbar .fhw-cart-preview summary { list-style:none; cursor:pointer; }
#wrapper #topbar .fhw-cart-preview summary::-webkit-details-marker { display:none; }
#wrapper #topbar .fhw-cart-preview summary:focus-visible { outline:2px solid #a9cbe2; }
#wrapper #topbar:has(.fhw-cart-preview[open]) { position:relative; z-index:1001; }
#wrapper #topbar .widget_shopping_cart details.fhw-cart-preview > .cart_wrapper {
    display:none !important; position:absolute !important; box-sizing:border-box;
    left:var(--fhw-cart-x,auto) !important; right:auto !important; top:var(--fhw-cart-y,100%) !important; bottom:auto !important;
    width:var(--fhw-cart-w,min(94vw,960px)) !important; max-width:none !important; min-width:0 !important;
    margin:0 !important; padding:clamp(10px,1.2vw,18px) !important; height:auto !important;
    max-height:min(65vh,600px); overflow:auto; overscroll-behavior:contain;
    transform:none !important; transition:none !important; z-index:1002; opacity:1 !important;
    background:rgba(3,3,3,.86) !important; border:1px solid #414141; color:#eee;
    text-align:left; line-height:1.35;
}
#wrapper #topbar .widget_shopping_cart details.fhw-cart-preview[open] > .cart_wrapper { display:block !important; }
#wrapper #topbar .fhw-cart-preview .fhw-mini-content { width:100% !important; box-sizing:border-box; }
#wrapper #topbar .fhw-cart-preview .cart_list { width:auto !important; height:auto !important; margin:0 !important; padding:0 !important; list-style:none; }
#wrapper #topbar .fhw-cart-preview .mini_cart_item {
    display:grid !important; grid-template-columns:clamp(60px,10vw,120px) minmax(0,1fr) auto;
    gap:5px clamp(8px,1.5vw,20px); align-items:start; position:relative;
    min-height:0 !important; padding:8px 0 !important; margin:0 !important; float:none !important; width:auto !important;
}
#wrapper #topbar .fhw-cart-preview .mini_cart_item::before,
#wrapper #topbar .fhw-cart-preview .mini_cart_item::after { content:none !important; }
#wrapper #topbar .fhw-cart-preview .mini_cart_item > a:has(img) { grid-column:1; grid-row:1 / span 3; padding:0 !important; }
#wrapper #topbar .widget_shopping_cart details.fhw-cart-preview > .cart_wrapper .cart_list .mini_cart_item img {
    position:static !important; display:block !important; width:100% !important; max-width:120px !important;
    height:auto !important; max-height:none !important; min-width:0 !important; box-sizing:border-box !important; margin:0 !important; float:none !important;
}
#wrapper #topbar .fhw-cart-preview .mini_cart_item > a:not(:has(img),.remove_item,.remove),
#wrapper #topbar .fhw-cart-preview .mini_cart_item > dl { grid-column:2; margin:0 !important; overflow-wrap:anywhere; }
#wrapper #topbar .fhw-cart-preview .mini_cart_item .quantity { position:static !important; grid-column:3; grid-row:1; white-space:nowrap; }
#wrapper #topbar .fhw-cart-preview .mini_cart_item :is(.remove_item,.remove) {
    position:static !important; grid-column:3; grid-row:2; justify-self:end; display:block !important;
    width:auto !important; height:auto !important; min-width:0 !important; min-height:0 !important;
    max-width:none !important; background:none !important; color:#ccc !important; font-size:13px !important; text-indent:0 !important;
}
#wrapper #topbar .fhw-cart-preview .total { display:flex; justify-content:space-between; clear:both; margin:10px 0; padding-top:8px; border-top:1px solid #393939; }
#wrapper #topbar .fhw-cart-preview .buttons { display:flex; justify-content:flex-end; gap:8px; height:auto !important; margin:0; }
#wrapper #topbar .fhw-cart-preview .buttons .button {
    position:static !important; float:none !important; width:auto !important; height:auto !important;
    margin:0 !important; padding:8px 14px !important; line-height:1.3 !important;
}
@media(max-width:600px) {
    #wrapper #topbar .fhw-cart-preview .mini_cart_item { grid-template-columns:70px minmax(0,1fr) auto; }
    #wrapper #topbar .fhw-cart-preview .mini_cart_item .quantity { grid-column:2; grid-row:auto; }
    #wrapper #topbar .fhw-cart-preview .mini_cart_item :is(.remove_item,.remove) { grid-row:1; }
}

body.woocommerce-cart #wrapper #primary > .container {
    width:min(100%,1170px) !important; max-width:100% !important; margin-inline:auto !important; box-sizing:border-box;
}
body.woocommerce-cart #wrapper #primary > .container > .row,
body.woocommerce-cart #wrapper #primary #content-page,
body.woocommerce-cart #wrapper #cart-table, body.woocommerce-cart #wrapper #cart-table .shop_table {
    width:100% !important; max-width:100%; margin-inline:0 !important; box-sizing:border-box;
}
body.woocommerce-cart #wrapper #cart-table .product-thumbnail img {
    width:clamp(72px,9vw,120px) !important; min-width:0 !important; max-width:100% !important; height:auto !important;
}

/* Header tools share the type size of Boemia's account and utility links. */
@media (min-width:1200px) {
    /* Match the raised left menu without changing the logo or the header height. */
    #wrapper #topbar .wrap > .right { position:relative; top:-16px !important; }
}
#wrapper #topbar .hide-topbar:has(.fhw-currency) {
    display:inline-flex !important; align-items:center; gap:8px; overflow:visible;
}
#wrapper #topbar :is(.WOOCS_SELECTOR,.widget_shopping_cart):has(> details),
#wrapper #topbar .widget_product_search.fhw-search-widget {
    width:auto !important; min-width:0 !important; height:auto !important;
    margin:0 !important; padding:0 !important; float:none !important; vertical-align:middle;
}
#wrapper #topbar .fhw-cart-preview > summary.cart_control,
#wrapper #topbar .fhw-currency > summary,
#wrapper #topbar .fhw-search-widget button.fhw-search-toggle {
    display:inline-flex !important; align-items:center; justify-content:center; gap:4px; box-sizing:border-box !important;
    position:relative !important; inset:auto !important; float:none !important;
    width:auto !important; min-width:30px !important; height:32px !important; max-height:none !important;
    padding:0 4px !important; margin:0 !important; border:0 !important; box-shadow:none !important;
    color:#eee !important; background:transparent !important; list-style:none; text-indent:0 !important;
    font:normal 16px/1.1 Abel,sans-serif !important; letter-spacing:normal; white-space:nowrap; cursor:pointer;
}
#wrapper #topbar .fhw-cart-preview > summary::before,
#wrapper #topbar .fhw-cart-preview > summary::after { content:none !important; }
#wrapper #topbar .fhw-cart-preview > summary .count {
    position:static !important; inset:auto !important; float:none !important; display:inline !important;
    padding:0 !important; margin:0 !important; background:none !important; border:0 !important;
    width:auto !important; height:auto !important; color:inherit; font:inherit !important; text-indent:0 !important;
}
#wrapper #topbar :is(.fhw-cart-icon,.fhw-search-toggle svg) { width:19px; height:19px; flex:none; display:block; }
#wrapper #topbar .fhw-currency { position:relative; }
#wrapper #topbar .fhw-currency summary::-webkit-details-marker { display:none; }
#wrapper #topbar .fhw-currency summary::after {
    content:''; width:5px; height:5px; margin:-3px 0 0 2px; transform:rotate(45deg);
    border:solid currentColor; border-width:0 1px 1px 0;
}
#wrapper #topbar .fhw-currency[open] summary::after { transform:rotate(225deg); margin-top:2px; }
#wrapper #topbar:has(.fhw-currency[open]) { position:relative; z-index:1001; }
#wrapper #topbar details.fhw-currency > ul.fhw-currency-list {
    box-sizing:border-box; display:none !important; position:absolute !important; top:100% !important;
    right:0 !important; bottom:auto !important; left:auto !important; min-width:100%; width:max-content !important;
    height:auto !important; padding:3px !important; margin:0 !important; z-index:1010;
    list-style:none; border:1px solid #494949; background:#080808; transition:none !important; transform:none !important;
}
#wrapper #topbar details.fhw-currency[open] > ul.fhw-currency-list { display:block !important; }
#wrapper #topbar .fhw-currency-list > li { display:block !important; float:none !important; margin:0 !important; padding:0 !important; }
#wrapper #topbar .fhw-currency-list > li > a {
    display:block !important; padding:8px 12px !important; margin:0 !important; white-space:nowrap;
    font:normal 16px/1.15 Abel,sans-serif !important; color:#eee; text-align:left; text-decoration:none;
}
#wrapper #topbar .fhw-currency-list a:is([aria-current],:hover,:focus-visible) { background:#262626; }
#wrapper #topbar :is(.fhw-search-toggle,.fhw-currency summary):focus-visible { outline:2px solid #a9cbe2; outline-offset:1px; }
#wrapper #header #fhw-header-search[hidden] { display:none !important; }
#wrapper #header #fhw-header-search:not([hidden]) {
    display:block; position:relative; clear:both; width:100%; max-width:1170px; margin:0 auto; padding:6px 0 10px; box-sizing:border-box;
}
#wrapper #header #fhw-header-search form.woocommerce-product-search {
    position:static !important; display:flex !important; align-items:stretch; width:100% !important; max-width:none !important;
    margin:0 !important; padding:0 !important; height:auto !important; box-sizing:border-box;
}
#wrapper #header #fhw-header-search .search-field, #wrapper #header #fhw-header-search button[type=submit] {
    display:block !important; position:static !important; float:none !important; box-sizing:border-box;
    margin:0 !important; padding:8px 14px !important; height:42px !important; border:1px solid #505050;
    border-radius:0; color:white; background:#111; font:normal 16px/1.2 Abel,sans-serif !important;
}
#wrapper #header #fhw-header-search .search-field { flex:1 1 0%; width:0 !important; min-width:0; max-width:none !important; }
#wrapper #header #fhw-header-search button[type=submit] { flex:none; width:auto !important; border-left:0; cursor:pointer; }
#wrapper #header:has(#fhw-header-search:not([hidden])) { height:auto !important; }
@media (pointer:coarse) {
    #wrapper #topbar .fhw-cart-preview > summary.cart_control, #wrapper #topbar .fhw-currency > summary,
    #wrapper #topbar .fhw-search-widget button.fhw-search-toggle { min-width:44px !important; height:44px !important; }
}
body.wp-theme-boemia.woocommerce-checkout #wrapper #content-page {
    & img.fhw-checkout-banner {
        position:static !important; display:block; width:100% !important; height:auto !important; max-width:1170px;
        margin:0 auto 16px !important; object-fit:contain;
    }
    & .fhw-checkout .fhw-checkout-steps {margin:0 0 16px !important;}
    & .fhw-checkout .fhw-guest-note {grid-column:1/-1; margin:0; color:#c7c9ca; font-size:1rem;}
    & .fhw-checkout #wc-stripe-express-checkout-button-separator,
    & .fhw-checkout[data-step]:not([data-step="3"]) .fhw-payment-wallets,
    & .fhw-payment-back, & .fhw-checkout[data-step="3"] .fhw-checkout-actions {display:none !important;}
    & .fhw-payment-wallets #wc-stripe-express-checkout-element,
    & .fhw-payment-wallets #wc-stripe-express-checkout-element > div {
        position:static !important; inset:auto !important; transform:none !important; float:none !important;
        max-width:100% !important; min-width:0; margin:0 !important; padding:0 !important;
    }
    & .fhw-payment-wallets {clear:both;}
    & .fhw-payment-wallets:has(iframe) {margin-bottom:12px;}
    & .fhw-payment-wallets #wc-stripe-express-checkout-element {width:100% !important;}
    & .fhw-checkout[data-step="3"] #payment .place-order {display:flex; flex-wrap:wrap; align-items:center; gap:10px;}
    & .fhw-checkout[data-step="3"] #payment .place-order > :not(button):not(input[type="hidden"]) {flex:0 0 100%; min-width:0;}
    & .fhw-checkout[data-step="3"] #payment .fhw-payment-back {display:inline-flex !important; align-items:center; position:static !important; margin:0 auto 0 0 !important; min-height:44px;}
    & .fhw-checkout[data-step="3"] #payment #place_order {margin:0 0 0 auto !important; position:static !important; float:none !important;}
}
body.postid-28632 #wrapper #tab-description #sub37-audio-examples {
    position:static !important; width:100% !important; height:auto !important; margin:0 0 24px !important; clear:both;
    & .rgb-scanline, & audio {position:relative !important; inset:auto !important; width:100% !important; max-width:100%; box-sizing:border-box;}
}
body.wp-theme-boemia :is(#content-page,#content-shop) li.product.category .woocommerce-loop-category__title {
    background:rgba(0,0,0,.72) !important; color:white;
    & mark.count {display:none !important;}
}
body.wp-theme-boemia #wrapper .fhw-sort-panel {
    clear:both; width:100%; max-width:1125px; margin:18px auto 24px; box-sizing:border-box;
    & > summary {display:flex; align-items:end; justify-content:center; list-style:none; cursor:pointer;}
    & > summary::-webkit-details-marker {display:none;}
    & > summary::before,& > summary::after {content:''; flex:1; border-bottom:1px solid #424446;}
    & > summary > span {display:inline-flex; gap:10px; align-items:center; justify-content:center; min-height:44px; padding:0 24px; border:1px solid #484a4c; border-radius:5px 5px 0 0; background:#101112; color:#eee; font:600 18px/1.2 Abel,sans-serif;}
    & > summary > span::after {content:''; width:6px; height:6px; border:solid currentColor; border-width:0 1px 1px 0; transform:rotate(45deg);}
    &[open] > summary > span::after {transform:rotate(225deg);}
    & > summary:focus-visible {outline:0;}
    & > summary:focus-visible > span {outline:2px solid #96c9e2; outline-offset:2px;}
}
body.wp-theme-boemia #wrapper .fhw-sort-panel > .fhw-browse-tools {
    display:flex; flex-wrap:wrap; justify-content:center; align-items:end; gap:12px; margin:16px auto 0; padding:0; box-sizing:border-box;
    & label {display:grid; flex:0 1 168px; min-width:0; margin:0; gap:4px; text-align:left; color:#bfc2c4; font:600 14px/1.3 Abel,sans-serif;}
    & :is(select,button,.fhw-sort-reset) {box-sizing:border-box; min-height:44px; margin:0; padding:7px 12px; border:1px solid #545759; border-radius:3px; background:#101112; color:#eee; font:500 16px/1.2 Abel,sans-serif;}
    & select {width:100%;}
    & :is(button,.fhw-sort-reset) {display:inline-grid; place-items:center; width:100px; cursor:pointer; text-decoration:none;}
    & label > select[name] {
        visibility:visible !important; position:static !important; opacity:1 !important; pointer-events:auto; max-width:100%;
        appearance:none; padding-right:34px;
        background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23ddd' stroke-width='1.5'/%3E%3C/svg%3E");
        background-repeat:no-repeat; background-position:right 12px center;
    }
    @media(forced-colors:active){& label > select[name] {appearance:auto; background-image:none;}}
    @media(max-width:600px) {
        display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); max-width:430px; gap:10px;
        & :is(button,.fhw-sort-reset) {width:100%;}
    }
    @media(max-width:360px) {grid-template-columns:minmax(0,1fr);}
}
body.wp-theme-boemia:has(.fhw-browse-tools) #page-meta :is(.list-or-grid,.woocommerce-ordering) {display:none !important;}

/* The legacy theme shrinks and fades the amount inside del independently of its wrapper. */
body.single-product.wp-theme-boemia #wrapper #primary #content-shop :is(#product-28373,.fhw-product-layout).fhw-product-layout .summary .fhw-price-slot,
body.wp-theme-boemia #wrapper #primary #content-shop .fhw-compact-card {
    & .price del {
        font-size:var(--fhw-former-price,clamp(20px,2.1vw,25px)) !important;
        line-height:1.2 !important; font-weight:600; letter-spacing:normal; color:#c9cdd0 !important;
        opacity:1 !important; white-space:nowrap; margin-inline-end:.22em;
        text-decoration:line-through;
    }
    & .price del:has(.amount) {text-decoration:none !important;}
    & .price del :is(.amount,bdi,.woocommerce-Price-currencySymbol) {
        font-size:inherit !important; line-height:inherit !important; letter-spacing:normal !important;
        color:inherit !important; opacity:1 !important;
    }
    & .price del .amount {text-decoration:line-through 1px currentColor !important;}
}
body.wp-theme-boemia #wrapper #primary #content-shop .fhw-compact-card {
    --fhw-former-price:20px;
    & .price:has(del) ins {font-size:22px; color:#eee; font-weight:600; text-decoration:none;}
    & .price:has(del) ins :is(.amount,bdi,.woocommerce-Price-currencySymbol) {font-size:inherit !important; color:inherit;}
}
body.wp-theme-boemia.single-product #wrapper #primary #content-shop .upsells.products > h2:has(> .fhw-upsell-tab) {
    display:flex; align-items:flex-end; justify-content:center; position:static; float:none; box-sizing:border-box;
    width:100%; height:auto; margin:30px 0 clamp(36px,4vw,64px); padding:0; border:0; background:none;
    text-align:center; text-transform:none; font:600 18px/1.3 Abel,sans-serif;
    &::before,&::after {content:''; display:block; flex:1; border-bottom:1px solid #383838;}
    & > span {box-sizing:border-box; min-width:min(215px,72%); padding:9px 20px 7px; border:1px solid #383838; border-bottom-color:#101010; border-radius:6px 6px 0 0; background:#000; color:#eee;}
    & + ul.products {border-top:0 !important;}
}
body.page-id-16 #wrapper #content-page #post-16:has(.fhw-about) {
    width:100% !important; max-width:1170px !important; margin:0 auto !important; box-sizing:border-box;
}
body.page-id-16 #wrapper #post-16 .fhw-about {
    display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,1fr); align-items:center;
    gap:clamp(24px,5vw,76px); margin:clamp(24px,4vw,60px) auto; padding:clamp(20px,3vw,48px) 0;
    border-block:1px solid #333b40; color:#e1e2e2;
    & .fhw-about-copy {min-width:0;}
    & p {max-width:55ch; margin:0 0 1em; color:#d5d8da; text-align:left; font:400 18px/1.55 Abel,sans-serif;}
    & .fhw-about-kicker {margin:0 0 18px; color:#a9c5d5; font:500 12px/1.4 monospace; letter-spacing:.12em; text-transform:uppercase;}
    & #fhw-about-title {display:block; position:static; float:none; margin:0 0 .45em; color:#fff; font:500 clamp(38px,5vw,64px)/1.03 Abel,sans-serif; text-align:left;}
    & .fhw-about-credit {margin:24px 0 0; padding-top:14px; border-top:1px solid #353b3e; color:#c2c6c8;}
    & .fhw-about-credit a {color:#f0f2f4; text-decoration:underline; text-underline-offset:3px;}
    & .fhw-about-photo, & .fhw-about-photo :is(.figure,p) {display:block; position:static; box-sizing:border-box; width:100%; min-width:0; margin:0 !important; padding:0;}
    & .fhw-about-photo img {display:block; position:static; box-sizing:border-box; width:100% !important; max-width:100% !important; height:auto !important; margin:0; border:1px solid #3d4143;}
    @media(max-width:760px){grid-template-columns:minmax(0,1fr); gap:24px;}
}
body.wp-theme-boemia #wrapper #primary :is(#content-page,#content-shop) ul.products:has(> .fhw-compact-card) {
    display:grid !important; grid-template-columns:repeat(auto-fill,minmax(min(100%,190px),1fr)); align-items:start;
    gap:24px 18px; width:100% !important; height:auto !important; max-width:1125px; margin:12px auto !important; padding:0 !important; list-style:none;
    &::before,&::after {display:none !important;}
    & > .fhw-compact-card {width:auto; height:auto; min-width:0; margin:0; padding:0; list-style:none;}
    & .fhw-compact-card > a {display:grid; gap:6px; color:#eee; text-decoration:none;}
    & .fhw-compact-card img {display:block; width:100% !important; height:auto !important; aspect-ratio:1; object-fit:contain; border:1px solid #343638; box-sizing:border-box;}
    & .fhw-compact-card h2 {position:static !important; margin:0; padding:0; font:600 18px/1.25 Abel,sans-serif; color:#eee;}
    & .fhw-compact-card .price {position:static; margin:0; font-size:1rem; color:#ccc;}
    & .fhw-compact-card .woocs_price_info {display:none;}
    @media(max-width:540px){grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 10px;}
}
body.wp-theme-boemia.tax-product_cat #wrapper #content-shop .images-slider-sc {
    & .flex-direction-nav a {box-sizing:border-box; position:relative !important; width:26px !important; height:26px !important; min-width:0; display:inline-grid !important; place-items:center; border:0 !important; background:transparent !important; opacity:1; overflow:hidden; text-indent:-9999px;}
    & .flex-direction-nav a::before {content:'' !important; position:absolute; width:7px; height:7px; border:solid #a3a7aa; border-width:0 1px 1px 0; transform:rotate(-45deg);}
    & .flex-direction-nav a.flex-prev::before {transform:rotate(135deg);}
    & .flex-control-nav a {display:grid !important; place-items:center; box-sizing:border-box; width:22px !important; height:22px !important; border:0 !important; background:transparent !important; box-shadow:none !important; position:relative !important;}
    & .flex-control-nav a::before {content:''; position:absolute; width:5px; height:5px; border-radius:50%; background:#53575a;}
    & .flex-control-nav a.flex-active::before {background:#b4b8bb;}
    & :is(.flex-direction-nav,.flex-control-nav) a:focus-visible {outline:1px solid #acc4d0;}
}
body.single-product.wp-theme-boemia .fhw-edge-nav {
    & a {display:flex; align-items:center; gap:6px; box-sizing:border-box; width:206px; max-width:46vw; padding:5px; color:#eee; background:rgba(0,0,0,.86); border:1px solid #363839; border-radius:4px; text-decoration:none; font:500 16px/1.2 Abel,sans-serif;}
    & img {position:static !important; width:54px !important; height:54px !important; margin:0 !important; object-fit:contain;}
    & span {flex:1; min-width:0; text-align:center;}
    & b {width:22px; text-align:center;}
    & .fhw-edge-newer {flex-direction:row-reverse;}
    @media(min-width:901px) and (hover:hover) {
        & a {position:fixed; z-index:95; top:50%; min-height:68px; transition:transform .2s ease;}
        & .fhw-edge-older {left:0; transform:translateX(calc(-100% + 32px));}
        & .fhw-edge-newer {right:0; transform:translateX(calc(100% - 32px));}
        & a:is(:hover,:focus-visible) {transform:translateX(0); background:#090a0b;}
    }
    @media(max-width:900px),(hover:none) {
        display:flex; gap:8px; justify-content:space-between; clear:both; margin:18px auto; max-width:100%;
        & a {width:auto; flex:1; font-size:14px;} & img {width:32px !important; height:32px !important;}
    }
    @media(prefers-reduced-motion:reduce){& a {transition:none;}}
}

/* The description uses a legacy homepage banner, not a floating gallery image. */
body.postid-28632 #tab-description .bannerfrontII {
    position:static !important; float:none !important; clear:both; display:block;
    width:100% !important; max-width:1024px; height:auto !important;
    margin:clamp(20px,3vw,36px) auto !important; padding:0;
}
body.postid-28632 #tab-description .bannerfrontII img {
    position:static !important; float:none !important; transform:none !important;
    display:block; box-sizing:border-box; width:100% !important; max-width:100%;
    height:auto !important; margin:0 !important;
}
body.wp-theme-boemia #wrapper .woocommerce-account-fields > p.create-account {
    clear:both; padding:16px 0 8px !important; margin:0 !important;
}
body.wp-theme-boemia #wrapper form.woocommerce-form-login p.form-row:has(#rememberme) {
    display:flex; flex-flow:column nowrap; align-items:flex-start;
    gap:12px; margin:12px 0 !important; padding:0 !important;
}
body.wp-theme-boemia #wrapper :is(p.create-account,form.woocommerce-form-login) label:has(:is(#createaccount,#rememberme)) {
    display:inline-flex !important; flex-flow:row nowrap; align-items:center; gap:10px;
    float:none !important; position:static; min-height:32px; padding:0 !important;
    margin:0 !important; font:600 17px/1.35 Abel,sans-serif !important; cursor:pointer;
}
body.wp-theme-boemia #wrapper :is(#createaccount,#rememberme) {
    position:static !important; float:none !important; display:block; box-sizing:border-box;
    flex:0 0 20px; width:20px !important; height:20px !important;
    margin:0 !important; accent-color:#51b5f5; cursor:pointer;
}
body.wp-theme-boemia #wrapper form.woocommerce-form-login button.woocommerce-form-login__submit {
    position:static; float:none; display:inline-flex; align-items:center; justify-content:center;
    box-sizing:border-box; min-width:104px; min-height:44px; padding:8px 22px !important;
    margin:0 !important; border:1px solid #77838a; border-radius:4px;
    background:#171b1e; color:#f2f4f5; font:600 18px/1.25 Abel,sans-serif !important;
}
body.wp-theme-boemia #wrapper form.woocommerce-form-login button.woocommerce-form-login__submit:is(:hover,:focus-visible) {
    border-color:#7acaff; background:#242d32;
}
/* Keep PayPal's protection and the visible Google logo, away from right-hand chat. */
body:has(#vcht_chatframe[data-side="right"]) .grecaptcha-badge {
    right:auto !important; left:0 !important;
    clip-path:inset(-6px calc(100% - 70px) -6px -6px);
}
body:has(#vcht_chatframe[data-side="right"]) .grecaptcha-badge:is(:hover,:focus-within) {
    clip-path:none;
}

/* This artwork prints its logos, tagline and link at the bottom. */
body.home.woocommerce-shop #content-shop .fhw-promo-track > a[href$="/cables-model-no-index/"] {
    grid-template: minmax(0,1fr) / minmax(0,1fr);
}
body.home.woocommerce-shop #content-shop .fhw-promo-track > a[href$="/cables-model-no-index/"] > img {
    min-height:0; min-width:0; object-fit:cover; object-position:center bottom;
}

/* Keep the arrow centres on the artwork, not on the artwork plus its footer. */
body.home.woocommerce-shop #content-shop .fhw-promo-reel {
    --promo-rail:44px;
    position:relative;
}
body.home.woocommerce-shop #content-shop .fhw-promo-controls {
    position:static; box-sizing:border-box; height:var(--promo-rail);
    flex-wrap:nowrap; gap:0; padding:0 46px; background:#050606;
}
body.home.woocommerce-shop #content-shop .fhw-promo-controls :is(.fhw-promo-prev,.fhw-promo-next) {
    position:absolute; z-index:1; top:calc(50% - var(--promo-rail) / 2);
    transform:translateY(-50%); display:block; box-sizing:border-box; width:clamp(44px,4vw,50px);
    height:clamp(46px,7vw,68px); border:1px solid #636c72; color:#fff;
    background:rgba(5,7,8,.94); font-size:0; line-height:0; padding:0; margin:0;
}
body.home.woocommerce-shop #content-shop .fhw-promo-prev {
    left:0; border-radius:0 4px 4px 0;
}
body.home.woocommerce-shop #content-shop .fhw-promo-next {
    right:0; border-radius:4px 0 0 4px;
}
body.home.woocommerce-shop #content-shop :is(.fhw-promo-prev,.fhw-promo-next)::before {
    /* Centre the painted triangle independently of the button's fallback text. */
    content:""; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
    box-sizing:content-box; width:0; height:0; margin:0; padding:0; pointer-events:none;
    border:solid transparent; --arrow-half-height:clamp(12px,1vw,14px); --arrow-width:clamp(14px,1.1vw,16px);
}
body.home.woocommerce-shop #content-shop .fhw-promo-prev::before {
    border-width:var(--arrow-half-height) var(--arrow-width) var(--arrow-half-height) 0; border-right-color:currentColor;
}
body.home.woocommerce-shop #content-shop .fhw-promo-next::before {
    border-width:var(--arrow-half-height) 0 var(--arrow-half-height) var(--arrow-width); border-left-color:currentColor;
}
body.home.woocommerce-shop #content-shop .fhw-promo-dot {
    width:26px; height:100%;
}
body.home.woocommerce-shop #content-shop .fhw-promo-dot::before {
    box-sizing:border-box; width:10px; height:10px; border:2px solid #315b7b;
    border-radius:50%; background:#146699; box-shadow:inset 0 0 0 1px #193e59;
}
body.home.woocommerce-shop #content-shop .fhw-promo-dot[aria-current="true"]::before {
    border-color:#279ef3; background:#effbff; box-shadow:0 0 3px #2385c6;
}
body.home.woocommerce-shop #content-shop .fhw-promo-play {
    position:absolute; right:2px; bottom:0; width:44px; height:var(--promo-rail);
}
body.home.woocommerce-shop #content-shop .fhw-promo-controls button:focus-visible {
    outline:2px solid #82ceff; outline-offset:-3px;
}
@media (pointer:coarse) {
    body.home.woocommerce-shop #content-shop .fhw-promo-dot {width:44px;}
}

/* Size the caption to its visible text; the whole image remains the category link. */
body.wp-theme-boemia #wrapper #content-shop .thumbnail-wrapper a > h2.woocommerce-loop-category__title {
    box-sizing:border-box; display:grid; place-items:center;
    width:max-content !important; max-width:calc(100% - 24px); min-height:48px;
    height:auto !important; padding:7px 18px !important; margin:0 !important;
    left:12px; right:auto; top:50% !important; bottom:auto; transform:translateY(-50%);
    text-align:center; white-space:normal; overflow-wrap:anywhere; line-height:1.3 !important;
}
body.wp-theme-boemia #wrapper #content-shop .thumbnail-wrapper a:focus-visible > h2.woocommerce-loop-category__title {
    outline:2px solid #83ceff; outline-offset:2px;
}

/* The theme's thumbnail zoom icon shows through the translucent mast artwork. */
body.single-product.wp-theme-boemia .fhw-product-mast .thumbnails > a.zoom {
    background-image:none;
}
