.collection-page {
    min-height: 640px;
}

.collection-page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding: 46px 0 28px;
    border-bottom: 1px solid #dedede;
}

.collection-page-head h1 {
    margin: 0;
    font-size: 34px;
    font-weight: 700;
}

.collection-page-head p {
    margin: 0;
    color: #777;
    font-size: 13px;
}

.collection-head-actions,
.collect-product-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.collection-primary-button,
.collection-secondary-button {
    min-height: 42px;
    padding: 0 18px;
    font-size: 14px;
    font-weight: 700;
    border: 1px solid #193b31;
    border-radius: 3px;
    cursor: pointer;
}

.collection-primary-button { color: #fff; background: #193b31; }
.collection-secondary-button { color: #193b31; background: #fff; }
.collection-primary-button:disabled { opacity: .55; cursor: wait; }

.collect-table-list {
    margin: 28px 0 100px;
}

.collection-empty {
    display: grid;
    min-height: 300px;
    place-items: center;
    color: #888;
    background: #fafafa;
    border: 1px solid #eee;
}

.collect-product {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    grid-template-areas:
        "image head"
        "image table"
        "image total";
    column-gap: 30px;
    row-gap: 0;
    align-items: start;
    padding: 28px 0;
    border-bottom: 1px solid #dedede;
}

.collect-product-image {
    grid-area: image;
    display: block;
    width: 190px;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f1f1f1;
}

.collect-product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.collect-product-head {
    grid-area: head;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.collect-product-head a {
    display: block;
    color: #222;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.5;
}

.collect-product-head small {
    display: block;
    margin-top: 8px;
    color: #888;
}

.collect-product-head button,
.remove-collect-variant {
    color: #555;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.collect-product-head .add-custom-size {
    color: #193b31;
    font-weight: 700;
    text-decoration: none;
}

.collect-product-head .open-product-assistant {
    min-height: 34px;
    padding: 0 14px;
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    background: #193b31;
    border-radius: 3px;
}

.collection-ai-panel.product-ai-panel { position: fixed; top: 84px; right: 24px; bottom: 84px; z-index: 10022; display: flex; width: clamp(520px, 26vw, 680px); max-width: calc(100vw - 32px); flex-direction: column; background: #fff; border: 1px solid #dededb; box-shadow: 0 16px 50px rgba(0,0,0,.2); }
.collection-ai-panel.product-ai-panel[hidden] { display: none; }
.collection-ai-panel .product-ai-header { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 18px 16px; border-bottom: 1px solid #e7e7e4; }
.collection-ai-panel .product-ai-header strong { display: block; max-width: 560px; overflow: hidden; color: #222; font-size: 17px; text-overflow: ellipsis; white-space: nowrap; }
.collection-ai-panel .product-ai-header small { display: block; margin-top: 4px; color: #777; font-size: 11px; }
.collection-ai-panel .product-ai-header button { border: 0; background: none; color: #666; font-size: 26px; line-height: 1; cursor: pointer; }
.collection-ai-panel .product-ai-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 12px 14px; border-bottom: 1px solid #e7e7e4; }
.collection-ai-panel .product-ai-mode { min-height: 38px; color: #193b31; font-weight: 700; background: #fff; border: 1px solid #aebbb6; border-radius: 3px; cursor: pointer; }
.collection-ai-panel .product-ai-mode.active { color: #fff; background: #193b31; border-color: #193b31; }
.collection-ai-panel .product-ai-messages { flex: 1; overflow-y: auto; padding: 18px; background: #f7f7f5; }
.collection-ai-panel .product-ai-message { width: fit-content; max-width: 88%; margin: 0 0 12px; padding: 10px 12px; color: #292929; font-size: 14px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; background: #fff; border-radius: 4px; }
.collection-ai-panel .product-ai-message.is-user { margin-left: auto; color: #fff; background: #193b31; }
.collection-ai-panel .product-ai-message.is-error { color: #9b2335; background: #fff0f1; }
.collection-ai-panel .product-ai-message.has-table { width: 100%; max-width: 100%; }
.collection-ai-panel .product-ai-table-wrap { max-width: 100%; overflow-x: auto; white-space: normal; }
.collection-ai-panel .product-ai-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13px; }
.collection-ai-panel .product-ai-table th,
.collection-ai-panel .product-ai-table td { padding: 8px 10px; border: 1px solid #d9ddd9; white-space: normal; }
.collection-ai-panel .product-ai-table th { color: #193b31; background: #eef3f1; }
.collection-ai-panel .product-ai-choice-groups { display: grid; gap: 12px; margin-top: 14px; white-space: normal; }
.collection-ai-panel .product-ai-choice-group > strong { display: block; margin-bottom: 7px; color: #4b5f59; font-size: 12px; }
.collection-ai-panel .product-ai-choice-options { display: flex; flex-wrap: wrap; gap: 7px; }
.collection-ai-panel .product-ai-choice { min-height: 34px; padding: 6px 11px; color: #193b31; font: inherit; font-size: 12px; line-height: 1.35; text-align: left; background: #fff; border: 1px solid #8da59d; border-radius: 3px; cursor: pointer; }
.collection-ai-panel .product-ai-choice:hover,
.collection-ai-panel .product-ai-choice:focus-visible { color: #fff; background: #193b31; border-color: #193b31; }
.collection-ai-panel .product-ai-source-images { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.collection-ai-panel .product-ai-source-images img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: contain; background: #f2f2f0; border: 1px solid #dededb; }
.collection-ai-panel .product-ai-source-images small { display: block; color: #666; font-size: 10px; }
.collection-ai-panel .product-ai-copy { display: block; margin: 7px 0 0 auto; padding: 2px 0; color: #58726a; background: transparent; border: 0; cursor: pointer; }
.collection-ai-panel .product-ai-form { display: flex; gap: 10px; align-items: flex-end; padding: 14px; background: #fff; border-top: 1px solid #e7e7e4; }
.collection-ai-panel .product-ai-form textarea { flex: 1; min-height: 44px; max-height: 110px; padding: 10px; resize: vertical; border: 1px solid #cfcfcb; border-radius: 3px; }
.collection-ai-panel .product-ai-form button { height: 44px; padding: 0 17px; color: #fff; font-weight: 700; background: #193b31; border: 0; border-radius: 3px; cursor: pointer; }

.collect-variant-table {
    grid-area: table;
    width: min(100%, 844px);
    overflow-x: auto;
    border: 1px solid #dedede;
    border-bottom: 0;
}

.collect-variant-table-head,
.collect-variant-row {
    display: grid;
    grid-template-columns: 126px 200px 96px 72px 108px 180px 60px;
    width: 842px;
}

.collect-variant-table.is-employee { width: min(100%, 940px); }
.collect-variant-table.is-employee .collect-variant-table-head,
.collect-variant-table.is-employee .collect-variant-row {
    grid-template-columns: 126px 200px 96px 96px 72px 108px 180px 60px;
    width: 938px;
}

.collect-variant-cost {
    color: #8d5b18;
    font-weight: 700;
    background: #fffaf0;
}

.collect-variant-table-head {
    color: #666;
    font-size: 13px;
    font-weight: 700;
    background: #f2f1ee;
}

.collect-variant-table-head > div,
.collect-variant-row > div {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 9px 14px;
    border-right: 1px solid #dedede;
    border-bottom: 1px solid #dedede;
}

.collect-variant-table-head > div:last-child,
.collect-variant-row > div:last-child {
    justify-content: center;
    border-right: 0;
}

.collect-variant-row {
    color: #252525;
    font-size: 14px;
}

.collect-variant-color {
    gap: 10px;
}

.collect-variant-color i {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    background-position: center;
    background-size: cover;
    border: 1px solid #ccc;
    border-radius: 50%;
}

.collect-variant-price {
    font-weight: 700;
}

.collect-quantity-input {
    width: 64px;
    height: 32px;
    padding: 0 7px;
    color: #222;
    text-align: center;
    background: #fff;
    border: 1px solid #cfcfcf;
    border-radius: 3px;
    outline: 0;
}

.collect-quantity-input:focus {
    border-color: #193b31;
    box-shadow: 0 0 0 2px rgba(25, 59, 49, .1);
}

.collect-note-input {
    width: 100%;
    height: 32px;
    padding: 0 8px;
    color: #333;
    background: #fff;
    border: 1px solid #d2d2d2;
    border-radius: 3px;
    outline: 0;
}

.collect-note-input:focus {
    border-color: #193b31;
    box-shadow: 0 0 0 2px rgba(25, 59, 49, .1);
}

.collect-line-total {
    font-weight: 700;
}

.collect-product-total {
    grid-area: total;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 24px;
    min-height: 50px;
    padding: 10px 18px;
    color: #666;
    background: #faf9f7;
    border: 1px solid #dedede;
    border-top: 0;
}

.collect-product-total strong {
    min-width: 110px;
    color: #98001d;
    font-size: 18px;
    text-align: right;
}

.collect-variant-row.is-manual {
    background: #fbfbfa;
}

.collect-variant-row.is-manual > div {
    padding: 7px 9px;
}

.manual-variant-input {
    width: 100%;
    height: 32px;
    padding: 0 8px;
    color: #222;
    background: #fff;
    border: 1px solid #d2d2d2;
    border-radius: 3px;
    outline: 0;
}

.manual-variant-input:focus {
    border-color: #193b31;
    box-shadow: 0 0 0 2px rgba(25, 59, 49, .1);
}

.manual-variant-price {
    display: flex;
    align-items: center;
    gap: 4px;
}

.manual-variant-price b {
    color: #555;
    font-size: 13px;
}

.manual-variant-price input {
    min-width: 0;
}

.collect-variant-add-row {
    width: 100%;
    min-width: 842px;
    padding: 10px 14px;
    background: #faf9f7;
    border-bottom: 1px solid #dedede;
}

.collect-variant-table.is-employee .collect-variant-add-row {
    min-width: 938px;
}

.collect-variant-add-row button {
    padding: 0;
    color: #193b31;
    font-size: 13px;
    font-weight: 700;
    background: transparent;
    border: 0;
    cursor: pointer;
}

.collection-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(125px, auto));
    align-items: stretch;
    justify-content: end;
    margin-top: 28px;
    color: #333;
    background: #f2f1ee;
    border: 1px solid #dedede;
}

.collection-summary > div,
.collection-summary > label {
    display: grid;
    gap: 7px;
    min-width: 150px;
    margin: 0;
    padding: 16px 18px;
    border-left: 1px solid #dedede;
}

.collection-summary > :first-child { border-left: 0; }
.collection-summary span { color: #6a6a6a; font-size: 12px; font-weight: 600; }
.collection-summary strong { color: #222; font-size: 17px; }
.collection-charge-input {
    display: flex;
    align-items: center;
    gap: 5px;
}
.collection-charge-input b { color: #555; font-size: 14px; font-weight: 600; }
.collection-charge-input input {
    width: 96px;
    height: 34px;
    padding: 0 8px;
    background: #fff;
    border: 1px solid #cfcfcf;
    border-radius: 3px;
}
.collection-summary .collection-summary-total { min-width: 180px; background: #193b31; }
.collection-summary .collection-summary-total span { color: rgba(255,255,255,.72); }
.collection-summary .collection-final-total {
    color: #98001d;
    font-size: 24px;
}
.collection-summary .collection-summary-total strong { color: #fff; }
.collection-dialog {
    position: fixed;
    inset: 0;
    z-index: 10020;
    display: grid;
    padding: 24px;
    place-items: center;
    background: rgba(14, 18, 16, .46);
    backdrop-filter: blur(5px);
}
.collection-dialog[hidden] { display: none !important; }

.collection-dialog-card {
    position: relative;
    width: min(520px, 100%);
    padding: 32px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .18);
}

.collection-dialog-card h2 { margin: 0 36px 10px 0; font-size: 24px; }
.collection-dialog-card p { margin: 0 0 22px; color: #666; line-height: 1.7; }
.collection-dialog-card > label,
.custom-dimension-grid label { display: block; color: #444; font-size: 13px; font-weight: 700; }
.collection-dialog-card input {
    width: 100%; height: 44px; margin: 7px 0 20px; padding: 0 12px;
    border: 1px solid #cfcfcf; border-radius: 3px; outline: 0;
}
.collection-dialog-card input:focus { border-color: #193b31; box-shadow: 0 0 0 3px rgba(25,59,49,.1); }
.collection-dialog-close {
    position: absolute; top: 16px; right: 16px; width: 34px; height: 34px;
    z-index: 2; display: grid; place-items: center; padding: 0;
    color: #555; font-size: 25px; line-height: 1; background: #f3f3f3; border: 0; border-radius: 50%; cursor: pointer;
}
.collection-dialog-close:hover { color: #111; background: #e9e9e9; }
.collection-dialog-close:focus-visible { outline: 2px solid #193b31; outline-offset: 2px; }
.custom-dimension-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.collection-history-dialog .collection-dialog-card { width: min(1160px, 100%); max-height: 88vh; overflow: auto; }
.collection-history-dialog .collection-empty { min-height: 180px; }
.quote-history-loading { gap: 12px; }
.quote-history-loading i {
    width: 22px; height: 22px; border: 2px solid #d7d7d7; border-top-color: #193b31;
    border-radius: 50%; animation: quote-history-spin .7s linear infinite;
}
.quote-history-load-error { gap: 16px; flex-direction: column; }
.quote-history-load-error .collection-secondary-button { min-width: 112px; }
@keyframes quote-history-spin { to { transform: rotate(360deg); } }
.quote-history-card { margin-bottom: 12px; border: 1px solid #ddd; border-radius: 6px; background: #fff; }
.quote-history-card > summary {
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
    padding: 17px 20px; list-style: none; cursor: pointer; background: #faf9f7;
}
.quote-history-card > summary::-webkit-details-marker { display: none; }
.quote-history-card > summary::before { content: '›'; flex: 0 0 auto; color: #193b31; font-size: 26px; line-height: 1; transition: transform .2s ease; }
.quote-history-card[open] > summary::before { transform: rotate(90deg); }
.quote-history-card > summary span { display: grid; gap: 4px; }
.quote-history-card > summary span:first-of-type { flex: 1; }
.quote-history-card > summary span:last-of-type { text-align: right; }
.quote-history-card > summary small { color: #888; font-size: 12px; }
.quote-history-delete {
    flex: 0 0 auto; padding: 6px 10px; color: #a50020; font-size: 12px; white-space: nowrap;
    background: transparent; border: 1px solid #d9b8bf; border-radius: 3px; cursor: pointer;
}
.quote-history-delete:hover { color: #7e0018; background: #fff5f5; border-color: #a50020; }
.quote-history-delete:disabled { cursor: wait; opacity: .55; }
.quote-history-editor { padding: 22px 20px 20px; border-top: 1px solid #e1e1e1; }
.quote-history-editor label { display: block; color: #555; font-size: 12px; font-weight: 700; }
.collection-dialog-card .quote-history-editor input {
    height: 36px; margin: 5px 0 0; padding: 0 9px; color: #222; font-size: 13px; background: #fff;
    border: 1px solid #d4d4d4; border-radius: 3px;
}
.quote-edit-project-label { max-width: 520px; margin-bottom: 22px; }
.collection-dialog-card .quote-edit-project-name { height: 42px; font-size: 15px; }
.quote-edit-product { margin-top: 20px; }
.quote-edit-product > label { max-width: 640px; margin-bottom: 10px; }
.quote-edit-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid #dedede; }
.quote-edit-table { width: 100%; min-width: 1120px; border-collapse: collapse; table-layout: fixed; }
.quote-edit-table th { padding: 10px 8px; color: #666; font-size: 12px; text-align: left; white-space: nowrap; background: #f2f1ee; }
.quote-edit-table td { padding: 6px; border-top: 1px solid #e2e2e2; }
.quote-edit-table th:nth-child(1) { width: 72px; }
.quote-edit-table th:nth-child(2) { width: 108px; }
.quote-edit-table th:nth-child(3) { width: 185px; }
.quote-edit-table th:nth-child(4) { width: 100px; }
.quote-edit-table th:nth-child(5) { width: 112px; }
.quote-edit-table th:nth-child(6) { width: 74px; }
.quote-edit-table th:nth-child(7) { width: 108px; }
.quote-edit-table th:nth-child(8) { width: 200px; }
.quote-edit-table th:nth-child(9) { width: 62px; text-align: center; }
.quote-edit-table td:nth-child(5) { background: #fffaf0; }
.collection-dialog-card .quote-edit-table input { width: 100%; min-width: 70px; }
.quote-edit-image-cell img { display: block; width: 54px; height: 54px; object-fit: cover; background: #f3f3f3; }
.quote-fixed-cost { display: block; color: #8d5b18; font-size: 13px; font-weight: 700; white-space: nowrap; }
.quote-fixed-cost::after { content: ' 锁定'; color: #a58a65; font-size: 10px; font-weight: 500; }
.quote-edit-line-total { color: #98001d; font-size: 13px; font-weight: 700; white-space: nowrap; }
.quote-edit-remove-row { color: #777; background: transparent; border: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.quote-edit-footer { display: flex; justify-content: flex-end; gap: 26px; margin-top: 14px; padding: 16px 18px; background: #f2f1ee; }
.quote-edit-footer strong { min-width: 120px; color: #98001d; font-size: 19px; text-align: right; }
.quote-edit-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.quote-edit-status { margin-right: auto; color: #777; font-size: 13px; }
.quote-edit-status.is-success { color: #19764d; }
.quote-edit-status.is-error { color: #a50020; }
.quote-history-invalid { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 10px; padding: 18px; color: #a50020; background: #fff5f5; border: 1px solid #eed7d7; }

.quote-edit-charges {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    gap: 14px;
    margin-top: 14px;
}
.quote-edit-charges label { width: 150px; }
.quote-edit-charges > span { min-width: 150px; padding: 10px 12px; color: #666; background: #faf9f7; }
.quote-edit-charges b { display: block; margin-top: 4px; color: #222; font-size: 16px; }

#quote-pdf-stage { position: fixed; left: -12000px; top: 0; width: 794px; background: #fff; }
.quote-pdf-sheet {
    width: 794px; min-height: 1123px; padding: 54px; color: #222; background: #fff;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}
.quote-pdf-sheet header { display: flex; justify-content: space-between; gap: 30px; padding-bottom: 22px; border-bottom: 3px solid #193b31; }
.quote-pdf-sheet header div { display: grid; gap: 7px; }
.quote-pdf-sheet header div:last-child { text-align: right; }
.quote-pdf-sheet header strong { font-size: 23px; }
.quote-pdf-sheet header span, .quote-pdf-sheet header small { color: #777; }
.quote-pdf-sheet article { margin-top: 30px; break-inside: avoid; }
.quote-pdf-sheet h2 { margin: 0 0 10px; font-size: 17px; }
.quote-pdf-sheet table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.quote-pdf-sheet th, .quote-pdf-sheet td { padding: 10px 9px; font-size: 11px; text-align: left; border: 1px solid #d8d8d8; }
.quote-pdf-sheet th { background: #f1f0ec; }
.quote-pdf-sheet footer { display: flex; justify-content: flex-end; gap: 28px; margin-top: 30px; padding: 20px; font-size: 18px; background: #f1f0ec; }
.quote-pdf-sheet footer strong { color: #98001d; font-size: 24px; }
.quote-pdf-sheet .quote-note { margin-top: 18px; color: #777; font-size: 10px; }

@media (max-width: 760px) {
    .collection-ai-panel.product-ai-panel { top: auto; right: 16px; bottom: 16px; width: calc(100vw - 32px); height: min(560px, calc(100vh - 32px)); }
    .collection-page > .listing-head {
        display: none;
    }

    .collection-page-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 18px;
        padding: 24px 0 20px;
    }

    .collection-head-actions { width: 100%; }
    .collection-head-actions button { flex: 1; padding: 0 10px; }
    .custom-dimension-grid { grid-template-columns: 1fr; gap: 0; }
    .collection-dialog-card { padding: 26px 20px; }
    .collection-history-dialog { padding: 10px; }
    .collection-history-dialog .collection-dialog-card { padding: 24px 12px; }
    .quote-history-card > summary { padding: 14px 12px; }
    .quote-history-editor { padding: 18px 10px; }
    .quote-edit-actions { align-items: stretch; flex-direction: column; }
    .quote-edit-actions .quote-edit-status { margin: 0; }
    .collection-summary { grid-template-columns: 1fr 1fr; justify-content: stretch; }
    .collection-summary > div,
    .collection-summary > label { min-width: 0; border-top: 1px solid #dedede; border-left: 0; }
    .collection-summary .collection-summary-total { grid-column: 1 / -1; min-width: 0; }
    .quote-edit-charges { align-items: stretch; flex-direction: column; }
    .quote-edit-charges label,
    .quote-edit-charges > span { width: 100%; }

    .collection-page-head h1 {
        margin-bottom: 5px;
        font-size: 28px;
    }

    .collection-page-head p {
        line-height: 1.6;
    }

    .collect-table-list {
        margin: 18px 0 64px;
    }

    .collect-product {
        grid-template-columns: 84px minmax(0, 1fr);
        grid-template-areas:
            "image head"
            "table table"
            "total total";
        gap: 14px 12px;
        padding: 22px 0;
    }

    .collect-product-image {
        width: 84px;
    }

    .collect-product-head {
        align-self: stretch;
        align-items: flex-start;
        flex-direction: column;
        justify-content: flex-start;
        gap: 9px;
        min-width: 0;
        margin: 0;
    }

    .collect-product-head a {
        font-size: 15px;
        line-height: 1.45;
        overflow-wrap: anywhere;
    }

    .collect-product-head small {
        margin-top: 5px;
        font-size: 12px;
    }

    .collect-product-actions {
        flex-wrap: wrap;
        gap: 6px 12px;
        width: 100%;
    }

    .collect-product-head button {
        padding: 0;
        font-size: 12px;
        white-space: nowrap;
    }

    .collect-variant-table,
    .collect-variant-table.is-employee {
        width: 100%;
        overflow: visible;
        border: 0;
    }

    .collect-variant-table-head {
        display: none;
    }

    .collect-variant-row,
    .collect-variant-table.is-employee .collect-variant-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        min-width: 0;
        margin-bottom: 10px;
        overflow: hidden;
        color: #252525;
        font-size: 13px;
        background: #fff;
        border: 1px solid #dedede;
        border-radius: 4px;
    }

    .collect-variant-row > div,
    .collect-variant-row.is-manual > div {
        display: flex;
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
        min-width: 0;
        min-height: 0;
        padding: 9px 11px;
        border-right: 0;
        border-bottom: 1px solid #e2e2e2;
    }

    .collect-variant-row > .collect-variant-cell::before {
        content: attr(data-label);
        color: #888;
        font-size: 10px;
        font-weight: 600;
        line-height: 1.2;
    }

    .collect-cell-item,
    .collect-cell-size,
    .collect-cell-note,
    .collect-cell-action,
    .collect-variant-table:not(.is-employee) .collect-cell-total {
        grid-column: 1 / -1;
    }

    .collect-cell-price,
    .collect-variant-table.is-employee .collect-cell-quantity {
        border-right: 1px solid #e2e2e2 !important;
    }

    .collect-variant-color {
        align-items: center !important;
        flex-flow: row wrap !important;
    }

    .collect-variant-color::before {
        flex: 0 0 100%;
    }

    .collect-variant-color i {
        width: 22px;
        height: 22px;
    }

    .collect-cell-size {
        overflow-wrap: anywhere;
    }

    .manual-variant-price {
        display: grid !important;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center !important;
    }

    .manual-variant-price::before {
        grid-column: 1 / -1;
    }

    .manual-variant-input,
    .collect-note-input,
    .collect-quantity-input {
        width: 100%;
        height: 36px;
        font-size: 16px;
    }

    .collect-cell-action {
        align-items: flex-end !important;
        padding: 7px 11px !important;
        border-bottom: 0 !important;
    }

    .collect-cell-action::before {
        display: none;
    }

    .collect-cell-action .remove-collect-variant {
        font-size: 12px;
    }

    .collect-variant-add-row,
    .collect-variant-table.is-employee .collect-variant-add-row {
        width: 100%;
        min-width: 0;
        padding: 11px 12px;
        border: 1px dashed #c9cec9;
        border-radius: 4px;
    }

    .collect-product-total {
        min-height: 44px;
        padding: 9px 12px;
        border-top: 1px solid #dedede;
    }

    .collect-product-total strong {
        min-width: 96px;
        font-size: 16px;
    }

    .collection-summary > div,
    .collection-summary > label {
        padding: 13px 12px;
    }

    .collection-summary strong {
        font-size: 15px;
    }

    .collection-summary .collection-final-total {
        font-size: 21px;
    }
}
