@tailwind base;
@tailwind components;
@tailwind utilities;

.auth-container{
  height: 100lvh;
}

.btn-box {position: relative;overflow: hidden;
  input[type=file] {position: absolute;top: 0;right: 0;bottom: 0;left: 0;width: 100%;height: 100%;opacity: 0;cursor: pointer;}
}

.ss-value{
  --ss-primary-color: #4C99E3;
}

.ais-Hits-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.custom-refinement-item{
  cursor: pointer;
}

.pointer-cursor {
  cursor: pointer;
}

.custom-hit {
  display: flex;
  flex-direction: column;
  position: relative;
}

.custom-hit .business-name,
.custom-hit .name {
  max-width: 275px;
  /* white-space: nowrap; */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  -webkit-line-clamp: 2;
}

.verfied-twh{
  position: absolute;
  top: -2px;
  left: -2px;
}

.custom-search-box .ais-SearchBox-input {
  width: 90%;
  padding: 10px;
  font-size: 1.2rem;
  border-radius: 0.375rem;
}

.ais-SearchBox-submit{
  margin-left: 10px;
}

.ais-SearchBox-submitIcon{
  width: 25px;
  height: 20px;
}

.ais-SearchBox-resetIcon{
  display: none;
}
@media (min-width: 1024px) {
  .profile-crop{
    min-width: 150px;
  }
}

@media (min-width: 100px) {
  .banner-crop{
    min-height: 200px;
  }
  .profile-crop{
    max-width: 110px;
  }
}

.dropdown-header {
  max-width: 100%; /* Adjust the max-width as needed */
  overflow-x: auto;
  white-space: nowrap;
  text-overflow: ellipsis;
  padding: 10px; /* Add padding if necessary */
  box-sizing: border-box; /* Ensure padding is included in the element's total width */
  display: block; /* Ensure it behaves like a block element */
}

.dropdown-content {
  border: 1px solid #ccc;
  border-radius: 4px;
  padding: 8px;
  background-color: #ffffff;
  max-height: 300px;
  overflow-y: auto;
  position: absolute;
  z-index: 1000;
}

.dropdown-button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  width: 100%;
  box-sizing: border-box;
}

.dropdown-button svg {
  margin-left: 8px;
}

.custom-hit .provider-type {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  display: inline-block;
  vertical-align: middle;
}

.custom-hit .states {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
  display: inline-block;
  vertical-align: middle;
}

/* Styles for mobile screens */
@media (max-width: 767px) {
  .custom-pagination .ais-Pagination-item {
    display: none; /* Hide all pagination items by default */
  }

  .custom-pagination .ais-Pagination-item--selected,
  .custom-pagination .ais-Pagination-item:first-child,
  .custom-pagination .ais-Pagination-item:last-child,
  .custom-pagination .ais-Pagination-item--previousPage,
  .custom-pagination .ais-Pagination-item--nextPage {
    display: inline-block;
  }

  /* Add spacing between dropdowns */
  .dropdown-header,
  .dropdown-content,
  .dropdown-button {
    margin-bottom: 1rem;
  }

  .custom-hit {
    display: flex;
    flex-direction: column;
    width: 95%;
    margin: 0 auto;
  }

  .ais-Hits-list {
    grid-template-columns: 1fr;
    justify-items: center;
    width: 100%;
  }

  .ais-Hits-item{
    justify-items: center;
    width: 100%;
  }

  .custom-search-box {
    position: relative;
    width: 100%;
  }

  .custom-search-box .ais-SearchBox-input {
    width: 100%;
    padding-right: 40px;
  }

  .custom-search-box .ais-SearchBox-submit{
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 25px;
    height: 20px;
    margin-left: 10px;
  }

  .custom-search-box .ais-SearchBox-submitIcon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 25px;
    height: 20px;
    margin-left: 10px;
  }
}

/* Pagination */
.custom-pagination .ais-Pagination-list{
  display: flex;
  justify-content: center;
  margin: 70px auto 100px auto;
}

.custom-pagination .ais-Pagination-item {
  margin: 0 0.25rem;
  padding-left: 3px;
  padding-right: 3px;
}

.custom-pagination .ais-Pagination-link {
  padding: 0.5rem 0.75rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  text-decoration: none;
  color: #333;
}

.custom-pagination .ais-Pagination-item--selected .ais-Pagination-link {
  background-color: #007bff;
  color: #fff;
  border-color: #007bff;
}

.custom-pagination .ais-Pagination-item--disabled .ais-Pagination-link {
  color: #ccc;
  border-color: #ccc;
  cursor: not-allowed;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
