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

/* Override Hello Elementor default responsive container widths only on Wishlist page(s). */
body.vb-has-wishlist-table: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.vb-has-wishlist-table:not([class*="elementor-page-"]) .site-main {
    width: calc(100% - 28px) !important;
  }

  .vb-wishlist-page__panel {
    padding: 20px 0 48px 0;
  }
}

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

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

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

.vb-wishlist-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-wishlist-page__title-count {
  font-size: clamp(16px, 1.3vw, 20px);
  font-weight: 500;
  line-height: 1.2;
  opacity: 0.85;
}

.vb-wishlist-page__content[hidden],
.vb-wishlist-page__empty[hidden] {
  display: none !important;
}

.vb-wishlist-page__content {
  padding-top: 24px;
}

.vb-wishlist-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  overflow: hidden;
}

/* Match checkout order-summary title header styling. */
.vb-wishlist-table thead tr {
  position: relative;
  box-shadow: var(--vb-panel-shadow);
  background-image:
    linear-gradient(
      180deg,
      rgba(244, 227, 219, 0.82) 0%,
      rgba(205, 174, 162, 0.86) 35%,
      rgba(143, 114, 105, 0.82) 100%
    ),
    linear-gradient(100.39deg, rgba(127, 98, 82, 0.9) 40%, rgba(220, 194, 183, 1) 50%),
    url("../imgs/teddy_bear.png");
  background-repeat: no-repeat, no-repeat, no-repeat;
  background-position: center, center, left 47%;
  background-size: cover, cover, cover;
  background-blend-mode: normal, multiply, normal;
}

.vb-wishlist-table thead th {
  text-align: left;
  padding: 14px 18px;
  background: transparent;
  color: #fff;
  font-family: "Baloo 2", "Poppins", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-shadow: 0 2px 8px rgba(75, 63, 59, 0.28);
  border-bottom: none;
}

.vb-wishlist-table tbody td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(75, 63, 59, 0.11);
  vertical-align: middle;
}

.vb-wishlist-table tbody tr:last-child td {
  border-bottom: none;
}

.vb-wishlist-table__thumb {
  width: 92px;
}

.vb-wishlist-table__thumb img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 14px;
  display: block;
}

.vb-wishlist-table__title-link,
.vb-wishlist-table__title-text {
  color: var(--vb-text);
  text-decoration: none !important;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
}

.vb-wishlist-table__title-link:hover,
.vb-wishlist-table__title-link:focus-visible {
  text-decoration: none !important;
}

.vb-wishlist-table__stock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 0;
  color: rgba(75, 63, 59, 0.72);
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  line-height: 1.2;
  text-align: left;
  white-space: nowrap;
}

.vb-wishlist-table__stock-label,
.vb-wishlist-table__stock-value {
  display: inline;
}

.vb-wishlist-table__stock-cell {
  width: 120px;
  vertical-align: top;
}

/* Tablet+ (>=768px): show only the number in the stock column, and match price typography. */
@media (min-width: 768px) {
  .vb-wishlist-table thead th:nth-child(3),
  .vb-wishlist-table thead th:nth-child(4),
  .vb-wishlist-table thead th:nth-child(5) {
    text-align: center;
  }

  .vb-wishlist-table__stock-label {
    display: none;
  }

  .vb-wishlist-table__stock {
    gap: 0;
    width: 100%;
    justify-content: center;
    color: #4b3f3b;
    font-family: "Poppins", system-ui, sans-serif;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.25;
  }

  .vb-wishlist-table__stock-cell {
    text-align: center;
  }

  .vb-wishlist-table__price {
    text-align: center;
  }

  .vb-wishlist-page .vb-wishlist-table__price .price {
    align-items: center;
  }
}

/* Desktop-only alignment tweaks. */
@media (min-width: 1024px) {
  /* Reserved for any future desktop-only overrides. */
}

.vb-wishlist-table__price {
  white-space: nowrap;
  color: #4b3f3b;
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
}

.vb-wishlist-page .vb-wishlist-table__price .price {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  flex-wrap: nowrap;
  line-height: 1.25;
}

.vb-wishlist-page .vb-wishlist-table__price del,
.vb-wishlist-page .vb-wishlist-table__price ins {
  display: block;
}

.vb-wishlist-page .vb-wishlist-table__price del {
  font-size: 12px;
  text-decoration: line-through;
  opacity: 0.7;
}

.vb-wishlist-page .vb-wishlist-table__price ins {
  text-decoration: none;
  background: transparent;
  font-size: 14px;
  color: var(--vb-text);
}

.vb-wishlist-page .vb-wishlist-table__price ins .woocommerce-Price-amount,
.vb-wishlist-page .vb-wishlist-table__price ins bdi {
  color: inherit;
}

.vb-wishlist-table__cta {
  width: 190px;
}

.vb-wishlist-table__cta-inner {
  display: flex;
  justify-content: center;
}

.vb-wishlist-table__cta-inner .button {
  width: 160px;
  text-align: center;
}

.vb-wishlist-page .vb-product-card__cta .added_to_cart {
  display: none !important;
}

.vb-wishlist-page .vb-product-card__cta .button,
.vb-wishlist-page .vb-product-card__cta .vb-product-card__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
  min-height: clamp(28px, 4vw, 42px);
  padding: clamp(8px, 1.4vw, 14px) 20px;
  margin: 0;
  border: none;
  border-radius: 14px;
  background: #8b6749;
  color: #fff;
  text-decoration: none;
  font-family: "Baloo 2", "Trebuchet MS", sans-serif !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  text-align: center;
  box-sizing: border-box;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  touch-action: manipulation;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    background-color 0.2s ease;
}

html:not(.vb-loop-cart-ready) .vb-wishlist-page .vb-product-card__cta .add_to_cart_button,
html:not(.vb-loop-cart-ready) .vb-wishlist-page .vb-product-card__cta .ajax_add_to_cart {
  color: transparent;
}

html:not(.vb-loop-cart-ready) .vb-wishlist-page .vb-product-card__cta .add_to_cart_button::before,
html:not(.vb-loop-cart-ready) .vb-wishlist-page .vb-product-card__cta .ajax_add_to_cart::before {
  opacity: 0;
}

.vb-wishlist-page .vb-product-card__cta .button::before,
.vb-wishlist-page .vb-product-card__cta .added_to_cart::before,
.vb-wishlist-page .vb-product-card__cta .vb-product-card__button::before {
  content: "";
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  background: currentColor;
  -webkit-mask: url("../icons/header/Cart.svg") center / contain no-repeat;
  mask: url("../icons/header/Cart.svg") center / contain no-repeat;
}

.vb-wishlist-page .vb-product-card__cta .button.added::before,
.vb-wishlist-page .vb-product-card__cta .added_to_cart.added::before,
.vb-wishlist-page .vb-product-card__cta .ajax_add_to_cart.added::before {
  -webkit-mask: url("../icons/common/submit.svg") center / contain no-repeat;
  mask: url("../icons/common/submit.svg") center / contain no-repeat;
}

.vb-wishlist-page .vb-product-card__cta .button.added,
.vb-wishlist-page .vb-product-card__cta .added_to_cart.added,
.vb-wishlist-page .vb-product-card__cta .ajax_add_to_cart.added {
  background: #27ae60;
}

.vb-wishlist-page .vb-product-card__cta .vb-product-card__button--disabled,
.vb-wishlist-page .vb-product-card__cta .vb-product-card__button--disabled:hover,
.vb-wishlist-page .vb-product-card__cta .vb-product-card__button--disabled:focus-visible {
  background: rgba(139, 103, 73, 0.55) !important;
  color: #fff;
  cursor: not-allowed;
  pointer-events: none;
}

.vb-wishlist-page .vb-product-card__cta .vb-product-card__button--disabled::before {
  content: none;
}

.vb-wishlist-page .vb-product-card__cta .button.loading {
  position: relative;
  color: transparent;
}

.vb-wishlist-page .vb-product-card__cta .button.loading::before {
  opacity: 0;
}

.vb-wishlist-page .vb-product-card__cta .button.loading::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: vb-product-card-spin 0.7s linear infinite;
}

@keyframes vb-product-card-spin {
  to {
    transform: rotate(360deg);
  }
}

.vb-wishlist-page .vb-product-card__cta .button.added.vb-remove-hover,
.vb-wishlist-page .vb-product-card__cta .button.added.vb-removing,
.vb-wishlist-page .vb-product-card__cta .added_to_cart.added.vb-remove-hover,
.vb-wishlist-page .vb-product-card__cta .added_to_cart.added.vb-removing,
.vb-wishlist-page .vb-product-card__cta .ajax_add_to_cart.added.vb-remove-hover,
.vb-wishlist-page .vb-product-card__cta .ajax_add_to_cart.added.vb-removing {
  background: #e74c3c;
}

.vb-wishlist-page .vb-product-card__cta .button.added.vb-remove-hover::before,
.vb-wishlist-page .vb-product-card__cta .button.added.vb-removing::before,
.vb-wishlist-page .vb-product-card__cta .added_to_cart.added.vb-remove-hover::before,
.vb-wishlist-page .vb-product-card__cta .added_to_cart.added.vb-removing::before,
.vb-wishlist-page .vb-product-card__cta .ajax_add_to_cart.added.vb-remove-hover::before,
.vb-wishlist-page .vb-product-card__cta .ajax_add_to_cart.added.vb-removing::before {
  content: "\00d7";
  width: 14px;
  height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  -webkit-mask: none;
  mask: none;
  font-size: 14px;
  font-weight: 700;
  line-height: 14px;
}

@media (hover: hover) {
  .vb-wishlist-page .vb-product-card__cta .button:hover,
  .vb-wishlist-page .vb-product-card__cta .button:focus-visible,
  .vb-wishlist-page .vb-product-card__cta .added_to_cart:hover,
  .vb-wishlist-page .vb-product-card__cta .added_to_cart:focus-visible,
  .vb-wishlist-page .vb-product-card__cta .vb-product-card__button:hover,
  .vb-wishlist-page .vb-product-card__cta .vb-product-card__button:focus-visible {
    background: #7f6252;
  }

  .vb-wishlist-page .vb-product-card__cta .button.added:not(.vb-remove-hover):not(.vb-removing):hover,
  .vb-wishlist-page .vb-product-card__cta .button.added:not(.vb-remove-hover):not(.vb-removing):focus-visible,
  .vb-wishlist-page .vb-product-card__cta .ajax_add_to_cart.added:not(.vb-remove-hover):not(.vb-removing):hover,
  .vb-wishlist-page .vb-product-card__cta .ajax_add_to_cart.added:not(.vb-remove-hover):not(.vb-removing):focus-visible {
    background: #27ae60;
  }
}

.vb-wishlist-table__remove {
  width: 72px;
  text-align: center;
}

.vb-wishlist-table__remove-btn {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 8px;
  border-radius: 12px;
  cursor: pointer;
  line-height: 0;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.vb-wishlist-table__remove-btn:hover,
.vb-wishlist-table__remove-btn:focus-visible {
  background: rgba(75, 63, 59, 0.06);
}

.vb-wishlist-table__remove-btn[aria-disabled="true"],
.vb-wishlist-table__remove-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.vb-wishlist-page__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px 0 0;
}

.vb-wishlist-page__empty .woocommerce-mini-cart__empty-message,
.vb-wishlist-page__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;
  gap: 30px;
}

.vb-wishlist-page__empty .vb-cart-panel__empty-icon,
.vb-wishlist-page__empty-icon {
  display: block;
  width: 160px;
  opacity: 0.3;
}

.vb-wishlist-page__empty .vb-cart-panel__empty-text,
.vb-wishlist-page__empty-text {
  margin: 0;
  color: rgba(75, 63, 59, 0.8);
  font-family: "Poppins", system-ui, sans-serif;
  font-size: 15px;
}

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

.vb-wishlist-page__empty-cta {
  width: auto;
  text-decoration: none !important;
}

.vb-wishlist-page__empty-cta:hover,
.vb-wishlist-page__empty-cta:focus,
.vb-wishlist-page__empty-cta:focus-visible {
  text-decoration: none !important;
}

@media (max-width: 1023px) {
  .vb-wishlist-table__thumb {
    width: 78px;
  }

  .vb-wishlist-table__cta {
    width: 160px;
  }

  .vb-wishlist-table__cta-inner .button {
    width: 140px;
  }
}

/* Mobile: make the table fit without horizontal scrolling. */
@media (max-width: 767px) {
  .vb-wishlist-page__panel {
    padding: 16px 0 36px 0;
  }

  .vb-wishlist-table {
    background: transparent;
    border-radius: 0;
    overflow: visible;
  }

  .vb-wishlist-table thead {
    display: none;
  }

  .vb-wishlist-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .vb-wishlist-table tbody td {
    padding: 0;
    border: none;
  }

  .vb-wishlist-table__row {
    display: grid;
    grid-template-columns: 64px 1fr 44px;
    grid-template-areas:
      "thumb title remove"
      "thumb stock remove"
      "thumb price price"
      "thumb cta cta";
    gap: 4px 12px;
    padding: 14px;
    border: 1px solid rgba(75, 63, 59, 0.11);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
  }

  .vb-wishlist-table__thumb {
    grid-area: thumb;
    width: auto;
  }

  .vb-wishlist-table__thumb img {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }

  .vb-wishlist-table__title {
    grid-area: title;
    min-width: 0;
  }

  .vb-wishlist-table__stock-cell {
    grid-area: stock;
    width: auto;
  }

  .vb-wishlist-table__stock {
    margin-top: 4px;
    white-space: normal;
  }

  .vb-wishlist-table__price {
    grid-area: price;
    justify-self: start;
    text-align: left;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: nowrap;
  }

  /* Woo price HTML sometimes wraps del/ins inside `.price` – keep it inline on mobile. */
  .vb-wishlist-page .vb-wishlist-table__price .price {
    display: inline-flex;
    flex-direction: row;
    align-items: baseline;
    justify-content: flex-start;
    gap: 6px;
  }

  .vb-wishlist-page .vb-wishlist-table__price del,
  .vb-wishlist-page .vb-wishlist-table__price ins {
    display: inline;
  }

  .vb-wishlist-table__cta {
    grid-area: cta;
    width: auto;
  }

  .vb-wishlist-table__cta-inner {
    justify-content: flex-start;
  }

  .vb-wishlist-table__cta-inner .button {
    width: 160px;
    min-height: 36px;
    padding: 10px 14px;
    border-radius: 12px;
    margin-top: 20px !important;
  }

  .vb-wishlist-table__remove {
    grid-area: remove;
    width: auto;
    text-align: right;
    align-self: start;
  }

  .vb-wishlist-table__remove-btn {
    padding: 10px;
  }
}
