      html, body {
      margin: 0;
      padding: 0;
      font-family: sans-serif;
      height: 100%;
      overflow: hidden;
      background: #f4f6fb;
      -webkit-overflow-scrolling: touch;
    }
   .user {
      background: #007bff;
      color: white;
      align-self: flex-end;
    }

    .chat-wrapper {
max-width: 400px;
  margin: auto;
  display: flex;
  flex-direction: column;
  height: 100dvh;
  border: 1px solid #ddd;
  border-radius: 20px 20px 0 0;
 
  background: #fff;

    }
    .chat-header {
      background: #4baf4f;
      color: white;

      padding: 12px;
      font-weight: bold;
      position: relative;
    }
    .chat-messages {
       flex: 1;
  padding: 12px;
  overflow-y: auto;
  /* Space for input */
    }
    .chat-msg {
      display: flex;
      align-items: center;
      margin-bottom: 20px;margin-top:20px;
    }
    .chat-msg img {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      margin-right: 8px;
    }
    .bubble {
      background: #f1f4fb;
      padding: 12px 16px;
      border-radius: 18px;
      font-size: 14px;    font-style: italic;
      color: #333;
      max-width: 80%;
      line-height: 1.5;
    }
    .chat-response {
      display: flex;
      justify-content: flex-end;
     
    }
    .response-btn {
      border: 2px solid #4baf4f;
      background: white;
      color: #4baf4f;
      padding: 6px 20px;
      border-radius: 20px;
      font-weight: bold;
      font-style: italic;
      cursor: pointer;

  
    }
    .chat-input {
position: sticky;
  bottom: 0;

  width: 100%;
  max-width: 384px;
  background: white;
  border-top: 1px solid #ddd;
  display: flex;
  padding: 10px;
  z-index: 1000;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);


    }
	
	
.chat-input.hidden {
  transform: translateX(-50%) translateY(100%);
  opacity: 0;
}
@keyframes slideUp {
  from {
    transform: translateX(-50%) translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
  }
}


    .chat-input input {
      flex: 1;
      padding: 10px;
      border: none;
      border-radius: 20px;
      outline: none;
      background: #f4f6fb;
      margin-right: 10px;border: 2px solid #4baf4f;
    }
    .chat-input button {
      background: #4baf4f;
      color: white;
      border: none;
      border-radius: 50%;
      width: 40px;
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
    }
	
	.chat-options {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}

#selectbrand{
	flex-direction: column;
}
#selectbrandd  {
	flex-direction: column; margin-bottom:0;
}
#selectbrandd  .brand-option{ margin-bottom:0;}
.chat-options input[type="radio"] {
    display: none;
}
#selectbrandd  label{
	    align-items: flex-start;
}
.chat-options input[type="radio"]:checked + label {
    background-color: #4baf4f;    border-color: #4baf4f;
    color: white;}
    
.chat-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #f1f1f1;
    color: #333;
    padding:8px 20px; 
    border-radius: 20px;
    cursor: pointer;
    border: 1px solid #bab4b4;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
	    margin-bottom: 20px;
}
	.chat-options input[type="radio"]:checked + label::before {
    background-color: white;
}

#selectbrand_radio {
    display: flex;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
#selectbrand_radio label{margin-bottom:10px;}
#selectbrandd label{margin-bottom:0 !Important;}
#selectbrand label::before{display:none;}
#selectbrand label{padding:20px; }
  .chat-option {
       display: flex;
     flex-wrap: wrap; 
    gap: 10px;
    margin: 20px 0;
    justify-content: center;
    align-items: center;
    }
    .option-card {
      width: 100px;
      border: 2px solid transparent;
      border-radius: 12px;
      text-align: center;
      padding: 6px;
      font-size: 13px;
    }
    .option-card.selected {
      border-color: #7f5af0;
    }
    .option-card img {
      width: 100%;
      border-radius: 8px;
    }.brand-option {
  width: 100px;
  padding: 10px;
  border: 2px solid #333;
  border-radius: 15px;
  text-align: center;
  cursor: pointer;
  transition: border 0.3s ease;
  position: relative;
}

.brand-option img {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 8px;
}

.brand-option input[type="radio"] {
  display: none;
}

.dot {
  width: 10px;
  height: 10px;
  margin: auto;
  border-radius: 50%;
  background-color: #ccc;
}

.blue-dot { background-color: #4d79ff; }
.yellow-dot { background-color: #ffd966; }
.pink-dot { background-color: #f5ccd6; }

.label-text {
  font-size: 14px;

}
	.chat-options label::before {
    content: '';
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #ccc; border:1px solid #CCC;
    display: inline-block;
    transition: all 0.3s ease;
}
.brand-option.selected {
  border-color: #7f5af0;
  box-shadow: 0 0 5px rgba(127, 90, 240, 0.5);
}.chat-option {
  display: flex;
  gap: 20px;
 
  justify-content: flex-start;
}

.brand-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  border: 2px dashed #333;
  border-radius: 10px;
  padding: 10px;
  cursor: pointer;
  transition: 0.3s ease;
  width: 150px;
  position: relative;
}

.brand-option img {
  width: 100%;
  height: auto;
  margin-bottom: 8px;
  border-radius: 6px;
}

.brand-option input[type="radio"] {
  display: none;
}

/* Dot style */
.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #999;
  
}

/* Dot Colors */
.blue-dot {
  background-color: #755dd4;
  border-color: #755dd4;
}

.yellow-dot {
  background-color: white;
  border-color: #333;
}

.pink-dot {
  background-color: white;
  border-color: #333;
}

/* Label text */
.label-text {
  font-size: 14px;
  font-weight: 500;
  color: #333;
}

/* Borders for each card */
.blue-border {
  border-color: #d6e8ff;
  background-color: #f3f9ff;
}

.yellow-border {
  border-color: #ffeaa7;
  background-color: #fff8e1;
}

.pink-border {
  border-color: #ffddee;
  background-color: #fff1f7;
}

/* Selected style */
input[type="radio"]:checked + img + .dot {
  background-color: #755dd4;
  border-color: #755dd4;
}

input[type="radio"]:checked + img + .dot + .label-text {
  color: #755dd4;
  font-weight: bold;
}
.label-row {
  display: flex;
  align-items: center;
  gap: 6px; /* space between dot and text */
}
.rating-wrapper {
  display: flex;
  gap: 10px;
  padding: 0px;


  justify-content: center;
  flex-wrap: wrap;
}
.chat-messages{    background: url(bg.png);
    background-size: cover;
    background-repeat: no-repeat;}
.chat_bubble .bubble {
 
    padding: 12px 12px;
    border-radius: 18px;
    font-size: 12px;
    font-style: italic;
    color: #333;
    max-width: 100%;
    line-height: 1.5;
}
.emoji-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease;
  cursor: pointer;
}

.emoji-block:hover {
  transform: scale(1.1);
}

.emoji {
  font-size: 20px;
  margin-bottom: 8px;
}

.red { color: #e74c3c; }
.orange { color: #f39c12; }
.yellow { color: #f1c40f; }
.green { color: #2ecc71; }
.darkgreen { color: #27ae60; }

.stars i {
  font-size:8px;
  color: #bbb;
  transition: color 0.2s ease;
}

.stars i.active {
  color: orange;
}

.emoji-block.active .emoji {
      transform: scale(1.3);
    border: 3px solid #7f5af0;
    border-radius: 100%;
}
  .chat-option {
      display: flex;
      gap: 20px;
      justify-content: center; flex-direction: column;
    }

    .brand-option {
      display: flex;
      flex-direction: column;
      align-items: center;
      border: 2px dashed #ddd;
      border-radius: 12px;
      padding: 10px;
      width: 85%;
      position: relative;
      cursor: pointer;
      transition: 0.3s ease;
      background: #fff;
    }

    .brand-option img {
      width: 100%;
      border-radius: 6px;
      margin-bottom: 10px;
	  min-height: 150px;
    }

    .brand-option input[type="radio"] {
      display: none;
    }

    .label-row {
      display: flex;
      align-items: center;
      gap: 6px;
    }

    .dot {
      width: 16px;
      height: 16px;
      border-radius: 50%;
      border: 2px solid #999;
    }

    .label-text {
      font-size: 14px;
      font-weight: 500;
      color: #333;
      transition: color 0.3s ease;
    }

    /* Dot Colors */
    .blue-dot { background: #13CEE4; border-color: #ddd; }
    .yellow-dot { background: #FEF8D7; border-color: #ddd; }
    .pink-dot   { background: #FDEDFA; border-color: #ddd; }

    /* Active border + text color */
    .brand-option:has(input[type="radio"]:checked) {
      border-color: #4BAF4F; 
      box-shadow: 0 0 5px rgba(127, 90, 240, 0.5);
    }

    .brand-option:has(input[type="radio"]:checked) .label-text {
      color: #4BAF4F;
      font-weight: bold;
    }

    .brand-option:has(input[type="radio"]:checked) .dot {
      box-shadow: 0 0 0 2px #4BAF4F;
    }
	
	.dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #999;
  background-color: #fff;
  transition: background 0.3s ease, border 0.3s ease;
}

/* Fill dot with brand color on selection */
.brand-option:has(input[type="radio"]:checked) .blue-dot {
  background-color: #eaffea;
  border-color: #4BAF4F;
}

.brand-option:has(input[type="radio"]:checked) .yellow-dot {
  background-color: #eaffea;
  border-color: #4BAF4F;
}

.brand-option:has(input[type="radio"]:checked) .pink-dot {
  background-color: #eaffea;
  border-color: #4BAF4F;
}

.brand-option:has(input[type="radio"]:checked) {
  background-color: #eaffea; /* light purple background */
  border: 2px solid #4BAF4F;
}

 #chat-footer {
    padding: 10px;
    background-color: #eee;
  }

  #camera-btn {
    cursor: pointer;
    font-size: 20px;
  }

 

  #camera-view, #photo-result {
      display: none;
      margin-top: 10px;
    }

    video, canvas {
      width: 100%;
      border-radius: 4px;
    }

    #camera-controls {
      margin-top: 5px;
      display: flex;
      gap: 10px;
    }

    button.capture, button.stop {
      flex: 1;
      padding: 5px;
      font-size: 14px;
      cursor: pointer;
    }
	
	#photo-result {
      display: none;
      margin-top: 10px;height: 200px;
    }





  #camera-stream {
    width: 100%;
    height: auto;
    max-height: 80%;
    object-fit: cover;
  }


  #camera-controls button {
    width: 45px;
    height: 45px;
    border-radius: 100px;
    color: #333;
    border: none;
    font-size: 14px;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.2s ease;
  }

  #camera-controls button:active {
    transform: scale(0.9);
  }

  .capture {
    background: #4CAF50;
    color: white;
  }

  .stop {
    background: #f44336;
    color: white;
  }

 #photo-canvas {
    width: 100%;      /* make it responsive */
    max-width: 100%; /* or any fixed width */
    height: 200px;     /* keep aspect ratio */
    border: 2px solid #333;
    border-radius: 10px;
  }
  
  
    
.typing-loader span {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: #aaa;
  border-radius: 50%;
  margin: 0 2px;
  animation: bounce 1s infinite ease-in-out;
}
.message-bubble{
    background: #fff;
    width: 70px;
    border-radius: 100px;
    padding: 10px;
    box-shadow: 2px 3px 4px #a19d9d;
}
.typing-loader span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-loader span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); }
}
  
  .rating-gradient {
    display: flex
;
    justify-content: space-between;
    background: linear-gradient(to right, #ff4e4e, #ff9800, #ffeb3b, #8bc34a, #4caf50);
    border-radius: 20px;
    overflow: hidden;
    font-weight: bold;
    margin: 10px 0 0 0;
}.rating-gradient span {
    flex: 1;
    text-align: center;
    padding: 2px 0;
    color: black;font-size: 14px;
}
.rating-circles {
    display: flex
;
    justify-content:space-around;
    margin-bottom: 5px;
}
.rating-box {
    width: 285px;
    padding: 5px;
    border-radius: 10px;
    text-align: center;
}
.chat_bubble .bubble {
    padding: 12px 12px;
    border-radius: 18px;
    font-size: 12px;
    font-style: italic;
    color: #333;
    max-width: 100%;    margin-left: 40px;
    line-height: 1.5;
}
.rating-input {
    display: none;
}
.rating-label {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #ccc;
    background-color: white;
    display: inline-block;
    cursor: pointer;
    position: relative;
}

.rating-input:checked + .rating-label {
    background-color: #4caf50;
    border-color: #4caf50;
}

.age_verify_img
{
    width: 100% !important;
    height: auto !important;
    border-radius: 0 !important;
}





