body.pb15-monochrom,
img.pb15-thumb-schwarzweiss,
:is(.woocommerce-cart,.woocommerce-checkout) .cart_item:has(.pb15-mode-schwarzweiss) {
    --pb15-edition-filter: grayscale(1);
}

body.pb15-sepia,
img.pb15-thumb-sepia,
:is(.woocommerce-cart,.woocommerce-checkout) .cart_item:has(.pb15-mode-sepia) {
    --pb15-edition-filter: grayscale(1) sepia(.35);
}

:is(body.pb15-monochrom,body.pb15-sepia) .pb15-mono-primary img,
img:is(.pb15-thumb-schwarzweiss,.pb15-thumb-sepia),
:is(.woocommerce-cart,.woocommerce-checkout) .cart_item:has(:is(.pb15-mode-schwarzweiss,.pb15-mode-sepia))
    :is(.product-thumbnail,.wd-checkout-prod-img,.wc-gzd-cart-item-thumbnail) img {
    filter: var(--pb15-edition-filter);
}

.single-product .pb15-farbversion {
    min-width: 0;
    padding: 0;
    margin: 0 0 14px;
    border: 0;
}

.single-product .pb15-farbversion legend {
    padding: 0;
    margin: 0 0 6px;
    font: inherit;
    font-weight: 600;
}

.pb15-farbversion-options {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pb15-farbversion-options label {
    position: relative;
    margin: 0;
}

.pb15-farbversion-options input {
    position: absolute;
    width: 1px;
    height: 1px;
    clip-path: inset(50%);
}

.pb15-farbversion-options span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 7px 12px;
    background: #30302e;
    color: #f2efea;
    border: 1px solid #797169;
    border-radius: 6px;
    font: inherit;
    font-weight: 600;
    text-transform: none;
    cursor: pointer;
}

.pb15-farbversion-options input:checked + span {
    background: #392d25;
    color: #ffab7b;
    border-color: #eb661b;
}

.pb15-farbversion-options input:focus-visible + span {
    outline: 2px solid #eb661b;
    outline-offset: 2px;
}

body.woocommerce-checkout #order_review td.actions > a.button {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 14px;
    border-radius: 6px;
    background: #eb661b;
    color: #19130f !important;
    font-weight: 650;
    text-transform: none;
}

body.woocommerce-checkout #order_review td.actions > a.button:hover {
    background: #f47a36;
}

body.woocommerce-checkout #order_review .quantity {
    display: inline-flex;
    align-items: stretch;
    height: 44px;
    padding: 0;
    border: 1px solid #797169;
    border-radius: 6px;
    vertical-align: middle;
    overflow: hidden;
}

body.woocommerce-checkout #order_review .quantity :is(.minus,.qty,.plus) {
    height: 42px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #f2efea !important;
    background: #30302e !important;
}

body.woocommerce-checkout #order_review .quantity .qty {
    border-inline: 1px solid #797169 !important;
}

body.woocommerce-checkout #order_review .quantity :is(.minus,.qty,.plus):focus-visible {
    outline: 2px solid #eb661b;
    outline-offset: -2px;
}

body.woocommerce-cart .woocommerce-message {
    border: 1px solid #5e554d;
    border-inline-start: 3px solid #eb661b;
    border-radius: 6px;
    background: #292724 !important;
    color: #f2efea !important;
}

body.woocommerce-cart .woocommerce-message::before {
    color: #ffab7b !important;
}

body.woocommerce-cart .woocommerce-message a:not(.button) {
    color: #ffab7b !important;
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.single-product #pb15-ar > p:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
}

body.single-product #pb15-ar > p:first-child::before {
    content: '';
    flex: 0 0 23px;
    height: 23px;
    background: url('shop-ar.svg') center / contain no-repeat;
}

.pb15-mask-host {
    position: relative;
}

.pb15-motif-mask {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    display: none;
    background: center / 100% 100% no-repeat;
}

:is(body.pb15-monochrom,body.pb15-sepia) .pb15-motif-mask:not([hidden]) {
    display: block;
    filter: var(--pb15-edition-filter);
}
