.mz-batch-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    color: var(--mz-link);
    font-weight: 650;
    text-underline-offset: 3px;
}

.mz-home .mz-batch-link {
    margin-top: 6px;
    color: #eef6ff;
    font-size: 14px;
}

.mz-batch-search-shortcut {
    margin: -12px 0 10px;
}

.mz-batch {
    max-width: 960px;
    padding-block: clamp(20px, 4vw, 48px) 56px;
    color: var(--mz-text);
}

.mz-batch h1 {
    margin-bottom: 9px;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 740;
    line-height: 1.12;
}

.mz-batch h2 {
    margin-block: 26px 13px;
    font-size: clamp(23px, 3vw, 30px);
    font-weight: 720;
}

.mz-batch h3 {
    font-size: 20px;
    font-weight: 700;
}

.mz-batch-intro,
.mz-batch-note,
.mz-batch small,
#mz-batch-hint,
#mz-batch-limit {
    color: var(--mz-muted);
}

.mz-batch-note,
#mz-batch-limit,
#mz-batch-hint {
    font-size: 14px;
    line-height: 1.45;
}

.mz-batch a:not(.mz-cart-action) {
    color: var(--mz-link);
}

.mz-batch :is(a, button, textarea, input):focus-visible,
.mz-batch-link:focus-visible {
    outline: 2px solid var(--mz-focus);
    outline-offset: 3px;
}

.mz-home .mz-batch-link:focus-visible {
    outline-color: #eef6ff;
}

.mz-batch-panel,
.mz-batch-position {
    padding: clamp(12px, 3vw, 22px);
    border: 1px solid var(--mz-border);
    border-radius: 12px;
    background: var(--mz-surface);
}

.mz-batch-panel label {
    font-weight: 650;
}

.mz-batch textarea {
    display: block;
    width: 100%;
    min-height: 96px;
    padding: 12px;
    border: 1px solid var(--mz-border);
    border-radius: 8px;
    background: var(--mz-surface);
    color: var(--mz-text);
    font: inherit;
    font-size: 16px;
    resize: vertical;
}

.mz-batch textarea::placeholder {
    color: var(--mz-muted);
    opacity: 1;
}

.mz-batch-entry-footer,
.mz-batch-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    margin-top: 12px;
}

.mz-batch-entry-footer {
    justify-content: space-between;
}

.mz-batch :is(.mz-cart-action, .mz-batch-secondary) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding-inline: 14px;
    white-space: normal;
    text-align: center;
    text-decoration: none;
}

.mz-batch .mz-cart-action:hover,
.mz-batch .mz-cart-action:focus-visible {
    color: #fff;
}

.mz-batch-secondary {
    border: 1px solid var(--mz-border);
    border-radius: 7px;
    background: var(--mz-light-accent);
    color: var(--mz-link);
    font-size: 14px;
    font-weight: 650;
}

.mz-batch [hidden] {
    display: none;
}

#mz-batch-result,
#mz-batch-codes {
    scroll-margin-top: 155px;
}

.mz-batch-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 36px;
    margin-bottom: 12px;
    padding: clamp(12px, 3vw, 22px);
    border-radius: 12px;
    background: var(--mz-light-accent);
}

.mz-batch-coverage {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.mz-batch-coverage strong {
    color: var(--mz-link);
    font-size: clamp(31px, 5vw, 45px);
    line-height: 1.1;
}

.mz-batch-summary dl {
    display: grid;
    flex-grow: 1;
    gap: 3px;
    min-width: min(225px, 100%);
    max-width: 320px;
    margin: 0;
}

.mz-batch-summary dl div {
    display: flex;
    gap: 8px;
    justify-content: space-between;
}

.mz-batch-summary dt {
    font-weight: 500;
}

.mz-batch-summary dd {
    margin: 0;
    font-weight: 700;
}

.mz-batch-position {
    min-inline-size: 0;
    margin-top: 12px;
    overflow-wrap: anywhere;
}

.mz-batch-position legend {
    float: none;
    width: auto;
    margin: 0;
    padding-inline: 6px;
    font-size: 17px;
    font-weight: 720;
}

.mz-batch-position legend span {
    color: var(--mz-muted);
    font-size: 13px;
    font-weight: 550;
}

.mz-batch-status {
    margin: 0 0 6px;
    color: var(--mz-muted);
    font-size: 13px;
    font-weight: 650;
}

.mz-batch-status-ready {
    color: var(--mz-link);
}

.mz-batch-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 8px 14px;
    padding-block: 8px;
    border-top: 1px solid var(--mz-border);
}

.mz-batch-product,
.mz-batch-skip {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.mz-batch-product input,
.mz-batch-skip input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--mz-action);
}

.mz-batch-product small,
.mz-batch-product-value small {
    display: block;
    margin-top: 2px;
}

.mz-batch-product-value {
    text-align: right;
}

.mz-batch-skip {
    min-height: 38px;
    padding-top: 7px;
    color: var(--mz-muted);
    font-size: 14px;
}

.mz-batch-error {
    margin-block: 16px;
    padding: 10px 13px;
    border: 1px solid var(--mz-brand-red);
    border-radius: 7px;
    color: var(--mz-text);
    font-weight: 650;
}

.mz-batch-pending {
    margin-top: 24px;
}

.mz-batch-pending [role="status"]:empty {
    display: none;
}

@media (max-width: 575px) {
    .mz-batch-option {
        grid-template-columns: minmax(0, 1fr);
    }

    .mz-batch-product-value {
        text-align: left;
    }

    .mz-batch-entry-footer .mz-cart-action,
    .mz-batch-actions :is(.mz-cart-action, .mz-batch-secondary) {
        width: 100%;
    }
}
