/* Hide prices for non-logged-in users */
body:not(.ecwid-customer-group-23741751) .elementor-905 .elementor-element.elementor-element-3d419022,
body:not(.ecwid-customer-group-23741751) .ec-size .ec-store .grid-product__price-value.ec-price-item,
body:not(.ecwid-customer-group-23741751) .ec-size .ec-store .product-details__product-price.ec-price-item,
body:not(.ecwid-customer-group-23741751) .ec-size .ec-store .product-details-module__content.product-details-module__content--indented {
  display: none !important;
}

/* Hide "Buy Now" button */
body:not(.ecwid-customer-group-23741751) .elementor-905 .elementor-element.elementor-element-3d419022,
body:not(.ecwid-customer-group-23741751) .ec-size .ec-store .grid-product__button.grid-product__buy-now {
  display: none !important;
}

/* Show "Login" message instead of product title */
body:not(.ecwid-customer-group-23741751) .ec-size .ec-store .grid-product__title-inner::after {
  display: block !important;
  content: "Login";
  font-size: 20px !important;
  font-weight: 500 !important;
  color: #666 !important;
}

/* Hide only categories on the main store page */
.ecwid-productBrowser.ecwid-productBrowser-CategoryPage.ecwid-productBrowser-CategoryPage-0
.grid__categories {
  display: none !important;
}

/* Hide the Featured Products heading only, if desired */
.ecwid-productBrowser.ecwid-productBrowser-CategoryPage.ecwid-productBrowser-CategoryPage-0
.ec-page-title__featured-products {
  display: none !important;
}

.ec-footer {
  display: none;
}

/* Ensure coupon section is visible and properly aligned */
.ec-size .ec-store .ec-cart-coupon__wrap {
  visibility: visible !important;
  display: flex !important;
  align-items: center !important;
  height: auto !important;
}

/* Show apply button for coupons */
.ec-size .ec-store .ec-cart-coupon:not(.ec-cart-coupon--applied) .ec-cart-coupon__button--apply {
  display: block !important;
}

/* Hide coupon text */
.ec-size .ec-store .ec-cart-coupon .ec-cart-coupon__text {
  display: none !important;
}

/* Multi-language "Login to purchase" messages */
body:not(.ecwid-customer-group-23741751) .product-details__product-sku.ec-text-muted:lang(nl)::after {
  content: "Log in om product te kunnen kopen" !important;
  display: block !important;
  font-size: 20px !important;
  color: #666 !important;
}

body:not(.ecwid-customer-group-23741751) .product-details__product-sku.ec-text-muted:lang(en)::after {
  content: "Login to purchase product" !important;
  display: block !important;
  font-size: 20px !important;
  color: #666 !important;
}

body:not(.ecwid-customer-group-23741751) .product-details__product-sku.ec-text-muted:lang(de)::after {
  content: "Einloggen um Produkt zu kaufen" !important;
  display: block !important;
  font-size: 20px !important;
  color: #666 !important;
}

body:not(.ecwid-customer-group-23741751) .product-details__product-sku.ec-text-muted:lang(fr)::after {
  content: "Connectez-vous pour acheter le produit" !important;
  display: block !important;
  font-size: 20px !important;
  color: #666 !important;
}

/* Fix Ecwid search button affected by WordPress/Elementor button styles */
.ecwid-search-widget .ecwid-search-widget__btn,
.ecwid-search-widget .ecwid-search-widget__btn:hover,
.ecwid-search-widget .ecwid-search-widget__btn:focus,
.ecwid-search-widget .ecwid-search-widget__btn:active {
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  width: 50px !important;
  height: 100% !important;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Make sure the button can be positioned inside the search field */
.ecwid-search-widget {
  position: relative !important;
}

/* Restore normal search icon dimensions */
.ecwid-search-widget .ecwid-search-widget__btn svg {
  display: block !important;
  width: 22px !important;
  height: 22px !important;
}

.ecwid-search-widget .ecwid-search-widget__btn {
  top: 15px !important;
}
