/* Import Google Font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

:root {
  /* Dark mode colors */
  --text-color: #E3E3E3;
  --subheading-color: #828282;
  --placeholder-color: #A6A6A6;
  --primary-color: #242424;
  --secondary-color: #383838;
  --secondary-hover-color: #444;
}

.light_mode {
  /* Light mode colors */
  --text-color: #222;
  --subheading-color: #A0A0A0;
  --placeholder-color: #6C6C6C;
  --primary-color: #FFF;
  --secondary-color: #E9EEF6;
  --secondary-hover-color: #DBE1EA;
}

body {
  background: var(--primary-color);
}

.header, .chat-list .message, .typing-form {
  margin: 0 auto;
  max-width: 980px;
}

.header {
  margin-top: 6vh;
  padding: 1rem;
  overflow-x: hidden;
  
}

body.hide-header .header {
  margin: 0;
  display: none;
}

.header :where(.title, .subtitle) {
  color: var(--text-color);
  font-weight: 500;
  line-height: 4rem;
}

.header .title {
  width: fit-content;
  font-size: 3rem;
  background-clip: text;
  background: linear-gradient(to right, #4285f4, #d96570);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header .subtitle {
  font-size: 2.6rem;
  color: var(--subheading-color);
}

.suggestion-list {
  width: 100%;
  list-style: none;
  display: flex;
  gap: 1.25rem;
  margin-top: 9.5vh;
  overflow: hidden;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.suggestion-list .suggestion {
  cursor: pointer;
  padding: 1.25rem;
  width: 260px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  border-radius: 0.75rem;
  justify-content: space-between;
  background: var(--secondary-color);
  transition: 0.2s ease;
}

.suggestion-list .suggestion:hover {
  background: var(--secondary-hover-color);
}

.suggestion-list .suggestion :where(.text, .icon) {
  font-weight: 400;
  color: var(--text-color);
}

.suggestion-list .suggestion .icon {
  width: 42px;
  height: 42px;
  display: flex;
  font-size: 1.3rem;
  margin-top: 2.5rem;
  align-self: flex-end;
  align-items: center;
  border-radius: 50%;
  justify-content: center;
  color: var(--text-color);
  background: var(--primary-color);
}

.chat-list {
  padding: 2rem 1rem 0rem;
  overflow-x: hidden;
  scrollbar-color: #999 transparent;
  margin-top: 30px;
  padding-bottom: 200px  !important;
}

.chat-list .message.incoming {
  margin-top: 1.5rem;
}

.chat-list .message .message-content {
  display: flex;
  gap: 1.5rem;
  width: 100%;
  align-items: center;
}

.chat-list .message .text {
  color: var(--text-color);
  white-space: pre-wrap;
}

.chat-list .message.error .text {
  color: #e55865;
}

.chat-list .message.loading .text {
  display: none;
}

.chat-list .message .avatar {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 50%;
  align-self: flex-start;
}

.chat-list .message.loading .avatar {
  animation: rotate 3s linear infinite;
}

@keyframes rotate {
  100% {
    transform: rotate(360deg);
  }
}

.chat-list .message .icon {
  color: var(--text-color);
  cursor: pointer;
  height: 35px;
  width: 35px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  font-size: 1.25rem;
  margin-left: 3.5rem;
  visibility: hidden;
}

.chat-list .message .icon.hide {
  visibility: hidden;
}

.chat-list .message:not(.loading, .error):hover .icon:not(.hide){
  visibility: visible;
}

.chat-list .message .icon:hover {
  background: var(--secondary-hover-color);
}

.chat-list .message .loading-indicator {
  display: none;
  gap: 0.8rem;
  width: 100%;
  flex-direction: column;
}

.chat-list .message.loading .loading-indicator {
  display: flex;
}

.chat-list .message .loading-indicator .loading-bar {
  height: 11px;
  width: 100%;
  border-radius: 0.135rem;
  background-position: -800px 0;
  background: linear-gradient(to right, #4285f4, var(--primary-color), #4285f4);
  animation: loading 3s linear infinite;
}

.chat-list .message .loading-indicator .loading-bar:last-child {
  width: 70%;
}

@keyframes loading {
  0% {
    background-position: -800px 0;
  }

  100% {
    background-position: 800px 0;
  }
}

.typing-area {
  position: fixed;
  width: 95%;
  left: 0;
  bottom: 0;
  padding: 1rem;
  background: var(--primary-color);
}

.typing-area :where(.typing-form, .action-buttons) {
  display: flex;
  gap: 0.75rem;
}

.typing-form .input-wrapper {
  width: 100%;
  height: 56px;
  display: flex;
  position: relative;
}

.typing-form .typing-input {
  height: 100%;
  width: 100%;
  border: none;
  outline: none;
  resize: none;
  font-size: 1rem;
  color: var(--text-color);
  padding: 1.1rem 4rem 1.1rem 1.5rem;
  border-radius: 100px;
  background: var(--secondary-color);
}

.typing-form .typing-input:focus {
  background: var(--secondary-hover-color);
}

.typing-form .typing-input::placeholder {
  color: var(--placeholder-color);
}

.typing-area .icon {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  font-size: 1.4rem;
  color: var(--text-color);
  align-items: center;
  justify-content: center;
  background: var(--secondary-color);
  transition: 0.2s ease;
}

.typing-area .icon:hover {
  background: var(--secondary-hover-color);
}

.typing-form #send-message-button {
  position: absolute;
  right: 0;
  outline: none;
  border: none;
  transform: scale(0);
  background: transparent;
  transition: transform 0.2s ease;
}

.typing-form .typing-input:valid ~ #send-message-button {
  transform: scale(1);
}

.typing-area .disclaimer-text {
  text-align: center;
  font-size: 0.85rem;
  margin-top: 1rem;
  color: var(--placeholder-color);
}

/* Responsive media query code for small screen */
@media (max-width: 768px) {
  .header :is(.title, .subtitle) {
    font-size: 2rem;
    line-height: 2.6rem;
  }

  .header .subtitle {
    font-size: 1.7rem;
  }

  .typing-area :where(.typing-form, .action-buttons) {
    gap: 0.4rem;
  }

  .typing-form .input-wrapper {
    height: 50px;
  }

  .typing-form .typing-input {
    padding: 1.1rem 3.5rem 1.1rem 1.2rem;
  }

  .typing-area .icon {
    height: 50px;
    width: 50px;
  }

  .typing-area .disclaimer-text {
    font-size: 0.75rem;
    margin-top: 0.5rem;
  }
}

.product-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 285px;
  background-color: #fff;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 10px;
  align-items: center;
}
.product-image {
  width: 100%;
  
  height: 100%;
  object-fit: cover;
}
.product-details {
  padding: 5px;
  display: flex;
  flex-direction: column;
}
.product-name {
  font-size: 14px;
  font-weight: bold;
  margin: 0 0 8px;
}
.product-description {
  font-size: 14px;
  color: #666;
  margin: 0 0 16px;
}
.product-price  .product-sku{
  font-size: 16px;
  font-weight: bold;
  color: #2c3e50;
  margin: 0 0 16px;
}
.product-buttons {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.product-buttons button {
  flex: 1;
  padding: 10px;
  font-size: 14px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
}
.product-buttons .buy-now {
  background-color: #28a745;
  color: white;
}
.product-buttons .buy-now:hover {
  background-color: #218838;
}
.product-buttons .add-to-cart {
  background-color: #007bff;
  color: white;
}
.product-buttons .add-to-cart:hover {
  background-color: #0056b3;
}



.product-card-container {
  display: inline-block; 
  width: 300px;
  margin: 10px;
}

.product-cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  padding: 20px;
  margin-bottom: 6rem;
}



.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.product-card {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 10px;
  padding: 20px;
  width: 300px;
  height: auto; 
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex; 
  flex-direction: column;
  justify-content: center;
}

.product-image {
  .product-image {
    width: 50%;
    height: 50%;
    object-fit: contain;
    margin: 0 auto 10px;
    display: block;
    border-radius: 20px;
  }
}

.product-details {
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 10px;
}

.product-name,
.product-description,
.product-price,
.product-sku {
  margin-bottom: 5px; 
}

.product-description {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: #ccc;
}

.product-price {
  font-size: 1rem;
  font-weight: bold;
  color: #8bc34a;
  margin-bottom: 0.5rem;
}

.product-sku {
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  color: #bbb;
}

.product-buttons button {
  padding: 0px 15px;
  margin: 5px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.product-buttons .buy-now {
  background: #8bc34a;
  color: #fff;
}

.product-buttons .add-to-cart {
  background: #00bcd4;
  color: #fff;
}

.product-buttons button:hover {
  opacity: 0.9;
}


.response-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: stretch;
  align-content: center;
}


.product-card-wrapper {
  display: flex;
}

.product-meta {
  display: flex;
  flex-direction: column;
}


/* Hamburger Button */
.hamburger-btn {
  font-size: 2rem;
  background: none;
  border: none;
  color: var(--text-color);
  cursor: pointer;
  position: fixed; /* Change to fixed to always show */
  top: 10px;
  left: 10px;
  z-index: 1000;
}

/* Full-Screen Side Menu */
.menu {
  position: fixed;
  top: 0;
  left: -100%;
  width: 190px; /* Default width for desktops */
  height: 100%;
  background-color: var(--primary-color);
  padding: 20px;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: left 0.3s ease;
}

.menu.open {
  left: 0;
}

.menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu ul li {
  padding: 15px;
  margin: 10px 0;
  font-size: 11px;
  cursor: pointer;
  border-radius: 8px;
  background: var(--secondary-color);
  color: var(--text-color);
  position: relative;
}

.menu ul li:hover {
  background: var(--secondary-hover-color);
}

.menu ul li.disabled {
  cursor: not-allowed;
  color: var(--placeholder-color);
}

/* Tick Symbol */
.menu ul li::after {
  content: '✔';
  font-size: 1rem;
  color: #4285f4;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: none;
}

.menu ul li.selected::after {
  display: inline; /* Tick symbol for selected item */
}

.menu ul li.selected::after {
  display: inline;
}

/* Media Queries for Mobile and Tablet Screens */
@media (max-width: 768px) {
  .menu {
    width: 200px; /* Smaller width for tablets and small devices */
  }

  .hamburger-btn {
    font-size: 1.8rem; /* Slightly smaller button size */
    top: 15px; /* Adjust position */
    left: 15px;
  }

  .menu ul li {
    font-size: 0.9rem; /* Smaller font size for menu items */
    padding: 12px; /* Adjust padding */
  }
}

@media (max-width: 480px) {
  .menu {
    width: 180px; /* Narrower menu for small phones */
  }

  .hamburger-btn {
    font-size: 1.6rem; /* Even smaller button size */
    top: 12px; /* Adjust position */
    left: 12px;
  }

  .menu ul li {
    font-size: 0.8rem; /* Smaller font size */
    padding: 10px; /* Compact padding */
  }
}


  /* Container Styling */
  .response-container {
    max-width: 1000px;
    margin: 20px auto;

    color: var(--text-color);
    border-radius: 8px;
    margin-top: 0px;

  }
  
  /* Section Title */
  .section-title {
    font-size: 1.5em;
    color: #4285f4; /* Accent color remains consistent */
    margin-bottom: 10px;
    border-bottom: 2px solid #4285f4;
    display: inline-block;
    padding-bottom: 5px;
  }
  
  /* Order Details and Address Styling */
  .order-details, .address {
    margin-bottom: 20px;
    padding: 15px;
    border: 1px solid var(--secondary-hover-color);
    border-radius: 8px;
    background: var(--primary-color);
    color: var(--text-color);
    margin: 15px;
  }
  
  .order-details p, .address p {
    margin: 5px 0;
    line-height: 1.6;
  }
  
  .address {
    background: var(--secondary-color);
  }
  
  /* Table Styling */
  .product-list {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
    margin-bottom: 20px;
    background: var(--primary-color);
  }
  
  .product-list thead {
    background: var(--secondary-hover-color);
    color: var(--text-color);
  }
  
  .product-list th, .product-list td {
    padding: 10px;
    text-align: left;
    border: 1px solid var(--secondary-color);
    color: var(--text-color);
  }
  
  .product-list tr:nth-child(even) {
    background: var(--secondary-color);
  }
  
  .product-list th {
    font-weight: bold;
  }
  
  .product-list td {
    font-size: 0.9em;
  }
  
  /* Responsive Design */
  @media (max-width: 768px) {
    .response-container {
      padding: 10px;
    }
  
    .section-title {
      font-size: 1.2em;
    }
  
    .product-list th, .product-list td {
      font-size: 0.8em;
      padding: 8px;
    }
  }

.order-suggestion-list{
  display:none;
}

.disabled{
  cursor: default !important;
}
.enable{
  cursor: pointer !important;
}



.product-actions {
  display: flex;
  justify-content: space-around;
  margin-top: 10px;
}

.product-actions button {
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  background-color: #007bff;
  color: white;
  font-size: 14px;
  margin-right: 20px;
}

.product-actions button:hover {
  background-color: #0056b3;
}

.like-button {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: #999;
  transition: color 0.2s;
}

.like-button.active {
  color: red;
}

.heart-bubble {
  position: absolute;
  bottom: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: red;
  opacity: 1;
  animation: bubble 1s ease-out forwards;
}

@keyframes bubble {
  0% {
    opacity: 1;
    transform: translate(-50%, 50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -100%) scale(1.5);
  }
}

.no-results-message {
  text-align: center;
  font-size: 18px;
  color: #555;
  margin-top: 20px;
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
}



/*3 change */
/* Share Modal Styling */
.share-modal {
  background: white;
  padding: 20px;
  border-radius: 8px;
  width: 300px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  z-index: 1001;
}

.share-modal-title {
  

  font-size: 15px;
  margin-bottom: 15px;
  text-align: center;
  font-family: Roboto;
}



.share-link-input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 0.9em;
  cursor: not-allowed;
}

.copy-link-btn {
  width: 100%;
  padding: 10px;
  background-color: #4CAF50;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 20px;
}

.copy-link-btn:hover {
  background-color: #45a049;
}

/* Social Media Button Styling */
.social-media-icons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.social-icon {
  padding: 10px;
  
  color: white;
  text-align: center;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1em;
}



/* Facebook *
.facebook-icon {
  background-color: #3b5998;
}

.facebook-icon:hover {
  background-color: #2d4373;
}


.whatsapp-icon {
  background-color: #25d366;
}

.whatsapp-icon:hover {
  background-color: #128c7e;
}


.twitter-icon {
  background-color: #1da1f2;
}

.twitter-icon:hover {
  background-color: #0d95e8;
}


.reddit-icon {
  background-color: #ff4500;
}

.reddit-icon:hover {
  background-color: #e02f00;
}
*/
/* Dimming Effect */
.dim-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}
.variant-message {
  font-size: 14px;
  font-weight: bold;
  margin-top: 5px;
  color: #007BFF; /* Blue for available variants */
}

.variant-message:contains("unavailable") {
  color: #FF0000; /* Red for unavailable variants */
}


/* Share Modal Styles */
.share-modal-content {
  background: #fff;
  border-radius: 8px;
  padding: 20px;
  
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  text-align: center;
}

.share-link-container {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.share-link-input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-right: 8px;
  width:50px;
}

.copy-link-btn {
  padding: 8px;
  border: none;
  background: #007bff;
  color: white;
  border-radius: 4px;
  cursor: pointer;
  width:50px;
  margin-top: 10px;
}

.copy-link-btn:hover {
  background: #0056b3;
}

.social-media-icons {
  display: inline-block;
  justify-content: space-around;
  gap: 10px;
  flex-wrap: nowrap; /* Ensures they are in a single row */
}

.social-icon {
  text-decoration: none;
  padding: 8px 12px;
  color: white;
  border-radius: 4px;
  justify-content: flex-start;
}
/*
.facebook-icon {
  background: #3b5998;
}

.whatsapp-icon {
  background: #25d366;
}

.twitter-icon {
  background: #1da1f2;
}

.reddit-icon {
  background: #ff4500;
}
*/
.social-icon:hover {
  opacity: 0.8;
}

/* Dim Overlay */
.dim-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1000;
}
.share-modal{
  width: 500px;
}

.social-icon svg {
  width: 24px;
  height: 24px;
  fill: none; /* Removes color from the SVG */
}

/* Specific space between each social icon */
.social-icon:not(:last-child) {
  margin-right: 10px;  /* Adjust space between icons */
}

.product-name-link,
.product-sku-link {
  text-decoration: none; /* Removes underlines from product name and SKU links */
}

.product-name-link:hover,
.product-sku-link:hover {
  text-decoration: none; /* Ensures no underline even on hover */
}
.product-link {
  text-decoration: none; /* Remove underline from all anchor tags */
}

.product-link:hover {
  text-decoration: none; 
}
/*
.additional-details {
  display: none; 
}

.order-details:hover + .additional-details,
.additional-details:hover {
  display: block; 
}

.order-details {
  margin-bottom: 10px;
  cursor: pointer; 
}

.additional-details {
  background-color: #f9f9f9;
  padding: 10px;
  border: 1px solid #ddd;
  margin-bottom: 15px;
} 
  */


/* Container for the product table */
.product-table-container {
  position: relative;
  margin-bottom: 20px;
  width: 100%;
  overflow-x: hidden;
}

/* Information Text Container with Exclamation Mark */
.info-text-container {
  text-align: center;
  margin-bottom: 10px;
}

.info-text {
  font-size: 16px;
}

.info-icon {
  color: red;
  font-weight: bold;
  cursor: pointer;
  margin-left: 5px;
}

/* Product Table */
.product-list {
  width: 100%;
  border-collapse: collapse;
  background-color: #f9f9f9;
}

.product-list th, .product-list td {
  padding: 10px;
  text-align: left;
  border: 1px solid #ddd;
}

.product-list th {
  background-color: #333;
  color: white;
}

.product-list td {
  background-color: #fff;
}

/* Additional Info Hidden by Default */
.additional-info {
  display: none;
  position: absolute;
  top: 50px; /* Adjust based on where you want it to appear above the table */
  left: 0;
  width: 100%;
  background-color: #fff;
  border: 1px solid #ddd;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 10px;
  z-index: 10;
  /* max-height: 500px; */
  transition: transform 0.3s ease-in-out;
}

/* When hovered, show the details */
.show-details {
  display: block;
}

/* Adjusting the table position when info icon is hovered */
.shift-down {
  margin-top: 200px; /* Allow space for additional info to display */
}

/* Styling for the order, billing, and shipping details */
.additional-info h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.additional-info p {
  margin: 5px 0;
  font-size: 14px;
}

.additional-info .address {
  margin-top: 20px;
}

/* Optional: Add a hover effect for the product rows (for emphasis) */
.product-list tr:hover {
  background-color: #f1f1f1;
}


html, body {
  overflow-x: hidden;  /* Prevent both horizontal and vertical scrollbars */
  height: 100%; 
  
}

body {
  background: var(--primary-color);
  overflow-x: hidden;  /* Prevent horizontal scrolling */

}

.product-table-container {
    position: relative;
    display: inline-block;
    width: 100%; /* Adjust as needed */
}

.info-text-container {
    display: inline-block;
    padding: 10px;
    cursor: pointer;
    background-color: #f0f0f0;
    border-radius: 5px;
    margin-bottom: 10px;
}

.info-text-container:hover {
    background-color: #dcdcdc;
}

.info-text {
    font-size: 16px;
    color: #333;
}

.info-icon {
    font-weight: bold;
    color: red;
    cursor: pointer;
}

.product-list {
    width: 100%;
    margin-top: 10px;
    border-collapse: collapse;
}

.product-list th, .product-list td {
    padding: 10px;
    border: 1px solid #ddd;
}

/* .additional-info {
    display: none;
    padding: 15px;
    background-color: #fff;
    border: 1px solid #ccc;
    margin-top: 10px;
    border-radius: 5px;
} */

.additional-info.show-details {
    display: block;
}

.product-list.shift-down {
    margin-top: 150px; /* Space for the details */
}

body .light_mode{
  overflow: hidden;
}


/*text logo changes */
.text {
  
  top: 20px; /* Adjust the value to position it closer to your logo */
   /* Optional: Adjust the text color */
}

.response-container {
  display:flex ;
  flex-direction: row;
  flex-wrap: wrap;
  margin-top: 20px; /* Optional: Adjust the margin if needed */
  justify-content: center;
}

.text {
  margin-left: 10px; /* Optional: Adjust the margin to control the spacing from the logo */
  font-size: 16px; /* Optional: Adjust text size */
}
.productMainimage {
  width: 70%;
  height: 80%;
}






/* Flex container for avatar and text */
.avatar-and-text {
  display: flex;
  align-items: center;
  gap: 10px; /* Adjust the gap as needed */
}

/* Avatar styling */
.avatar {
  width: 40px; /* Adjust size as needed */
  height: 40px;
  border-radius: 50%;
}

/* Text styling */
.text {
  font-size: 1rem;
  color: #333;
  margin: 0; /* Remove default margins */
  word-wrap: break-word; /* Handle long text gracefully */
}

/* Optional: Adjust loading indicator if needed */
.loading-indicator {
  margin-top: 5px; /* Adjust spacing relative to text */
}


.product-slider{
  display: flex;
}

.product-slider-wrapper{
  display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
}


/* CSS Design for Left and Right Slider Arrows */

.prev-button,
.next-button {

  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

.prev-button:hover,
.next-button:hover {
  background-color: rgba(0, 0, 0, 0.8);
}

/* .additional-info {
  display: none; 
  position: absolute; 
  top: -5px; 
  left: 40px; 
  z-index: 10; 
  background-color: white; 
  border: 1px solid #ccc; 
  padding: 10px; 
  padding-left: 30px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border-radius: 4px; 
  
  
} */

.prev-button {
  left: 10px;
}

.next-button {
  right: 10px;
}
.order-summary {
  position: relative;
  margin-bottom: 20px;
  width:100%;
}

/* Optional: Add shadow for better visibility */
.prev-button,
.next-button {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

/* Add focus styles for accessibility */
.prev-button:focus,
.next-button:focus {
  outline: 2px solid #fff;
}
.slider-prev.hidden,
.slider-next.hidden {
  visibility: hidden;
}

.product-list th, .product-list td {
  padding: 8px 12px;
  border: 1px solid #ddd;
  text-align: left;
}

/* .additional-info {
  display: none;
  position: absolute;
  top: 0;
  left: 100%;
  margin-left: 10px;
  background-color: #f8f8f8;
  padding: 10px;
  border: 1px solid #ccc;
  width: 300px;
  /* max-height: 300px; 
} */

.show-details {
  display: inline-block;
}

.order-details, .address {
  margin-bottom: 15px;
}

h3 {
  margin-top: 0;
}

/* .order-summary:hover .additional-info {
  display: inline-block;
}


.order-summary {
  position: relative;
  margin-bottom: 20px;
} */

.info-icon {
  cursor: pointer;
  font-weight: bold;
  color: blue;
  margin-left: 10px;
  position: relative;
}

.product-list {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.product-list th,
.product-list td {
  padding: 8px 12px;
  border: 1px solid #ddd;
  text-align: left;
}

/* .additional-info {
  display: none;
  position: absolute;
  background-color: #f8f8f8;
  padding: 10px;
  border: 1px solid #ccc;
  width: 300px;
  z-index: 100;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
} */

.additional-info h3 {
  margin-top: 0;
}

.additional-info p {
  margin: 5px 0;
}


.chat-list .message.outgoing {
  margin-top: 1.5rem;
}


.chat-list {
  max-height: 1000px; /* Set maximum height for the chat list */
  overflow-y: auto;   /* Allow vertical scrolling for this element */
  scroll-behavior: smooth; /* Smooth scrolling for better UX */
}



/* Allow scrolling on the body */
body {
  margin: 0;
  padding: 0;
  overflow-y: auto; /* Enable vertical scrolling */
  scroll-behavior: smooth; /* Smooth scrolling behavior */
  height: 100vh; /* Full viewport height */
}

/* Optional: Chat list styling */
.chat-list {
  max-height: 80vh; /* Constrain the height of the chat container */
  overflow-y: auto; /* Enable scrolling for chat messages */
  margin: 20px auto;
  padding: 10px;
  
  
}

/* Hide the body scrollbar (but keep it functional) */
html, body {
  overflow: hidden; /* Hides the scrollbar */
  height: 100%; /* Ensure the body takes up the full viewport height */
  margin: 0; /* Remove default margin */
  padding: 0; /* Remove default padding */
}

/* Enable and display the scrollbar for .chat-list */
.chat-list {
  max-height: 80vh; /* Limit the height of the chat container */
  overflow-y: auto; /* Allow vertical scrolling */
  scroll-behavior: smooth; /* Smooth scrolling for better experience */
  
  /* Keep the scrollbar visible */
  scrollbar-width: auto; /* Default scrollbar for Firefox */
}

/* Hide the body scrollbar visually but keep the scroll functionality */
html::-webkit-scrollbar, body::-webkit-scrollbar {
  display: none; /* Hide scrollbar in WebKit browsers (Chrome, Safari, Edge) */
}

/* Style for the .chat-list scrollbar */
.chat-list::-webkit-scrollbar {
  width: 8px; /* Set a visible width for the scrollbar in Chrome, Safari, Edge */
}

.chat-list::-webkit-scrollbar-thumb {
  background: #888; /* Style for the scrollbar thumb */
  border-radius: 4px; /* Rounded scrollbar thumb */
}

.chat-list::-webkit-scrollbar-thumb:hover {
  background: #555; /* Darker color on hover */
}


* Chat list container */
.chat-list {
  max-height: 80vh; /* Limit the height of the chat container */
  overflow-y: auto; /* Allow vertical scrolling */
  scroll-behavior: smooth; /* Smooth scrolling for user inputs */
  
  /* Prevent unintended layout shifts */
  position: relative;
  margin: 0;
  padding: 0;
}

/* Style for buttons to prevent focus-related scrolling */
.slider-nav-button {
  outline: none; /* Remove focus outline to prevent scrolling */
  user-select: none; /* Prevent text selection */
  cursor: pointer; /* Indicate clickable buttons */
  position: relative; /* Prevent layout shifts */
}

/* Prevent unwanted focus-based scrolling for buttons */
.slider-nav-button:focus {
  outline: none; /* Ensure no focus outline appears */
}

/* Hide the body scrollbar visually but keep the scroll functionality */
html, body {
  overflow: hidden; /* Prevent body scrolling */
  height: 100%; /* Ensure full viewport height is occupied */
  margin: 0;
  padding: 0;
}

html::-webkit-scrollbar, body::-webkit-scrollbar {
  display: none; /* Hide scrollbar in WebKit browsers (Chrome, Safari, Edge) */
}

/* Style for the .chat-list scrollbar */
.chat-list::-webkit-scrollbar {
  width: 8px; /* Set a visible width for the scrollbar in Chrome, Safari, Edge */
}

.chat-list::-webkit-scrollbar-thumb {
  background: #888; /* Style for the scrollbar thumb */
  border-radius: 4px; /* Rounded scrollbar thumb */
}

.chat-list::-webkit-scrollbar-thumb:hover {
  background: #555; /* Darker color on hover */
}



/*dangling manner prevention */
/* Initial state for product items - invisible */
.product-slider-item {
  opacity: 0;
  transform: translateY(20px); /* Start position below */
  transition: opacity 0.5s ease, transform 0.5s ease; /* Smooth transition */
}

/* Final state for product items - fully visible */
.product-slider-item.show {
  opacity: 1;
  transform: translateY(0); /* End position */
}

/* Optional: To handle smooth transitions on container */
.product-slider-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  align-items: flex-start;
}

.product-slider-wrapper_multiple {
  display: flex ;
      justify-content: center;
      align-items: center;
      overflow: hidden;
      /* align-items: flex-start; */
      flex-direction: row;
      flex-wrap: nowrap;
}


.order-action-list {
  display: none;
}


/* Popup Styling */
/* Overlay to dim the background */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: none; /* Initially hidden */
  z-index: 9999; /* Make sure it's on top */
}

/* Center the popup */
.Dproduct-table-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Centering the popup */
  background-color: white;
  border: 1px solid #ccc;
  padding: 20px;
  max-width: 90%;
  max-height: 80%;
  overflow-y: auto;
  z-index: 10000; /* Ensure the popup is above the overlay */
}

.order-details-popup {
  max-height: 100%;
  overflow-y: auto;
}

.close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
}

button.close-popup:hover {
  color: red;
}

/* Table Styling */
.product-list {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}

.product-list th, .product-list td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: center;
}

.product-list th {
  background-color: #070404;
  
}

.product-list td {
  font-size: 14px;
}

/* Checkbox Styling */
.product-checkbox {
  width: 20px;
  height: 20px;
}

/* Reason Box Styling */
.reason-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start; /* Center everything horizontally */
  gap: 10px; /* Space between elements */
}

#reason {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
}

.submit-reason {
  padding: 10px 15px;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.submit-reason:hover {
  background-color: #218838;
}

.cancel-reason {
  padding: 10px 15px;
  background-color: #da190b;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

textarea:required:invalid {
  border: 2px solid red;
}

textarea:required:valid {
  border: 2px solid green;
}

.button-container {
  display: flex;
  justify-content: center; /* Align buttons horizontally in the center */
  gap: 15px; /* Space between the buttons */
  margin-top: 10px; /* Space between textarea and buttons */
}

button {
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

label {
  font-weight: bold;
  margin-bottom: 5px;
}

textarea {
  width: 100%;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 14px;
  margin-top: 5px;
}


.required-indicator {
  color: red;
  font-size: 14px;
  margin-left: 5px;
}


/* Responsive Table Styling */
@media (max-width: 768px) {
  .product-list td, .product-list th {
    padding: 6px;
  }

  #reason {
    font-size: 14px;
  }
}

.icon {
  font-size: 30px;
  cursor: pointer;
  transition: color 0.3s;
}
.action-buttons .icon.active {
  color: #007bff; /* Green for Conversational Mode */
}

.action-buttons .icon.inactive {
  color: #28a745; /* Blue for Q&A Mode */
}