/* State values are consumed only by the storefront button roles below. */
:where(a, button, input) {
    --storefront-button-state-background: initial;
    --storefront-button-state-ink: initial;
    --storefront-button-state-outline: initial;
    --storefront-button-state-photo-border: initial;
}

:where(a, button, input):hover {
    --storefront-button-state-background: var(--storefront-button-hover);
}

:where(a, button, input):is(:active, [aria-expanded="true"]) {
    --storefront-button-state-background: var(--storefront-button-pressed);
}

:where(a, button, input):is(:disabled, .disabled, [aria-disabled="true"]) {
    --storefront-button-state-background: #e3e7e7;
    --storefront-button-state-ink: #595959;
}

:where(a, button, input):focus {
    --storefront-button-state-outline: 1px solid var(--storefront-button-focus-ink, currentColor);
    --storefront-button-state-photo-border: transparent;
}

@supports selector(:focus-visible) {
    :where(a, button, input):focus:not(:focus-visible) {
        --storefront-button-state-outline: initial;
        --storefront-button-state-photo-border: initial;
    }
}

/* Primary actions, including the legacy card, product and form selectors. */
:is(
    .fly-medspp,
    li.knop333 > :is(a, button),
    #glavekrsd0123 li:first-child > a,
    #nazvart2 > :is(a, button),
    #kncart1 > a,
    #button-cart,
    #button-search,
    #d_quickcheckout :is(#qc_confirm_order, #button_login, #login_button_popup),
    #perk > a,
    #pustkorz4 > a,
    #fzbuh53 > button,
    #blsfakt23 > a,
    .textblockahr > a,
    .infoblock23122212 > button,
    input.hatformabut,
    input.hatformabut2,
    :where(a, button, input).btn.btn-primary:not(:where(
        .ocfilter-mobile-handle > *,
        .input-group-btn > *,
        [data-toggle="tooltip"],
        [data-toggle="tooltip1"],
        #account-wishlist button[onclick^="cart.add"],
        #account-login .well a,
        #button-coupon
    ))
) {
    --storefront-button-hover: var(--storefront-primary-hover);
    --storefront-button-pressed: var(--storefront-primary-pressed);
    background: var(--storefront-button-state-background, var(--storefront-primary));
    border-color: transparent;
    border-radius: 5px;
    box-shadow: none;
    color: var(--storefront-button-state-ink, var(--storefront-primary-ink));
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    opacity: 1;
    outline: var(--storefront-button-state-outline, none);
    outline-offset: -3px;
    text-shadow: none;
}

/* Secondary actions on light surfaces. The inset border preserves the button box. */
:is(
    #glavekrsd0123 li:nth-child(2) > a,
    #nazvart > a,
    #kncart2 > a,
    .textokomp1 > a,
    #button-coupon,
    #button-voucher,
    #button-reward,
    .ocfilter-mobile-handle > .btn,
    #account-login .well a.btn-primary,
    :where(a, button, input).btn.btn-default:not(:where(
        .input-group-btn > *,
        [data-toggle="tooltip"],
        [data-toggle="tooltip1"],
        [data-target="#ocfilter-hidden-options"],
        #grid-view,
        #list-view
    ))
) {
    --storefront-button-hover: #f0f0f0;
    --storefront-button-pressed: #e4e4e4;
    --storefront-button-focus-ink: var(--storefront-neutral-ink);
    background: var(--storefront-button-state-background, #fff);
    border-color: transparent;
    border-radius: var(--storefront-button-radius, 5px);
    box-shadow: inset 0 0 0 1px var(--storefront-neutral-ink);
    color: var(--storefront-button-state-ink, #000);
    font-family: Montserrat, sans-serif;
    font-weight: 600;
    opacity: 1;
    outline: var(--storefront-button-state-outline, none);
    outline-offset: -5px;
    text-shadow: none;
}

.input-group-btn > :is(#button-voucher, #button-reward) {
    --storefront-button-radius: 0 5px 5px 0;
}

/* Secondary actions against the photo on the first screen. */
li.knop334 > a {
    --storefront-button-hover: rgb(59 59 59 / 80%);
    --storefront-button-pressed: rgb(20 20 20 / 88%);
    background: var(--storefront-button-state-background, rgb(34 34 34 / 76%));
    border-color: var(--storefront-button-state-photo-border, #fff);
    box-shadow: none;
    color: var(--storefront-button-state-ink, #fff);
    outline: var(--storefront-button-state-outline, none);
    outline-offset: -3px;
}

input.hatformabut2 {
    font-size: 16px;
    min-height: 59px;
}

:is(#fzbuh53 > button, input.hatformabut, input.hatformabut2):disabled {
    cursor: not-allowed;
    filter: none;
}
