/* Advance Bulk Order - customer frontend */

.abo-sample-order {
    --abo-border: #e4e7ec;
    --abo-text: #12213a;
    --abo-muted: #667085;
    --abo-accent: #0b5ed7;
    --abo-bg: #ffffff;
    --abo-soft: #f8fafc;
    width: 100%;
    box-sizing: border-box;
    color: var(--abo-text);
    font-family: inherit;
}

.abo-sample-order * {
    box-sizing: border-box;
}

.abo-heading {
    margin-bottom: 24px;
}

.abo-heading h2 {
    margin: 0 0 8px;
    font-size: 32px;
    line-height: 1.2;
}

.abo-heading p {
    margin: 0;
    color: var(--abo-muted);
}

.abo-list {
    border: 1px solid var(--abo-border);
    border-radius: 10px;
    overflow: hidden;
    background: var(--abo-bg);
}

.abo-list-head,
.abo-sample-row {
    display: grid;
    grid-template-columns: 90px minmax(180px, 1fr) minmax(220px, 1.4fr) 120px;
    align-items: center;
    gap: 18px;
}

.abo-list-head {
    padding: 16px 20px;
    background: var(--abo-soft);
    border-bottom: 1px solid var(--abo-border);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.abo-sample-row {
    padding: 18px 20px;
    border-bottom: 1px solid var(--abo-border);
    cursor: pointer;
    transition: background .15s ease;
}

.abo-sample-row:last-child {
    border-bottom: 0;
}

.abo-sample-row:hover {
    background: #fbfcfe;
}

.abo-checkbox-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.abo-checkbox-wrap input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.abo-custom-checkbox {
    width: 22px;
    height: 22px;
    border: 1.5px solid #aab2bd;
    border-radius: 5px;
    background: #fff;
    display: block;
    position: relative;
}

.abo-checkbox-wrap input:checked + .abo-custom-checkbox {
    border-color: var(--abo-accent);
    background: var(--abo-accent);
}

.abo-checkbox-wrap input:checked + .abo-custom-checkbox:after {
    content: "";
    position: absolute;
    width: 6px;
    height: 11px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
    left: 7px;
    top: 3px;
}

.abo-product-name {
    font-weight: 700;
}

.abo-profile {
    color: var(--abo-muted);
    line-height: 1.5;
}

.abo-price {
    text-align: right;
    font-weight: 700;
    white-space: nowrap;
}

.abo-selection-bar {
    margin-top: 18px;
    padding: 16px 18px;
    border: 1px solid var(--abo-border);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    background: #fff;
}

.abo-selection-summary {
    display: flex;
    gap: 20px;
    margin-right: auto;
}

.abo-total-label {
    font-weight: 700;
}

.abo-clear-button,
.abo-add-cart-button {
    border-radius: 7px;
    padding: 11px 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.abo-clear-button {
    border: 1px solid var(--abo-border);
    background: #fff;
}

.abo-add-cart-button {
    border: 1px solid var(--abo-accent);
    background: var(--abo-accent);
    color: #fff;
}

.abo-add-cart-button:disabled,
.abo-clear-button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

.abo-message {
    margin-top: 12px;
    font-size: 14px;
}

.abo-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--abo-muted);
}

@media (max-width: 760px) {
    .abo-list {
        border-radius: 8px;
    }

    .abo-list-head {
        display: none;
    }

    .abo-sample-row {
        grid-template-columns: 42px 1fr auto;
        gap: 12px;
        padding: 16px;
    }

    .abo-checkbox-wrap {
        grid-row: span 2;
    }

    .abo-product-name {
        grid-column: 2;
    }

    .abo-profile {
        grid-column: 2 / 4;
    }

    .abo-price {
        grid-column: 3;
        grid-row: 1;
    }

    .abo-selection-summary {
        width: 100%;
        margin-right: 0;
        justify-content: space-between;
    }

    .abo-clear-button,
    .abo-add-cart-button {
        flex: 1 1 auto;
    }
}
