.cart-page-items {
  padding: 48px 0 72px;
  direction: ltr;
}

.cart-page-items__header {
  position: relative;
  margin-bottom: 64px;
  text-align: right;
  padding-top: 8px;
}

.cart-page-items__header::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: -18px;
  height: 2px;
  background: #d89a00;
}

.cart-page-items__title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-primary);
  margin: 0;
}

.cart-page-items__layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 20px;
  align-items: start;
}

.cart-page-items__sidebar {
  position: relative;
  direction: rtl;
}

.cart-sidebar-card {
  background: #cfcfcf;
  padding: 22px 14px 28px;
  border-radius: 8px;
}

.cart-sidebar-card__toggle {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  color: var(--color-dark);
  font-size: 1rem;
  margin-bottom: 14px;
}

.cart-sidebar-card__coupon {
  margin-bottom: 26px;
}

.cart-sidebar-card__label {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 16px;
}

.cart-sidebar-card__coupon input {
  width: 100%;
  height: 48px;
  border: 1px solid #b08d57;
  background: var(--color-white);
  padding: 0 14px;
  font-size: 0.95rem;
  color: var(--color-dark);
  margin-bottom: 12px;
  outline: none;
}

.cart-sidebar-card__coupon-btn {
  width: 100%;
  height: 54px;
  border: none;
  background: var(--color-secondary);
  color: var(--color-white);
  font-size: 1.05rem;
  font-weight: 700;
  border-radius: 6px;
}

.cart-sidebar-card__meta {
  text-align: center;
  margin-bottom: 20px;
}

.cart-sidebar-card__meta p {
  font-size: 0.95rem;
  color: var(--color-dark);
  margin-bottom: 6px;
}

.cart-sidebar-card__meta strong {
  font-size: 1.05rem;
  color: var(--color-black);
  font-weight: 800;
}

.cart-sidebar-card__summary {
  background: #ececec;
  border-radius: 8px;
  padding: 16px 14px;
  text-align: center;
  margin: 22px 0 24px;
}

.cart-sidebar-card__summary p {
  font-size: 0.95rem;
  color: var(--color-dark);
  margin: 0;
}

.cart-sidebar-card__divider {
  height: 1px;
  background: #bdbdbd;
  margin: 12px 0;
}

.cart-sidebar-card__checkout {
  width: 100%;
  min-height: 56px;
  background: var(--color-secondary);
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.cart-sidebar-card__checkout:hover {
  color: var(--color-white);
  background: var(--color-primary-hover);
}

.cart-sidebar-card__edit {
  display: block;
  text-align: center;
  color: var(--color-secondary);
  font-size: 1rem;
  font-weight: 700;
}

.cart-page-items__table {
  width: 100%;
  direction: rtl !important;
}

.cart-page-items__table-head {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 120px 110px 120px 56px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 2px solid #d89a00;
  margin-bottom: 18px;
}

.cart-page-items__head-item {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
}

.cart-page-items__head-item--product {
  text-align: right;
}

.cart-page-items__row {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 120px 110px 120px 56px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 2px solid #d89a00;
  gap: 12px;
}

.cart-page-items__product {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 14px;
}

.cart-page-items__product-image {
  width: 100px;
  height: 100px;
  border: 1px solid #cfcfcf;
  background: #f7f7f7;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-page-items__product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-page-items__product-info h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1.9;
  margin-bottom: 10px;
}

.cart-page-items__product-info p {
  font-size: 0.75rem;
  color: var(--color-secondary);
  line-height: 1.9;
  font-weight: 700;
  margin-bottom: 4px;
}

.cart-page-items__price,
.cart-page-items__subtotal {
  text-align: center;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-dark);
}

.cart-page-items__quantity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.cart-page-items__qty-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #8a8a8a;
  background: var(--color-white);
  color: var(--color-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 4px;
}

.cart-page-items__qty-value {
  min-width: 24px;
  text-align: center;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-dark);
}

.cart-page-items__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.cart-page-items__action-btn {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  color: var(--color-dark);
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cart-page-items__remove {
  font-size: 1.7rem;
}

.cart-page-items__footer-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
}

.cart-page-items__update-btn {
  min-width: 200px;
  height: 46px;
  border: none;
  border-radius: 6px;
  background: var(--color-secondary);
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 700;
}

.cart-page-items__continue-link {
  color: var(--color-primary);
  font-size: 1.35rem;
  font-weight: 700;
}

@media (max-width: 1199.98px) {

  .cart-page-items__layout {
    grid-template-columns: 260px 1fr;
    gap: 32px;
  }

  .cart-page-items__table-head,
  .cart-page-items__row {
    grid-template-columns: minmax(280px, 1.8fr) 150px 130px 150px 80px;
  }

  .cart-page-items__product {
    grid-template-columns: 140px 1fr;
    gap: 18px;
  }

  .cart-page-items__product-image {
    width: 140px;
    height: 140px;
  }

  .cart-page-items__product-info h2 {
    font-size: 1.25rem;
  }

}

@media (max-width: 991.98px) {
  .cart-page-items__layout {
    grid-template-columns: 1fr;
  }

  .cart-page-items__sidebar {
    order: 2;
  }

  .cart-page-items__content {
    order: 1;
  }

  .cart-page-items__table-head {
    display: none;
  }

  .cart-page-items__row {
    grid-template-columns: 1fr;
    border: 1px solid #d8d8d8;
    padding: 18px;
    border-radius: 10px;
    margin-bottom: 18px;
  }

  .cart-page-items__product {
    grid-template-columns: 120px 1fr;
  }

  .cart-page-items__price,
  .cart-page-items__subtotal,
  .cart-page-items__quantity,
  .cart-page-items__actions {
    justify-content: flex-start;
    text-align: right;
  }

  .cart-page-items__footer-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .cart-page-items__update-btn {
    width: 100%;
  }

  .cart-page-items__continue-link {
    text-align: center;
  }
}

@media (max-width: 575.98px) {
  .cart-page-items {
    padding: 32px 0 48px;
  }

  .cart-page-items__header {
    margin-bottom: 42px;
  }

  .cart-page-items__title {
    font-size: 1.5rem;
  }

  .cart-page-items__product {
    grid-template-columns: 1fr;
  }

  .cart-page-items__product-image {
    width: 100%;
    max-width: 180px;
    height: 180px;
  }

  .cart-page-items__product-info h2 {
    font-size: 1.05rem;
  }

  .cart-page-items__product-info p,
  .cart-page-items__price,
  .cart-page-items__subtotal {
    font-size: 0.95rem;
  }

  .cart-page-items__quantity {
    gap: 8px;
  }

  .cart-page-items__qty-btn {
    width: 30px;
    height: 30px;
  }

  .cart-page-items__continue-link {
    font-size: 1.1rem;
  }
}


.cart-page-items__quantity .quantity {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.cart-page-items__quantity .qty {
  width: 56px;
  height: 36px;
  text-align: center;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
}

.cart-page-items__product-info a {
  color: inherit;
  text-decoration: none;
}

.cart-page-items__remove {
  text-decoration: none;
}

.cart-page-items__empty {
  background: #fff;
  border: 1px solid #e5e5e5;
  padding: 32px;
  text-align: center;
  border-radius: 12px;
}

.cart-sidebar-card__coupon.is-hidden {
  display: none;
}

.cart-page-items__update-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.cart-page-items__update-btn.is-active {
  opacity: 1;
}

@media (min-width:1150px){
  .cart-page-items__actions {
    position: relative;
    left: -13px;
    top: -28px;
  }
}

/* HSB PROFESSIONAL PREINVOICE EMPTY STATE */

/*
 * Keep page heading aligned with the actual content,
 * instead of sticking to the right edge of the viewport.
 */
.cart-page-items__header {
    box-sizing: border-box;
    padding-inline: 28px;
}

.cart-page-items__header-inner {
    width: min(1180px, 100%);
    margin-inline: auto;
    box-sizing: border-box;
}


/* Empty page layout */
.hsb-preinvoice-empty {
    min-height: 620px;
}

.hsb-preinvoice-empty__body {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 44px 0 80px;
    box-sizing: border-box;
}

.hsb-preinvoice-empty__card {
    position: relative;
    overflow: hidden;

    width: min(920px, 100%);
    margin: 0 auto;
    padding: 48px 52px 38px;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 1) 0%,
            rgba(248, 248, 248, 1) 100%
        );

    border: 1px solid rgba(32, 38, 44, 0.09);
    border-radius: 22px;

    box-shadow:
        0 18px 55px rgba(24, 31, 38, 0.08);

    text-align: center;
    box-sizing: border-box;
}

.hsb-preinvoice-empty__card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;

    width: 170px;
    height: 170px;

    background:
        radial-gradient(
            circle,
            rgba(157, 126, 78, 0.13) 0%,
            rgba(157, 126, 78, 0) 70%
        );

    pointer-events: none;
}


/* Main icon */
.hsb-preinvoice-empty__icon-wrap {
    position: relative;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 82px;
    height: 82px;
    margin-bottom: 22px;

    border-radius: 24px;

    background:
        linear-gradient(
            145deg,
            #2f353b,
            #171b1f
        );

    color: #fff;
    font-size: 34px;

    box-shadow:
        0 12px 28px rgba(23, 27, 31, 0.18);
}

.hsb-preinvoice-empty__icon-dot {
    position: absolute;
    left: -7px;
    bottom: -7px;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 28px;
    height: 28px;

    border: 3px solid #fff;
    border-radius: 50%;

    background: #9d7e4e;
    color: #fff;

    font-size: 10px;
}


/* Text */
.hsb-preinvoice-empty__content {
    max-width: 640px;
    margin: 0 auto;
}

.hsb-preinvoice-empty__label {
    display: inline-flex;

    padding: 6px 12px;
    margin-bottom: 10px;

    border-radius: 999px;

    background: rgba(157, 126, 78, 0.10);
    color: #866a3f;

    font-size: 12px;
    font-weight: 700;
}

.hsb-preinvoice-empty__content h2 {
    margin: 0 0 12px;

    color: #20262c;

    font-size: clamp(23px, 2.1vw, 31px);
    font-weight: 800;
    line-height: 1.5;
}

.hsb-preinvoice-empty__content p {
    margin: 0;

    color: #687078;

    font-size: 14px;
    line-height: 2;
}


/* Three-step flow */
.hsb-preinvoice-empty__steps {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        28px
        minmax(0, 1fr)
        28px
        minmax(0, 1fr);

    align-items: center;
    gap: 10px;

    margin-top: 34px;
    padding: 20px;

    border: 1px solid rgba(32, 38, 44, 0.07);
    border-radius: 17px;

    background: rgba(246, 247, 248, 0.78);
}

.hsb-preinvoice-empty__step {
    display: flex;
    align-items: center;
    gap: 11px;

    min-width: 0;

    text-align: right;
}

.hsb-preinvoice-empty__step > span {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 34px;
    height: 34px;

    border-radius: 50%;

    background: #fff;
    border: 1px solid rgba(157, 126, 78, 0.28);

    color: #8b6e43;

    font-size: 13px;
    font-weight: 800;
}

.hsb-preinvoice-empty__step div {
    min-width: 0;
}

.hsb-preinvoice-empty__step strong {
    display: block;

    margin-bottom: 3px;

    color: #2a3035;

    font-size: 13px;
    font-weight: 800;
}

.hsb-preinvoice-empty__step small {
    display: block;

    color: #80868c;

    font-size: 11px;
    line-height: 1.7;
}

.hsb-preinvoice-empty__step-arrow {
    color: #b9bdc1;
    font-size: 11px;
}


/* CTA */
.hsb-preinvoice-empty__actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;

    margin-top: 30px;
}

.hsb-preinvoice-empty__primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 48px;
    padding: 0 24px;

    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            #8f7042,
            #71552f
        );

    color: #fff !important;

    font-size: 14px;
    font-weight: 800;

    text-decoration: none !important;

    box-shadow:
        0 10px 24px rgba(113, 85, 47, 0.20);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.hsb-preinvoice-empty__primary:hover {
    transform: translateY(-2px);

    box-shadow:
        0 14px 28px rgba(113, 85, 47, 0.25);
}

.hsb-preinvoice-empty__hint {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    color: #858b90;

    font-size: 11px;
    line-height: 1.8;
}

.hsb-preinvoice-empty__hint i {
    color: #9d7e4e;
}


/* Responsive */
@media (max-width: 767px) {

    .cart-page-items__header {
        padding-inline: 18px;
    }

    .hsb-preinvoice-empty__body {
        width: calc(100% - 28px);
        padding-top: 26px;
        padding-bottom: 52px;
    }

    .hsb-preinvoice-empty__card {
        padding: 36px 20px 28px;
        border-radius: 17px;
    }

    .hsb-preinvoice-empty__steps {
        grid-template-columns: 1fr;
        gap: 14px;

        padding: 17px;
    }

    .hsb-preinvoice-empty__step-arrow {
        display: none;
    }

    .hsb-preinvoice-empty__step {
        padding-bottom: 13px;
        border-bottom: 1px solid rgba(32, 38, 44, 0.07);
    }

    .hsb-preinvoice-empty__step:last-of-type {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .hsb-preinvoice-empty__primary {
        width: 100%;
    }
}


/* HSB COMPACT PREINVOICE QUANTITY CONTROL */

/*
 * ظاهر کنترل کوچک است، ولی خود دکمه 34×34 باقی می‌ماند
 * تا کل فضای اطراف + و − قابل کلیک باشد.
 */
.preinvoice-page .cart-page-items__quantity .quantity {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;

    padding: 2px 4px;

    border-radius: 10px;
    background: #f7f8f8;
}


/* Large hit-area, tiny visual symbol */
.preinvoice-page .cart-page-items__qty-btn {
    position: relative;

    width: 34px;
    height: 34px;
    min-width: 34px;

    padding: 0;

    border: 0 !important;
    outline: 0;

    background: transparent !important;
    color: #31363b;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 8px;

    font-size: 15px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        color 0.15s ease,
        transform 0.1s ease;
}


/*
 * فقط هنگام hover یک نشانه خیلی ملایم می‌دهیم؛
 * در حالت عادی هیچ کادر رنگی دیده نمی‌شود.
 */
.preinvoice-page .cart-page-items__qty-btn:hover {
    background: rgba(32, 38, 44, 0.07) !important;
    color: #795a2d;
}

.preinvoice-page .cart-page-items__qty-btn:active {
    transform: scale(0.92);
}


/* Number field */
.preinvoice-page .cart-page-items__quantity .qty {
    width: 42px;
    height: 30px;

    padding: 0 3px;

    border: 0;
    border-radius: 7px;

    background: #fff;

    color: #20252a;

    text-align: center;

    font-size: 14px;
    font-weight: 700;

    box-shadow:
        inset 0 0 0 1px rgba(32, 38, 44, 0.10);

    appearance: textfield;
    -moz-appearance: textfield;
}


/* Chrome / Edge / Safari native number arrows */
.preinvoice-page .cart-page-items__quantity .qty::-webkit-inner-spin-button,
.preinvoice-page .cart-page-items__quantity .qty::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}


/* Keyboard accessibility */
.preinvoice-page .cart-page-items__qty-btn:focus-visible {
    outline: 2px solid rgba(157, 126, 78, 0.42);
    outline-offset: -3px;
}


/* Mobile: still easy to tap */
@media (max-width: 575.98px) {

    .preinvoice-page .cart-page-items__qty-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;

        font-size: 14px;
    }

    .preinvoice-page .cart-page-items__quantity .qty {
        width: 40px;
        height: 30px;
    }
}


/* HSB PREINVOICE INDUSTRIAL PRODUCT CARDS */

/* Give the product list more useful desktop space */
.preinvoice-page > .container {
    width: min(1480px, calc(100% - 44px));
    max-width: none;
}

.preinvoice-page .cart-page-items__layout {
    grid-template-columns: 310px minmax(0, 1fr);
    gap: 30px;
}


/* Section heading */
.preinvoice-products-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 16px;
    padding: 0 2px 14px;

    border-bottom: 1px solid rgba(157, 126, 78, 0.30);
}

.preinvoice-products-head__eyebrow {
    display: block;

    margin-bottom: 3px;

    color: #9d7e4e;

    font-size: 12px;
    font-weight: 800;
}

.preinvoice-products-head h2 {
    margin: 0;

    color: #22282d;

    font-size: 20px;
    font-weight: 800;
}

.preinvoice-products-head__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 58px;
    min-height: 31px;

    padding: 4px 11px;

    border-radius: 999px;

    background: rgba(157, 126, 78, 0.10);
    color: #7c6037;

    font-size: 12px;
    font-weight: 800;
}


/* Product card */
.preinvoice-product-card {
    position: relative;

    margin-bottom: 16px;
    padding: 20px 22px 17px;

    border: 1px solid rgba(34, 40, 45, 0.10);
    border-radius: 17px;

    background: #fff;

    box-shadow:
        0 7px 26px rgba(29, 34, 39, 0.055);

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.preinvoice-product-card:hover {
    border-color: rgba(157, 126, 78, 0.28);

    box-shadow:
        0 10px 32px rgba(29, 34, 39, 0.075);
}

.preinvoice-product-card.is-required-product {
    border-inline-start:
        3px solid rgba(157, 126, 78, 0.72);
}


/* Small remove button */
.preinvoice-product-card__remove {
    position: absolute;
    z-index: 4;

    top: 14px;
    left: 14px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 31px;
    height: 31px;

    border-radius: 9px;

    background: transparent;

    color: #a0a5a9;

    font-size: 13px;

    text-decoration: none !important;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.preinvoice-product-card__remove:hover {
    background: rgba(201, 55, 55, 0.08);
    color: #c93737;
}


/* Top section */
.preinvoice-product-card__top {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);

    gap: 20px;
    align-items: center;

    padding-left: 42px;
}

.preinvoice-product-card__image {
    width: 118px;
    height: 118px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border: 1px solid rgba(34, 40, 45, 0.10);
    border-radius: 13px;

    background: #f8f9f9;
}

.preinvoice-product-card__image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    mix-blend-mode: multiply;
}

.preinvoice-product-card__main {
    min-width: 0;
}

.preinvoice-product-card__labels {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    margin-bottom: 8px;
}

.preinvoice-primary-badge,
.preinvoice-required-badge {
    display: inline-flex;
    align-items: center;

    min-height: 25px;
    padding: 3px 9px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;
}

.preinvoice-primary-badge {
    background: rgba(34, 40, 45, 0.06);
    color: #555d64;
}

.preinvoice-required-badge {
    background: rgba(157, 126, 78, 0.12);
    color: #806138;
}

.preinvoice-product-card__title {
    margin: 0 0 11px;

    font-size: clamp(17px, 1.45vw, 21px);
    font-weight: 800;
    line-height: 1.8;

    color: #22282d;
}

.preinvoice-product-card__title a {
    color: inherit;
    text-decoration: none;
}

.preinvoice-product-card__title a:hover {
    color: #7f6239;
}


/* SKU / Part Number */
.preinvoice-product-card__codes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.preinvoice-product-code {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    min-height: 30px;
    padding: 4px 9px;

    border-radius: 8px;

    background: #f5f6f7;

    font-size: 11px;
}

.preinvoice-product-code span {
    color: #8a9095;
}

.preinvoice-product-code strong {
    color: #343a40;

    font-size: 12px;
    font-weight: 800;

    letter-spacing: 0.15px;
}


/* Technical specs */
.preinvoice-product-specs {
    display: grid;
    grid-template-columns:
        repeat(5, minmax(120px, 1fr));

    gap: 8px;

    margin-top: 18px;
    padding-top: 15px;

    border-top: 1px solid rgba(34, 40, 45, 0.07);
}

.preinvoice-product-spec {
    display: flex;
    align-items: center;

    min-width: 0;
    gap: 8px;

    padding: 9px 10px;

    border-radius: 10px;

    background: #f8f9f9;
}

.preinvoice-product-spec__icon {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 27px;
    height: 27px;

    border-radius: 8px;

    background: #fff;
    color: #967747;

    font-size: 10px;

    box-shadow:
        inset 0 0 0 1px rgba(157, 126, 78, 0.13);
}

.preinvoice-product-spec div {
    min-width: 0;
}

.preinvoice-product-spec small {
    display: block;

    margin-bottom: 2px;

    color: #92979c;

    font-size: 9px;
    line-height: 1.5;
}

.preinvoice-product-spec strong {
    display: block;

    overflow: hidden;

    color: #30363b;

    font-size: 11px;
    font-weight: 800;

    line-height: 1.6;

    text-overflow: ellipsis;
    white-space: nowrap;
}


/* Bottom area */
.preinvoice-product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    margin-top: 14px;
    padding-top: 13px;

    border-top: 1px solid rgba(34, 40, 45, 0.07);
}

.preinvoice-product-card__qty-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.preinvoice-product-card__qty-label {
    color: #6d747a;

    font-size: 11px;
    font-weight: 700;
}

.preinvoice-product-card__details-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;

    color: #87683b;

    font-size: 11px;
    font-weight: 800;

    text-decoration: none !important;
}

.preinvoice-product-card__details-link i {
    font-size: 9px;

    transition: transform 0.15s ease;
}

.preinvoice-product-card__details-link:hover i {
    transform: translateX(-3px);
}


/*
 * The old cart row/action positioning must not affect
 * the new preinvoice cards.
 */
.preinvoice-page .cart-page-items__table {
    width: 100%;
}

.preinvoice-page .cart-page-items__row {
    display: none;
}

.preinvoice-page .cart-page-items__actions {
    position: static;
}


/* Laptop */
@media (max-width: 1250px) {

    .preinvoice-page > .container {
        width: min(100% - 28px, 1380px);
    }

    .preinvoice-page .cart-page-items__layout {
        grid-template-columns: 270px minmax(0, 1fr);
        gap: 22px;
    }

    .preinvoice-product-specs {
        grid-template-columns:
            repeat(3, minmax(120px, 1fr));
    }
}


/* Tablet */
@media (max-width: 991.98px) {

    .preinvoice-page .cart-page-items__layout {
        grid-template-columns: 1fr;
    }

    .preinvoice-product-specs {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }
}


/* Mobile */
@media (max-width: 650px) {

    .preinvoice-page > .container {
        width: calc(100% - 20px);
    }

    .preinvoice-product-card {
        padding: 17px 14px 15px;
        border-radius: 14px;
    }

    .preinvoice-product-card__remove {
        top: 10px;
        left: 10px;
    }

    .preinvoice-product-card__top {
        grid-template-columns: 88px minmax(0, 1fr);

        gap: 12px;

        padding-left: 28px;
    }

    .preinvoice-product-card__image {
        width: 88px;
        height: 88px;
    }

    .preinvoice-product-card__title {
        font-size: 14px;
    }

    .preinvoice-product-card__codes {
        gap: 5px;
    }

    .preinvoice-product-code {
        padding: 3px 7px;
    }

    .preinvoice-product-specs {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .preinvoice-product-card__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .preinvoice-product-card__qty-group {
        justify-content: space-between;
    }

    .preinvoice-product-card__details-link {
        justify-content: center;

        min-height: 38px;

        border-radius: 9px;

        background: rgba(157, 126, 78, 0.08);
    }
}
