:root {
  /* Space for safe areas (iOS) + our own bottom pad toggle */
  --divi-sticky-bottom-pad: 0px;
}

/* Prevent page content being covered when bar is open */
body, html {
  padding-bottom: var(--divi-sticky-bottom-pad);
}

/* Container */
#divi-sticky-checkout.divi-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999; /* Above Divi footer */
  transform: translateY(100%);
  opacity: 0;
  pointer-events: none;
 /* transition: transform 240ms ease, opacity 240ms ease;
  /* Subtle background with blur */
 /* backdrop-filter: saturate(120%) blur(8px);
  background: rgba(20, 20, 20, 0.82);*/
  color: #fff;
  padding: max(12px, env(safe-area-inset-bottom));
 /* padding-top: 10px;*/
  box-shadow: 0 -6px 20px rgba(0,0,0,0.18);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
}

/* Visible state (slides up) */
#divi-sticky-checkout.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.woocommerce-message{
	display:none !important;
}

/* Minimized: small grab/tab */
#divi-sticky-checkout.is-min .divi-sticky__content {
  display: none;
}
#divi-sticky-checkout .divi-sticky__toggle {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-bottom: 0px;
  cursor: pointer;
}
#divi-sticky-checkout .divi-sticky__chev {
  display: inline-block;
  line-height: 1;
  font-size: 18px;
  transform: rotate(0deg);
  transition: transform 200ms ease;
  opacity: 0.9;
}
#divi-sticky-checkout.is-min .divi-sticky__chev {
  transform: rotate(180deg);
}

/* Content row */
#divi-sticky-checkout .divi-sticky__content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

/* Summary text */
#divi-sticky-checkout .divi-sticky__summary {
  font-size: 14px;
  opacity: 0.95;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
#divi-sticky-checkout .divi-sticky__summary .amount,
#divi-sticky-checkout .divi-sticky__summary .count {
  font-weight: 700;
}
#divi-sticky-checkout .divi-sticky__sep {
  opacity: 0.5;
}

/* CTA button */
#divi-sticky-checkout .divi-sticky__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 5px;
  background: #F26419; /* accessible green; tweak to match Divi brand */
  color: #0d1b12;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 120ms ease, filter 120ms ease, opacity 120ms ease;
}
#divi-sticky-checkout .divi-sticky__cta:hover,
#divi-sticky-checkout .divi-sticky__cta:focus {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

/* Mobile-first spacing */
@media (min-width: 768px) {
  #divi-sticky-checkout .divi-sticky__content {
    grid-template-columns: 1fr auto;
  }
  #divi-sticky-checkout .divi-sticky__summary { font-size: 15px; }
}

/* High-contrast in light themes just in case */
@media (prefers-color-scheme: light) {
  #divi-sticky-checkout.divi-sticky {
	  background:#13293d;
	  color:#fff;
   /* background: rgba(255, 255, 255, 0.5);
    color: #1c1c1c;*/
  }
  #divi-sticky-checkout .divi-sticky__cta {
    background: #F26419;
    color: #fff;
  }
}

/* Respect Divi headers/menus */
.et_pb_menu--style-centered #divi-sticky-checkout { z-index: 9999; }
