/*
Theme Name: Hello Elementor Child
Theme URI: https://relivious.com
Description: Child theme for Hello Elementor on Relivious staging.
Author: Mathieu Binette
Template: hello-elementor
Version: 1.0.0
Text Domain: hello-elementor-child
*/

/* Personnalisation WooCommerce */
/* Product link color in WooCommerce Cart Block */
.wc-block-cart-item__product .wc-block-components-product-name {
  color: #18c7c9 !important;
  text-decoration: none;
  font-weight: 500;
}

/* Hover state */
.wc-block-cart-item__product .wc-block-components-product-name:hover {
  color: #12aeb0 !important;
  text-decoration: underline;
}
/* Proceed to Checkout button */
.wc-block-cart__submit-button,
a.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained {
  background-color: #18c7c9 !important;
  color: #ffffff !important;
  border: none !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

/* Hover state */
.wc-block-cart__submit-button:hover,
a.wc-block-components-button.wp-element-button.wc-block-cart__submit-button.contained:hover {
  background-color: #12aeb0 !important;
  color: #ffffff !important;
}

/* Focus / active state */
.wc-block-cart__submit-button:focus,
.wc-block-cart__submit-button:active {
  background-color: #12aeb0 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
/* Force Elementor cart page container to fit mobile viewport */
body.woocommerce-cart .elementor-location-single,
body.woocommerce-cart .elementor-section,
body.woocommerce-cart .elementor-container,
body.woocommerce-cart .elementor-widget-container,
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-cart .wc-block-cart {
  width: 100% !important;
  max-width: 100vw !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* Remove horizontal overflow caused by WooCommerce Cart Block */
body.woocommerce-cart {
  overflow-x: hidden !important;
}

body.woocommerce-cart .wc-block-components-sidebar-layout,
body.woocommerce-cart .wc-block-components-main,
body.woocommerce-cart .wc-block-components-sidebar {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
}

/* Mobile cart spacing */
@media (max-width: 767px) {
  body.woocommerce-cart .elementor-widget-theme-post-content {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  body.woocommerce-cart .wc-block-components-sidebar-layout {
    display: block !important;
  }
}
/* Empty cart page */
body.woocommerce-cart .wc-block-cart__empty-cart__title,
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block h2,
body.woocommerce-cart .wc-block-cart__empty-cart__title::before {
  color: #32373c !important;
}

/* Empty cart icon */
body.woocommerce-cart .wc-block-cart__empty-cart__title::before,
body.woocommerce-cart .wc-block-cart__empty-cart__title svg,
body.woocommerce-cart .wp-block-woocommerce-empty-cart-block svg {
  color: #32373c !important;
  fill: #32373c !important;
}

/* Product title in New in store */
body.woocommerce-cart .wc-block-grid__product-title {
  color: #18c7c9 !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.3;
}

/* Product title hover */
body.woocommerce-cart .wc-block-grid__product-link:hover .wc-block-grid__product-title {
  color: #12aeb0 !important;
}

/* Empty cart product button */
body.woocommerce-cart .wp-block-button__link.add_to_cart_button,
body.woocommerce-cart .wc-block-grid__product-add-to-cart a {
  background-color: #18c7c9 !important;
  color: #ffffff !important;
  border: none !important;
  text-decoration: none !important;
  font-weight: 600;
  transition: all 0.2s ease;
}

/* Hover */
body.woocommerce-cart .wp-block-button__link.add_to_cart_button:hover,
body.woocommerce-cart .wc-block-grid__product-add-to-cart a:hover {
  background-color: #12aeb0 !important;
  color: #ffffff !important;
}
/* Empty cart product price */
body.woocommerce-cart .wc-block-grid__product-price {
  font-size: 20px !important;
  font-weight: 600 !important;
  color: #32373c !important;
  line-height: 1.4;
}

/* Checkout - Place Order button */
.wc-block-components-checkout-place-order-button,
button.wc-block-components-button.wp-element-button.wc-block-components-checkout-place-order-button.contained {
  background-color: #18c7c9 !important;
  color: #ffffff !important;
  border: none !important;
  text-decoration: none !important;
  box-shadow: none !important;
  transition: all 0.2s ease;
}

/* Inner text stays white */
.wc-block-components-checkout-place-order-button .wc-block-components-button__text,
.wc-block-components-checkout-place-order-button .wc-block-components-checkout-place-order-button__text {
  color: #ffffff !important;
}

/* Hover */
.wc-block-components-checkout-place-order-button:hover,
button.wc-block-components-button.wp-element-button.wc-block-components-checkout-place-order-button.contained:hover {
  background-color: #12aeb0 !important;
  color: #ffffff !important;
}

/* Hover text stays white */
.wc-block-components-checkout-place-order-button:hover .wc-block-components-button__text,
.wc-block-components-checkout-place-order-button:hover .wc-block-components-checkout-place-order-button__text {
  color: #ffffff !important;
}

/* Focus / active */
.wc-block-components-checkout-place-order-button:focus,
.wc-block-components-checkout-place-order-button:active {
  background-color: #12aeb0 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
/* Checkout terms links (Privacy Policy / Terms and Conditions) */
.wc-block-checkout__terms a,
.wc-block-components-checkbox__label a {
  color: #18c7c9 !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Hover state */
.wc-block-checkout__terms a:hover,
.wc-block-components-checkbox__label a:hover {
  color: #12aeb0 !important;
  text-decoration: underline;
}
/* Thank you page product links */
.woocommerce-order-details a,
.woocommerce-table__product-name a,
.product-name a {
  color: #18c7c9 !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

/* Hover state */
.woocommerce-order-details a:hover,
.woocommerce-table__product-name a:hover,
.product-name a:hover {
  color: #12aeb0 !important;
  text-decoration: underline;
}
/* Global content margin for Order Received / Thank You page */
.woocommerce-order-received .site-main,
.woocommerce-order-received .woocommerce,
.woocommerce-order-received .elementor-widget-theme-post-content,
.woocommerce-order-received .elementor-widget-container {
  padding-left: 4% !important;
  padding-right: 4% !important;
  box-sizing: border-box;
}
/* TRUST BADGES */
.relivious-checkout-trust {
    width: 100% !important;
    margin: 22px 0 18px !important;
    padding: 18px !important;
    border: 1px solid #d8eeee !important;
    border-radius: 10px !important;
    background: #f7fcfc !important;
    box-sizing: border-box !important;
}
.relivious-trust-item {
    display: block !important;
    margin-bottom: 14px !important;
    line-height: 1.4 !important;
}

.relivious-trust-item:last-child {
    margin-bottom: 0 !important;
}

.relivious-trust-item strong {
    display: block !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #1f3d4a !important;
    margin-bottom: 2px !important;
}

.relivious-trust-item span {
    display: block !important;
    font-size: 14px !important;
    color: #5a6d78 !important;
}

@media (max-width: 768px) {
    .wc-block-checkout__actions_row {
        display: flex !important;
        flex-direction: column-reverse !important;
        gap: 14px !important;
        align-items: stretch !important;
    }

    .wc-block-components-checkout-place-order-button {
        width: 100% !important;
    }

    .wc-block-components-checkout-return-to-cart-button {
        text-align: center !important;
        justify-content: center !important;
    }
}
/*Complet Secure Order" Button */
.wc-block-components-checkout-place-order-button__text {
    font-weight: 800 !important;
    font-size: 18px !important;
    letter-spacing: 0.2px !important;
    line-height: 1.2 !important;
}
.relivious-social-proof {
    text-align: center;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid #dfeeee;
}

.relivious-stars {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
    color: #20c5c7;
    letter-spacing: 2px;
}

.relivious-proof-text {
    font-size: 14px;
    color: #4f6572;
    line-height: 1.5;
    max-width: 420px;
    margin: 0 auto;
}
/* Relivious - Hide checkout marketing opt-in only */
.wc-block-components-checkbox {
    display: none !important;
}
/* Relivious - Checkout focus mode */

/* Hide footer on checkout */
body.woocommerce-checkout footer,
body.woocommerce-checkout .elementor-location-footer {
    display: none !important;
}

/* Hide checkout header navigation links */
body.woocommerce-checkout .elementor-location-header nav,
body.woocommerce-checkout .elementor-location-header .elementor-nav-menu,
body.woocommerce-checkout .elementor-location-header .elementor-menu-toggle,
body.woocommerce-checkout .elementor-location-header a[href*="/shop"],
body.woocommerce-checkout .elementor-location-header a[href*="/cart"],
body.woocommerce-checkout .elementor-location-header a[href*="/about"],
body.woocommerce-checkout .elementor-location-header a[href*="/contact"] {
    display: none !important;
}
/*Cacher Editorify*/
.efy-powered {
	display:none !important;
}
/* Hide default bulk discount table */
.awdr-bulk-customizable-table {
  display: none !important;
}

/* Relivious bundle display */
.relivious-bundle-display {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin: 18px 0;
}

.relivious-bundle-card {
  border: 1px solid #d9e4e6;
  border-radius: 12px;
  padding: 14px 16px;
  background: #ffffff;
}

.relivious-bundle-card strong {
  display: block;
  color: #203849;
  font-size: 18px;
  margin-bottom: 4px;
}

.relivious-bundle-card span {
  display: block;
  color: #2aaeb3;
  font-size: 17px;
  font-weight: 700;
}

.relivious-bundle-card em,
.relivious-bundle-card small {
  display: block;
  margin-top: 4px;
  font-style: normal;
  color: #51636f;
  font-size: 14px;
}

.relivious-bundle-best {
  border: 2px solid #2aaeb3;
  background: #f2fbfb;
}
/*CHECKOUT PAGE */
.relivious-checkout-persuasion {
  background: #f2fbfb;
  border: 1px solid #bfe8e8;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 24px;
  color: #203849;
}

.relivious-checkout-persuasion strong {
  display: block;
  font-size: 18px;
  margin-bottom: 8px;
}

.relivious-checkout-persuasion p {
  margin: 0 0 12px;
}

.relivious-checkout-persuasion ul {
  margin: 0;
  padding-left: 20px;
}