.eb-added-toast {
  position: fixed;
  top: 92px;
  right: 22px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 12px 14px;
  background: #ffffff;
  border: 1px solid #e2e6f0;
  border-left: 4px solid #2e7d56;
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(25, 30, 60, 0.14);
  color: #52566b;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  line-height: 1.45;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

.eb-added-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.eb-added-toast__icon {
  color: #2e7d56;
  font-size: 16px;
  line-height: 1;
}

.eb-added-toast__text {
  font-weight: 500;
}

.eb-added-toast__button {
  margin-left: 4px;
  padding: 6px 10px;
  border: 0;
  border-radius: 8px;
  background: #6b7fa3;
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.eb-added-toast__button:hover {
  background: #4f6080;
  color: #ffffff;
}

@media (max-width: 560px) {
  .eb-added-toast {
    top: auto;
    right: 12px;
    bottom: 18px;
    left: 12px;
    justify-content: space-between;
  }
}

/* Admin test: hide Blocksy default cart dropdown */

body.admin-bar .ct-header-cart .ct-cart-content {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.eb-side-cart-overlay {
  position: fixed;
  inset: 0;
  z-index: 99990;
  background: rgba(25, 30, 60, 0.42);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
  backdrop-filter: blur(3px);
}

.eb-side-cart-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.eb-side-cart {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 99991;
  width: 440px;
  max-width: 100vw;
  background: #ffffff;
  box-shadow: -8px 0 56px rgba(25, 30, 60, 0.16);
  transform: translateX(100%);
  transition: transform 0.34s ease;
  display: flex;
  flex-direction: column;
  font-family: "Poppins", sans-serif;
}

.eb-side-cart.is-open {
  transform: translateX(0);
}

.eb-side-cart__header {
  min-height: 72px;
  padding: 18px 22px;
  border-bottom: 1px solid #e2e6f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.eb-side-cart__header h2 {
  margin: 0;
  color: #1a1c2e;
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 9px;
}

.eb-side-cart__count {
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #6b7fa3;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.eb-side-cart__close {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #f2f5fb;
  color: #52566b;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}

.eb-side-cart__close:hover {
  background: #6b7fa3;
  color: #ffffff;
}

.eb-side-cart__body {
  flex: 1;
  overflow-y: auto;
  padding: 22px;
}

.eb-side-cart__empty {
  margin: 0;
  padding: 28px 16px;
  border: 1px dashed #c8cde0;
  border-radius: 12px;
  color: #9499b0;
  text-align: center;
  font-size: 13px;
  line-height: 1.55;
}

.eb-side-cart__footer {
  padding: 18px 22px 22px;
  border-top: 1px solid #e2e6f0;
  background: #ffffff;
}

.eb-side-cart__total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  color: #52566b;
  font-size: 13px;
}

.eb-side-cart__total strong {
  color: #1a1c2e;
  font-size: 17px;
}

.eb-side-cart__checkout {
  min-height: 48px;
  border-radius: 8px;
  background: #6b7fa3;
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eb-side-cart__checkout:hover {
  background: #4f6080;
  color: #ffffff;
}

body.eb-side-cart-open {
  overflow: hidden;
}

@media (max-width: 560px) {
  .eb-side-cart {
    width: 100vw;
  }
}

/* Side cart below WordPress admin bar */

body.admin-bar .eb-side-cart {
  top: 32px;
}

body.admin-bar .eb-side-cart-overlay {
  top: 32px;
}

@media (max-width: 782px) {
  body.admin-bar .eb-side-cart {
    top: 46px;
  }

  body.admin-bar .eb-side-cart-overlay {
    top: 46px;
  }
}

.eb-side-cart.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.eb-side-cart__items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eb-side-cart-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e2e6f0;
}

.eb-side-cart-item__thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  background: #f2f5fb;
  border: 1px solid #e2e6f0;
}

.eb-side-cart-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.eb-side-cart-item__name {
  color: #1a1c2e;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.eb-side-cart-item__meta {
  margin-top: 3px;
  color: #9499b0;
  font-size: 12px;
}

.eb-side-cart-item__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.eb-side-cart-item__price {
  color: #1a1c2e;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.eb-side-cart-item__remove {
  padding: 0;
  border: 0;
  background: transparent;
  color: #9499b0;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.eb-side-cart-item__remove:hover {
  color: #c0392b;
}

.eb-side-cart__upsell {
  margin-top: 14px;
}

.eb-side-cart-upsell .ebc-upsell-card {
  box-shadow: none;
}

.eb-side-cart-upsell .ebc-upsell-image,
.eb-side-cart-upsell .ebc-upsell-image img {
  width: 72px !important;
  height: 72px !important;
}

.eb-side-cart-upsell .ebc-upsell-card {
  grid-template-columns: 72px 1fr;
}

.eb-side-cart__footer-inner {
  width: 100%;
}

/* Side cart upsell, checkout-like */

.eb-side-cart__upsell {
  margin-top: 14px;
}

.eb-side-cart-upsell .ebc-upsell-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  background: #ffffff;
  border: 1px dashed #6b7fa3;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(25, 30, 60, 0.07);
}

.eb-side-cart-upsell .ebc-upsell-card.is-added {
  border-style: solid;
  border-color: #2e7d56;
  background: rgba(46, 125, 86, 0.08);
}

.eb-side-cart-upsell .ebc-upsell-image,
.eb-side-cart-upsell .ebc-upsell-image img {
  width: 72px !important;
  height: 72px !important;
  border-radius: 8px;
  object-fit: cover;
}

.eb-side-cart-upsell .ebc-upsell-content {
  min-width: 0;
}

.eb-side-cart-upsell .ebc-upsell-kicker {
  margin-bottom: 2px;
  color: #4f6080;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eb-side-cart-upsell .ebc-upsell-title {
  color: #1a1c2e;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
}

.eb-side-cart-upsell .ebc-upsell-description {
  margin-top: 4px;
  color: #52566b;
  font-size: 10.5px;
  line-height: 1.45;
}

.eb-side-cart-upsell .ebc-upsell-description p {
  margin: 0 0 4px;
}

.eb-side-cart-upsell .ebc-upsell-price {
  margin-top: 5px;
  color: #1a1c2e;
  font-size: 12.5px;
  font-weight: 700;
}

.eb-side-cart-upsell .ebc-upsell-action {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.eb-side-cart-upsell .ebc-upsell-button {
  min-height: 34px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: #6b7fa3;
  color: #ffffff;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
}

.eb-side-cart-upsell .ebc-upsell-button:hover {
  background: #4f6080;
}