.quote-cart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}
.quote-cart-main {
  min-width: 0;
}
.cart-items-heading,
.cart-item-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.cart-items-heading h2,
.cart-summary h2,
.cart-contact h2 {
  font-size: 22px;
  line-height: 1.3;
}
.cart-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  width: 42px;
  min-height: 44px;
  padding: 10px;
  border: 1px solid #d6dfe9;
  border-radius: 4px;
  background: #fff;
  color: #111;
}
.cart-icon:hover {
  background: #eef3fa;
  border-color: #1649de;
}
.cart-status {
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
  overflow-wrap: anywhere;
}
.cart-status[data-state="error"] {
  color: #a31919;
}
.cart-status[data-state="success"] {
  color: #075d58;
  font-weight: 600;
}
.cart-item {
  padding: 24px 0;
  border-top: 1px solid #dce1e8;
}
.cart-item-heading {
  align-items: flex-start;
}
.cart-item-photo {
  width: 90px;
  height: 112px;
  object-fit: contain;
  background: #eef2f7;
  flex: 0 0 90px;
}
.cart-item-title {
  flex: 1;
  min-width: 0;
}
.cart-item h3 {
  font-size: 17px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.cart-item-code,
.cart-item-mode {
  margin-top: 5px;
  font-size: 11px;
  line-height: 1.6;
  color: #222;
}
.cart-item-edit {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-size: 12px;
  font-weight: 650;
  text-decoration: underline;
}
.cart-variants {
  width: 100%;
  border-collapse: collapse;
  margin-top: 18px;
  table-layout: fixed;
}
.cart-variants th {
  font-size: 10px;
  text-transform: uppercase;
  text-align: left;
  color: #333;
  padding: 8px 5px;
  border-bottom: 1px solid #ccd5df;
}
.cart-variants th:nth-child(2) {
  width: 85px;
}
.cart-variants th:last-child {
  width: 44px;
}
.cart-variants td {
  padding: 10px 5px;
  border-bottom: 1px solid #e4e9ef;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.cart-variants small {
  display: block;
  font-size: 10px;
  line-height: 1.5;
  margin-top: 3px;
}
.cart-variants input {
  width: 75px;
  max-width: 100%;
  padding: 8px;
  min-height: 42px;
  border: 1px solid #a9b3c0;
  border-radius: 4px;
  font-size: 14px;
}
.cart-stock-warning {
  color: #8b2b00;
  font-weight: 600;
}
.cart-item-subtotal {
  font-size: 16px;
  font-weight: 700;
  margin-top: 16px;
}
.cart-item-charges {
  font-size: 12px;
  line-height: 1.8;
  margin-top: 6px;
}
.cart-item-previews {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.cart-item-previews button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 11px;
  text-align: left;
  color: #111;
  min-height: 64px;
}
.cart-item-previews img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border: 1px solid #dce1e8;
}
.cart-summary {
  position: sticky;
  top: 20px;
  border-top: 3px solid #1649de;
  padding-top: 20px;
}
.cart-price-lines {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 13px;
  margin-top: 20px;
  font-size: 14px;
}
.cart-price-lines dd {
  margin: 0;
  text-align: right;
  font-weight: 600;
}
.cart-total {
  display: block;
  border-top: 1px solid #dce1e8;
  padding-top: 16px;
  margin-top: 18px;
  font-size: 24px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.cart-notes {
  padding-left: 16px;
  font-size: 12px;
  line-height: 1.7;
  margin-top: 16px;
}
.cart-notes li + li {
  margin-top: 9px;
}
.cart-preparation {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 20px;
  font-size: 13px;
}
.cart-preparation input {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  accent-color: #1649de;
}
.cart-preparation strong {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}
.cart-contact {
  border-top: 1px solid #dce1e8;
  padding-top: 30px;
  margin-top: 10px;
}
.cart-contact h2 {
  margin-bottom: 24px;
}
.cart-contact .button {
  width: 100%;
}
.cart-contact .button img {
  filter: brightness(0) invert(1);
}
.cart-preview-dialog {
  border: 0;
  border-radius: 6px;
  padding: 16px;
  width: min(900px, calc(100% - 24px));
  max-height: calc(100svh - 24px);
  background: #fff;
}
.cart-preview-dialog::backdrop {
  background: #111827aa;
}
.cart-preview-dialog > img {
  width: 100%;
  height: auto;
  max-height: calc(100svh - 110px);
  object-fit: contain;
}
.cart-preview-dialog > button {
  display: flex;
  margin-left: auto;
  margin-bottom: 8px;
}
@media (max-width: 850px) {
  .quote-cart-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .cart-summary {
    position: static;
    grid-row: 1;
  }
  .cart-total {
    font-size: 22px;
  }
}
@media (max-width: 400px) {
  .cart-item-photo {
    width: 64px;
    height: 86px;
    flex-basis: 64px;
  }
  .cart-item-heading {
    gap: 10px;
  }
  .cart-item h3 {
    font-size: 15px;
  }
  .cart-icon {
    flex-basis: 38px;
    width: 38px;
  }
}
