.elementor-18234 .elementor-element.elementor-element-af0f03b{--display:flex;}/* Start custom CSS *//* CalmInd solution layout */
.cm-solution-wrap{
  max-width: 1100px;
  margin: 0 auto;
}

.cm-solution-grid{
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  gap: 22px;
  align-items: start;
  margin-top: 18px;
}

.cm-card{
  border: 1px solid #e7e7e7;
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}

.cm-card--primary{
  border-width: 2px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  transform: translateY(-2px);
}

.cm-head{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.cm-dot{
  width: 14px;
  height: 14px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.cm-dot--green{ background: #22c55e; }
.cm-dot--blue{ background: #3b82f6; }
.cm-dot--red{ background: #ef4444; }

.cm-label{
  font-size: 13px;
  font-weight: 800;
  color: #111;
  line-height: 1.2;
}

.cm-role{
  font-size: 13px;
  color: #555;
  margin: -2px 0 12px 24px;
}

/* Make the product block look clean inside our card */
.cm-card .woocommerce{
  margin: 0;
}
.cm-card .product{
  margin: 0 !important;
}
.cm-card .woocommerce ul.products{
  margin: 0 !important;
}
.cm-card .woocommerce ul.products li.product{
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
}

/* Image sizing */
.cm-card .woocommerce ul.products li.product a img{
  max-height: 280px;
  width: auto;
  margin: 0 auto 10px;
  object-fit: contain;
}

/* Title & price alignment */
.cm-card .woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-size: 16px;
  font-weight: 800;
  text-align: center;
  margin: 10px 0 6px;
}
.cm-card .woocommerce ul.products li.product .price{
  text-align: center;
  font-weight: 700;
  margin-bottom: 10px;
}

/* Button */
.cm-card .woocommerce ul.products li.product .button{
  width: 100%;
  text-align: center;
  border-radius: 10px;
  font-weight: 800;
  padding: 12px 14px;
}

/* Slightly different button emphasis for primary */
.cm-card--primary .woocommerce ul.products li.product .button{
  box-shadow: 0 10px 18px rgba(34,197,94,0.18);
}

/* Mobile */
@media (max-width: 980px){
  .cm-solution-grid{
    grid-template-columns: 1fr;
  }
  .cm-card--primary{
    transform: none;
  }
  .cm-role{
    margin-left: 0;
  }
}

/* Fix Woo products shortcode layout inside our cards on mobile */
@media (max-width: 768px){

  /* Ensure the product item takes full width and is centered */
  .cm-card .woocommerce ul.products li.product{
    width: 100% !important;
    max-width: 420px;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
    display: block !important;
  }

  /* Remove weird left spacing that some themes add */
  .cm-card .woocommerce ul.products{
    padding-left: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Center everything inside the card */
  .cm-card{
    padding: 16px;
  }
  .cm-card .woocommerce ul.products li.product a,
  .cm-card .woocommerce ul.products li.product .price,
  .cm-card .woocommerce ul.products li.product .button{
    text-align: center !important;
  }

  /* Make image nicely centered */
  .cm-card .woocommerce ul.products li.product a img{
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}

/* ===============================
   CALMIND – PRODUCT SOLUTION CARDS
   =============================== */

/* Card base */
.cm-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 20px;
  position: relative;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

.cm-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0,0,0,0.08);
}

/* Primary (Essentials) */
.cm-card--primary {
  border: 2px solid #6b8e23;
  background: #f7f9f2;
}

/* Badge */
.cm-badge {
  position: absolute;
  top: -12px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.cm-badge--primary {
  background: #6b8e23;
}

.cm-badge--secondary {
  background: #5f8fc9;
}

/* Role text */
.cm-role {
  margin-top: 8px;
  font-size: 14px;
  color: #555;
  text-align: center;
}

/* ===============================
   WooCommerce product inside card
   =============================== */

.cm-card .woocommerce ul.products {
  margin: 0 !important;
  padding: 0 !important;
}

.cm-card .woocommerce ul.products li.product {
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
}

.cm-card .woocommerce-loop-product__title {
  text-align: center;
  font-size: 16px;
}

.cm-card .price {
  text-align: center;
}

.cm-card .button {
  display: block;
  margin: 12px auto 0;
}

/* Center image */
.cm-card img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* ===============================
   MOBILE FIXES (IMPORTANT)
   =============================== */

@media (max-width: 768px){

  /* Full width card */
  .cm-card {
    padding: 16px;
  }

  /* Force product to be centered and full width */
  .cm-card .woocommerce ul.products li.product {
    width: 100% !important;
    max-width: 420px;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
  }

  /* Remove left grid spacing */
  .cm-card .woocommerce ul.products {
    padding-left: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  /* Center all text */
  .cm-card .woocommerce-loop-product__title,
  .cm-card .price,
  .cm-card .button {
    text-align: center !important;
  }

  /* Clamp title to 2 lines */
  .cm-card .woocommerce-loop-product__title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Extra emphasis for primary on mobile */
  .cm-card--primary {
    box-shadow: 0 12px 28px rgba(0,0,0,0.10);
  }
}

/* === FORCE WOODMART PRODUCTS GRID TO 1 COLUMN (only inside .cm-pcard) === */
@media (max-width: 768px){

  /* The Woodmart wrapper that creates columns */
  .cm-pcard .wd-products{
    --wd-col-xs: 1 !important;
    --wd-col-sm: 1 !important;
    --wd-col: 1 !important;
    --wd-gap-xs: 0px !important;
    --wd-gap-sm: 0px !important;

    display: block !important;
    width: 100% !important;
  }

  /* Sometimes Woodmart uses classes like wd-grid-g / elements-grid */
  .cm-pcard .wd-products.wd-grid-g,
  .cm-pcard .wd-products.elements-grid{
    grid-template-columns: 1fr !important;
  }

  /* The product card itself */
  .cm-pcard .wd-product,
  .cm-pcard .product-grid-item{
    width: 100% !important;
    max-width: 420px;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Center content */
  .cm-pcard .wd-product *{
    box-sizing: border-box;
  }

  .cm-pcard .woocommerce-loop-product__title,
  .cm-pcard .price,
  .cm-pcard .button{
    text-align: center !important;
  }

  .cm-pcard img{
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Button not full edge-to-edge */
  .cm-pcard .button{
    max-width: 320px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}


/* === Restore dots before labels in cm-head === */
.cm-head{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.cm-label{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: #222;
  line-height: 1.2;
}

/* === ICONS instead of dots for labels === */

.cm-label{
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 14px;
  color: #222;
}

/* Base icon */
.cm-label::before{
  content: "";
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

/* PRIMARY – Essentials */
.cm-card--primary .cm-label::before{
  content: "🧠";
  background: #eaf6ef;
}

/* SECONDARY – focused / long-term */
.cm-card:not(.cm-card--primary) .cm-label::before{
  content: "🧩";
  background: #eef2ff;
}


/* === SOLUTION LAYOUT === */

.cm-solution-primary {
  max-width: 420px;
  margin: 0 auto 24px;
}

.cm-solution-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* Tablet */
@media (max-width: 1024px){
  .cm-solution-secondary{
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Mobile */
@media (max-width: 640px){
  .cm-solution-secondary{
    grid-template-columns: 1fr;
  }
}/* End custom CSS */