/* Hide Radio button */
.rate > input{
  display: none;
}

.rate{
  display: inline-block;;
  border: 0;
}

.rate > label{
  float: right;
}

/* Showing the stars */
.rate > label:before{
  display: inline-block;
  font-size: 1.1rem;
  font-family: FontAwesome;
  content: "\f005";
  margin:0;
  padding:0.3rem .2rem;
  cursor: pointer;
}

/* Half star */
.rate .half:before{
  content: "\f089";
  position: absolute;
  padding-right: 0;
}

/* Click and hover */
input:checked ~ label, label:hover ~ label{
  color: #ffb503;
}

/* hover hightlight */
input:checked + label:hover, input:checked ~ label:hover,input:checked ~ label:hover ~ label,
label:hover ~ input:checked ~ label{
  color: #cc9000;
}

.rating-star i{
  color: #ffb503 !important;
}

ul.thumb{
  margin:0 auto;
  padding: 0;
  float: left;
}
ul.thumb li{
  list-style: none;
  margin: 10px;
}
ul.thumb li img{
  width: 80px;
  height: 80px;
  border: 1px solid grey;
}

/* static/css/style.css */
#whatsapp-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    width: 60px;
    height: 60px;
}

#whatsapp-button img {
    width: 100%;
    height: 100%;
}

#whatsapp-chat {
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 1000;
    width: 300px;
    height: 430px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: white;
    display: none;
    flex-direction: column;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#whatsapp-chat header {
    background-color: #075E54;
    color: white;
    padding: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#whatsapp-chat header img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

#cancel-button {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
}

#whatsapp-chat main {
    flex-grow: 1;
    padding: 10px;
    overflow-y: auto;
}

.chat-bubble {
    background-color: #dcf8c6;
    padding: 10px;
    margin: 5px 0;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word; /* Ensure long words also break to next line */
}

.chat-bubble.customer {
    background-color: #ffffff;
    align-self: flex-end;
}

#input-container {
    display: flex;
    align-items: center;
    padding: 10px;
    border-top: 1px solid #ccc;
}

#input-container input {
    flex-grow: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 20px;
    margin-right: 10px;
    box-sizing: border-box;
    max-height: 60px; /* Set a maximum height to maintain structure */
    overflow-y: auto; /* Scroll if text exceeds input height */
}

#input-container button {
    background-color: #00E676;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

#input-container button img {
    width: 24px;
    height: 24px;
}
/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 20px;
    right: 20px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #128C7E;
    color: white;
    transform: scale(1.1);
}

/* Tooltip text */
.whatsapp-float::before {
    content: "Chat with us";
    position: absolute;
    right: 70px;
    background: #333;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

.whatsapp-float:hover::before {
    opacity: 1;
}

@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 15px;
        right: 15px;
    }
}

/* --- EDGEX NEW SEARCH BAR STYLES --- */

/* Container logic */
.edgex-search-container {
    width: 100%;
    padding: 10px 15px;
    background: #fff;
    display: flex;
    justify-content: center;
}

.edgex-search-form {
    display: flex;
    width: 100%;
    max-width: 600px; /* Limits width on desktop */
    height: 45px;
    background: #fff;
    border: 2px solid #007bff; /* Professional blue border */
    border-radius: 25px; /* Modern rounded look */
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.edgex-search-input {
    flex: 1;
    border: none;
    padding: 0 20px;
    outline: none;
    font-size: 16px;
    color: #333;
}

.edgex-search-button {
    width: 60px;
    background: #007bff;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

.edgex-search-button:hover {
    background: #0056b3;
}

/* --- MOBILE SPECIFIC --- */
@media (max-width: 768px) {
    .edgex-search-container {
        padding: 5px 10px;
    }

    .edgex-search-form {
        max-width: 100%; /* Use full width on phone */
        height: 40px;
    }

    .edgex-search-input {
        font-size: 14px;
        padding: 0 15px;
    }
}

/* --- FIX THE SLIDING ON MOBILE --- */
html, body {
    overflow-x: hidden !important;
    width: 100% !important;
}
