.vb-cart-page {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.vb-cart-page__panel {
  background: transparent;
  padding: 20px 0 70px;
  border-radius: 22px;
  overflow: visible;
  box-sizing: border-box;
}

.vb-cart-page__heading {
  margin-bottom: 16px;
}

.vb-cart-page .wc-block-components-title,
.vb-cart-page .wc-block-components-checkout-step__title {
  color: var(--vb-text);
  font-family: "Baloo 2", "Poppins", system-ui, sans-serif !important;
}

.vb-cart-page .wc-block-components-checkout-step__heading {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-width: 0;
}

.vb-cart-page .wc-block-components-checkout-step__title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #4b3f3b !important;
  font-family: "Baloo 2", sans-serif !important;
  font-size: clamp(28px, 3.125vw, 40px);
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  padding-top: 28px;
  padding-bottom: 28px;
}

.vb-cart-page__title-count {
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.85;
}

.vb-cart-page .vb-cart-panel__content {
  overflow: visible;
  padding: 24px 0 20px;
  margin: 0;
  min-height: 0;
}

.vb-cart-page__empty-cta {
  display: flex;
  justify-content: center;
  padding: 16px 0 0;
}

.vb-cart-page__empty-cta[hidden] {
  display: none !important;
}

.vb-cart-page__empty-cta .vb-cart-panel__checkout {
  width: auto;
}

.vb-cart-page__footer-stack {
  width: min(360px, 100%);
  margin-left: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.vb-cart-page__footer-stack[hidden] {
  display: none !important;
}

.vb-cart-page .vb-cart-page__footer-stack .vb-cart-panel__footer {
  width: 100%;
  margin: 0;
}

.vb-cart-page__filled-cta {
  display: flex;
  justify-content: center;
  padding: 0;
}

.vb-cart-page__filled-cta[hidden] {
  display: none !important;
}

.vb-cart-page__filled-cta .vb-popular-products__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 0;
  color: #4b3f3b;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
  margin-top: 20px;
}

.vb-cart-page__filled-cta .vb-popular-products__link:hover,
.vb-cart-page__filled-cta .vb-popular-products__link:focus-visible {
  opacity: 0.72;
  outline: none;
}

.vb-cart-page__filled-cta .vb-popular-products__link svg {
  width: 27px;
  height: 27px;
  fill: currentColor;
}

.vb-cart-page .vb-cart-panel__items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.vb-cart-page .vb-cart-panel__item {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
  padding: 0 0 16px;
  border-bottom: 1px solid rgba(75, 63, 59, 0.12);
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.vb-cart-page .vb-cart-panel__item:last-child:not(:only-child) {
  border-bottom: none;
}

.vb-cart-page .vb-cart-panel__thumb {
  width: 62px;
  height: 62px;
  background: rgba(255, 255, 255, 0.42);
  overflow: hidden;
  border-radius: 10px;
}

.vb-cart-page .vb-cart-panel__thumb a,
.vb-cart-page .vb-cart-panel__thumb img {
  display: block;
  width: 100%;
  height: 100%;
}

.vb-cart-page .vb-cart-panel__thumb img {
  object-fit: cover;
}

.vb-cart-page .vb-cart-panel__details {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.vb-cart-page .vb-cart-panel__topline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.vb-cart-page .vb-cart-panel__name-wrap {
  min-width: 0;
}

.vb-cart-page .vb-cart-panel__name {
  color: var(--vb-text);
  text-decoration: none;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  display: block;
  overflow-wrap: anywhere;
}

.vb-cart-page .vb-cart-panel__checkout {
  text-decoration: none !important;
}

.vb-cart-page .vb-cart-panel__stock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  margin-top: 4px;
  color: rgba(75, 63, 59, 0.72);
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  line-height: 1.2;
  text-align: left;
}

.vb-cart-page .vb-cart-panel__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.vb-cart-page .vb-cart-panel__qty-row,
.vb-cart-page .vb-cart-panel__remove,
.vb-cart-page .vb-cart-panel__content .woocommerce-mini-cart__empty-message {
  color: var(--vb-text);
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  line-height: 1.5;
}

.vb-cart-page .vb-cart-panel__price {
  display: inline-flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
  line-height: 1.5;
}

.vb-cart-page .vb-cart-panel__price-old {
  font-size: 12px;
  text-decoration: line-through;
  opacity: 0.7;
}

.vb-cart-page .vb-cart-panel__price-current {
  font-size: 14px;
  color: var(--vb-text);
}

.vb-cart-page .vb-cart-panel__qty-row {
  display: inline-grid;
  grid-template-columns: 30px 39px 30px;
  align-items: stretch;
  height: 28px;
  width: 99px;
  min-width: 99px;
  max-width: 99px;
  flex: 0 0 99px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.65);
  user-select: none;
  -webkit-user-select: none;
}

.vb-cart-page .vb-cart-panel__qty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-width: 0;
  color: #1a1c1899;
  font-size: 21px;
  line-height: 1;
  border: none;
  padding: 0;
  background: #f9f5f3;
  cursor: pointer;
}

.vb-cart-page .vb-cart-panel__qty-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.vb-cart-page .vb-cart-panel__qty-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  font-weight: 500;
  min-width: 0;
  text-align: center;
  font-size: 12px;
  line-height: 1;
  color: #8b6749;
  background: #ffffff;
  border: 1px solid #f9f5f3;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
}

.vb-cart-page .vb-cart-panel__qty-input {
  appearance: textfield;
  -moz-appearance: textfield;
  border-radius: 0;
  padding: 0 2px;
  font-family: "Poppins", sans-serif;
  font-variant-numeric: tabular-nums;
}

.vb-cart-page .vb-cart-panel__qty-input::-webkit-outer-spin-button,
.vb-cart-page .vb-cart-panel__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.vb-cart-page .vb-cart-panel__qty-row:hover,
.vb-cart-page .vb-cart-panel__qty-row:focus-within {
  box-shadow: 4px 4px 15px 0px #0000001a;
}

.vb-cart-page .vb-cart-panel__qty-button:focus-visible {
  outline: none;
}

.vb-cart-page--loading .vb-cart-panel__qty-button,
.vb-cart-page--loading .vb-cart-panel__remove {
  pointer-events: none;
}

.vb-cart-page a.remove.vb-cart-panel__remove,
.vb-cart-page a.vb-cart-panel__remove.remove,
.vb-cart-page .vb-cart-panel__remove {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 20px !important;
  height: 20px !important;
  color: rgba(75, 63, 59, 0.8) !important;
  text-decoration: none !important;
  flex: 0 0 20px;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  float: none !important;
  position: relative !important;
  inset: auto !important;
}

.vb-cart-page .vb-cart-panel__remove img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--vb-text-filter);
}

.vb-cart-page .vb-cart-panel__remove:hover,
.vb-cart-page .vb-cart-panel__remove:focus,
.vb-cart-page .vb-cart-panel__remove:focus-visible,
.vb-cart-page .vb-cart-panel__remove.remove:hover,
.vb-cart-page .vb-cart-panel__remove.remove:focus,
.vb-cart-page .vb-cart-panel__remove.remove:focus-visible {
  color: rgba(75, 63, 59, 0.8) !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none;
}

.vb-cart-page .vb-cart-panel__footer {
  width: 100%;
  padding-top: 18px;
  background: transparent;
  border-top: 1px solid rgba(75, 63, 59, 0.12);
}

.vb-cart-page .vb-cart-panel__summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 22px;
}

.vb-cart-page .vb-cart-panel__summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--vb-text);
  font-family: "Poppins", sans-serif;
  font-size: 16px;
  line-height: 1.4;
}

.vb-cart-page .vb-cart-panel__summary-row--total {
  font-weight: 500;
}

.vb-cart-page--hydrating .vb-cart-panel__summary-row--total > span:last-child {
  position: relative;
  min-width: 96px;
}

.vb-cart-page--hydrating .vb-cart-panel__summary-row--total > span:last-child * {
  opacity: 0 !important;
}

.vb-cart-page--hydrating .vb-cart-panel__summary-row--total > span:last-child::after {
  content: "";
  position: absolute;
  inset: 2px 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(75, 63, 59, 0.08) 0%,
    rgba(75, 63, 59, 0.14) 50%,
    rgba(75, 63, 59, 0.08) 100%
  );
}

.vb-cart-page .vb-cart-panel__content .woocommerce-mini-cart__empty-message {
  margin: 0;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 16px;
}

.vb-cart-page .vb-cart-panel__content .woocommerce-mini-cart__buttons,
.vb-cart-page .vb-cart-panel__content .woocommerce-mini-cart__buttons.buttons,
.vb-cart-page .vb-cart-panel__content .woocommerce-mini-cart__total {
  display: none !important;
}

@media (max-width: 1024px) {
  .vb-cart-page__panel {
    padding: 20px 0 40px;
  }
}

@media (max-width: 1023px) {
  .vb-cart-page .vb-cart-panel__items > .vb-cart-panel__item:only-child {
    border-bottom: none;
  }
}

@media (min-width: 1025px) {
  .vb-cart-page .vb-cart-panel__footer {
    width: min(360px, 25%);
    margin: auto;
    margin-top: 50px;
  }
}

/* Override Hello Elementor default responsive container widths only on Cart page. */
body.woocommerce-cart:not([class*="elementor-page-"]) .site-main {
  width: calc(100% - 40px) !important;
  max-width: 1280px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box;
}

@media (max-width: 1024px) {
  body.woocommerce-cart:not([class*="elementor-page-"]) .site-main {
    width: calc(100% - 28px) !important;
  }
}

@media (max-width: 767px) {
  .vb-cart-page__footer-stack {
    width: 100%;
  }
}
