/* Objednávka — len stránka checkout, neprepisuje main.css inde. */

body.pme-body--checkout .pme-section {
    padding-top: 16px;
    padding-bottom: 32px;
}

body.pme-body--checkout .pme-co-top .pme-container,
body.pme-body--checkout .pme-co-foot .pme-container,
body.pme-body--checkout .pme-layout-main--full {
    max-width: var(--pme-container);
    margin-left: auto;
    margin-right: auto;
}

body.pme-body--checkout .pme-checkout {
    max-width: none;
}

.pme-co-top {
    background: #fff;
    border-bottom: 1px solid var(--pme-border);
}

.pme-co-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 64px;
    padding-top: 8px;
    padding-bottom: 8px;
}

.pme-co-logo img {
    display: block;
    width: auto;
    height: 40px;
}

.pme-co-top-nav {
    display: flex;
    gap: 16px;
    align-items: center;
}

.pme-co-step {
    margin: 0;
    font-weight: 700;
    font-size: 0.95rem;
}

.pme-co-top-nav a {
    color: var(--pme-text);
    font-weight: 600;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}


body.pme-body--checkout .pme-cart-unit {
    font-size: 0.85rem;
    color: var(--pme-text-soft);
    font-weight: 500;
}

body.pme-body--checkout .pme-cart-line-total {
    font-size: 1.05rem;
}

body.pme-body--checkout .pme-cart-nudge {
    margin: 8px 0 0;
    color: var(--pme-text-soft);
    font-size: 0.92rem;
}

@media (max-width: 640px) {
    .pme-co-top-inner {
        flex-wrap: wrap;
        gap: 4px 12px;
    }
}

.pme-co-foot {
    border-top: 1px solid var(--pme-border);
    padding: 16px 0 20px;
    color: var(--pme-text-soft);
    font-size: 0.84rem;
}

.pme-co-foot p {
    margin: 0;
    white-space: nowrap;
}

.pme-co-foot a {
    color: var(--pme-text);
}

.pme-co-layout {
    display: block;
}

.pme-co-summary,
.pme-co-card {
    background: #fff;
    border: 1px solid var(--pme-border);
    border-radius: var(--pme-radius);
    padding: 16px;
    scroll-margin-top: 16px;
}

.pme-co-card.pme-co-jump-on {
    animation: pme-co-jump-pulse 1.4s ease;
}

@keyframes pme-co-jump-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(0, 122, 106, 0.45);
        border-color: var(--pme-brand, #007a6a);
    }
    40% {
        box-shadow: 0 0 0 6px rgba(0, 122, 106, 0.18);
        border-color: var(--pme-brand, #007a6a);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(0, 122, 106, 0);
        border-color: var(--pme-border);
    }
}

@media (prefers-reduced-motion: reduce) {
    .pme-co-card.pme-co-jump-on {
        animation: none;
        border-color: var(--pme-brand, #007a6a);
    }
}

.pme-co-summary h2,
.pme-co-card h2 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 600;
}

.pme-co-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 16px;
    align-items: baseline;
}

.pme-co-head-total {
    font-size: 1.25rem;
    font-weight: 700;
    text-align: right;
}

.pme-co-head-total-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
}

.pme-co-alert[hidden] {
    display: none !important;
}

.pme-co-summary-count,
.pme-co-edit {
    margin: 0;
    color: var(--pme-text-soft);
    font-size: 0.92rem;
}

.pme-co-edit {
    margin-top: 12px;
}

.pme-co-edit a {
    color: var(--pme-brand-dark);
    font-weight: 600;
}

.pme-co-line {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
    border-top: 1px solid var(--pme-border-soft);
}

.pme-co-line img,
.pme-co-thumb-ph {
    width: 48px;
    height: 48px;
    object-fit: contain;
    background: var(--pme-bg-soft);
    border-radius: 4px;
}

.pme-co-thumb-ph {
    display: grid;
    place-items: center;
    font-size: 0.7rem;
    color: var(--pme-text-soft);
}

.pme-co-line-title {
    font-weight: 600;
    color: var(--pme-text);
}

.pme-co-line-meta {
    color: var(--pme-text);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.35;
}
.pme-co-line-sum {
    margin-top: 6px;
}
.pme-co-quiet {
    color: var(--pme-text-soft);
    font-size: 0.92rem;
}
.pme-co-line-meta .pme-cart-price-row {
    display: block;
    color: var(--pme-text);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.35;
    white-space: nowrap;
}
.pme-co-line-meta .pme-cart-price-was {
    text-decoration: line-through;
}
.pme-co-line-meta .pme-cart-price-final strong {
    font-weight: 700;
}

.pme-co-net {
    display: block;
}

.pme-co-net[hidden] {
    display: none !important;
}

.pme-co-discount {
    margin: 12px 0 0;
    color: var(--pme-text-soft);
    font-size: 0.92rem;
    line-height: 1.4;
}
.pme-co-discount p {
    margin: 0 0 4px;
}
.pme-co-discount p:last-child {
    margin-bottom: 0;
}
.pme-co-totals {
    margin: 12px 0 0;
    padding-top: 8px;
    border-top: 1px solid var(--pme-border);
}

.pme-co-totals p {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 0;
    padding: 6px 0;
}
.pme-co-totals p strong {
    white-space: nowrap;
    flex-shrink: 0;
}
.pme-co-save-label {
    white-space: nowrap;
}
.pme-co-save-note {
    font-size: 0.78em;
    font-weight: 400;
    white-space: nowrap;
}

.pme-co-jump {
    appearance: none;
    border: 0;
    background: none;
    padding: 0;
    margin: 0;
    font: inherit;
    font-weight: 400;
    color: var(--pme-brand, #007a6a);
    text-align: right;
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.pme-co-jump:hover,
.pme-co-jump:focus-visible {
    color: var(--pme-brand-dark, #005f53);
}

.pme-co-totals .pme-co-quiet {
    display: block;
    padding-top: 0;
}

.pme-co-total {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pme-text);
}

.pme-co-totals .pme-co-total-net {
    margin-top: -4px;
    padding-top: 0;
    font-size: 0.92rem;
    font-weight: 400;
    color: var(--pme-text-soft);
}

.pme-co-alert {
    background: #fff4f4;
    border: 1px solid #e3b4b4;
    color: #6e1212;
    border-radius: var(--pme-radius);
    padding: 12px 14px;
    margin: 0 0 16px;
}

.pme-co-form {
    display: grid;
    gap: 16px;
}

.pme-co-card legend,
.pme-co-form h2 {
    padding: 0;
}

.pme-co-bill-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    flex-wrap: wrap;
}

.pme-co-bill-head h2 {
    margin: 0;
}

.pme-co-bill-head .pme-co-check {
    margin: 0;
    min-height: 44px;
    font-weight: 500;
}

.pme-co-field {
    display: grid;
    grid-template-columns: minmax(7.5rem, 10.5rem) minmax(0, 1fr);
    column-gap: 16px;
    row-gap: 4px;
    align-items: center;
    margin-top: 12px;
}

.pme-co-field > .pme-co-error {
    grid-column: 2;
}

.pme-co-company > .pme-co-suggest,
.pme-co-company > #pme-company-status {
    grid-column: 2;
}

.pme-co-suggest {
    margin: 0;
    padding: 4px 0;
    border: 1px solid var(--pme-border);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    max-height: 240px;
    overflow: auto;
}

.pme-co-suggest[hidden],
#pme-company-status[hidden] {
    display: none !important;
}

.pme-co-suggest button {
    display: block;
    width: 100%;
    margin: 0;
    padding: 8px 12px;
    border: 0;
    background: none;
    color: var(--pme-text);
    font: inherit;
    font-weight: 400;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.pme-co-suggest button strong {
    font-weight: 600;
}

.pme-co-suggest button[aria-selected="true"],
.pme-co-suggest button:hover {
    background: #f3faf8;
}

.pme-co-field:has(.pme-co-check) {
    display: block;
}

.pme-co-field:has(textarea) {
    align-items: start;
}

.pme-co-field:has(textarea) > label {
    padding-top: 10px;
}

@media (max-width: 520px) {
    .pme-co-field {
        grid-template-columns: 6.5rem minmax(0, 1fr);
        column-gap: 12px;
    }
}

.pme-co-field label,
.pme-co-choice,
.pme-co-check {
    font-weight: 600;
}

.pme-co-form input,
.pme-co-form textarea {
    scroll-margin-top: 24px;
}

.pme-co-form input[type="text"],
.pme-co-form input[type="email"],
.pme-co-form input[type="tel"],
.pme-co-form textarea {
    width: 100%;
    min-height: 44px;
    box-sizing: border-box;
    border: 1px solid #c8c8c8;
    border-radius: 6px;
    padding: 8px 12px;
    font: inherit;
    color: var(--pme-text);
    background: #fff;
}

.pme-co-form textarea {
    min-height: 96px;
    resize: vertical;
}

.pme-co-form input[aria-invalid="true"],
.pme-co-form textarea[aria-invalid="true"] {
    border-color: #9b1c1c;
}

.pme-co-error {
    margin: 0;
    color: #9b1c1c;
    font-size: 0.92rem;
    font-weight: 600;
}

.pme-co-grid {
    display: grid;
    gap: 12px;
}

.pme-co-choice {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 48px;
    margin-top: 8px;
    padding: 12px;
    border: 1px solid var(--pme-border);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
}

.pme-co-choice:has(input:checked) {
    border-color: var(--pme-brand);
    background: #f3faf8;
}

.pme-co-choice input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex: 0 0 auto;
}

.pme-co-choice-body {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
    flex: 1;
}

.pme-co-ship-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 1 1 100%;
    min-width: 0;
}

.pme-co-ship-side {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
    flex: 0 0 auto;
}

.pme-co-ship-side img {
    display: block;
    height: 1.15em;
    width: auto;
    max-width: 1.6em;
    object-fit: contain;
}

.pme-co-choice .pme-co-note {
    display: none;
    flex-basis: 100%;
    font-weight: 400;
    color: var(--pme-text-soft);
}

.pme-co-choice:has(input:checked) .pme-co-note {
    display: block;
}

.pme-co-payopt {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) minmax(88px, 42%);
    align-items: center;
    column-gap: 12px;
    font-weight: 400;
}

.pme-co-payopt:not(:has(.pme-co-payopt-logos)) {
    grid-template-columns: auto minmax(0, 1fr);
}

.pme-co-payopt input {
    margin-top: 0;
}

.pme-co-payopt-title {
    display: block;
    font-weight: 700;
    line-height: 1.3;
}

.pme-co-payopt-desc {
    display: block;
    margin-top: 2px;
    font-weight: 400;
    font-size: 0.86rem;
    line-height: 1.35;
    color: var(--pme-text-soft, #444);
}

.pme-co-payopt .pme-co-pay-detail {
    display: none;
}

.pme-co-payopt:has(input:checked) .pme-co-pay-short {
    display: none;
}

.pme-co-payopt:has(input:checked) .pme-co-pay-detail {
    display: block;
}

.pme-co-payopt-logos {
    min-width: 0;
    justify-self: end;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.pme-co-payopt-logos img {
    display: block;
    width: auto;
    height: auto;
    max-height: 28px;
    max-width: 100%;
    object-fit: contain;
    object-position: right center;
}

.pme-co-payopt-logos img:not(.pme-co-payopt-cards) {
    max-height: 40px;
}

@media (max-width: 768px) {
    .pme-co-payopt-logos img.pme-co-payopt-cards {
        max-height: 56px;
    }

    .pme-co-payopt:has(.pme-co-payopt-logos):not(:has(.pme-co-payopt-cards)) {
        grid-template-columns: auto minmax(0, 1fr) auto;
    }

    .pme-co-payopt:not(:has(.pme-co-payopt-cards)) .pme-co-payopt-logos img {
        max-height: 38px;
        max-width: 120px;
    }
}

.pme-co-panel {
    margin-top: 12px;
    padding: 12px;
    background: var(--pme-bg-soft);
    border-radius: 8px;
}

.pme-co-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 44px;
    font-weight: 500;
}

.pme-co-check input {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex: 0 0 auto;
}

.pme-co-country {
    margin: 12px 0 0;
}

.pme-co-review {
    background: var(--pme-bg-soft);
    border-radius: 8px;
    padding: 12px;
}

.pme-co-review p {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 4px 0;
}

.pme-co-review .pme-co-quiet {
    display: block;
}

.pme-co-review .pme-co-quiet[hidden] {
    display: none !important;
}

.pme-co-review ul {
    margin: 8px 0 0;
    padding-left: 18px;
}

.pme-co-finale {
    display: grid;
    gap: 12px;
}

.pme-co-submit-bar {
    display: grid;
    gap: 8px;
}

.pme-co-submit-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 0;
}

.pme-co-submit-total span {
    font-size: 0.92rem;
    font-weight: 600;
}

.pme-co-submit-total strong {
    font-size: 1.25rem;
}

.pme-co-submit {
    width: 100%;
    min-height: 48px;
    font-size: 1rem;
}

.pme-co-help summary,
.pme-co-note-box summary {
    cursor: pointer;
    font-weight: 400;
    font-size: 0.95rem;
    min-height: 32px;
    display: flex;
    align-items: center;
}

.pme-co-note-box:not([open]) > :not(summary) {
    display: none;
}

.pme-co-form :focus-visible {
    outline: 2px solid var(--pme-brand);
    outline-offset: 2px;
}

.pme-honeypot {
    position: absolute;
    left: -10000px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (min-width: 640px) {
    .pme-co-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .pme-co-form {
        grid-template-columns: minmax(0, 1fr) 320px;
        column-gap: 20px;
        align-items: start;
    }

    .pme-co-form > .pme-co-card,
    .pme-co-form > .pme-co-finale {
        grid-column: 1;
    }

    .pme-co-summary {
        grid-column: 2;
        grid-row: 1 / span 12;
        position: sticky;
        top: 16px;
        max-height: calc(100vh - 32px);
        overflow: auto;
    }
}
