/* Produkčný košík /kosik. Platí len s triedou body.pme-cart. */
/* Testovací košík /kosik-nahled. Platí len s triedou body.pme-cart. */
body.pme-cart .pme-section,
body.pme-cart .pme-cart-form {
    min-width: 0;
    max-width: 100%;
}
body.pme-cart .pme-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    align-items: start;
    min-width: 0;
}
body.pme-cart .pme-cart-main,
body.pme-cart .pme-cart-summary,
body.pme-cart .pme-cart-card,
body.pme-cart .pme-cart-card-body {
    min-width: 0;
    max-width: 100%;
}
body.pme-cart .pme-cart-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
}
body.pme-cart .pme-cart-head h1 {
    margin: 0;
}
body.pme-cart .pme-cart-countline {
    margin: 4px 0 0;
    color: var(--pme-text-soft);
    font-size: 0.95rem;
}
body.pme-cart .pme-cart-continue {
    color: var(--pme-brand);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
body.pme-cart .pme-cart-continue:hover { color: var(--pme-brand-dark); }
body.pme-cart .pme-cart-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
body.pme-cart .pme-cart-card {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 44px;
    grid-template-areas:
        "thumb text remove"
        "buy buy buy"
        "note note note";
    gap: 8px 10px;
    align-items: start;
    padding: 12px;
    border: 1px solid var(--pme-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--pme-shadow);
}
body.pme-cart .pme-cart-thumb-link {
    grid-area: thumb;
    align-self: start;
    width: 68px;
    height: 68px;
    flex: 0 0 68px;
}
body.pme-cart .pme-cart-product-text {
    grid-area: text;
    align-self: center;
}
body.pme-cart .pme-cart-remove {
    grid-area: remove;
    align-self: start;
    justify-self: end;
}
body.pme-cart .pme-cart-card-buy {
    grid-area: buy;
}
body.pme-cart .pme-cart-note {
    grid-area: note;
}
body.pme-cart .pme-cart-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 10px;
    margin: 4px 0 0;
    color: var(--pme-text-soft);
    font-size: 0.88rem;
}
body.pme-cart .pme-cart-product-title,
body.pme-cart .pme-cart-sku,
body.pme-cart .pme-cart-summary-rows dt {
    overflow-wrap: anywhere;
}
body.pme-cart .pme-cart-card-buy {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 12px;
    margin-top: 0;
    min-width: 0;
}
body.pme-cart .pme-cart-unit,
body.pme-cart .pme-cart-line-total {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
}
body.pme-cart .pme-cart-unit {
    flex: 1 1 100%;
}
body.pme-cart .pme-cart-price-label {
    display: block;
    margin-bottom: 2px;
    color: var(--pme-text);
    font-size: 0.95rem;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.35;
}
body.pme-cart .pme-cart-card .pme-price-stack,
body.pme-cart .pme-cart-unit .pme-price-stack {
    align-items: flex-start;
}
body.pme-cart .pme-cart-line-total {
    margin-left: auto;
    text-align: right;
}
body.pme-cart .pme-cart-line-total .pme-price-stack {
    align-items: flex-end;
}
body.pme-cart .pme-cart-line-total .pme-price-primary {
    font-size: 0.95rem;
    font-weight: 400;
}
body.pme-cart .pme-cart-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--pme-border);
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}
body.pme-cart .pme-cart-step {
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    background: var(--pme-bg-soft);
    color: var(--pme-text);
    font: inherit;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}
body.pme-cart .pme-cart-step:hover { background: #e7f6f3; color: var(--pme-brand-dark); }
body.pme-cart .pme-cart-step:focus-visible {
    outline: 2px solid var(--pme-brand);
    outline-offset: -2px;
}
body.pme-cart .pme-cart-stepper .pme-cart-qty-input {
    width: 56px;
    height: 44px;
    margin: 0;
    padding: 0 4px;
    border: 0;
    border-radius: 0;
    background: #fff;
    text-align: center;
    font-variant-numeric: tabular-nums;
    -moz-appearance: textfield;
}
body.pme-cart .pme-cart-stepper .pme-cart-qty-input::-webkit-outer-spin-button,
body.pme-cart .pme-cart-stepper .pme-cart-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
body.pme-cart .pme-cart-stepper .pme-cart-qty-input:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--pme-brand);
}
body.pme-cart .pme-cart-qty-update {
    min-height: 44px;
    padding: 8px 2px;
}
body.pme-cart .pme-cart-live .pme-cart-qty-update {
    display: none;
}
body.pme-cart .pme-cart-live:not(.is-save-fallback) .pme-cart-update-all {
    display: none !important;
}
body.pme-cart .pme-cart-live.is-save-fallback .pme-cart-update-all {
    display: inline-flex !important;
}
body.pme-cart .pme-cart-live.is-conflict .pme-cart-update-all,
body.pme-cart .pme-cart-live.is-conflict .pme-cart-qty-update {
    display: none !important;
}
body.pme-cart .pme-cart-reload {
    margin: 0 0 12px;
    min-height: 44px;
}
body.pme-cart .pme-cart-reload[hidden] {
    display: none !important;
}
body.pme-cart .pme-cart-note {
    margin-top: 0;
    min-width: 0;
}
body.pme-cart .pme-cart-note summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 32px;
    cursor: pointer;
    color: var(--pme-text);
    font-size: 0.95rem;
    font-weight: 400;
    list-style: none;
}
body.pme-cart .pme-cart-note summary::-webkit-details-marker { display: none; }
body.pme-cart .pme-cart-note summary:focus-visible {
    outline: 2px solid var(--pme-brand);
    outline-offset: 3px;
    border-radius: 6px;
}
body.pme-cart .pme-cart-note-flag {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e7f6f3;
    color: var(--pme-brand-dark);
    font-size: 0.75rem;
    font-weight: 700;
}
body.pme-cart .pme-cart-note .pme-cart-note-label {
    margin-top: 4px;
}
body.pme-cart .pme-cart-summary {
    position: static;
    padding: 18px 16px 16px;
    border: 1px solid var(--pme-border);
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--pme-shadow);
}
body.pme-cart .pme-cart-summary-title {
    margin: 0 0 14px;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--pme-text);
}
body.pme-cart .pme-cart-summary .pme-cart-min { margin-bottom: 14px; }
body.pme-cart .pme-cart-summary-rows {
    margin: 0;
}
body.pme-cart .pme-cart-summary-rows > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--pme-border-soft);
}
body.pme-cart .pme-cart-summary-rows dt {
    margin: 0;
    color: var(--pme-text-soft);
    font-weight: 500;
}
body.pme-cart .pme-cart-save-label {
    white-space: nowrap;
}
body.pme-cart .pme-cart-save-note {
    font-size: 0.78em;
    font-weight: 400;
    white-space: nowrap;
}
body.pme-cart .pme-cart-summary-rows dd {
    margin: 0;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
    flex-shrink: 0;
}
body.pme-cart .pme-cart-threshold {
    margin-top: 14px;
}
body.pme-cart .pme-cart-threshold-top {
    margin-bottom: 6px;
    color: var(--pme-text-soft);
    font-size: 0.82rem;
    font-weight: 600;
}
body.pme-cart .pme-cart-threshold-track {
    height: 8px;
    border-radius: 99px;
    background: var(--pme-bg-soft);
    overflow: hidden;
}
body.pme-cart .pme-cart-threshold-bar {
    display: block;
    width: var(--pme-cart-pct, 0%);
    height: 100%;
    border-radius: 99px;
    background: var(--pme-brand-light);
}
body.pme-cart .pme-cart-threshold.is-done .pme-cart-threshold-bar {
    background: var(--pme-brand);
}
body.pme-cart .pme-cart-threshold-text {
    margin: 6px 0 0;
    color: var(--pme-text-soft);
    font-size: 0.9rem;
    line-height: 1.4;
}
body.pme-cart .pme-cart-threshold.is-done .pme-cart-threshold-text {
    color: var(--pme-brand-dark);
}
body.pme-cart .pme-cart-ship-note {
    margin: 14px 0 0;
    color: var(--pme-text-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}
body.pme-cart .pme-cart-threshold-done {
    margin: 12px 0 0;
    color: var(--pme-brand-dark);
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
}
body.pme-cart .pme-cart-grand {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid #b7e0d8;
    border-radius: 10px;
    background: #f3fbf9;
}
body.pme-cart .pme-cart-grand-label {
    color: var(--pme-text-soft);
    font-size: 0.92rem;
    font-weight: 600;
}
body.pme-cart .pme-cart-grand-value {
    color: var(--pme-brand-dark);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
body.pme-cart .pme-cart-grand-vat {
    font-size: 1rem;
    font-weight: 600;
}
body.pme-cart .pme-cart-grand-net {
    color: var(--pme-text-soft);
    font-size: 0.95rem;
    font-weight: 500;
}
body.pme-cart .pme-cart-summary-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}
body.pme-cart .pme-cart-summary-actions .pme-btn {
    width: 100%;
    min-height: 48px;
}
body.pme-cart .pme-cart-summary-actions .pme-cart-update-all[hidden] {
    display: none;
}
body.pme-cart .pme-cart-checkout {
    font-size: 1.05rem;
}
@media (min-width: 768px) {
    body.pme-cart .pme-cart-layout {
        grid-template-columns: minmax(0, 68fr) minmax(260px, 32fr);
        gap: 28px;
    }
    body.pme-cart .pme-cart-head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
    body.pme-cart .pme-cart-card {
        grid-template-areas:
            "thumb text remove"
            "thumb buy buy"
            "thumb note note";
        column-gap: 16px;
        row-gap: 6px;
        padding: 12px 14px;
    }
    body.pme-cart .pme-cart-card-buy {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
        align-items: center;
        column-gap: 16px;
    }
    body.pme-cart .pme-cart-unit {
        flex: none;
        justify-self: start;
    }
    body.pme-cart .pme-cart-qty-cell {
        justify-self: center;
    }
    body.pme-cart .pme-cart-line-total {
        justify-self: end;
        margin-left: 0;
        text-align: right;
    }
}
@media (min-width: 1024px) {
    body.pme-cart .pme-cart-summary {
        position: sticky;
        top: 116px;
        max-height: calc(100vh - 132px);
        overflow: auto;
        padding: 20px 18px 18px;
    }
}
@media (max-width: 767px) {
    body.pme-cart .pme-cart-line-total {
        margin-left: auto;
        text-align: right;
    }
    body.pme-cart .pme-cart-line-total .pme-price-stack {
        align-items: flex-end;
    }
    body.pme-cart .pme-cart-qty-cell {
        flex: 0 0 auto;
    }
}
body.pme-cart .pme-cart-thumb,
body.pme-cart .pme-cart-thumb-placeholder {
    width: 68px;
    height: 68px;
}
body.pme-cart .pme-cart-remove {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
}
body.pme-cart .pme-cart-preview-banner {
    margin: 0 0 16px;
    padding: 12px 14px;
    border: 1px solid #b7e0d8;
    border-radius: 10px;
    background: #f3fbf9;
    color: var(--pme-text);
    font-size: 0.92rem;
    line-height: 1.45;
}
body.pme-cart .pme-cart-preview-stop {
    margin: 0;
    color: var(--pme-text-soft);
    font-size: 0.88rem;
    line-height: 1.4;
    text-align: center;
}
body.pme-cart .pme-cart-sync-status {
    min-height: 1.2em;
    margin: 0 0 10px;
    color: var(--pme-text-soft);
    font-size: 0.92rem;
}
body.pme-cart .pme-cart-sync-status.is-error {
    color: #9f1239;
}
body.pme-cart .pme-cart-sync-status.is-ok {
    color: var(--pme-brand-dark);
}
body.pme-cart .pme-cart-summary.is-syncing {
    box-shadow: 0 0 0 2px rgba(0, 122, 106, 0.35);
}
body.pme-cart .pme-cart-undo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #b7e0d8;
    border-radius: 10px;
    background: #f3fbf9;
}
body.pme-cart .pme-cart-undo[hidden] {
    display: none;
}
body.pme-cart .pme-cart-min-ok {
    margin: 0 0 12px;
    color: var(--pme-text);
    font-size: 0.92rem;
}
body.pme-cart .pme-cart-empty-inline {
    margin: 0;
}
body.pme-cart .pme-cart-price-row {
    display: block;
    color: var(--pme-text);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.35;
    white-space: nowrap;
}
body.pme-cart .pme-cart-price-was {
    text-decoration: line-through;
}
body.pme-cart .pme-cart-price-final strong {
    font-weight: 700;
}
body.pme-cart .pme-cart-discount,
body.pme-cart .pme-cart-discount-summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 4px;
    color: var(--pme-text-soft);
    font-size: 0.82rem;
    line-height: 1.35;
}
body.pme-cart .pme-cart-discount-summary {
    margin: 0 0 12px;
    font-size: 0.9rem;
}
body.pme-cart .pme-cart-discount-summary p {
    margin: 0;
}
body.pme-cart .pme-cart-discount-applied {
    font-weight: 600;
    color: var(--pme-brand-dark);
}
