/* SG EUR→AED Display (WooCommerce) - frontend styles */

/* AED note: inherit ALL WooCommerce/Theme typography (because it also has .woocommerce-Price-amount.amount). */
.sg-aed-note{
  opacity: .60;
  color: currentColor;
}

/* Hide AED in Woodmart header subtotal pill (optional) */
.wd-cart-subtotal .sg-aed-note,
.wd-cart-subtotal .sg-aed-note + br{
  display:none !important;
}

/* Mini cart subtotal: Subtotal label left, AED right on same row, EUR right below.
   IMPORTANT: AED note element also has .woocommerce-Price-amount.amount, so we must exclude it from the EUR selector. */
.cart-widget-side .shopping-cart-widget-footer .woocommerce-mini-cart__total.total{
  display:grid !important;
  grid-template-columns: 1fr auto !important;
  grid-template-rows: auto auto !important;
  grid-column-gap: 10px !important;
  grid-row-gap: 2px !important;
  align-items:start !important;
  margin: 0 !important;
}
.cart-widget-side .shopping-cart-widget-footer .woocommerce-mini-cart__total.total > br{display:none !important;}
.cart-widget-side .shopping-cart-widget-footer .woocommerce-mini-cart__total.total > strong{
  grid-column:1;
  grid-row:1;
}
.cart-widget-side .shopping-cart-widget-footer .woocommerce-mini-cart__total.total > .sg-aed-note{
  grid-column:2;
  grid-row:1;
  justify-self:end;
}
.cart-widget-side .shopping-cart-widget-footer .woocommerce-mini-cart__total.total > .woocommerce-Price-amount.amount:not(.sg-aed-note){
  grid-column:2;
  grid-row:2;
  justify-self:end;
}


/* Safety: if any cached JS still outputs <small>, keep Woo typography */
small.sg-aed-note{font-size:inherit !important; font-weight:inherit !important;}

/* Single product: match Woodmart current (ins) EUR amount size (theme uses 24px in these selectors). */
html .product-image-summary-wrap .summary-inner > .price .sg-aed-note,
html .product-image-summary-wrap .summary-inner > .price > .sg-aed-note,
html .wd-single-price .sg-aed-note{
  font-size: 24px;
}
