.ost-batch-dialog {
    --batch-brand: #191c75;
    --batch-text: #17233e;
    --batch-line: #dce3ef;
    --batch-surface: #f3f6fb;
    position: fixed;
    inset: 0;
    width: min(640px, calc(100% - 24px));
    max-height: calc(100% - 24px);
    margin: auto;
    padding: clamp(18px, 4vw, 28px);
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: var(--batch-text);
    box-sizing: border-box;
    box-shadow: 0 24px 64px rgba(23, 35, 62, .2);
}
.ost-batch-dialog::backdrop { background: rgba(12, 20, 46, .54); }
.ost-batch-dialog:not([open]), .ost-batch-dialog [hidden] { display: none; }
.ost-batch-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}
.ost-batch-dialog .ost-batch-heading h2 {
    margin: 0;
    color: var(--batch-text);
    font-size: clamp(22px, 4vw, 28px);
    font-weight: 750;
    line-height: 1.2;
}
.ost-batch-dialog h3 {
    margin: 0;
    color: var(--batch-text);
    font-size: 16px;
    font-weight: 700;
}
.ost-batch-dialog button { cursor: pointer; font: inherit; }
.ost-batch-dialog :is(a, button, input, textarea):focus-visible,
#ost-quote-widget .ost-qw-inner:focus-visible {
    outline: 2px solid #597cf0;
    outline-offset: 2px;
}
.ost-batch-close {
    flex: 0 0 44px;
    height: 44px;
    border: 1px solid var(--batch-line);
    border-radius: 50%;
    background: var(--batch-surface);
    color: var(--batch-text);
}
.ost-batch-dialog .ost-batch-close { font-size: 24px; line-height: 1; }
#ost-batch-form { display: grid; gap: 13px; }
#ost-batch-form label { display: grid; gap: 5px; margin: 0; color: var(--batch-text); font-size: 14px; font-weight: 650; }
#ost-batch-form :is(input, textarea) {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--batch-line);
    border-radius: 8px;
    background: #fff;
    color: var(--batch-text);
    box-sizing: border-box;
    font: inherit;
    font-size: 16px;
}
#ost-batch-form textarea { resize: vertical; }
.ost-batch-contact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ost-batch-items {
    margin: 0;
    padding: 0 12px;
    border: 1px solid var(--batch-line);
    border-radius: 10px;
    background: var(--batch-surface);
    list-style: none;
}
.ost-batch-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 10px 0;
}
.ost-batch-row + .ost-batch-row { border-top: 1px solid var(--batch-line); }
.ost-batch-item-name {
    color: var(--batch-brand);
    font-weight: 700;
    line-height: 1.4;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
}
.ost-batch-controls { display: flex; flex: 0 0 auto; align-items: flex-end; gap: 7px; }
#ost-batch-form .ost-batch-quantity { width: 106px; font-size: 12px; }
.ost-batch-remove {
    min-height: 44px;
    padding: 5px 7px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--batch-brand);
}
.ost-batch-remove:hover { text-decoration: underline; }
.ost-batch-primary {
    min-height: 44px;
    padding: 9px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--batch-brand);
    color: #fff;
}
.ost-batch-primary:disabled { cursor: wait; opacity: .65; }
.ost-batch-status { margin: 0; color: #9c2730; }
.ost-batch-status:empty { display: none; }
.ost-batch-privacy { margin: 0; color: #52617a; font-size: 12px; }
.ost-batch-confirmation {
    padding: 15px;
    border: 1px solid #a6d4c2;
    border-radius: 10px;
    background: #eff9f4;
    color: #16513b;
}
.ost-batch-confirmation p { margin: 6px 0 14px; }
@media (max-width: 520px) {
    .ost-batch-contact { grid-template-columns: minmax(0, 1fr); }
    .ost-batch-row { display: grid; justify-content: stretch; }
    .ost-batch-controls { justify-content: space-between; }
}
