/* Košík, objednávka a popup „Dokončit objednávku později“ (R35) – barvy webu: #0F5E85, #1895d5, #ecf1f6 */

/* ---------- košík: pokračování ---------- */
.vs-cart-actions { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin: 18px 0 28px; flex-wrap: wrap; }
.vs-cart-actions__left { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; font-size: 14px; }
.vs-cart-actions__right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; max-width: 460px; margin-left: auto; }
.vs-cart-back { color: #0F5E85; }
.vs-cart-destroy { color: #666 !important; font-size: 13px; }
.vs-cart-destroy:hover { color: #b00020 !important; }
a.button.vs-cart-next { display: inline-block; padding: 14px 28px; font-size: 17px; font-weight: bold; border-radius: 8px; text-align: center; }
.vs-cart-shipnote { font-size: 13px; color: #666; }
.vs-cart-promise { padding: 10px 14px; border-left: 4px solid #1895d5; background: #ecf1f6; border-radius: 6px; font-size: 14px; line-height: 20px; color: #333; text-align: left; }
.vs-cart-promise .fa { color: #0F5E85; margin-right: 4px; }

/* ---------- košík na mobilu: položky jako karty ---------- */
@media (max-width: 767px) {
    .table-detail-price-container { overflow: visible !important; }
    .table-detail-price-container .table-detail-price,
    .table-detail-price-container .table-detail-price > tbody { display: block; width: 100%; min-width: 0 !important; max-width: 100%; box-sizing: border-box; }
    .table-detail-price-container .table-detail-price { min-width: 0 !important; }
    .table-detail-price-container .table-detail-price tbody.product-wrapper,
    .table-detail-price-container .table-detail-price tbody.accessory-wrapper {
        display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; box-sizing: border-box; width: 100%; column-gap: 12px; row-gap: 8px; align-items: center;
        position: relative; padding: 12px 44px 12px 12px; margin: 0 0 10px; border: 1px solid #e8e8e8; border-radius: 10px; background: #fff;
    }
    .table-detail-price-container .table-detail-price tbody.accessory-wrapper { margin-top: -6px; border-left: 4px solid #a2c9ea; }
    .table-detail-price-container .table-detail-price tbody.accessory-hidden { display: none; }
    .table-detail-price-container .table-detail-price tr { display: contents; }
    .table-detail-price-container .table-detail-price td { display: block; padding: 0; border: 0; background: none !important; width: auto !important; }
    .table-detail-price-container .table-detail-price tr:first-child > td[colspan] { grid-column: 1 / -1; font-weight: bold; font-size: 15px; line-height: 20px; }
    .table-detail-price-container .tbs-labels > td { display: none; }
    .table-detail-price-container .tbs-labels > td.tbs-img,
    .table-detail-price-container .tbs-labels > td.tbs-print-data { display: block; grid-column: 1; grid-row: 2; font-size: 12px; }
    .table-detail-price-container .tbs-labels > td.tbs-img img { max-width: 72px; height: auto; }
    .table-detail-price-container .tbs-labels > td.tbs-print-data .upload-file { padding: 4px 6px; font-size: 12px; }
    .table-detail-price-container .tbs-labels > td.tbs-del { display: block; position: absolute; top: 10px; right: 12px; }
    .table-detail-price-container .tbs-labels > td.tbs-del span { font-size: 20px; color: #999; }
    .table-detail-price-container .tbs-values > td { display: none; }
    .table-detail-price-container .tbs-values > td.tbs-count { display: block; grid-column: 2; grid-row: 2; }
    .table-detail-price-container .tbs-values > td.tbs-total-dph { display: block; grid-column: 3; grid-row: 2; font-weight: bold; white-space: nowrap; font-size: 15px; }
    .table-detail-price-container .tbs-count, .table-detail-price-container .tbs-count form { min-width: 0; max-width: 100%; }
    .table-detail-price-container .tbs-count table { width: auto !important; }
    .table-detail-price-container .tbs-count input { max-width: 64px; }
    .table-detail-price-container tbody.separator-wrapper { display: none; }
    .table-detail-price-container tbody.tr-summary-wrapper { display: block; border-radius: 10px; overflow: hidden; margin-top: 4px; }
    .table-detail-price-container tbody.tr-summary-wrapper tr { display: flex; justify-content: flex-end; gap: 18px; background: #646263; color: #fff; padding: 6px 14px; }
    .table-detail-price-container tbody.tr-summary-wrapper td { display: block; color: #fff; text-align: right; }
    .table-detail-price-container tbody.tr-summary-wrapper td[colspan], .table-detail-price-container tbody.tr-summary-wrapper td.tbs-del,
    .table-detail-price-container tbody.tr-summary-wrapper td:empty { display: none; }
    .table-detail-price-container tbody.tr-summary-wrapper .tbs-total-price { font-size: 17px; }
    .vs-cart-actions { flex-direction: column-reverse; gap: 14px; }
    .vs-cart-actions__right { align-items: stretch; max-width: none; margin-left: 0; width: 100%; }
    a.button.vs-cart-next { display: block; width: 100%; box-sizing: border-box; }
    .vs-cart-shipnote { text-align: center; }
}

/* ---------- uložení košíku – blok v košíku ---------- */
.send-basket-block { max-width: 560px; margin: 24px auto; padding: 20px 22px; border: 1px solid #e8e8e8; border-radius: 12px; background: #fff; }
.send-basket-block h3 { margin: 0 0 4px; font-size: 18px; color: #0F5E85; }
.send-basket-block p { margin: 0 0 12px; font-size: 14px; color: #555; }
.send-basket-block .send-basket-container { display: flex; gap: 8px; flex-wrap: wrap; }
.send-basket-block input[type="email"], .send-basket-block input[type="text"] { flex: 1 1 220px; padding: 11px 12px; border: 1px solid #ccc; border-radius: 8px; font-size: 15px; }
.send-basket-block .button { padding: 11px 18px; border-radius: 8px; font-weight: bold; }

/* ---------- popup ---------- */
.bs-modal[hidden] { display: none !important; }
.bs-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px;
    background: rgba(15, 30, 45, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: bsFade .2s ease-out; }
.bs-modal__card { position: relative; width: 100%; max-width: 440px; padding: 28px 26px 20px; border-radius: 16px; background: #fff;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .25); text-align: center; animation: bsUp .25s ease-out; font-family: inherit; }
.bs-modal__icon { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: #ecf1f6; color: #0F5E85;
    display: flex; align-items: center; justify-content: center; font-size: 24px; }
.bs-modal__card h3 { margin: 0 0 8px; font-size: 21px; line-height: 27px; color: #0F5E85; }
.bs-modal__card p { margin: 0 0 16px; font-size: 15px; line-height: 22px; color: #555; }
.bs-modal__form { display: flex; flex-direction: column; gap: 10px; }
.bs-modal__form input[type="email"] { width: 100%; box-sizing: border-box; padding: 12px 14px; border: 1px solid #ccc; border-radius: 10px; font-size: 16px; }
.bs-modal__form input[type="email"]:focus { outline: 2px solid #1895d5; border-color: #1895d5; }
.bs-modal__form .button { width: 100%; padding: 13px; border: 0; border-radius: 10px; font-size: 16px; font-weight: bold; cursor: pointer; }
.bs-modal__later { margin-top: 10px; background: none; border: 0; color: #666; font-size: 14px; text-decoration: underline; cursor: pointer; }
.bs-modal__close { position: absolute; top: 10px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent;
    font-size: 24px; line-height: 34px; color: #888; cursor: pointer; }
.bs-modal__close:hover, .bs-modal__later:hover { color: #333; }
.bs-modal__note { margin-top: 10px; font-size: 12px; color: #888; }
@keyframes bsFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes bsUp { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bs-modal, .bs-modal__card { animation: none; } }

/* ---------- objednávka: doprava a platba, kontaktní údaje (R35) ---------- */
#form-order h2 { font-size: 24px; margin-bottom: 16px; }
#form-order .transport-info { font-size: 13px; line-height: 19px; color: #666; margin: 0 0 12px; }
#form-order input[type="radio"] { border-radius: 50%; border-color: #8a97a3; width: 20px; height: 20px; margin: 0 10px 0 0; vertical-align: middle; flex: none; }
#form-order input[type="radio"]:checked { background: #1895d5; border-color: #1895d5; box-shadow: inset 0 0 0 4px #fff; }
#form-order input[type="radio"]:focus-visible { outline: 2px solid #1895d5; outline-offset: 2px; }
#table-transport { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
#table-transport tr td { padding: 14px 12px; vertical-align: middle; background: #fff; border-top: 1px solid #e3e8ee; border-bottom: 1px solid #e3e8ee; transition: background .15s, border-color .15s; }
#table-transport tr td:first-child { border-left: 1px solid #e3e8ee; border-radius: 10px 0 0 10px; }
#table-transport tr td:last-child { border-right: 1px solid #e3e8ee; border-radius: 0 10px 10px 0; padding-right: 12px; }
#table-transport tr:last-of-type td { padding-bottom: 14px; }
#table-transport tr:has(input:checked) td { background: #ecf1f6; border-color: #1895d5; }
#table-transport tr { cursor: pointer; }
#table-transport tr:hover td { border-color: #a2c9ea; }
#table-transport tr td label { margin: 0; display: inline; cursor: pointer; }
#table-transport tr td:nth-of-type(2) label, #table-transport tr td:nth-of-type(3) label { margin-left: 0; }
#table-transport i { margin-right: 10px; font-size: 18px; }
#table-transport .tp-price { white-space: nowrap; text-align: right; line-height: 18px; }
#table-transport .tp-price .muted { color: #777; }
#table-transport .tp-free { color: #2e7d32; }
#table-transport td:empty { padding: 0; width: 0; }
.vs-step-next { font-size: 16px; font-weight: bold; padding: 13px 22px !important; border-radius: 8px; cursor: pointer; }
.vs-order-total { margin: 0 0 10px; font-size: 16px; text-align: right; }
.vs-order-total strong { font-size: 22px; color: #0F5E85; }
#order_send { font-size: 16px; font-weight: bold; padding: 14px 24px; border-radius: 8px; }
#order_send:disabled { opacity: .6; cursor: wait; }
/* kontaktní údaje: sekce jako karty, pole na celou šířku sloupce */
.block-contact-information .table-registration .table-block { width: 100%; }
.block-contact-information input[type="text"], .block-contact-information input[type="email"], .block-contact-information input[type="tel"],
.block-contact-information input[type="date"], .block-contact-information select, .block-contact-information textarea {
    padding: 10px 12px; border: 1px solid #c9d1d9; border-radius: 8px; font-size: 15px; box-sizing: border-box; }
.block-contact-information input:focus, .block-contact-information select:focus, .block-contact-information textarea:focus { outline: 2px solid #a2c9ea; border-color: #1895d5; }
.block-contact-information textarea.comment { width: 100%; max-width: 520px; }
.block-contact-information h3 { color: #0F5E85; }
@media (min-width: 900px) {
    .order-right { position: sticky; top: 12px; align-self: flex-start; }
}
@media (max-width: 767px) {
    #table-transport tr td { padding: 12px 8px; font-size: 14px; }
    .vs-order-total { text-align: center; }
    #order_send, .vs-step-next { display: block; width: 100%; box-sizing: border-box; text-align: center; }
}

/* ---------- košík: ovladač počtu kusů − počet + (R35) ---------- */
.vs-qty-form { margin: 0; }
.vs-qty { display: inline-flex; align-items: stretch; border: 1px solid #c9d1d9; border-radius: 8px; overflow: hidden; background: #fff; vertical-align: middle; }
.vs-qty__btn { display: flex; align-items: center; justify-content: center; width: 34px; min-height: 34px; font-size: 20px; line-height: 1;
    color: #0F5E85 !important; background: #f3f6f9; text-decoration: none !important; user-select: none; transition: background .15s; }
.vs-qty__btn:hover { background: #ecf1f6; }
.vs-qty__btn:active { background: #a2c9ea; }
.vs-qty__btn:focus-visible { outline: 2px solid #1895d5; outline-offset: -2px; }
input.vs-qty__input { width: 48px !important; min-height: 34px; border: 0 !important; border-left: 1px solid #e3e8ee !important; border-right: 1px solid #e3e8ee !important;
    border-radius: 0 !important; text-align: center; font-size: 15px; padding: 0 !important; -moz-appearance: textfield; appearance: textfield; background: #fff; }
input.vs-qty__input::-webkit-outer-spin-button, input.vs-qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
input.vs-qty__input[readonly] { color: #777; }
.table-detail-price-container[aria-busy="true"] { transition: opacity .15s; pointer-events: none; }
@media (max-width: 767px) {
    .vs-qty__btn { width: 40px; min-height: 40px; }
    input.vs-qty__input { min-height: 40px; }
}

/* ---------- dárkový poukaz přímo v objednávce (R37) ---------- */
.vs-voucher-box { margin-top: 12px; }
.vs-voucher-row { display: flex; gap: 8px; flex-wrap: wrap; max-width: 460px; }
.vs-voucher-row input { flex: 1 1 200px; padding: 10px 12px; border: 1px solid #c9d1d9; border-radius: 8px; font-size: 15px; text-transform: uppercase; }
.vs-voucher-row input:focus { outline: 2px solid #a2c9ea; border-color: #1895d5; }
.vs-voucher-row .button { padding: 10px 18px; border-radius: 8px; font-weight: bold; }
.vs-voucher-msg { margin-top: 8px; font-size: 14px; min-height: 1em; }
.vs-voucher-msg.is-ok { color: #2e7d32; font-weight: bold; }
.vs-voucher-msg.is-error { color: #b00020; }

/* ---------- výzva Pro firmy v hlavičce (R38) ---------- */
.vs-b2b-cta { display: inline-flex; align-items: center; gap: 6px; margin-right: 14px; padding: 6px 14px; border-radius: 999px;
    background: #ffd700; color: #0F5E85 !important; font-weight: bold; font-size: 14px; text-decoration: none !important; white-space: nowrap;
    vertical-align: middle; box-shadow: 0 1px 2px rgba(0,0,0,.12); transition: transform .15s, box-shadow .15s; }
.vs-b2b-cta:hover { transform: translateY(-1px); box-shadow: 0 3px 8px rgba(0,0,0,.18); }
.vs-b2b-cta__short { display: none; }
@media (max-width: 900px) {
    .vs-b2b-cta { margin-right: 8px; padding: 5px 10px; font-size: 13px; }
    .vs-b2b-cta__long { display: none; }
    .vs-b2b-cta__short { display: inline; }
}
@media (max-width: 767px) {
    /* na mobilu vlastní řádek nad vyhledáváním (lišta je flex zarovnaná vpravo a jinak přetékala doleva) */
    #menu-account { flex-wrap: wrap; }
    .vs-b2b-cta { order: -1; flex: 1 0 100%; justify-content: center; margin: 0 0 8px; padding: 8px 12px; font-size: 14px; box-sizing: border-box; }
    .vs-b2b-cta__long { display: inline; }
    .vs-b2b-cta__short { display: none; }
}
