/* Big Brands B2B — separate order cart checkout */

body.bb-order-cart-page {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f4f6f8;
    color: #111827;
}

.bb-order-cart-hero {
    background: linear-gradient(135deg, #111827 0%, #020617 100%);
    color: #ffffff;
    padding: 22px 18px 28px;
}

.bb-order-cart-hero__inner,
.bb-order-cart-main {
    max-width: 1320px;
    margin: 0 auto;
}

.bb-order-cart-title {
    margin: 18px 0 8px;
    font-size: 34px;
    line-height: 1.12;
    font-weight: 950;
}

.bb-order-cart-subtitle {
    margin: 0;
    max-width: 820px;
    color: #cbd5e1;
    font-size: 16px;
    line-height: 1.5;
}

.bb-order-cart-main {
    padding: 22px 18px 56px;
}

.bb-order-cart-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 420px;
    gap: 18px;
    align-items: start;
}

.bb-order-cart-panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .07);
    overflow: hidden;
}

.bb-order-cart-panel__head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 18px;
    border-bottom: 1px solid #eef2f7;
}

.bb-order-cart-panel__head h2 {
    margin: 0;
    font-size: 22px;
}

.bb-order-cart-clear {
    min-height: 42px;
    padding: 0 14px;
    border: 1px solid #dbe4ef;
    background: #f8fafc;
    color: #111827;
    border-radius: 14px;
    font-weight: 900;
    cursor: pointer;
}

.bb-order-cart-list {
    display: grid;
    gap: 0;
}

.bb-order-cart-empty {
    padding: 26px 18px;
    color: #64748b;
    line-height: 1.45;
}

.bb-order-cart-item {
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr) 178px 128px 42px;
    gap: 14px;
    align-items: center;
    padding: 16px 18px;
    border-bottom: 1px solid #eef2f7;
}

.bb-order-cart-item:last-child {
    border-bottom: 0;
}

.bb-order-cart-item__image {
    width: 86px;
    height: 86px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bb-order-cart-item__image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.bb-order-cart-item__no-image {
    color: #94a3b8;
    font-size: 12px;
    text-align: center;
}

.bb-order-cart-item__name {
    font-size: 15px;
    font-weight: 950;
    line-height: 1.25;
    margin-bottom: 7px;
}

.bb-order-cart-item__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.3;
}

.bb-order-cart-item__badge {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    background: #fff7ed;
    color: #c2410c;
    font-weight: 900;
}

.bb-order-cart-item__badge--sale {
    background: #fee2e2;
    color: #b91c1c;
}

.bb-order-cart-qty {
    display: grid;
    gap: 6px;
}

.bb-order-cart-qty__row {
    display: grid;
    grid-template-columns: 42px minmax(70px, 1fr) 42px;
    gap: 6px;
}

.bb-order-cart-qty button,
.bb-order-cart-qty input {
    min-height: 42px;
    border-radius: 13px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #111827;
    font-size: 15px;
}

.bb-order-cart-qty button {
    font-size: 22px;
    font-weight: 950;
    cursor: pointer;
}

.bb-order-cart-qty input {
    width: 100%;
    text-align: center;
    font-weight: 950;
}

.bb-order-cart-qty__note {
    color: #64748b;
    font-size: 12px;
}

.bb-order-cart-item__sum {
    text-align: right;
}

.bb-order-cart-item__price {
    color: #64748b;
    font-size: 12px;
    margin-bottom: 3px;
}

.bb-order-cart-item__old-price {
    color: #94a3b8;
    font-size: 12px;
    text-decoration: line-through;
}

.bb-order-cart-item__total {
    font-size: 17px;
    font-weight: 950;
}

.bb-order-cart-remove {
    width: 42px;
    height: 42px;
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #be123c;
    border-radius: 14px;
    font-size: 22px;
    font-weight: 950;
    cursor: pointer;
}

.bb-order-cart-form {
    position: sticky;
    top: 14px;
    display: grid;
    gap: 12px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 18px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, .07);
}

.bb-order-cart-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.bb-order-cart-kpi {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 10px;
}

.bb-order-cart-kpi span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 4px;
}

.bb-order-cart-kpi strong {
    display: block;
    font-size: 18px;
    font-weight: 950;
}

.bb-order-cart-fields {
    display: grid;
    gap: 10px;
}

.bb-order-cart-field {
    display: grid;
    gap: 6px;
}

.bb-order-cart-field span {
    color: #64748b;
    font-size: 13px;
    font-weight: 850;
}

.bb-order-cart-field input,
.bb-order-cart-field textarea {
    width: 100%;
    min-height: 48px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 0 12px;
    font-size: 15px;
    box-sizing: border-box;
}

.bb-order-cart-field textarea {
    min-height: 88px;
    padding-top: 12px;
    resize: vertical;
}

.bb-order-cart-consents {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-radius: 16px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
}

.bb-order-cart-consents label {
    display: grid;
    grid-template-columns: 22px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    font-size: 13px;
    line-height: 1.35;
    color: #334155;
}

.bb-order-cart-consents input {
    width: 20px;
    height: 20px;
    accent-color: #dc2626;
}

.bb-order-cart-submit {
    min-height: 56px;
    border: 0;
    border-radius: 18px;
    background: #dc2626;
    color: #ffffff;
    font-size: 16px;
    font-weight: 950;
    cursor: pointer;
}

.bb-order-cart-submit:disabled {
    background: #94a3b8;
    cursor: not-allowed;
}

.bb-order-cart-manager {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.bb-order-cart-manager a {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    border-radius: 16px;
    font-weight: 950;
}

.bb-order-cart-manager__call {
    background: #111827;
    color: #ffffff;
}

.bb-order-cart-manager__write {
    background: #f8fafc;
    color: #111827;
    border: 1px solid #dbe4ef;
}

.bb-popular-products {
    margin-top: 20px;
}

.bb-popular-products h2 {
    margin: 0 0 12px;
    font-size: 24px;
}

.bb-popular-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.bb-popular-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 13px;
    box-shadow: 0 10px 28px rgba(15, 23, 42, .06);
    display: grid;
    gap: 9px;
}

.bb-popular-card__image {
    height: 128px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bb-popular-card__image img {
    max-width: 100%;
    max-height: 126px;
    object-fit: contain;
}

.bb-popular-card__name {
    min-height: 54px;
    font-weight: 950;
    line-height: 1.25;
}

.bb-popular-card__meta {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
}

.bb-popular-card__price {
    font-size: 18px;
    font-weight: 950;
}

@media (max-width: 1000px) {
    .bb-order-cart-layout {
        grid-template-columns: 1fr;
    }

    .bb-order-cart-form {
        position: static;
    }

    .bb-popular-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .bb-order-cart-title {
        font-size: 27px;
    }

    .bb-order-cart-main {
        padding: 14px 10px 44px;
    }

    .bb-order-cart-item {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 12px;
    }

    .bb-order-cart-qty,
    .bb-order-cart-item__sum,
    .bb-order-cart-remove {
        grid-column: 1 / -1;
    }

    .bb-order-cart-item__sum {
        text-align: left;
    }

    .bb-order-cart-remove {
        width: 100%;
    }

    .bb-order-cart-summary,
    .bb-order-cart-manager,
    .bb-popular-grid {
        grid-template-columns: 1fr;
    }
}
