/* Raizan — Elementor mini-cart drawer v1.4 */

:root {
  --rg-accent: #0F5C5A;
  --rg-accent-h: #0B6E6B;
  --rg-ink: #1C1C1C;
  --rg-muted: #5C6563;
  --rg-border: #DDD6CB;
  --rg-bg: #F3EDE4;
  --rg-font: "Plus Jakarta Sans", system-ui, sans-serif;
}

.elementor-menu-cart__container,
.elementor-menu-cart__container.elementor-lightbox,
body .elementor-lightbox.elementor-menu-cart__container {
  background: rgba(15, 15, 15, 0.45) !important;
  background-color: rgba(15, 15, 15, 0.45) !important;
}

body.elementor-menu-cart--shown,
body.elementor-lightbox--prevent-scroll {
  overflow: hidden !important;
}
body.elementor-menu-cart--shown .elementor,
body.elementor-lightbox--prevent-scroll .elementor {
  opacity: 1 !important;
  visibility: visible !important;
}

.elementor-menu-cart__main {
  font-family: var(--rg-font) !important;
  background: #fff !important;
  color: var(--rg-ink) !important;
  padding: 16px 16px 0 !important;
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.18) !important;
  max-width: 380px !important;
  width: min(380px, 94vw) !important;
  height: 100% !important;
  max-height: 100vh !important;
  margin-left: auto !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

.elementor-menu-cart__close-button {
  width: 36px !important;
  height: 36px !important;
  border-radius: 50% !important;
  border: 1px solid var(--rg-border) !important;
  background: #fff !important;
  color: var(--rg-ink) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  top: 12px !important;
  right: 12px !important;
  z-index: 5 !important;
  opacity: 1 !important;
}
.elementor-menu-cart__close-button,
.elementor-menu-cart__close-button * {
  color: var(--rg-ink) !important;
  fill: currentColor !important;
}

.elementor-menu-cart__products,
.woocommerce-mini-cart {
  flex: 1 1 auto !important;
  margin: 8px 0 0 !important;
  padding: 0 0 12px !important;
  max-height: none !important;
  overflow-y: auto !important;
  min-height: 0 !important;
}

.elementor-menu-cart__product,
.woocommerce-mini-cart-item {
  display: grid !important;
  grid-template-columns: 64px minmax(0, 1fr) 28px !important;
  gap: 10px !important;
  align-items: start !important;
  border-bottom: 1px solid var(--rg-border) !important;
  padding: 12px 0 !important;
  margin: 0 !important;
}

.elementor-menu-cart__product-image img,
.woocommerce-mini-cart-item img {
  border-radius: 10px !important;
  width: 64px !important;
  height: 64px !important;
  object-fit: cover !important;
  display: block !important;
}

.elementor-menu-cart__product-name a,
.woocommerce-mini-cart-item a:not(.remove) {
  color: var(--rg-ink) !important;
  font: 700 14px/1.3 var(--rg-font) !important;
  text-decoration: none !important;
}

.elementor-menu-cart__product-price,
.woocommerce-mini-cart-item .quantity,
.elementor-menu-cart__product-price *,
.woocommerce-mini-cart-item .quantity * {
  color: var(--rg-ink) !important;
  font: 600 13px/1.4 var(--rg-font) !important;
  opacity: 1 !important;
}

.elementor-menu-cart__product-remove a,
.woocommerce-mini-cart-item a.remove {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  border: 1px solid var(--rg-border) !important;
  background: var(--rg-bg) !important;
  color: var(--rg-ink) !important;
  font-size: 14px !important;
  opacity: 1 !important;
}

/* Sticky footer inside viewport */
.elementor-menu-cart__footer,
.elementor-menu-cart__main > .elementor-menu-cart__footer-buttons,
.woocommerce-mini-cart__total,
.elementor-menu-cart__subtotal {
  flex-shrink: 0 !important;
}

.elementor-menu-cart__subtotal,
.woocommerce-mini-cart__total {
  border-top: 1px solid var(--rg-border) !important;
  padding: 14px 0 !important;
  margin: 0 !important;
  font: 700 15px/1.3 var(--rg-font) !important;
  color: var(--rg-ink) !important;
  display: flex !important;
  justify-content: space-between !important;
  background: #fff !important;
}
.elementor-menu-cart__subtotal *,
.woocommerce-mini-cart__total * {
  color: var(--rg-ink) !important;
}

.elementor-menu-cart__footer-buttons,
.woocommerce-mini-cart__buttons {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 12px 0 16px !important;
  background: #fff !important;
  border-top: 1px solid var(--rg-border) !important;
  position: sticky !important;
  bottom: 0 !important;
  z-index: 3 !important;
}

.elementor-menu-cart__footer-buttons .elementor-button,
.elementor-menu-cart__footer-buttons a,
.woocommerce-mini-cart__buttons a.button,
.woocommerce-mini-cart__buttons .button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 46px !important;
  margin: 0 !important;
  padding: 12px 10px !important;
  border-radius: 12px !important;
  font: 700 13px/1.2 var(--rg-font) !important;
  text-decoration: none !important;
  box-shadow: none !important;
  text-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Header custom CSS hid ALL .elementor-button-text — unhide footer labels with higher specificity */
body.raizan-ui .elementor-menu-cart__footer-buttons .elementor-button .elementor-button-text,
body.raizan-ui .elementor-menu-cart__footer-buttons a .elementor-button-text,
.elementor-menu-cart__footer-buttons .elementor-button-content-wrapper,
.elementor-menu-cart__footer-buttons .elementor-button-text,
.elementor-menu-cart__footer-buttons .elementor-button span {
  display: inline !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  font: 700 13px/1.2 var(--rg-font) !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.elementor-menu-cart__main,
.elementor-menu-cart__footer-buttons {
  --view-cart-button-text-color: var(--rg-accent) !important;
  --view-cart-button-background-color: #ffffff !important;
  --checkout-button-text-color: #ffffff !important;
  --checkout-button-background-color: var(--rg-accent) !important;
}

/* View cart — outline */
body.raizan-ui .elementor-menu-cart__footer-buttons .elementor-button--view-cart,
.elementor-menu-cart__footer-buttons .elementor-button--view-cart,
.elementor-menu-cart__footer-buttons a[href*="/cart"]:not([href*="checkout"]),
.woocommerce-mini-cart__buttons a:first-child {
  background: #fff !important;
  background-color: #fff !important;
  color: var(--rg-accent) !important;
  border: 1.5px solid var(--rg-accent) !important;
}
body.raizan-ui .elementor-menu-cart__footer-buttons .elementor-button--view-cart,
body.raizan-ui .elementor-menu-cart__footer-buttons .elementor-button--view-cart *,
.elementor-menu-cart__footer-buttons .elementor-button--view-cart,
.elementor-menu-cart__footer-buttons .elementor-button--view-cart *,
.elementor-menu-cart__footer-buttons a[href*="/cart"]:not([href*="checkout"]),
.elementor-menu-cart__footer-buttons a[href*="/cart"]:not([href*="checkout"]) * {
  color: var(--rg-accent) !important;
  -webkit-text-fill-color: var(--rg-accent) !important;
}

/* Checkout — solid */
body.raizan-ui .elementor-menu-cart__footer-buttons .elementor-button--checkout,
.elementor-menu-cart__footer-buttons .elementor-button--checkout,
.elementor-menu-cart__footer-buttons a[href*="checkout"],
.woocommerce-mini-cart__buttons a.checkout,
.woocommerce-mini-cart__buttons a:last-child {
  background: var(--rg-accent) !important;
  background-color: var(--rg-accent) !important;
  color: #fff !important;
  border: 1.5px solid var(--rg-accent) !important;
}
body.raizan-ui .elementor-menu-cart__footer-buttons .elementor-button--checkout,
body.raizan-ui .elementor-menu-cart__footer-buttons .elementor-button--checkout *,
.elementor-menu-cart__footer-buttons .elementor-button--checkout,
.elementor-menu-cart__footer-buttons .elementor-button--checkout *,
.elementor-menu-cart__footer-buttons a[href*="checkout"],
.elementor-menu-cart__footer-buttons a[href*="checkout"] * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.elementor-menu-cart__empty-message {
  font: 500 14px/1.45 var(--rg-font) !important;
  color: var(--rg-muted) !important;
  padding: 28px 8px !important;
  text-align: center !important;
}
