/*
Theme Name: Kimy
Theme URI: https://propulsoft.ca
Description: Child for Divi
Author: Devyent
Author URI: https://propulsoft.ca
Template: Divi
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kimy
Domain Path: /languages
*/

/* divi pixel ribbon */
.custom-ribbon-padding .dipi_timeline_ribbon {
    padding: 12px 20px;
}

/* gutter spacing between columns */
@media only screen and (min-width: 981px) {

.row-with-custom-gutters .et_pb_column {
		--num-cols: 4;
		--gutter-width: 1%;
	}
	
	.row-with-custom-gutters .et_pb_column:not(.et-last-child)  {
		margin-right: var(--gutter-width) !important;
	}
	
	.row-with-custom-gutters .et_pb_column  {
		width: calc((100% - (var(--gutter-width) * (var(--num-cols) - 1))) / var(--num-cols)) !important;
	}
}
/* Optional: align the title text to the left */
.slider-title-bottom .et_pb_slide_description h2 {
    text-align: left;
}
/* Move the slide content (title + text + button) to the top */
.slider-title-top .et_pb_slide_description {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding-top: 20px; /* adjust spacing from top */
    padding-bottom: 0;
    height: 100%;
}

/* Optional: align the title text to the left */
.slider-title-top .et_pb_slide_description h2 {
    text-align: left;
}

/* Dual Text (highlight-text) for H2 with Colfax */
.highlight-text {
    font-family: 'Colfax Medium', sans-serif;
    font-weight: 500;
    font-size: inherit; /* keeps same size as H2 */
    color: inherit; /* example: red, change as needed */
    display: inline-block;
}

/* Toggle on */
.toggle-on {
    display: flex;
    align-items: flex-start; /* Align icon + text at top if text wraps */
    font-size: 12px;
}
.toggle-on::before {
    content: '';
    display: inline-block;
    width: 26px;
    height: 14px; /* adjust if needed */
    background-image: url('https://previewyourwebdesign.com/wp-content/uploads/2025/06/toggle-on.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    margin-right: 10px;
    flex-shrink: 0;
    align-self: flex-start;
}
/* Toggle off */
.toggle-off {
    display: flex;
    align-items: flex-start; /* Align icon + text at top if text wraps */
    font-size: 12px;
}

.toggle-off::before {
    content: '';
    display: inline-block;
    width: 26px;
    height: 14px; /* adjust if needed */
    background-image: url('https://previewyourwebdesign.com/wp-content/uploads/2025/06/toggle-off.svg');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    margin-right: 10px;
    flex-shrink: 0;
    align-self: flex-start;
}


/* ".vertical-align" Makes content vertically align */
.vertical-align { 
    display: flex; 
    flex-direction: column; 
    justify-content: center;
}

/* ".bottom-align" Makes content bottom align */
.bottom-align { 
    display: flex; 
    flex-direction: column; 
    justify-content: bottom;
}
/* CHAT BUBBLE STYLE WITH ICON ON RIGHT + CUSTOM RADIUS */
.et_pb_blurb.chat-bubble-blurb .et_pb_blurb_container {
    background-color: #f0f0f0;
    border-radius: 20px 5px 20px 20px; /* your requested radius */
    padding-top: 10px !important;
    padding-bottom: 12px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100%;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* soft drop shadow */
    min-height: 0 !important;
    height: auto !important;
}

.et_pb_blurb.chat-bubble-blurb .et_pb_blurb_container::before {
    content: "";
    position: absolute;
    top: 15px;
    right: -10px; /* bubble tail on right */
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent transparent #f0f0f0;
}

.et_pb_blurb.chat-bubble-blurb .et_pb_main_blurb_image {
    flex-shrink: 0 !important;
    width: 40px !important;
    min-width: 40px !important;
    height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.et_pb_blurb.chat-bubble-blurb .et_pb_main_blurb_image img {
    width: 40px !important;
    height: auto !important;
    max-width: none !important; /* prevent Divi forcing it smaller */
}

.et_pb_blurb.chat-bubble-blurb .et_pb_blurb_container h4 {
    margin-top: -30px; /* pull title upward */
    margin-bottom: 10px; /* spacing below title */
    background: transparent; /* no background on title */
    position: relative;
    z-index: 2;
}

/* FIX paragraph inside bubble */
.et_pb_blurb.chat-bubble-blurb .et_pb_blurb_description p {
    margin: 0 !important;
    line-height: 1.4 !important;
    padding: 0 !important;
}

/* Keep content wrapper flex for proper icon alignment */
.et_pb_blurb.chat-bubble-blurb .et_pb_blurb_content {
    display: flex !important;
    flex-direction: row-reverse !important; /* icon on right */
    align-items: flex-start !important; /* align top */
    padding: 0 !important;
    margin: 0 !important;
    height: auto !important;
    min-height: 0 !important;
}

/* Force description wrapper to shrink to content */
.et_pb_blurb.chat-bubble-blurb .et_pb_blurb_description {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1.4 !important;
    height: auto !important;
    min-height: 0 !important;
}

/* General min-height neutralization on all levels */
.et_pb_blurb.chat-bubble-blurb {
    min-height: 0 !important;
    height: auto !important;
}

/* CHAT BUBBLE STYLE WITH ICON ON RIGHT + CUSTOM RADIUS for KMPLUS */
.et_pb_blurb.chat-bubble-blurb-kmplus .et_pb_blurb_container {
    background: radial-gradient(circle at top right, #9b348c 0%, #000000 99%);
    border-radius: 5px 20px 20px 20px; /* your requested radius */
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    max-width: 100%;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1); /* soft drop shadow */
}
.et_pb_blurb.chat-bubble-blurb-kmplus .et_pb_main_blurb_image {
    flex-shrink: 0 !important;
    width: 40px !important;
    min-width: 40px !important;
    height: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.et_pb_blurb.chat-bubble-blurb-kmplus .et_pb_main_blurb_image img {
    width: 40px !important;
    height: auto !important;
    max-width: none !important; /* prevent Divi forcing it smaller */
}

.et_pb_blurb.chat-bubble-blurb-kmplus .et_pb_blurb_container h4 {
    margin-top: -30px; /* pull title upward */
    margin-bottom: 10px; /* spacing below title */
    background: transparent; /* no background on title */
    position: relative;
    z-index: 2;
}
/* === 6 COLUMN ROW → 3 COLUMNS ON MOBILE (USE CLASS: three_on_mobile) === */
/* Apply class "three_on_mobile" to your Divi row (ex: .et_pb_row_6col.three_on_mobile) */

@media (max-width: 479px) {
    .et_pb_section .et_pb_row_6col.three_on_mobile > .et_pb_column.et_pb_column_1_6 {
        width: 33.33% !important;
        margin-right: 0 !important;
    }
    .et_pb_section .et_pb_row_6col.three_on_mobile > .et_pb_column.et_pb_column_1_6:nth-of-type(3n) {
        width: 33.33% !important;
        margin-right: 0 !important;
    }
}
/* Button color change when header becomes sticky */
.et-fixed-header .et_pb_button.sticky-toggle-border-btn {
  border-color: black !important;
  color: black !important;
}

/* Make column a flexbox and push image + button to bottom */
.column-align-bottom {
    display: flex;
    flex-direction: column;
}

.column-align-bottom .et_pb_image,
.column-align-bottom .et_pb_button_module_wrapper {
    margin-top: auto;
}

.check-icon-text {
    display: flex;
    align-items: center;
    font-size: 12px;
}

.check-icon-text::before {
    content: '✔'; /* Check mark */
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 20px;
    height: 20px;
    font-size: 14px;
    background-color: #7f99b2;
    color: #000000;
    border-radius: 50%;
    margin-right: 10px;
    line-height: 1;
}
/* ============================
   KM+ Chat Styling — CLEAN
   ============================ */

/* Base chat bubble */
div.chat-message {
  display: block;
  width: fit-content;
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 25px;
  border-top-left-radius: 8px !important;
  margin: 12px auto;
  font-family: "Colfax Light", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
  text-align: left;
  box-shadow:
    rgba(0, 0, 0, 0.15) 0px 0.6px 0.54px -1.33px,
    rgba(0, 0, 0, 0.13) 0px 2.29px 2.06px -2.67px,
    rgba(0, 0, 0, 0.08) 0px 12px 14px -4px;
}

/* BOT bubble (Kimy) */
div.chat-message.chat-message-from-bot {
  background: #fff !important;
  color: #000 !important;
  border-radius: 25px !important;
  border-top-left-radius: 8px !important;
  position: relative; /* desktop avatar */
}

/* Make bot text black */
div.chat-message.chat-message-from-bot * {
  color: #000 !important;
}

/* USER bubble */
div.chat-message.chat-message-from-user {
  background: #000 !important;
  color: #fff !important;
  border-radius: 18px !important;
  border-top-right-radius: 5px !important;
}

/* Stack messages */
div.chat-message + div.chat-message {
  margin-top: 10px;
}

/* BOT AVATAR (DESKTOP) */
div.chat-message.chat-message-from-bot::before {
  content: "";
  position: absolute;
  left: -52px;  /* icon OUTSIDE bubble */
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: #000;
  border-radius: 50%;
  background-image: url('https://previewyourwebdesign.com/wp-content/uploads/2025/11/icon-chat-bot-kimy.svg');
  background-size: 60%;
  background-repeat: no-repeat;
  background-position: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* CLAIM CONTAINER + CHAT WINDOW */
.claim-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#chat-agent {
  max-height: 70vh;
  width: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
}

/* DIVI SECTION BACKGROUND */
#kmplus-claim-bg {
  position: relative;
  overflow: hidden !important;
  background: #f2f2f2;
}

#kmplus-claim-bg::before,
#kmplus-claim-bg::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgba(60, 0, 117, 0.22) 0%,
    rgba(60, 0, 117, 0) 70%
  );
  filter: blur(60px);
  animation: floatGradient 14s ease-in-out infinite;
  z-index: 0;
}

#kmplus-claim-bg::before {
  top: -220px;
  left: -160px;
}

#kmplus-claim-bg::after {
  bottom: -220px;
  right: -160px;
  animation-delay: 5s;
}

@keyframes floatGradient {
  0% { transform: translate(0px, 0px) scale(1); }
  25% { transform: translate(80px, -60px) scale(1.15); }
  50% { transform: translate(-60px, 80px) scale(0.95); }
  75% { transform: translate(40px, 40px) scale(1.1); }
  100% { transform: translate(0px, 0px) scale(1); }
}

/* ============================
   MOBILE: ICON INSIDE BUBBLE
   ============================ */

@media (max-width: 768px) {

  /* Bot bubble becomes a flex row with icon INSIDE */
  div.chat-message.chat-message-from-bot {
    display: inline-flex;
    align-items: flex-start;
    justify-content: center;
    max-width: 90%;
    padding-left: 16px;
  }

  /* Avatar moves INSIDE bubble */
  div.chat-message.chat-message-from-bot::before {
    position: static;
    transform: none;
    margin-right: 10px;
    width: 40px;
    height: 40px;
    flex: 0 0 40px; /* prevents squeezing */
  }

  /* Slightly wider bubbles */
  div.chat-message {
    max-width: 90%;
  }
}
/* ============================
   KM+ – Chat input bar (ChatGPT-style)
   ============================ */

/* Footer area of the chat (where the input lives) */
#chat-agent .chat-footer {
  padding: 12px 16px;
  border-top: 1px solid #e5e5e5;
  background: transparent;
}

/* Wrapper around textarea + buttons */
#chat-agent .chat-inputs {
  position: relative;           /* so buttons can sit inside the pill */
  display: block;
  max-width: 700px;
  margin: 0 auto;
}

/* The textarea pill */
#chat-agent .chat-inputs textarea {
  width: 100%;
  box-sizing: border-box;
  border-radius: 999px;         /* pill shape */
  border: 1px solid #d4d4d8;
  background: #f4f4f5;
  padding: 12px 48px;           /* room left + right for icons */
  min-height: 52px;
  max-height: 140px;
  resize: none;
  outline: none;
  font-family: "Colfax light", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.4;
  color: #111827;
}

/* Remove ugly resize handle on WebKit */
#chat-agent .chat-inputs textarea::-webkit-resizer {
  display: none;
}

/* Generic style for the 2 buttons (attach + send) */
#chat-agent .chat-inputs button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  padding: 0;
  margin: 0;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* LEFT button (attachment / +) */
#chat-agent .chat-inputs button:first-of-type {
  left: 14px;
  background: transparent;
}

/* RIGHT button (send) */
#chat-agent .chat-inputs button:last-of-type {
  right: 14px;
  background: #000000;
  color: #ffffff;
}

/* Make any SVG or IMG icons inside fit nicely */
#chat-agent .chat-inputs button svg,
#chat-agent .chat-inputs button img {
  width: 70%;
  height: 70%;
}

/* Mobile: keep everything comfy */
@media (max-width: 768px) {
  #chat-agent .chat-footer {
    padding: 10px 12px;
  }

  #chat-agent .chat-inputs textarea {
    font-size: 13px;
    padding: 10px 44px;
  }

  #chat-agent .chat-inputs button {
    width: 26px;
    height: 26px;
  }

  #chat-agent .chat-inputs button:first-of-type {
    left: 10px;
  }

  #chat-agent .chat-inputs button:last-of-type {
    right: 10px;
  }
}