.vb-cart-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  z-index: 1200;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 0.25s ease;
}

.vb-cart-panel__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  border: none;
  padding: 0;
  transition: background-color 0.25s ease;
}

.vb-cart-panel__panel {
  position: relative;
  width: min(100%, 410px);
  margin-left: auto;
  height: 100%;
  background: var(--vb-header-bg);
  padding: 20px 24px calc(20px + env(safe-area-inset-bottom, 0px));
  box-sizing: border-box;
  overflow: hidden;
  overflow-x: hidden;
  overscroll-behavior: contain;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.vb-cart-panel--open,
.vb-cart-panel--closing {
  opacity: 1;
  pointer-events: auto;
}

.vb-cart-panel--open .vb-cart-panel__overlay {
  background: rgba(0, 0, 0, 0.35);
}

.vb-cart-panel--open .vb-cart-panel__panel {
  transform: translateX(0);
}

.vb-cart-panel--closing .vb-cart-panel__panel {
  transform: translateX(100%);
}

.vb-cart-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px 18px;
  margin: -20px -24px 0;
  background-image:
    linear-gradient(
      202deg,
      rgba(244, 227, 219, 0.82) 0%,
      rgba(205, 174, 162, 0.86) 0%,
      rgba(143, 114, 105, 0.82) 100%
    ),
    linear-gradient(100.39deg, rgba(127, 98, 82, 0.9) 60%, rgba(220, 194, 183, 1) 100%),
    url("../imgs/teddy_bear.png?v=2");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  background-blend-mode: normal, multiply, normal;
}

.vb-cart-panel__title {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  text-shadow: 0 2px 8px rgba(75, 63, 59, 0.28);
}

.vb-cart-panel__title-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  background: currentColor;
  -webkit-mask: url("../icons/header/Cart.svg") center / contain no-repeat;
  mask: url("../icons/header/Cart.svg") center / contain no-repeat;
}

.vb-cart-panel__title-count {
  font-size: 18px;
  font-weight: 500;
}

.vb-cart-panel__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  padding: 0;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
  font-size: 34px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(75, 63, 59, 0.28);
}

#vb-cart-panel .vb-cart-panel__content {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 14px 20px 0;
  margin-right: -14px;
  overscroll-behavior: contain;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

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

#vb-cart-panel .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-panel .vb-cart-panel__item:last-child:not(:only-child) {
  border-bottom: none;
}

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

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

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

#vb-cart-panel .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-panel .vb-cart-panel__stock-label,
#vb-cart-panel .vb-cart-panel__stock-value {
  display: inline;
}

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

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

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

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

#vb-cart-panel .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-panel .vb-cart-panel__meta {
  margin-top: 6px;
  color: rgba(75, 63, 59, 0.65);
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  line-height: 1.4;
}

#vb-cart-panel .vb-cart-panel__meta p,
#vb-cart-panel .vb-cart-panel__meta dl,
#vb-cart-panel .vb-cart-panel__meta dd {
  margin: 0;
}

#vb-cart-panel .vb-cart-panel__qty-row,
#vb-cart-panel .vb-cart-panel__remove,
#vb-cart-panel .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-panel .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-panel .vb-cart-panel__price-old {
  font-size: 12px;
  text-decoration: line-through;
  opacity: 0.7;
}

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

#vb-cart-panel .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-panel .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-panel .vb-cart-panel__qty-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

#vb-cart-panel .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-panel .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-panel .vb-cart-panel__qty-input::-webkit-outer-spin-button,
#vb-cart-panel .vb-cart-panel__qty-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#vb-cart-panel .vb-cart-panel__qty-button[data-direction="decrease"] {
  border-radius: 4px 0 0 4px;
}

#vb-cart-panel .vb-cart-panel__qty-button[data-direction="increase"] {
  border-radius: 0 4px 4px 0;
}

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

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

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

#vb-cart-panel a.remove.vb-cart-panel__remove,
#vb-cart-panel a.vb-cart-panel__remove.remove,
#vb-cart-panel .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-panel .vb-cart-panel__remove img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: var(--vb-text-filter);
}

#vb-cart-panel .vb-cart-panel__remove:hover,
#vb-cart-panel .vb-cart-panel__remove:focus,
#vb-cart-panel .vb-cart-panel__remove:focus-visible,
#vb-cart-panel .vb-cart-panel__remove.remove:hover,
#vb-cart-panel .vb-cart-panel__remove.remove:focus,
#vb-cart-panel .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-panel .vb-cart-panel__remove:hover img,
#vb-cart-panel .vb-cart-panel__remove:focus img,
#vb-cart-panel .vb-cart-panel__remove:focus-visible img,
#vb-cart-panel .vb-cart-panel__remove.remove:hover img,
#vb-cart-panel .vb-cart-panel__remove.remove:focus img,
#vb-cart-panel .vb-cart-panel__remove.remove:focus-visible img {
  filter: var(--vb-text-filter);
  opacity: 1;
  transform: none;
}

#vb-cart-panel .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-panel__empty-icon {
  display: block;
  width: 160px;
  opacity: 0.3;
}

.vb-cart-panel__empty-text {
  display: block;
  text-align: center;
}

.vb-cart-panel__footer {
  padding-top: 18px;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--vb-header-bg);
  border-top: 1px solid rgba(75, 63, 59, 0.16);
}

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

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

.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-panel__summary-row--total {
  font-weight: 500;
}

.vb-cart-panel__checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  padding: 16px 24px;
  border-radius: 16px;
  background: var(--vb-text);
  color: var(--vb-white);
  text-decoration: none;
  font-family: "Baloo 2", "Trebuchet MS", sans-serif;
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
  transition: background-color 0.2s ease;
}

.vb-cart-panel__checkout:hover,
.vb-cart-panel__checkout:focus-visible {
  background: var(--vb-topbar-bg);
  color: var(--vb-white);
  outline: none;
}

.vb-cart-panel__checkout--disabled,
.vb-cart-panel__checkout--disabled:hover,
.vb-cart-panel__checkout--disabled:focus-visible {
  background: rgba(75, 63, 59, 0.35);
  color: rgba(255, 255, 255, 0.75);
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .vb-cart-panel__panel {
    width: min(100%, 340px);
    padding: 20px 24px calc(20px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 767px) {
  .vb-cart-panel__panel {
    width: min(100%, 320px);
    padding: 20px 18px calc(18px + env(safe-area-inset-bottom, 0px));
  }

  .vb-cart-panel__header {
    padding: 20px 18px 18px;
    margin: -20px -18px 0;
  }
}

body.vb-cart-open {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow-y: scroll;
}

#vb-cart-panel .vb-cart-panel__content::-webkit-scrollbar {
  width: 5px;
}

#vb-cart-panel .vb-cart-panel__content::-webkit-scrollbar-track {
  background: transparent;
}

#vb-cart-panel .vb-cart-panel__content::-webkit-scrollbar-thumb {
  background: rgba(75, 63, 59, 0.45);
  border-radius: 999px;
}

