/* Root vars are injected from PHP but we give fallbacks */
:root {
  --ewd-mc-bg: #0f1116;
  --ewd-mc-panel-bg: #141720;
  --ewd-mc-overlay: rgba(0,0,0,0.55);
  --ewd-mc-border: rgba(255,255,255,0.06);
  --ewd-mc-accent: #FFC20F;
  --ewd-mc-text: #ffffff;
  --ewd-mc-muted: rgba(255,255,255,0.65);
  --ewd-mc-radius-lg: 18px;
  --ewd-mc-radius-md: 12px;
  --ewd-mc-panel-width: 390px;
  --ewd-mc-font-family: inherit;
  --ewd-mc-btn-primary-bg: #FFC20F;
  --ewd-mc-btn-primary-bg-hover: #D56700;
  --ewd-mc-btn-primary-text: #000000;
  --ewd-mc-btn-outline-border: rgba(255,255,255,0.35);
  --ewd-mc-btn-outline-text: #ffffff;
  --ewd-mc-open-animation: slide;
  --ewd-mc-animation-speed: 1.38;

  --ewd-mc-close-text: rgba(255,255,255,0.65);
  --ewd-mc-close-text-hover: #ffffff;
  --ewd-mc-close-bg: transparent;
  --ewd-mc-close-bg-hover: transparent;

  --ewd-mc-notice-bg: rgba(15,17,22,0.95);
  --ewd-mc-notice-text: #ffffff;
  --ewd-mc-notice-icon-bg: #FFC20F;
  --ewd-mc-notice-link: #FFC20F;
  --ewd-mc-notice-font-size: 13px;
  --ewd-mc-notice-btn-bg: transparent;
  --ewd-mc-notice-btn-text: #FFC20F;
  --ewd-mc-notice-btn-bg-hover: #FFC20F;
  --ewd-mc-notice-btn-text-hover: #000000;

  /* Premium toast (light theme) */
  --ewd-mc-toast-bg: #ffffff;
  --ewd-mc-toast-border: #e5e7eb;
  --ewd-mc-toast-shadow: 0 6px 10px rgba(15,17,22,0.25);
  --ewd-mc-toast-radius: 6px;

  --ewd-mc-toast-primary-bg: #2563eb;
  --ewd-mc-toast-primary-bg-hover: #1d4ed8;
  --ewd-mc-toast-primary-text: #ffffff;
  --ewd-mc-toast-primary-text-hover: #ffffff;

  --ewd-mc-toast-secondary-color: #111827;
  --ewd-mc-toast-secondary-hover: #0f172a;

  --ewd-mc-toast-btn-radius: 999px;
  --ewd-mc-toast-btn-font-family: inherit;
  --ewd-mc-toast-btn-font-size: 16px;
  --ewd-mc-toast-btn-font-weight: 600;

  --ewd-mc-vh: 1vh; /* updated via JS */
}

/* Disable scroll behind panel */
body.ewd-mc-open {
  overflow: hidden;
}

/* Overlay */
.ewd-mc-overlay {
  position: fixed;
  inset: 0;
  background: var(--ewd-mc-overlay, rgba(0,0,0,0.55));
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
  z-index: 9990;
}
.ewd-mc-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.ewd-mc-icon, .ewd-mc-icon *, .ewd-mc-icon:focus, .ewd-mc-icon:hover{
	background: transparent;
}

/* Panel – desktop defaults to off-canvas */
.ewd-mc-panel {
  position: fixed;
  top: 0;
  right: 0;
  left: auto;
  width: var(--ewd-mc-panel-width, 390px);
  max-width: 100%;
  height: calc(var(--ewd-mc-vh) * 100);
  background: var(--ewd-mc-panel-bg);
  color: var(--ewd-mc-text);
  box-shadow: 0 0 40px rgba(0,0,0,0.7);
  border-left: 1px solid var(--ewd-mc-border);
  transform: translateX(110%);
  transition: transform var(--ewd-mc-animation-speed, 1.38s) cubic-bezier(.4,0,.2,1);
  z-index: 9991;
  border-radius: 0;
  font-family: var(--ewd-mc-font-family, inherit);
}
.ewd-mc-panel.ewd-mc-pos-left {
  left: 0;
  right: auto;
  border-left: none;
  border-right: 1px solid var(--ewd-mc-border);
  transform: translateX(-110%);
}
.ewd-mc-panel.is-open {
  transform: translateX(0);
}
.ewd-mc-panel-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Header */
.ewd-mc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--ewd-mc-border);
}
.ewd-mc-title {
  font-size: 16px;
  font-weight: 600;
}
.ewd-mc-close {
  background: var(--ewd-mc-close-bg, transparent);
  border: 0;
  color: var(--ewd-mc-close-text, var(--ewd-mc-muted));
  font-size: 20px;
  cursor: pointer;
  border-radius: 999px;
  padding: 6px 10px;
}
.ewd-mc-close:hover {
  color: var(--ewd-mc-close-text-hover, #ffffff);
  background: var(--ewd-mc-close-bg-hover, transparent);
}

/* Body */
.ewd-mc-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 20px;
}

/* Items */
.ewd-mc-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ewd-mc-item {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 16px;
}
.ewd-mc-thumb img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  box-shadow: 0 0 16px rgba(0,0,0,0.1);
}
.ewd-mc-main {
  display: flex;
  flex-direction: column;
}
.ewd-mc-row-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.ewd-mc-name {
  font-size: 14px;
  margin: 0;
}
.ewd-mc-name a {
  color: var(--ewd-mc-text);
  text-decoration: none;
}
.ewd-mc-name a:hover {
  text-decoration: underline;
}
.ewd-mc-remove {
  background: none;
  border: 0;
  color: var(--ewd-mc-muted);
  cursor: pointer;
  font-size: 16px;
	padding: 0px;
}

.ewd-mc-remove:hover,
.ewd-mc-remove:focus{
	background:transparent;
	color: black;
}


.ewd-mc-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--ewd-mc-muted);
}
.ewd-mc-meta p {
  margin: 0;
}
.ewd-mc-row-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}

/* Qty styled like checkout qty pill */
.ewd-mc-qty {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--ewd-mc-border);
  overflow: hidden;
}
.ewd-mc-qty input {
  width: 42px;
  text-align: center;
  background: transparent;
  border: 0;
  color: var(--ewd-mc-text);
  font-size: 13px;
  padding: 6px 0;
}
.ewd-mc-qty-btn {
  background: transparent;
  border: 0;
  color: var(--ewd-mc-muted);
  font-size: 16px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  padding: 0;
}
.ewd-mc-qty-btn:hover,
.ewd-mc-qty-btn:focus {
  background: transparent;
  color: var(--ewd-mc-text);
}

.ewd-mc-price {
  font-weight: 600;
  font-size: 14px;
}

/* Empty */
.ewd-mc-empty {
  text-align: center;
  color: var(--ewd-mc-muted);
}

/* Footer – sticky-like within flex container */
.ewd-mc-footer {
  padding: 16px 20px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--ewd-mc-border);
  background: var(--ewd-mc-panel-bg);
}
.ewd-mc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.ewd-mc-label {
  font-size: 13px;
  color: var(--ewd-mc-muted);
}
.ewd-mc-subtotal-amount {
  font-weight: 700;
  font-size: 16px;
}
.ewd-mc-note {
  margin: 0 0 12px;
  font-size: 12px;
  color: var(--ewd-mc-muted);
}
.ewd-mc-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ewd-mc-actions .ccp-btn {
  width: 100%;
}

/* Buttons styled via vars */
.ewd-mc-actions .ccp-btn-primary {
  background: var(--ewd-mc-btn-primary-bg);
  color: var(--ewd-mc-btn-primary-text);
  border-radius: var(--ewd-mc-radius-md);
  border: none;
}
.ewd-mc-actions .ccp-btn-primary:hover {
  background: var(--ewd-mc-btn-primary-bg-hover);
}
.ewd-mc-actions .ccp-btn-outline {
  border-radius: var(--ewd-mc-radius-md);
  border: 1px solid var(--ewd-mc-btn-outline-border);
  color: var(--ewd-mc-btn-outline-text);
  background: transparent;
}
.ewd-mc-actions .ccp-btn-outline:hover {
  border-color: var(--ewd-mc-accent);
}

/* Elementor header icon */
.ewd-mc-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: none;
  cursor: pointer;
  background: transparent;
}
.ewd-mc-icon,
.ewd-mc-icon *,
.ewd-mc-icon:focus,
.ewd-mc-icon:hover {
  text-decoration: none !important;
}
.ewd-mc-icon-inner {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ewd-mc-icon-inner i,
.ewd-mc-icon-inner svg,
.ewd-mc-icon-inner img.ewd-mc-icon-svg {
  display: block;
}

/* Badge defaults – overwritten by Elementor controls */
.ewd-mc-count-badge {
  position: absolute;
  right: -8px;
  top: -8px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border-radius: 999px;
  background: var(--ewd-mc-accent);
  color: #000;
}

.ewd-mc-label-text {
  font-size: 13px;
}

/* Badge animations */
@keyframes ewd-mc-badge-pulse {
  0%   { transform: scale(1);   box-shadow: 0 0 0 0 rgba(255,194,15,0.7); }
  70%  { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(255,194,15,0); }
  100% { transform: scale(1);   box-shadow: 0 0 0 0 rgba(255,194,15,0); }
}
.ewd-mc-badge-anim-pulse {
  animation: ewd-mc-badge-pulse 1.1s ease-out infinite;
}

@keyframes ewd-mc-badge-pop {
  0%   { transform: scale(0.6); opacity: 0; }
  50%  { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.ewd-mc-badge-anim-pop {
  animation: ewd-mc-badge-pop 0.35s ease-out;
}


/* ------------------------------------------------------------------
   Premium Ember Toast (light, like screenshot)
   ------------------------------------------------------------------ */

.ewd-mc-toast-new {
  position: fixed;
  z-index: 9995;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}

/* Center (below header) */
.ewd-mc-toast-new.ewd-mc-pos-center {
  top: calc(64px + var(--ewd-mc-toast-offset-y, 0px));
  left: 50%;
  transform: translate(-50%, -12px);
}

/* Top right */
.ewd-mc-toast-new.ewd-mc-pos-top-right {
  top: calc(150px + var(--ewd-mc-toast-offset-y, 0px));
  right: calc(50px + var(--ewd-mc-toast-offset-x, 0px));
  transform: translateY(-12px);
}

/* Bottom right */
.ewd-mc-toast-new.ewd-mc-pos-bottom-right {
  bottom: calc(32px + env(safe-area-inset-bottom) + var(--ewd-mc-toast-offset-y, 0px));
  right: calc(24px + var(--ewd-mc-toast-offset-x, 0px));
  transform: translateY(12px);
	width: 25%;
}

/* Visible state (fade in) */
.ewd-mc-toast-new.ewd-mc-show {
  opacity: 1;
  pointer-events: auto;
}

/* Center visible */
.ewd-mc-toast-new.ewd-mc-show.ewd-mc-pos-center {
  transform: translate(-50%, 0);
}

/* Top-right visible */
.ewd-mc-toast-new.ewd-mc-show.ewd-mc-pos-top-right {
  transform: translateY(0);
}

/* Bottom-right visible */
.ewd-mc-toast-new.ewd-mc-show.ewd-mc-pos-bottom-right {
  transform: translateY(0);
}

/* Toast inner layout */
.ewd-mc-toast-inner-new {
  position: relative;
  min-width: 280px;
  max-width: 420px;
	padding: 20px 40px 20px;
  border-radius: var(--ewd-mc-toast-radius, 22px);
  background: var(--ewd-mc-toast-bg, #ffffff);
  border: 1px solid var(--ewd-mc-toast-border, #e5e7eb);
  box-shadow: var(--ewd-mc-toast-shadow, 0 24px 40px rgba(15,17,22,0.25));
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 18px;
	z-index: 999999999999;
}

/* Close button (X) */
.ewd-mc-toast-close {
  position: absolute;
  top: 12px;
  right: 16px;
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
	padding: 0px;
}
.ewd-mc-toast-close:hover,
.ewd-mc-toast-close:active,
.ewd-mc-toast-close:focus{
  color: #111827;
	  background: transparent;
}

/* Check + text row */
.ewd-mc-toast-check {
  display: flex;
  align-items: center;
}

.ewd-mc-toast-check-icon {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 0px
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #3a3b3a;
}

.ewd-mc-toast-text-main {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

/* Primary CTA – View Bag */
.ewd-mc-toast-primary-btn {
  width: 100%;
  border: none;
  cursor: pointer;
  margin-top: 2px;
  padding: 12px 24px;
  border-radius: var(--ewd-mc-toast-btn-radius, 999px);
  font-size: var(--ewd-mc-toast-btn-font-size, 16px);
  font-weight: var(--ewd-mc-toast-btn-font-weight, 600);
  font-family: var(--ewd-mc-toast-btn-font-family, inherit);
  background: var(--ewd-mc-toast-primary-bg, #2563eb);
  color: var(--ewd-mc-toast-primary-text, #ffffff);
  outline: none;
}
.ewd-mc-toast-primary-btn:hover,
.ewd-mc-toast-primary-btn:focus {
  background: var(--ewd-mc-toast-primary-bg-hover, #1d4ed8);
  color: var(--ewd-mc-toast-primary-text-hover, #ffffff);
}

/* Secondary link – Continue shopping */
.ewd-mc-toast-continue {
  margin-top: 2px;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--ewd-mc-toast-secondary-color, #111827);
  text-decoration: underline;
  text-underline-offset: 3px;
	padding: 0px
}
.ewd-mc-toast-continue:hover,
.ewd-mc-toast-continue:focus {
  color: var(--ewd-mc-toast-secondary-hover, #0f172a);
	background: transparent;
}


/* -------- Responsive tweaks -------- */

/* Tablet & mobile: card / full layouts */
@media (max-width: 1024px) {
  .ewd-mc-panel.ewd-mc-mobile-card {
    width: 96%;
   
    right: auto;
    left: 2.5%;
    bottom: 10px;
    top: auto;
    height: auto;
    max-height: 90%;
	  height: 99%;
    border-radius: 4px;
	  justify-self: center;
  }
  .ewd-mc-panel.ewd-mc-mobile-card.ewd-mc-pos-left {
    left: 10px;
    right: auto;
  }

  .ewd-mc-panel.ewd-mc-mobile-full {
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    width: 100%;
    max-width: none;
    height: calc(var(--ewd-mc-vh) * 100);
    max-height: none;
    border-radius: 0;
  }
}

/* Mobile: tighten padding */
@media (max-width: 767px) {
  .ewd-mc-header {
    padding: 14px 16px;
  }
  .ewd-mc-body {
    padding: 14px 16px;
  }
  .ewd-mc-footer {
    padding: 14px 16px calc(16px + env(safe-area-inset-bottom));
  }
}


/* ============================================================
   FULL-WIDTH BOTTOM TOAST (PREMIUM BAR STYLE)
   ============================================================ */

.ewd-mc-toast-new.ewd-mc-pos-bottom {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(0px + env(safe-area-inset-bottom));
    width: 100%;
    max-width: none;
    transform: translateY(100%);
    display: flex;
    justify-content: center;
    z-index: 999999;
    padding: 0 0 16px; /* breathing room above safe area */
}

.ewd-mc-toast-new.ewd-mc-pos-bottom.ewd-mc-show {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* Inner container — stretch to full width */
.ewd-mc-toast-inner-new {
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-bottom: 0;
    padding: 20px 24px;
}

/* Make it look like a premium sticky bar */
.ewd-mc-toast-new.ewd-mc-pos-bottom .ewd-mc-toast-inner-new {
    border-top: 1px solid var(--ewd-mc-toast-border, #e5e7eb);
    box-shadow: 0 -20px 40px rgba(0,0,0,0.18);
}


/* ------------------------------------------------------------
   Add to cart button spinner + states
   ------------------------------------------------------------ */

.ewd-mc-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  margin-right: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: rgba(255, 255, 255, 1);
  animation: ewd-mc-spin 0.6s linear infinite;
  vertical-align: middle;
}

@keyframes ewd-mc-spin {
  to {
    transform: rotate(360deg);
  }
}

.ewd-mc-check {
  display: inline-block;
  margin-right: 6px;
}

.ewd-mc-btn-adding,
.ewd-mc-btn-added {
  cursor: default;
  opacity: 0.9;
}

.ewd-mc-btn-adding:disabled,
.ewd-mc-btn-added:disabled {
  pointer-events: none;
}


/* TABLET (≤ 768px) */
@media (max-width: 768px) {
    .ewd-mc-toast-new.ewd-mc-pos-bottom-right {
        bottom: calc(16px + env(safe-area-inset-bottom) + var(--ewd-mc-toast-offset-y, 0px));
        right: auto;
        transform: translateY(12px);
        width: 90%;
		left: 5%;
        justify-self: center;
    }
}

/* MOBILE (≤ 480px) */
@media (max-width: 480px) {
    .ewd-mc-toast-new.ewd-mc-pos-bottom-right {
        bottom: calc(16px + env(safe-area-inset-bottom) + var(--ewd-mc-toast-offset-y, 0px));
        right: auto;
        transform: translateY(12px);
        width: 90%;
		left: 5%;
        justify-self: center;
    }
}
