.elementor-839 .elementor-element.elementor-element-574a9f4{--display:flex;--justify-content:center;--align-items:center;--container-widget-width:calc( ( 1 - var( --container-widget-flex-grow ) ) * 100% );}.elementor-839 .elementor-element.elementor-element-acdbbcc{--display:flex;}.elementor-839 .elementor-element.elementor-element-2b92940{--display:flex;}.elementor-839 .elementor-element.elementor-element-b6efcf3{text-align:center;}.elementor-839 .elementor-element.elementor-element-b4838bf{text-align:center;}.elementor-839 .elementor-element.elementor-element-6f304c9{--display:flex;}/* Start custom CSS for html, class: .elementor-element-2ad8209 */:root {
        --weight-widget-primary: #2c1a57; /* Main color (slider thumb, weight display) */
        --weight-widget-secondary: #e6e1f7; /* Slider track and light UI elements */
        --weight-widget-background: rgba(236, 233, 252, 0.8); /* Box background */
        --weight-widget-text: #2c1a57; /* Text color */
        --weight-widget-font: Arial, sans-serif;
    }

    .weight-loss-widget {
        text-align: center;
        font-family: var(--weight-widget-font);
        display: flex;
        flex-direction: column;
        align-items: center;
        max-width: 400px; /* Ensures widget doesn’t stretch too wide */
        margin: 0 auto;
    }

    .weight-container {
        font-size: 18px;
        font-weight: bold;
        color: var(--weight-widget-text);
        margin-bottom: 10px;
    }

    .weight-display {
        background-color: var(--weight-widget-primary);
        color: white;
        padding: 10px 20px;
        border-radius: 20px;
        font-size: 22px;
        font-weight: bold;
        display: inline-block;
        margin-top: 5px;
    }

    .slider-container {
        width: 100%;
        max-width: 350px;
        margin: 20px auto;
        position: relative;
    }

    input[type="range"] {
        -webkit-appearance: none;
        width: 100%;
        height: 8px;
        border-radius: 4px;
        background: var(--weight-widget-secondary);
        outline: none;
        opacity: 0.9;
        transition: opacity .15s ease-in-out;
    }

    input[type="range"]::-webkit-slider-thumb {
        -webkit-appearance: none;
        appearance: none;
        width: 35px;
        height: 35px;
        background: var(--weight-widget-primary);
        border-radius: 50%;
        cursor: pointer;
        transition: 0.2s;
    }

    input[type="range"]::-moz-range-thumb {
        width: 35px;
        height: 35px;
        background: var(--weight-widget-primary);
        border-radius: 50%;
        cursor: pointer;
    }

    .result-box {
        background-color: var(--weight-widget-background);
        padding: 15px 25px;
        border-radius: 30px;
        font-size: 20px;
        font-weight: bold;
        color: var(--weight-widget-text);
        text-align: center;
        margin-top: 20px;
        max-width: 300px; /* Prevents full width */
        width: 100%;
    }

    .result-box span {
        font-size: 26px;
        font-weight: bold;
        color: var(--weight-widget-text);
    }/* End custom CSS */
/* Start custom CSS for html, class: .elementor-element-59447c3 */:root {
  --color-primary: #f29c4f;
  --color-secondary: #f8eee5;
  --color-accent: #f3d7bd;
  --color-text: black;
  --color-error: red;
}

#bmi-calculator .form {
  background-color: #fff;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  margin: 20px auto;
  padding: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid var(--color-primary);
}

#bmi-calculator .text-input {
  width: 100%;
  height: 40px;
  margin: 10px 0;
  padding: 0 12px;
  border: 1px solid var(--color-secondary);
  border-radius: 8px;
  background-color: var(--color-secondary);
  font-size: 16px;
  color: var(--color-text);
  box-sizing: border-box;
}

#bmi-calculator .text-input:focus {
  border-color: var(--color-primary);
  outline: none;
  background-color: #eef7ff;
}

#bmi-calculator .row-gender {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
}

.toggle-label {
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.toggle-label input {
  display: none;
}

.toggle-label .slider {
  width: 60px;
  height: 30px;
  background-color: var(--color-secondary);
  border-radius: 20px;
  position: relative;
  cursor: pointer;
  transition: 0.3s ease;
}

.toggle-label .slider::before {
  content: "";
  width: 22px;
  height: 22px;
  background-color: #fff;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 4px;
  transform: translateY(-50%);
  transition: 0.3s ease;
}

.toggle-label input:checked + .slider {
  background-color: var(--color-primary);
}

.toggle-label input:checked + .slider::before {
  transform: translate(26px, -50%);
}

.toggle-label span {
  font-size: 16px;
  color: var(--color-text);
}

#bmi-calculator #submit {
  width: 100%;
  height: 40px;
  background-color: var(--color-primary);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#bmi-calculator #submit:hover {
  background-color: var(--color-accent);
}

#bmi-calculator #result {
  font-size: 18px;
  margin-top: 20px;
  text-align: center;
  color: var(--color-primary);
}/* End custom CSS */