/* [PRODUCT GRID] Add to project button */
.b2b-open-project-popup,
.b2b-open-project-popup.button {
    align-items: center;
    appearance: none;
    border: 0 !important;
    box-shadow: none !important;
    display: inline-flex;
    font-size: 90%;
    justify-content: center;
    margin: 0;
    line-height: 1;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    overflow: visible;
    padding: .618em 1em;
    font-weight: 700;
    border-radius: 0 0 5px 5px !important;
    color: #6f6f6f !important;
    background-color: #fff !important;
    background-image: none !important;
    text-shadow: none !important;
}

.b2b-open-project-popup:hover,
.b2b-open-project-popup:focus,
.b2b-open-project-popup.button:hover {
    color: #6f6f6f !important;
    background-color: #eaeaea !important;
    background-image: none !important;
    text-decoration: none;
}

/* SHOW NOTICE */
.brx-popup-content {
    position: relative;
}

.brx-popup .b2b-toast,
.bricks-popup .b2b-toast {
    position: relative;
    /* bottom: 14px; */
    /* left: 300px; */
    z-index: 10;
    padding: 12px;
    border-radius: 3px;
    color: #fff;
    font-weight: 700;
    background-color: #56a256;
    margin-top: 20px;
}

.b2b-modal .b2b-cancel-delete {
    font-size: 100%;
    margin: 0;
    line-height: 1;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    overflow: visible;
    padding: .618em 1em;
    font-weight: 700;
    border-radius: 3px;
    left: auto;
    color: #fff!important;
    background-color: #ccc!important;
    border: 0;
    display: inline-block;
    background-image: none;
    box-shadow: none;
    text-shadow: none;
}

.b2b-modal .b2b-confirm-delete {
    font-size: 100%;
    margin: 0;
    line-height: 1;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    overflow: visible;
    padding: .618em 1em;
    font-weight: 700;
    border-radius: 3px;
    left: auto;
    color: #fff!important;
    background-color: #db4242!important;
    border: 0;
    display: inline-block;
    background-image: none;
    box-shadow: none;
    text-shadow: none;
}

.b2b-modal .b2b-keep-cart {
    font-size: 100%;
    margin: 0;
    line-height: 1;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    overflow: visible;
    padding: .618em 1em;
    font-weight: 700;
    border-radius: 3px;
    left: auto;
    color: #fff!important;
    background-color: #111!important;
    border: 0;
    display: inline-block;
    background-image: none;
    box-shadow: none;
    text-shadow: none;
}

.b2b-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.b2b-modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    display: grid;
    place-items: center;
    z-index: 100001;
}

.b2b-cart-choice-modal {
    z-index: 2147483647 !important;
}

.b2b-cart-choice-modal .b2b-modal-inner {
    position: relative;
    z-index: 1;
}

.b2b-modal-inner {
    background: #fff;
    padding: 24px;
    border-radius: 6px;
    max-width: 420px;
    width: 90%;
}

.b2b-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.b2b-modal[hidden] {
    display: none !important;
}

/* MyAccount content Fix */
.b2b-project-manager {
    min-width: 0;
    width: 100%;
}

button.b2b-delete-project {
    background-color: #db4242 !important;
    margin-left: 10px;
}


/* quote form */
.b2b-quote-details .quote-form {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 20px;
    grid-template-rows: 1fr;
}

.b2b-project-details .quote-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-gap: 20px;
    grid-template-rows: 1fr;
}

.quote-form label {
    color: #000000;
    display: block;
    font-weight: 400;
    margin-bottom: 5px;
}

/* PROJECT Products grid */
.b2b-project-manager-wrap {
    max-width: 100%;
}

.b2b-project-manager {
    display: flex;
    gap: 40px;
    align-content: center;
    justify-content: center;
    padding: 60px;
    max-width: 100%;
}

.b2b-project-manager .project-item {
    border: 1px solid #eee !important;
    border-radius: 3px;
    padding: 10px;
}

.b2b-project-manager .project-item>div {
    display: flex;
    width: 100%;
}

.b2b-project-manager .project-item .b2b-remove-project-item {
    width: 60px;
}

.b2b-project-manager .project-item .b2b-item-price {
    text-align: left;
}

.b2b-project-manager .project-item .brxe-product-add-to-cart {
    width: 40%;
}

.b2b-project-manager .project-item img {
    border-radius: inherit;
    height: 80px;
    position: static !important;
    transition: inherit;
    width: 100px;
    max-width: 100px;
    object-fit: contain;
}

.b2b-project-manager .project-item .brxe-block {
    align-items: center;
    display: flex;
    flex-direction: row;
    width: 100%;
    gap: 20px;
    padding-right: 10px;
}

.b2b-project-products {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 20px;
    grid-template-rows: 1fr;
}

.b2b-add-project-to-cart-container {
    grid-column: span 2;
    margin-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.b2b-add-project-to-cart {
    background-color: #69bcdd !important;
    width: fit-content;
}

.b2b-project-manager .project-item .cart_button-row {
    display: flex;
    gap: 8px;
}

.b2b-project-manager .project-item .number-input {
    height: 40px;
}

/* Add/Remove to projects buttons */

.b2b-remove-project-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: #fff !important;
    margin: 0 0 0 10px !important;
}

/* Bin icon */
.b2b-remove-project-item::before {
    content: "";
    width: 20px;
    height: 20px;
    display: inline-block;

    background: url("data:image/svg+xml;utf8,\
  <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23db4242' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'>\
  <polyline points='3 6 5 6 21 6'/>\
  <path d='M19 6l-1 14H6L5 6'/>\
  <path d='M10 11v6'/>\
  <path d='M14 11v6'/>\
  <path d='M9 6V4h6v2'/>\
  </svg>") no-repeat center / contain;
}

/* backorder / availability */
.b2b-stock-status.in-stock,
.b2b-stock-status .in-stock {
    background: #4DA252;
    text-align: center;
    padding: 6px;
    border-radius: 5px;
    color: white !important;
    font-weight: bold;
    font-size: var(--text-s);
    margin-top: 5px;
    line-height: 1;
    display: block !important;
    width: auto !important;
}

.b2b-stock-status.available-on-backorder,
.b2b-stock-status .available-on-backorder {
    background: #fff;
    border: 1px solid #4DA252;
    text-align: center;
    padding: 6px;
    width: auto;
    border-radius: 5px;
    color: #4DA252 !important;
    font-weight: bold;
    font-size: var(--text-s);
    margin-top: 5px;
    line-height: 1;
    display: block !important;
}

/* Project drawer */
body.b2b-drawer-open {
    overflow: hidden;
}

body.b2b-cart-loading-open {
    cursor: progress;
}

.b2b-project-drawer-shell {
    align-items: stretch;
    background: rgba(0, 0, 0, .32);
    display: none;
    inset: 0;
    justify-content: flex-end;
    position: fixed;
    z-index: 99999;
}

.b2b-project-drawer-shell.is-open {
    display: flex;
}

.b2b-project-drawer {
    height: 100%;
    position: relative;
    width: min(560px, 100vw);
}

.b2b-project-drawer__panel {
    background: #fff;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.b2b-project-drawer__header,
.b2b-project-drawer__subheader,
.b2b-project-drawer__active-project,
.b2b-project-drawer__create {
    padding: 10px 20px 10px 20px;
}

.b2b-project-drawer__footer {
    padding: 10px 20px 20px 20px;
}

.b2b-project-drawer__header,
.b2b-project-drawer__subheader,
.b2b-project-drawer__active-project {
    border-bottom: 1px solid #e8e8e8;
}

.b2b-project-drawer__header,
.b2b-project-drawer__subheader,
.b2b-project-drawer__active-project,
.b2b-project-drawer__footer-actions,
.b2b-project-drawer__create-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.b2b-project-drawer__title,
.b2b-project-drawer__subheader h4,
.b2b-project-drawer__create h4 {
    margin: 0;
}

.b2b-project-drawer__close {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-size: 34px;
    line-height: 1;
    padding: 0;
}

.b2b-project-drawer__label {
    color: #6f6f6f;
    font-size: 13px;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.b2b-active-project-name {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
}

.b2b-added-message {
    background: #f4fbff;
    border: 1px solid #cfe7f1;
    border-radius: 3px;
    display: none;
    margin: 20px;
    padding: 16px;
}

.b2b-drawer-notice {
    display: grid;
    gap: 12px;
}

.b2b-drawer-notice__message {
    color: #1d1d1d;
    font-weight: 700;
}

.b2b-drawer-notice .button {
    width: fit-content;
}

.b2b-added-message.is-visible {
    display: block;
}

.b2b-project-drawer__state--active,
.b2b-project-drawer__state--switch {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
}

.b2b-project-items,
.b2b-project-switcher-list {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 16px;
    min-height: 0;
    overflow: auto;
    padding: 20px;
}

.b2b-project-drawer .project-item {
    border: 1px solid #eee !important;
    border-radius: 3px;
    padding: 10px;
}

.b2b-project-drawer .project-item>div {
    display: flex;
    width: 100%;
}

.b2b-project-drawer .project-item .brxe-block {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 20px;
    padding-right: 10px;
    width: 25%;
}

.b2b-project-drawer .project-item .brxe-product-add-to-cart {
    width: 70%;
}

.b2b-project-drawer .project-item figure {
    margin: 0;
}

.b2b-project-drawer .project-item img {
    border-radius: inherit;
    height: 80px;
    max-width: 100px;
    object-fit: contain;
    position: static !important;
    transition: inherit;
    width: 100px;
}

.b2b-project-item__sku {
    color: #6f6f6f;
    font-size: 13px;
    margin-top: 8px;
}

.b2b-project-drawer .brxe-thsseb {
    display: block;
}

.b2b-project-drawer .cart_button-row {
    display: flex;
    gap: 8px;
}

.b2b-project-item__action {
    margin-top: 12px;
}

.b2b-project-item__action .button {
    width: fit-content;
}

.b2b-project-drawer .b2b-item-price {
    text-align: left;
}

.b2b-project-drawer .b2b-remove-project-item {
    margin: 0 0 0 10px !important;
    width: 60px;
}

.b2b-project-drawer__footer {
    border-top: 1px solid #e8e8e8;
    margin-top: auto;
}

.b2b-project-drawer .quote-form {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 16px;
}

.b2b-project-drawer .quote-form label {
    color: #000;
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
}

.b2b-project-drawer__footer-actions .button,
.b2b-project-drawer__create-actions .button,
.b2b-project-switcher-card .button {
    flex: 1;
    text-align: center;
}

.b2b-project-switcher-card {
    border: 1px solid #e8e8e8;
    border-radius: 3px;
    display: grid;
    gap: 8px;
    padding: 16px;
}

.b2b-project-switcher-notice {
    background: #fff8e5;
    border: 1px solid #f0d78a;
    border-radius: 3px;
    color: #5c4814;
    margin: 0;
    padding: 10px 12px;
}

.b2b-project-lock-badge {
    align-self: start;
    background: #d83b36;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 700;
    justify-self: start;
    line-height: 1;
    padding: 6px 10px;
}

.project-item.is-locked,
.b2b-project-switcher-card.is-locked {
    opacity: 0.72;
}

.project-item.is-locked input,
.project-item.is-locked button,
.b2b-quote-details input:disabled {
    cursor: not-allowed;
}

.b2b-project-switcher-card.is-active {
    border-color: #000;
}

.b2b-project-switcher-card__title {
    font-size: 18px;
    font-weight: 700;
}

.b2b-project-drawer__create {
    border-top: 1px solid #e8e8e8;
    display: grid;
    gap: 16px;
}

.b2b-project-drawer__create .quote-form {
    margin-bottom: 0;
}

.b2b-project-items-empty {
    margin: 0;
}

.b2b-project-drawer__loading {
    align-items: center;
    background: rgba(255, 255, 255, 0.82);
    display: none;
    flex-direction: column;
    inset: 0;
    justify-content: center;
    position: absolute;
    z-index: 20;
}

.b2b-project-drawer.is-loading .b2b-project-drawer__loading {
    display: flex;
}

.b2b-project-drawer__loading[hidden] {
    display: none !important;
}

.b2b-project-drawer__loading-spinner {
    animation: b2b-drawer-spin .7s linear infinite;
    border: 3px solid #d7eaf1;
    border-top-color: #69bcdd;
    border-radius: 50%;
    height: 34px;
    width: 34px;
}

.b2b-project-drawer__loading-text {
    color: #1d1d1d;
    font-weight: 700;
    margin-top: 12px;
}

.b2b-cart-loading {
    align-items: center;
    background: rgba(255, 255, 255, .72);
    display: flex;
    inset: 0;
    justify-content: center;
    position: fixed;
    z-index: 100000;
}

.b2b-cart-loading[hidden] {
    display: none !important;
}

.b2b-cart-loading__box {
    align-items: center;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .12);
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 260px;
    padding: 24px 28px;
}

.b2b-cart-loading__spinner {
    animation: b2b-drawer-spin .7s linear infinite;
    border: 3px solid #d7eaf1;
    border-top-color: #69bcdd;
    border-radius: 50%;
    height: 34px;
    width: 34px;
}

.b2b-cart-loading__text {
    color: #1d1d1d;
    font-weight: 700;
    text-align: center;
}

/* TABLE */
.b2b-project-manager table.shop_table {
    border: 1px solid rgba(0, 0, 0, .1);
    margin: 0 -1px 24px 0;
    text-align: left;
    width: 100%;
    border-collapse: separate;
    border-radius: 5px;
}

.b2b-project-manager table thead:first-child tr:first-child th {
    border-top: 0px solid #ccc;
}

.b2b-project-manager .shop_table tr th {
    border-right: 0;
    border-left: 0;
    border-bottom: 0;
}

.b2b-project-manager .shop_table td, .shop_table th {
    border-color: #cfcfcf;
    padding: 18px !important;
}

.b2b-project-manager .button {
    font-size: 100%;
    margin: 0;
    line-height: 1;
    cursor: pointer;
    position: relative;
    text-decoration: none;
    overflow: visible;
    padding: .618em 1em;
    font-weight: 700;
    border-radius: 3px;
    left: auto;
    color: #fff;
    background-color: #111;
    border: 0;
    display: inline-block;
    background-image: none;
    box-shadow: none;
    text-shadow: none;
    text-align:center;
}

@keyframes b2b-drawer-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 767px) {

    .b2b-project-drawer {
        width: 100vw;
    }

    .b2b-project-drawer__header,
    .b2b-project-drawer__subheader,
    .b2b-project-drawer__active-project,
    .b2b-project-drawer__footer,
    .b2b-project-drawer__create,
    .b2b-project-items,
    .b2b-project-switcher-list {
        padding: 16px;
    }

    .b2b-project-drawer .project-item .brxe-block,
    .b2b-project-drawer__footer-actions,
    .b2b-project-drawer__create-actions,
    .b2b-project-drawer .quote-form {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .b2b-project-item__meta {
        align-items: flex-start;
    }
}
