* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f5f7;
    color: #222;
    line-height: 1.5;
}
.page {
    max-width: 920px;
    margin: 0 auto;
    padding: 28px 14px;
}
.card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 26px;
    box-shadow: 0 8px 24px rgba(0,0,0,.06);
}
h1 { margin: 0 0 10px; font-size: 25px; }
h2 { margin-top: 28px; font-size: 20px; }
.lead { font-size: 16px; color: #444; }
.form label, .form legend {
    display: block;
    font-weight: 700;
    margin: 16px 0 6px;
}
input[type="text"], input[type="email"], input[type="password"], textarea, select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #b9b9b9;
    border-radius: 6px;
    font-size: 16px;
    background: #fff;
}
textarea { resize: vertical; }
input:focus, textarea:focus, select:focus, button:focus, a:focus {
    outline: 3px solid #005fcc;
    outline-offset: 2px;
}
fieldset {
    border: 1px solid #d5d5d5;
    border-radius: 8px;
    padding: 14px 16px;
    margin: 16px 0;
}
.choice { font-weight: 400 !important; margin: 8px 0 !important; }
.choice input { margin-right: 8px; }
.req { color: #b00020; }
.hint { color: #666; margin-top: 4px; }
.hp-field {
    position: absolute !important;
    left: -10000px !important;
    top: auto !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}
.legal-box, .warning-box, .statement, .success-box, .error-box {
    border-radius: 8px;
    padding: 14px 16px;
    margin: 18px 0;
}
.legal-box { background: #eef5ff; border: 1px solid #bcd7ff; }
.warning-box { background: #fff8e6; border: 1px solid #f0d48a; }
.statement { background: #f7f7f7; border: 1px solid #ddd; }
.success-box { background: #ecf8ef; border: 1px solid #9ed7aa; }
.error-box { background: #fff1f1; border: 1px solid #e4a1a1; color: #7a0000; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 18px;
    border: 1px solid #777;
    border-radius: 6px;
    background: #fff;
    color: #222;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    font-size: 16px;
}
.btn.primary { background: #005fcc; color: #fff; border-color: #005fcc; }
.btn.danger { background: #b00020; color: #fff; border-color: #b00020; }
.btn.small { min-height: 32px; padding: 6px 10px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.summary > div {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px;
    background: #fafafa;
}

.summary .summary-wide {
    grid-column: 1 / -1;
}
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 14px; }
th, td { border-bottom: 1px solid #ddd; padding: 10px; text-align: left; vertical-align: top; }
th { background: #f0f0f0; }
.badge { display:inline-block; padding: 3px 8px; border-radius: 999px; background:#eee; font-size: 13px; font-weight:700; }
.admin-nav { display:flex; justify-content:space-between; gap:10px; margin-bottom:18px; }
.filters { display:flex; gap:10px; flex-wrap:wrap; align-items:end; margin:15px 0; }
.filters > div { flex: 1 1 180px; }
@media (max-width: 700px) {
    .card { padding: 18px; }
    .summary { grid-template-columns: 1fr; }
    h1 { font-size: 20px; }
}

.form-error-summary[hidden] { display: none; }
.field-error-message {
    min-height: 20px;
    margin: 5px 0 0;
    color: #b00020;
    font-size: 14px;
    font-weight: 700;
}
input.is-invalid, textarea.is-invalid, select.is-invalid {
    border-color: #b00020 !important;
    background: #fff7f7;
    box-shadow: 0 0 0 3px rgba(176, 0, 32, .12);
}
fieldset.is-invalid {
    border-color: #b00020 !important;
    background: #fff7f7;
    box-shadow: 0 0 0 3px rgba(176, 0, 32, .08);
}

/* Compact withdrawal form layout */
.form label,
.form legend {
    margin: 10px 0 4px;
}

.form input[type="text"],
.form input[type="email"],
.form input[type="password"],
.form textarea,
.form select {
    padding: 8px 10px;
}

.form textarea {
    min-height: 74px;
}

.form h2 {
    margin-bottom: 0px;
}

.form .hint {
    margin: 4px 0 8px;
    font-size: 15px;
}

#withdrawal_scope_group {
    /* Větší odstup od předchozího pole, ale kompaktní obsah rámečku */
    padding: 2px 12px 5px !important;
    margin: 12px 0 12px !important;
}

#withdrawal_scope_group legend {
    margin: 0 !important;
    padding: 0 5px !important;
    line-height: 1.15 !important;
}

#withdrawal_scope_group .choice {
    margin: 1px 0 !important;
    line-height: 1.2 !important;
}

#withdrawal_scope_group .field-error-message:empty,
.field-error-message:empty {
    display: none;
}

.field-error-message {
    min-height: 0;
    margin: 4px 0 0;
}

.legal-box,
.warning-box,
.statement,
.success-box,
.error-box {
    padding: 12px 14px;
    margin: 14px 0;
}

.warning-box p,
.legal-box p {
    margin: 8px 0 0;
}

.form > .btn,
.form > button.btn,
.form button[type="submit"].btn {
    margin-top: 14px;
}

@media (max-width: 700px) {
    .page {
        padding: 10px 8px;
    }

    .card {
        padding: 14px;
    }

    #withdrawal_scope_group {
        padding: 2px 10px 5px !important;
        margin-top: 12px !important;
    }

    .btn {
        width: 100%;
    }
}

/* Version 16: darker form borders and stronger warning title */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    border: 1.5px solid #777 !important;
}

fieldset,
.summary > div,
.statement {
    border-color: #888 !important;
}

.legal-box {
    border: 1.5px solid #8fbdf7 !important;
}

.warning-box {
    border: 1.5px solid #d39b18 !important;
}

.warning-box > strong,
.warning-box p:first-child strong {
    color: #b00020 !important;
    font-weight: 700 !important;
}

.error-box {
    border: 1.5px solid #b00020 !important;
}

.success-box {
    border: 1.5px solid #5ca36b !important;
}

.form label,
.form legend {
    font-weight: 700 !important;
}

/* Version 18: remove blue focus rectangle from radio buttons, keep only selected dot */
input[type="radio"]:focus,
input[type="radio"]:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

input[type="radio"] {
    accent-color: #005fcc;
}


/* Version 20: order number and date side by side on desktop */
.form-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.form-row-2 .form-col {
    flex: 1 1 0;
    min-width: 0;
}

.form-row .form-col label {
    margin-top: 10px !important;
}

.identification-hint {
    margin: 5px 0 12px !important;
}

@media (max-width: 700px) {
    .form-row {
        display: block;
    }
}

/* Version 25: hover bez posunu tlačítek, aby text neskákal */
.btn {
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

.btn:hover {
    background: #e9e9e9;
    border-color: #333;
    color: #111;
    text-decoration: none;
    box-shadow: 0 3px 9px rgba(0,0,0,.16);
}

.btn.primary:hover {
    background: #004895;
    border-color: #004895;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0,95,204,.28);
}

.btn.danger:hover {
    background: #830017;
    border-color: #830017;
    color: #fff;
    box-shadow: 0 3px 10px rgba(176,0,32,.28);
}

.btn:active {
    box-shadow: 0 1px 4px rgba(0,0,0,.16);
}

/* Version 26: prirodzené zarovnanie akčných tlačidiel doprava */
.actions {
    justify-content: flex-end;
    align-items: center;
}

.actions form {
    display: inline-flex !important;
}

/* Hlavné samostatné tlačidlá vo formulároch zarovnať doprava */
.form > button.btn,
.form > .btn {
    display: flex;
    width: max-content;
    margin-left: auto;
}

@media (max-width: 700px) {
    .actions {
        justify-content: stretch;
    }

    .actions form {
        width: 100%;
        flex: 1 1 100%;
    }

    .form > button.btn,
    .form > .btn {
        width: 100%;
        margin-left: 0;
    }
}


/* Version 31: identifikácia objednávky - "alebo" medzi poľami */
.identification-row {
    align-items: flex-end !important;
    gap: 10px !important;
}

.identification-row .form-col {
    flex: 1 1 0;
    min-width: 0;
}

.form-or {
    flex: 0 0 auto;
    align-self: flex-end;
    margin: 0 2px 9px;
    color: #555;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.identification-hint {
    margin: 6px 0 14px !important;
}

@media (max-width: 700px) {
    .identification-row {
        display: block !important;
    }

    .form-or {
        display: block;
        margin: 8px 0 4px !important;
        text-align: center;
        font-weight: 700;
    }
}

/* Finálne zjednotenie chybového zvýraznenia polí */
.form input.is-invalid,
.form textarea.is-invalid,
.form select.is-invalid {
    border: 1px solid #d0001b !important;
    background: #fff7f7 !important;
    box-shadow: 0 0 0 2px rgba(208, 0, 27, .18) !important;
}

.form input.is-invalid:focus,
.form textarea.is-invalid:focus,
.form select.is-invalid:focus {
    border-color: #d0001b !important;
    background: #fff7f7 !important;
    box-shadow: 0 0 0 2px rgba(208, 0, 27, .22) !important;
    outline: none !important;
}

.form fieldset.is-invalid {
    border-color: #d0001b !important;
    background: #fff7f7 !important;
    box-shadow: 0 0 0 2px rgba(208, 0, 27, .12) !important;
}

/* Lokálne chybové hlášky bez horného súhrnného boxu */
.form-error-summary {
    display: none !important;
}

/* Čistý biely podklad pod legendou fieldsetu, aby červená čiara neprechádzala textom */
.form fieldset legend {
    background: #fff !important;
    padding: 0 8px !important;
}

/* Ak je fieldset chybný, legenda má zostať čitateľná na bielom podklade */
.form fieldset.is-invalid legend {
    background: #fff !important;
}

/* Zvýraznění požadovaných polí podle zvolené možnosti */
.form input.is-required-hint:not(.is-invalid),
.form textarea.is-required-hint:not(.is-invalid),
.form select.is-required-hint:not(.is-invalid) {
    border: 1px solid #d39b18 !important;
    background: #fff !important;
    box-shadow: none !important;
}

.form fieldset.is-required-hint:not(.is-invalid) {
    border-color: #d39b18 !important;
    background: #fff !important;
    box-shadow: none !important;
}

.form input.is-required-hint:not(.is-invalid):focus,
.form textarea.is-required-hint:not(.is-invalid):focus,
.form select.is-required-hint:not(.is-invalid):focus {
    border-color: #d39b18 !important;
    background: #fff !important;
    box-shadow: 0 0 0 2px rgba(211, 155, 24, .28) !important;
    outline: none !important;
}


/* Focus polí ve žluté barvě místo modré */
.form input:focus,
.form textarea:focus,
.form select:focus {
    border-color: #d39b18 !important;
    box-shadow: 0 0 0 2px rgba(211, 155, 24, .28) !important;
    outline: none !important;
}

/* Chybová pole při focusu zůstávají červená */
.form input.is-invalid:focus,
.form textarea.is-invalid:focus,
.form select.is-invalid:focus {
    border-color: #d0001b !important;
    background: #fff7f7 !important;
    box-shadow: 0 0 0 2px rgba(208, 0, 27, .22) !important;
    outline: none !important;
}

/* Finální sjednocení tloušťky rámečků na 2px */
input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select,
fieldset,
.summary > div,
.legal-box,
.warning-box,
.statement,
.success-box,
.error-box {
    border-width: 2px !important;
}

/* Zachovat 2px i u stavových rámečků */
.form input.is-required-hint:not(.is-invalid),
.form textarea.is-required-hint:not(.is-invalid),
.form select.is-required-hint:not(.is-invalid),
.form input.is-invalid,
.form textarea.is-invalid,
.form select.is-invalid {
    border-width: 2px !important;
}

.form fieldset.is-required-hint:not(.is-invalid),
.form fieldset.is-invalid {
    border-width: 2px !important;
}

/* VM2 read-only customer order preview - first safe production integration */
.vm2-order-box {
    background: #eef5ff;
    border: 2px solid #f0b400;
    border-radius: 8px;
    padding: 12px 14px;
    margin: 18px 0;
}

.vm2-order-box h2 {
    margin-top: 0;
}

.vm2-order-box p {
    margin: 8px 0;
}

.vm2-order-box label {
    display: block;
    font-weight: 700;
    margin: 10px 0 4px;
}

.vm2-order-box select:disabled {
    background: #f7f7f7;
    color: #333;
    opacity: 1;
}

/* VM2_02O_009 - upravené tlačítko ověření objednávky: odsazení + tmavší odstín než modrý podklad boxu */
button[name="vm2_verify_order_lookup"].vm2-small-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 10px;
    padding: 10px 18px;
    border: 2px solid #7aa7d9;
    border-radius: 6px;
    background: #d4e6fb;
    color: #111;
    text-decoration: none;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}

button[name="vm2_verify_order_lookup"].vm2-small-button:hover {
    background: #bed8f4;
    border-color: #5f94cf;
    color: #111;
    text-decoration: none;
    box-shadow: 0 3px 9px rgba(0,0,0,.14);
}

button[name="vm2_verify_order_lookup"].vm2-small-button:active {
    box-shadow: 0 1px 4px rgba(0,0,0,.14);
}

@media (max-width: 700px) {
    button[name="vm2_verify_order_lookup"].vm2-small-button {
        width: 100%;
    }
}

/* VM2_02O_010 - kompaktnější horní odsazení v boxu ověření/výběru objednávky */
.vm2-order-box-inline {
    padding-top: 8px !important;
    padding-bottom: 10px !important;
}

.vm2-order-box-inline h3 {
    margin-top: 0 !important;
    margin-bottom: 5px !important;
    line-height: 1.25 !important;
}

.vm2-order-box-inline p {
    margin-top: 3px !important;
    margin-bottom: 8px !important;
    line-height: 1.45 !important;
}

.vm2-order-box-inline .form-row .form-col label {
    margin-top: 4px !important;
}

.vm2-order-box-inline button[name="vm2_verify_order_lookup"].vm2-small-button {
    margin-top: 8px !important;
}

/* VM2_02O_014 - výraznejší odkaz na prihlásenie */
.vm2-login-link,
.vm2-login-link:visited {
    font-weight: 700 !important;
    color: #111 !important;
    text-decoration-line: underline !important;
    text-decoration-style: dotted !important;
    text-decoration-thickness: 1.5px !important;
    text-underline-offset: 3px !important;
}

.vm2-login-link:hover,
.vm2-login-link:focus {
    color: #005fcc !important;
    text-decoration-style: dotted !important;
}


/* VM2_02Q_002 - obnovení původního layoutu produktů z objednávky */
.vm2-known-order-products {
    margin: 14px 0 16px;
    padding: 14px;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    background: #fff;
}

.vm2-known-order-products h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.vm2-products-title-main,
.vm2-products-title-email {
    display: inline;
}

.vm2-products-title-email {
    margin-left: 14px;
    white-space: nowrap;
}

@media (max-width: 700px) {
    .vm2-products-title-email {
        display: block;
        margin-left: 0;
        margin-top: 4px;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-word;
    }
}

.vm2-products-info-selected,
.vm2-order-product-select {
    display: none;
}

.vm2-known-order-products.is-selected-scope .vm2-products-info-selected {
    display: block;
}

.vm2-known-order-products.is-selected-scope .vm2-products-info-whole {
    display: none;
}

.vm2-known-order-products.is-selected-scope .vm2-order-product-select {
    display: flex;
}

.vm2-order-product-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 86px 220px;
    gap: 12px;
    align-items: center;
    border-top: 1px solid #e5e5e5;
    padding: 12px 0;
}

.vm2-order-product-row:first-of-type {
    border-top: 0;
}

.vm2-order-product-image img,
.vm2-no-image {
    display: inline-flex;
    width: 56px;
    height: 56px;
    max-width: 56px;
    max-height: 56px;
    align-items: center;
    justify-content: center;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: #fafafa;
    object-fit: contain;
}

.vm2-order-product-main strong {
    display: block;
    line-height: 1.25;
}

.vm2-product-meta {
    margin-top: 4px;
    color: #666;
    font-size: 14px;
}

.vm2-order-product-qty-info {
    text-align: center;
    font-weight: 700;
}

.vm2-order-product-select {
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
}

.vm2-product-qty-label,
.vm2-product-check-label {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;
    margin: 0 !important;
    white-space: nowrap;
    font-weight: 700 !important;
}

.vm2-product-qty-select {
    width: 70px !important;
    min-width: 70px;
    padding: 4px 8px !important;
    height: 34px;
}

.vm2-product-qty-select:disabled {
    background: #eeeeee !important;
    color: #666 !important;
    opacity: 1 !important;
    cursor: not-allowed;
}

.vm2-product-check-label input {
    margin: 0;
}

.vm2-hidden-product-text {
    display: none !important;
}

/* V režimu vybraného tovaru se samostatné číslo před roletkou skrývá,
   množství zákazník vybírá pouze v roletce. */
.vm2-known-order-products.is-selected-scope .vm2-order-product-row {
    grid-template-columns: 64px minmax(0, 1fr) 220px;
}

.vm2-known-order-products.is-selected-scope .vm2-order-product-qty-info {
    display: none;
}

@media (max-width: 700px) {
    .vm2-order-product-row {
        grid-template-columns: 58px minmax(0, 1fr) 48px;
    }

    .vm2-order-product-select {
        grid-column: 1 / -1;
        justify-content: space-between;
        padding-left: 70px;
    }

    .vm2-known-order-products.is-selected-scope .vm2-order-product-row {
        grid-template-columns: 56px minmax(0, 1fr);
    }
}



/* VM2_02Q_010 - zvýraznění roletky výběru objednávky běžným stavem bez chybové červené */
#vm2_order_preview {
    border: 2px solid #d39b18 !important;
    box-shadow: 0 0 0 3px rgba(211, 155, 24, .18) !important;
    color: #111 !important;
    font-weight: 700 !important;
}

#vm2_order_preview.is-invalid {
    border-color: #d0001b !important;
    background: #fff7f7 !important;
    box-shadow: 0 0 0 2px rgba(208, 0, 27, .22) !important;
}

/* VM2_02Q_015 - zvýraznění výběru množství a checkboxu u produktů bez rozbití layoutu */
.vm2-product-qty-select {
    border: 2px solid #d39b18 !important;
    box-shadow: 0 0 0 2px rgba(211, 155, 24, .14) !important;
    font-weight: 700 !important;
}

.vm2-product-qty-select:focus {
    border-color: #d39b18 !important;
    box-shadow: 0 0 0 2px rgba(211, 155, 24, .28) !important;
    outline: none !important;
}

.vm2-product-check-label input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #d39b18;
    cursor: pointer;
}

.vm2-product-check-label {
    font-weight: 700 !important;
}

/* VM2_02Q_016 - výraznější checkbox u výběru vracených produktů */
.vm2-product-check-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    border: 2px solid #d39b18 !important;
    border-radius: 3px;
    background: #fff;
    box-shadow: 0 0 0 2px rgba(211, 155, 24, .14) !important;
    cursor: pointer;
    position: relative;
    vertical-align: middle;
}

.vm2-product-check-label input[type="checkbox"]:checked {
    background: #d39b18;
    border-color: #d39b18 !important;
}

.vm2-product-check-label input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.vm2-product-check-label input[type="checkbox"]:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(211, 155, 24, .28) !important;
}

.vm2-product-check-label {
    font-weight: 800 !important;
}

/* VM2_02Q_017 - výber/overenie objednávky má rovnaký podklad jako upozornění */
.vm2-order-box-inline,
.vm2-order-box {
    background: #fff8e6 !important;
    border-color: #d39b18 !important;
}

/* VM2_02Q_018 - výraznější radio volby v části "Odstúpenie sa týka" */
#withdrawal_scope_group .choice {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin: 7px 0 !important;
    font-weight: 700 !important;
    line-height: 1.25 !important;
}

#withdrawal_scope_group .choice input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    min-width: 18px !important;
    margin: 0 6px 0 0 !important;
    accent-color: #005fcc !important;
    cursor: pointer;
}

#withdrawal_scope_group.is-required-hint:not(.is-invalid) {
    border-color: #d39b18 !important;
    box-shadow: 0 0 0 3px rgba(211, 155, 24, .14) !important;
}

#withdrawal_scope_group .choice:hover {
    color: #000 !important;
}

/* VM2_02Q_019 - radio volby sladěné se žlutými výběrovými prvky */
#withdrawal_scope_group .choice input[type="radio"] {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 20px !important;
    height: 20px !important;
    min-width: 20px !important;
    margin: 0 8px 0 0 !important;
    border: 2px solid #d39b18 !important;
    border-radius: 50% !important;
    background: #fff !important;
    box-shadow: 0 0 0 2px rgba(211, 155, 24, .14) !important;
    cursor: pointer !important;
    position: relative !important;
    vertical-align: middle !important;
}

#withdrawal_scope_group .choice input[type="radio"]:checked {
    border-color: #d39b18 !important;
    background: #fff !important;
}

#withdrawal_scope_group .choice input[type="radio"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d39b18;
}

#withdrawal_scope_group .choice input[type="radio"]:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(211, 155, 24, .28) !important;
}


/* ODST_ITEMS_STAGE1 - evidencia položiek a režim celej objednávky */
.vm2-products-info-partial {
    border-left: 4px solid #d39b18;
    padding-left: 10px;
}

.vm2-withdrawal-note {
    display: block;
    margin-top: 4px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
}

.vm2-withdrawal-note-done {
    color: #777;
}

.vm2-switch-to-selected,
.vm2-switch-to-selected:visited {
    color: #005fcc;
    text-decoration: underline;
}

.vm2-switch-to-selected:hover,
.vm2-switch-to-selected:focus {
    text-decoration: none;
}

.vm2-product-check-label.is-disabled {
    color: #777 !important;
    cursor: not-allowed;
}

.vm2-product-check-label.is-disabled input[type="checkbox"] {
    cursor: not-allowed;
    opacity: .55;
}

.vm2-order-product-row.is-fully-withdrawn .vm2-order-product-select {
    opacity: .75;
}



/* ODST_ITEMS_STAGE1_V02 - blokované spodné tlačidlo pri nedostupnej celej objednávke */
.btn.primary.is-disabled-by-whole-order,
.btn.primary.is-disabled-by-whole-order:hover,
.btn.primary:disabled {
    background: #bdbdbd !important;
    border-color: #9a9a9a !important;
    color: #fff !important;
    cursor: not-allowed !important;
    box-shadow: none !important;
    opacity: 1 !important;
}


/* ODST_ITEMS_STAGE1_V03 - kompletně vyčerpaná objednávka: neaktivní volba rozsahu */
#withdrawal_scope_group.vm2-scope-disabled {
    background: #f7f7f7 !important;
    border-color: #bdbdbd !important;
    box-shadow: none !important;
}

#withdrawal_scope_group.vm2-scope-disabled legend,
#withdrawal_scope_group.vm2-scope-disabled .choice {
    color: #777 !important;
}

#withdrawal_scope_group.vm2-scope-disabled .choice {
    cursor: not-allowed !important;
}

#withdrawal_scope_group.vm2-scope-disabled .choice input[type="radio"] {
    border-color: #aaa !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: .65 !important;
}

#withdrawal_scope_group.vm2-scope-disabled .choice input[type="radio"]:checked::after {
    background: #999 !important;
}

/* ODST_ITEMS_STAGE1_V04 - tvrdé šedé zobrazení neaktivního bloku rozsahu odstoupení */
#withdrawal_scope_group[disabled],
#withdrawal_scope_group[aria-disabled="true"],
#withdrawal_scope_group.vm2-scope-disabled {
    background: #f3f3f3 !important;
    border-color: #b8b8b8 !important;
    box-shadow: none !important;
}

#withdrawal_scope_group[disabled] legend,
#withdrawal_scope_group[aria-disabled="true"] legend,
#withdrawal_scope_group.vm2-scope-disabled legend,
#withdrawal_scope_group[disabled] .choice,
#withdrawal_scope_group[aria-disabled="true"] .choice,
#withdrawal_scope_group.vm2-scope-disabled .choice,
#withdrawal_scope_group .choice.is-disabled {
    color: #777 !important;
    cursor: not-allowed !important;
}

#withdrawal_scope_group[disabled] .choice input[type="radio"],
#withdrawal_scope_group[aria-disabled="true"] .choice input[type="radio"],
#withdrawal_scope_group.vm2-scope-disabled .choice input[type="radio"],
#withdrawal_scope_group .choice.is-disabled input[type="radio"],
#withdrawal_scope_group input[type="radio"]:disabled {
    border-color: #aaa !important;
    background: #eee !important;
    box-shadow: none !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
    accent-color: #999 !important;
}

#withdrawal_scope_group[disabled] .choice input[type="radio"]:checked::after,
#withdrawal_scope_group[aria-disabled="true"] .choice input[type="radio"]:checked::after,
#withdrawal_scope_group.vm2-scope-disabled .choice input[type="radio"]:checked::after,
#withdrawal_scope_group .choice.is-disabled input[type="radio"]:checked::after,
#withdrawal_scope_group input[type="radio"]:disabled:checked::after {
    background: #999 !important;
}

#withdrawal_scope_group[disabled].is-required-hint:not(.is-invalid),
#withdrawal_scope_group[aria-disabled="true"].is-required-hint:not(.is-invalid),
#withdrawal_scope_group.vm2-scope-disabled.is-required-hint:not(.is-invalid) {
    border-color: #b8b8b8 !important;
    box-shadow: none !important;
}


/* v1.3.5 - lepší identifikácia objednávky / ručné podanie */
.vm2-manual-fallback-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.vm2-manual-fallback-actions .btn.small {
    margin-top: 4px;
}

.vm2-manual-fallback-actions .vm2-back-to-verify-button {
    margin-left: auto;
}

@media (max-width: 700px) {
    .vm2-manual-fallback-actions {
        display: block;
    }

    .vm2-manual-fallback-actions .btn.small,
    .vm2-manual-fallback-actions .vm2-back-to-verify-button {
        display: block;
        width: 100%;
        margin-left: 0;
        margin-top: 8px;
    }
}
