/* Shared account and cart controls. Leave legacy content actions to page styles. */
:where(form#login_form, form#reg_form, form#res_form, form#shop_form, form#nakup1, form#nakup2, .native-web-checkout) :is(button, input[type="button"], input[type="submit"], input[type="reset"]),
#right button {
    box-sizing: border-box;
    min-height: 44px;
    padding: 11px 16px;
    border: 1px solid #ffbe00;
    border-radius: 5px;
    background: #ffbe00;
    color: #000;
    font-family: "Open Sans", sans-serif;
    font-size: 100%;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    vertical-align: middle;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

:where(form#login_form, form#reg_form, form#res_form, form#shop_form, form#nakup1, form#nakup2, .native-web-checkout) :is(input[type="submit"], input[type="reset"]) {
    display: block;
    margin: 10px 0 20px;
    font-size: 120%;
}

:where(form#login_form, form#reg_form, form#res_form, form#shop_form, form#nakup1, form#nakup2, .native-web-checkout) :is(button, input[type="button"], input[type="submit"], input[type="reset"]):hover:not(:disabled),
#right button:hover:not(:disabled) {
    border-color: #ffd44a;
    background: #ffd44a;
    color: #000;
}

:where(form#login_form, form#reg_form, form#res_form, form#shop_form, form#nakup1, form#nakup2, .native-web-checkout) :is(button, input[type="button"], input[type="submit"], input[type="reset"], .tlacitko, .small-button):focus-visible,
#right :is(button, .tlacitko):focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

input[type="text"],
input[type="number"],
input[type="password"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="search"],
input[type="url"],
select,
textarea {
    box-sizing: border-box;
    min-height: 44px;
    font-family: "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 1.4;
}

input[type="text"]:focus-visible,
input[type="number"]:focus-visible,
input[type="password"]:focus-visible,
input[type="email"]:focus-visible,
input[type="tel"]:focus-visible,
input[type="date"]:focus-visible,
input[type="search"]:focus-visible,
input[type="url"]:focus-visible,
select:focus-visible,
textarea:focus-visible {
    border-color: #ffbe00;
    outline: 2px solid #ffbe00;
    outline-offset: 2px;
}

:where(form#login_form, form#reg_form, form#res_form, form#shop_form, form#nakup1, form#nakup2, .native-web-checkout) .tlacitko,
#right .tlacitko {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .4em;
    width: 100%;
    min-height: 44px;
    margin: 8px 0;
    padding: 11px 16px;
    border: 1px solid #ffbe00;
    border-radius: 5px;
    background: #ffbe00;
    color: #000;
    font-family: "Open Sans", sans-serif;
    font-size: 100%;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    text-decoration: none;
}

:where(form#login_form, form#reg_form, form#res_form, form#shop_form, form#nakup1, form#nakup2, .native-web-checkout) .tlacitko.yel,
#right .tlacitko.yel {
    border-color: #ffbe00;
    background: #ffbe00;
    color: #000;
}

:where(form#login_form, form#reg_form, form#res_form, form#shop_form, form#nakup1, form#nakup2, .native-web-checkout) :is(.tlacitko.black, input[type="submit"].black, input[type="reset"].black, button.black),
#right .tlacitko.black,
#right button.black {
    border-color: #ffbe00;
    background: #1e1e1e;
    color: #ffbe00;
}

:where(form#login_form, form#reg_form, form#res_form, form#shop_form, form#nakup1, form#nakup2, .native-web-checkout) :is(.tlacitko.black, input[type="submit"].black, input[type="reset"].black, button.black):hover:not(:disabled),
#right .tlacitko.black:hover,
#right button.black:hover:not(:disabled) {
    border-color: #ffbe00;
    background: #444;
    color: #fff;
}

:where(form#login_form, form#reg_form, form#res_form, form#shop_form, form#nakup1, form#nakup2, .native-web-checkout) :is(button, input[type="button"], input[type="submit"], input[type="reset"]):disabled,
#right button:disabled {
    border-color: #555;
    background: #333;
    color: #999;
    cursor: not-allowed;
    opacity: .7;
}

input[type="text"]:disabled,
input[type="number"]:disabled,
input[type="password"]:disabled,
input[type="email"]:disabled,
input[type="tel"]:disabled,
input[type="date"]:disabled,
select:disabled,
textarea:disabled {
    border-color: #2b2b2b;
    background: #252525;
    color: #828282;
    cursor: not-allowed;
}

.native-web-checkout .small-button {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #ffbe00;
    border-radius: 5px;
    background: #1e1e1e;
    color: #ffbe00;
    font-size: 85%;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
}

.native-web-checkout .small-button.koupit {
    border-color: #ffbe00;
    background: #1e1e1e;
    color: #ffbe00;
}

.native-web-checkout .small-button.black {
    border-color: #ffbe00;
    background: #1e1e1e;
    color: #ffbe00;
}

.native-web-checkout .small-button:hover,
.native-web-checkout .small-button.koupit:hover,
.native-web-checkout .small-button.black:hover {
    border-color: #ffbe00;
    background: #ffbe00;
    color: #000;
}

.native-web-checkout button.no_href {
    border-color: #5d3333;
    background: #1e1e1e;
    color: #ef7777;
}

.native-web-checkout button.no_href:hover:not(:disabled) {
    border-color: #a34d4d;
    background: #342020;
    color: #ff9c9c;
}

.native-web-checkout button.shop-packeta-point {
    display: block;
    width: 100%;
    min-height: 64px;
    padding: 12px 14px;
    border-color: #424242;
    background: #1e1e1e;
    color: #fdfdfd;
    font-family: "Open Sans", sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    text-align: left;
}

.native-web-checkout button.shop-packeta-point:hover:not(:disabled) {
    border-color: #ffbe00;
    background: #292929;
    color: #fff;
}

/* Compact public sidebar actions only; keep checkout, product cards and forms intact. */
#right :is(a.tlacitko, button.tlacitko[name="logout"]) {
    min-height: 30px;
    margin: 3px 0;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.4;
    gap: 7px;
}

#right :is(a.tlacitko, button.tlacitko[name="logout"]) {
    display: flex;
    justify-content: flex-start;
    width: 100%;
    text-align: left;
}

#right a.tlacitko span {
    padding-right: 0;
}

@media (max-width: 650px) {
    #switchbar {
        display: none !important;
    }

    #right.mobile,
    #left.mobile {
        display: block;
    }

    .body-left,
    .body-right {
        box-sizing: border-box;
        float: none;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
}
