@import url(https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.5/font/bootstrap-icons.css);
@import url(https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css);
@import url(https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap);


/* Sidebar Styles for Desktop */
._f-ui-sidebar-container {
  position: fixed;
  top: 0;
  right: 50px;
  width: 300px;
  height: 100%;
  background: #ffffff;
  padding: 20px;
  overflow-y: hidden; /* Prevent overall overflow */
  border-left: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  z-index: 10000;
  font-family: "Inter", serif;
}

._f-ui-sidebar-container._f-ui-closed {
  right: -300px;
}

._f-ui-comment-list {
  list-style: none;
  padding-left: 0;
  overflow-y: auto; /* Enable vertical scrolling */
  max-height: calc(100vh - 200px); /* Adjust height dynamically relative to the viewport */
  margin-bottom: 10px;
}

._f-ui-comment-item {
  padding: 10px;
  margin: 10px 0;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: background-color 0.2s;
}

._f-ui-reply-list {
  list-style: none;
  padding-left: 20px;
  max-height: 200px; /* Limit height for replies */
  overflow-y: auto;
}

._f-ui-reply-item {
  margin-top: 5px;
  padding-left: 10px;
  border-left: 2px solid #ccc;
  font-style: italic;
}

._f-ui-comment-days-ago {
  font-style: normal;
  font-weight: 400;
  font-size: 12px;
  line-height: 16px;
  color: #6b7280;
}

._f-ui-comment-name {
  font-style: normal;
  font-weight: 500;
  font-size: 14px;
  line-height: 19px;
  color: #1f2937;
}

._f-ui-comment-header p {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 15px;
  color: #000000;
  max-width: 280px;
  overflow-wrap: break-word; /* Ensures long words or URLs wrap */
  word-wrap: break-word; /* Fallback for older browsers */
  white-space: normal; /* Allows text to wrap to the next line */
}

._f-ui-sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0px;
}

._f-ui-comment-h2 {
  margin: 0;
  margin-bottom: 10px;
  font-style: normal;
  font-weight: 700;
  font-size: 20px;
  line-height: 27px;
  color: #333;
}

._f-ui-comment-close-button {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  margin-top: -15px;
}

._f-ui-comment-close-button:hover {
  color: #ff0000;
}


/* Mobile Styles */
@media (max-width: 768px) {
  ._f-ui-sidebar-container {
    position: fixed;
    top: auto;
    right: 0;
    bottom: 50px;
    left: 0;
    width: 100%;
    height: 50%;
    max-height: 50%;
    background-color: #f0f0f0;
    border-left: none;
    border-top: 1px solid #ccc;
    border-radius: 15px 15px 0 0;
    padding: 0px;
    overflow-y: hidden; /* Prevent overflow */
    transform: translateY(100%);
    transition: transform 0.3s ease;
  }

  ._f-ui-sidebar-header {
    padding: 10px;
  }

  ._f-ui-sidebar-container._f-ui-open {
    transform: translateY(0);
  }

  ._f-ui-comment-list {
    max-height: calc(100% - 40px);
    padding: 10px; /* Adjust height for mobile */
  }

  ._f-ui-comment-h2 {
    font-size: 16px !important;
    line-height: 20px !important;
  }
}

._f-ui-panel {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  width: 100%;
}


._f-ui-panel label {
  /* Input / Label */

  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  line-height: 14px;
  /* identical to box height */

  /* Passive/080 */
  color: #1f2937;
  margin-bottom: 4px;
}

._f-ui-active {
  background-color: #6e2f9a !important;
}

._f-ui-panel img {
  width: 16px;
  height: 16px;
  cursor: "pointer";
}

._f-ui-feedback-cancel {
    height: 32px;
    width: 72px;

    /* Passive/020 */
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background-color: white;
    font-style: normal;
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;

    /* Passive/070 */
    color: #374151;
    margin-left: 10px;
    cursor: pointer;
}

._f-ui-feedback-submit {
    height: 32px;
    width: 72px;
    background-color: #0D6EFD;
    font-style: normal;
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
    border: 0px;
    border-radius: 12px;

    /* Passive/070 */
    color: white;
    margin-left: 10px;
    cursor: pointer;
}

._f-ui-feedback-submit:hover {
  background-color: #0a58ca;
}

._f-ui-feedback-cancel:hover {
  background-color: #d3d4d5;
}

._f-ui-feedback-submit:disabled {
    background-color: #D1D5DB;
    color: white;
    height: 32px;
    width: 72px;
    font-style: normal;
    font-weight: 700;
    font-size: 12px;
    line-height: 16px;
    border-radius: 12px;
    border: 0px;
}

@media (max-width: 768px) {
  ._f-ui-panel {
    padding: 10px;
  }
}
._f-ui-box-shadow {
  background: #2d172f;
}

._f-ui-main-container {
  display: flex; /* Enable flex layout to arrange sidebar and main content */
  height: 100vh; /* 100% viewport height to cover the entire screen */
}

/* Styles for the main content */
._f-ui-main-content {
  flex-grow: 1; /* Allow the main content to grow and fill available space */
  overflow: hidden; /* Hide overflow to prevent scrolling on the main content itself */
  position: relative; /* Position relative for child elements with absolute positioning */
}

._f-ui-comments-button {
  position: fixed;
  top: 10px;
  right: 7px;
  background: #f3f4f6;
  border-radius: 8px;
  border: none;
  display: flex; /* Enable flex layout for alignment */
  align-items: center; /* Center icon and text vertically */
  justify-content: center; /* Center content horizontally */
  font-style: normal;
  font-weight: 600;
  font-size: 12px;
  line-height: 15px;
  color: white;
  z-index: 10000;
  width: 36px;
  height: 36px;
}

._f-ui-icon {
  height: 20px;
  width: 20px;
  margin-right: 0; /* No margin for desktop */
}

._f-ui-feedback-button {
  font-style: normal;
  font-weight: 400;
  font-size: 16px;
  line-height: 20px;
  color: #0a58ca;
  height: 40px;
  width: 100%;
  box-sizing: border-box;
  height: 40px;
  background: #ffffff;
  border: 1px solid #0a58ca;
  border-radius: 12px;
  cursor: pointer;
}

._f-ui-feedback-button:hover {
  color: white;
  background-color: #0a58ca;
}

._f-ui-feedback-border {
  border: 1px solid #e5e7eb;
  border-radius: 8px 8px 8px 8px;
}

._f-ui-feedback-name {
  height: 40px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  margin-bottom: 8px;
  color: black !important;
  width: 100%;
}

._f-ui-feedback-comment {
  height: 60px;
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  margin-bottom: 8px;
  color: black !important;
  width: 100%;
}

._f-ui-submit-container {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  padding: 0px;
  height: 32px;
}

/* Sidebar Styles for Desktop */
._f-ui-feedback-container {
  position: fixed;
  top: 0;
  right: 0px;
  width: 50px;
  height: 100%;
  background: #ffffff;
  overflow-y: hidden; /* Prevent overall overflow */
  border-left: 1px solid #e5e7eb;
  transition: all 0.3s ease;
  z-index: 10000;
  font-family: "Inter", serif;
}

._f-ui-text-black {
  color: black;
}

@media (max-width: 768px) {
  ._f-ui-feedback-container {
    position: fixed;
    top: calc(100% - 50px);
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50px;
    background-color: #f0f0f0;
    border-left: none;
    border-top: 1px solid #ccc;
    overflow-y: hidden; /* Prevent overflow */
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px; /* Space between button and logo */
  }

  ._f-ui-feedback-container._f-ui-with-logo {
    justify-content: space-between;
    padding: 0;
    background: rgb(220, 137, 232) !important;
    background: linear-gradient(
      141deg,
      rgba(220, 137, 232, 1) 0%,
      rgba(144, 64, 204, 1) 100%
    ) !important;
    border-top: none;
  }

  ._f-ui-comments-button {
    position: static;
    top: 10px;
    right: 7px;
    background: #f3f4f6;
    border-radius: 8px;
    border: none;
    font-style: normal;
    font-weight: 600;
    font-size: 12px;
    line-height: 15px;
    color: white;
    z-index: 10000;
    height: 36px;
    margin: auto;
    width: auto; /* Allow button width to adjust for text */
    padding: 0 12px; /* Add padding for text */
  }

  ._f-ui-feedback-container._f-ui-with-logo ._f-ui-comments-button {
    margin: 0; /* Remove auto margin when logo is present */
    margin-left: 16px;
    background: transparent;
    color: white;
  }

  ._f-ui-feedback-container._f-ui-with-logo ._f-ui-text-black {
    color: white !important;
  }

  ._f-ui-feedback-container._f-ui-with-logo ._f-ui-icon {
    filter: brightness(0) invert(1); /* Make icon white */
  }

  ._f-ui-icon {
    margin-right: 8px; /* Add space between icon and text */
  }

  ._f-ui-tiiny-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 16px;
  }

  ._f-ui-shared-with-text {
    color: white;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
  }

  ._f-ui-tiiny-logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    cursor: pointer;
  }

  ._f-ui-tiiny-logo {
    height: 28px;
    width: auto;
    display: block;
  }
}

