/* Layout */
.buy-offer .container {
  padding: 21px 78px 71px;
  overflow: hidden;
}

.buy-offer .flex {
  display: flex;
  width: 100%;
  gap: 20px;
}

.buy-offer .flex-col {
  flex-direction: column;
}

.buy-offer .gap-5 {
  gap: 1.25rem;
}

/* Sidebar */
.buy-offer .sidebar {
  width: 18%;
}

.filter-sidebar {
  border: 1px solid lightgrey;
}

.buy-offer .sidebar-inner {
  background-color: white;
  min-height: 619px;
  display: flex;
  gap: 0.625rem;
  justify-content: center;
  padding: 1.25rem 1.25rem 74px;
  border-radius: 0.375rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.buy-offer .sidebar-content {
  width: 100%;
}

/* Search Input */
.buy-offer .search-input-container {
  width: 100%;
  margin-top: 12px;
}

.buy-offer .visibleonlow {
  display: none !important;
}

.buy-offer .visibleonhigh {
  display: block !important;
}

.buy-offer .search-label {
  color: #0d0d0f;
  font-size: 16px;
  font-weight: 500;
}

.buy-offer .search-field {
  width: 100%;
  margin-top: 0.75rem;
}

.buy-offer .search-wrapper {
  background-color: white;
  display: flex;
  align-items: center;
  padding: 7px 22px;
  border-radius: 0.375rem;
  border: 1px solid #e5e7eb;
}

.buy-offer .search-icon {
  width: 1rem;
  aspect-ratio: 1;
  object-fit: contain;
  margin-right: 0.5rem;
}

.buy-offer .search-input {
  background-color: transparent;
  outline: none;
  width: 100%;
  font-size: 0.875rem;
  border: none;
}

/* Filter Groups */
.buy-offer .filter-group {
  width: 100%;
  margin-top: 30px;
}

.buy-offer .filter-title {
  color: #0d0d0f;
  font-size: 1rem;
  font-weight: 500;
}

.buy-offer .checkboxes-container {
  width: 158px;
  max-width: 100%;
  font-size: 0.875rem;
  color: #0d0d0f;
  font-weight: normal;
  margin-top: 0.75rem;
}

.buy-offer .checkbox-item {
  display: flex;
  align-items: center;
  margin-left: 10px;
  gap: 0.625rem;
  margin-top: 0.625rem;
}

.buy-offer .checkbox-item:first-child {
  margin-top: 0;
}

.buy-offer .custom-checkbox {
  width: 18px;
  height: 18px;
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: 0.25rem;
  border: 1px solid #d1d5db;
  background-color: white;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
}

.buy-offer .custom-checkbox.selected {
  background-color: #fe4e44;
}

.buy-offer .custom-checkbox img {
  width: 100%;
  height: 100%;
}

.buy-offer .flag-icon {
  width: 1.25rem;
  aspect-ratio: 1;
  object-fit: contain;
  flex-shrink: 0;
}

/* Advertisements */
.buy-offer .ad-banner {
  margin-top: 29px;
  width: 100%;
}

.buy-offer .ad-banner img {
  width: 100%;
  object-fit: contain;
}

.buy-offer .ad-banner-square {
  margin-top: 1.75rem;
}

/* Main Content */
.buy-offer .main-content {
  width: 80%;
  /* margin-left: 1.25rem; */
}

.buy-offer .lead-card-inner-div {
  flex-direction: column;
  width: 75%;
}

.lead-details-table-wrapper {
  width: 100%;
  overflow-x: auto;
  scrollbar-color: #fe4e44 #f0f0f0;
  scrollbar-width: thin;
}

.lead-details-table-wrapper::-webkit-scrollbar {
  height: 8px;
}

.lead-details-table-wrapper::-webkit-scrollbar-track {
  background: #f0f0f0;
}

.lead-details-table-wrapper::-webkit-scrollbar-thumb {
  background: #fe4e44;
  border-radius: 4px;
}

.lead-details-table-wrapper::-webkit-scrollbar-thumb:hover {
  background: #e63b2a;
}

.lead-details-table {
  min-width: 760px;
  display: flex;
  gap: 20px; /* optional spacing between tables */
}

/* Lead Card */
.buy-offer .lead-card {
  width: 100%;
  border: 1px solid lightgrey;
  /* max-width: 1000px; */
  /* border-radius: 0.375rem; */
  margin-bottom: 20px;
}

.buy-offer .lead-card:last-child {
  margin-bottom: 0;
}

.buy-offer .lead-card-inner {
  background-color: white;
  display: flex;
  align-items: center;
  /* gap: 1.25rem; */
  /* flex-wrap: wrap; */
  flex-direction: row;
  justify-content: space-between;
  padding: 0.875rem 29px;
  border-radius: 0.375rem;
}

.buy-offer .lead-card:hover {
  border: 1px solid #fe4e44;
}

.buy-offer .lead-info {
  align-self: stretch;
  width: 100%;
  /* padding-right: 15px; */
  /* max-width: 625px; */
}

.buy-offer .lead-header {
  display: flex;
  width: 100%;
  /* max-width: 625px; */
  items-stretch: gap-5;
  flex-wrap: wrap;
  justify-content: space-between;
}

.buy-offer .lead-title {
  color: #0d0d0f;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0px;
  font-size: 16px;
}

.buy-offer .lead-location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  color: #0d0d0f;
  /* font-weight: normal; */
  margin: auto 0;
  font-size: 14px;
  font-weight: 400;
}

.buy-offer .lead-location img {
  width: 1rem;
  aspect-ratio: 1;
  object-fit: contain;
  flex-shrink: 0;
}

.buy-offer .lead-description {
  color: #515050;
  font-size: 0.875rem;
  /* font-weight: normal; */
  margin-top: 18px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1rem;
  height: 4rem;
  text-align: justify;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.buy-offer .lead-tags {
  display: block;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  color: #515050;
  font-weight: normal;
  flex-wrap: wrap;
  margin-top: 0.625rem;
  line-height: 1rem;
  height: 2rem;
}

.buy-offer .lead-tags-label {
  flex-shrink: 0;
}

.buy-offer .lead-tags-content {
  flex-grow: 1;
  flex-shrink: 1;
  width: 680px;
  flex-basis: auto;
  font-size: 12px;
  font-weight: 400;
}

.buy-offer .lead-details {
  display: flex;
  width: 100%;
  /* max-width: 681px; */
  align-items: stretch;
  gap: 1.25rem;
  font-size: 0.875rem;
  color: #0d0d0f;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-top: 26px;
}

.buy-offer .detail-group {
  display: flex;
  flex-direction: column;
}

.buy-offer .detail-row {
  display: flex;
  align-items: stretch;
  gap: 0.25rem;
}

.buy-offer .detail-row:not(:first-child) {
  margin-top: 0.625rem;
}

.buy-offer .detail-label {
  font-weight: 600;
  flex-grow: 0;
  font-size: 14px;
}

.buy-offer .detail-value {
  font-weight: 400;
  font-size: 14px;
}

.buy-offer .divider {
  width: 0.5px;
  height: 15rem;
  background-color: #d5d5d5;
  border: 1px solid rgb(236 236 236);
  flex-shrink: 0;
}

.buy-offer .detail-table {
  width: 100%;
  font-size: 14px;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.buy-offer .lead-details-table {
  width: 760px;
  max-width: 100%;
  display: flex;
  flex-direction: row;
  gap: 18px;
  overflow-x: auto;
  white-space: nowrap;
}

.buy-offer .detail-label {
  width: 49%;
  font-weight: 600;
  color: #0d0d0f;
  background-color: white;
  border-bottom: 1px solid #d5d5d5;
  border-left: 1px solid #d5d5d5;
  padding: 7px 4px;
  text-align: left;
  text-wrap-mode: nowrap;
}

.buy-offer .detail-value {
  font-weight: 400;
  text-align: left;
  padding: 7px;
  border-bottom: 1px solid #d5d5d5;
  border-right: 1px solid #d5d5d5;
  border-left: 1px solid #d5d5d5;
  width: calc(100% - 80px);
}

.buy-offer .text-truncate-2 {
  -webkit-line-clamp: 2;
  /* Limit to 2 lines */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  max-height: 3em;
  /* Adjust if needed (line-height * 2) */
  line-height: 1.5em;
}

.buy-offer .detail-table tr:first-child .detail-label,
.buy-offer .detail-table tr:first-child .detail-value {
  border-top: 1px solid #d5d5d5;
}

.buy-offer .detail-table tr:last-child .detail-label,
.buy-offer .detail-table tr:last-child .detail-value {
  border-bottom: 1px solid #d5d5d5;
}

.buy-offer .lead-actions {
  display: flex;
  width: 17%;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  align-self: stretch;
}

.buy-offer .verified-badge {
  width: 2.5rem;
  aspect-ratio: 1;
  object-fit: contain;
  margin-left: auto;
}

.buy-offer .contact-btn {
  background: linear-gradient(90deg, #fe4e44 0%, #9f0900 100%);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 46px;
  margin: 0 auto;
  padding: 0.5rem 1rem;
  border-radius: 59.302px;
  border: none;
  cursor: pointer;
  transition: opacity 0.2s;
  align-self: stretch;
}

.buy-offer .contact-btn:hover {
  opacity: 0.9;
}

.buy-offer .lead-posted {
  color: #515050;
  text-align: right;
  font-size: 0.75rem;
  font-weight: normal;
  margin: 0 auto;
}

/* Pagination */
.buy-offer .pagination {
  width: 100%;
  margin-top: 0.625rem;
  font-size: 1rem;
  color: #515050;
  font-weight: normal;
}

.buy-offer .pagination-inner {
  background-color: white;
  box-shadow: 0 0 5px -1px rgba(0, 0, 0, 0.25);
  display: flex;
  width: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 70px;
}

.buy-offer .pagination-controls {
  display: flex;
  width: 100%;
  max-width: 568px;
  align-items: stretch;
  gap: 34px;
}

.buy-offer .items-per-page {
  flex-grow: 1;
  margin: auto 0;
}

.buy-offer .page-buttons {
  display: flex;
  align-items: stretch;
  gap: 0.625rem;
  white-space: nowrap;
}

.buy-offer .page-btn {
  width: 2rem;
  height: 2rem;
  border-radius: 0.25rem;
  border: none;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.buy-offer .page-btn.active {
  color: #fe4e44;
}

.buy-offer .page-btn img {
  width: 100%;
  height: 100%;
}

.buy-offer .page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.buy-offer .pagination-total {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  white-space: nowrap;
}

.buy-offer .total-items {
  background-color: white;
  min-height: 30px;
  padding: 0.375rem 0.625rem;
  border-radius: 0.25rem;
}

/* Bottom ad banner */
.buy-offer .bottom-banner {
  margin-top: 29px;
}

.buy-offer .bottom-banner img {
  aspect-ratio: 5.43;
  object-fit: contain;
  /* width: 1280px; */
  max-width: 100%;
}

.buy-offer .search-and-filters-container {
  display: none;
}

.buy-offer .pagination-inner {
  margin-top: 176px;
}

.buy-offer .search-input {
  width: 100%;
}

.buy-offer .search-input-field {
  display: flex;
  flex-direction: row;
  border: 1px solid #d5d5d5;
  background-color: white;
  justify-content: center;
  padding: 9px 16px;
  border-radius: 6px;
}

.buy-offer .search-input-field input {
  width: 88%;
  border: 0;
  outline: 0;
}

.buy-offer .search-input-field img {
  width: 20px;
}

.buy-offer .filter-section:first-child {
  margin-top: 0;
}

.buy-offer .filter-section {
  width: 100%;
  /* margin-top: 10px; */
  background: white;
  padding: 15px;
}

.reset-filter {
  display: flex;
  width: max-content;
  justify-self: end;
  /* background: linear-gradient(to right, #FE4E44, #9F0900); */
  color: #fe4e44;
  font-size: 14px;
  font-weight: 500;
  border-radius: 27px;
}

.buy-offer .country-list {
  display: flex;
  flex-direction: column;
  min-height: 122px;
  max-height: 215px;
  max-width: 100%;
  /* width: 8rem; */
  overflow-y: scroll;
  margin-top: 0.75rem;
  /* background-color: #e0dce24a; */
}

.buy-offer .category-list {
  display: flex;
  flex-direction: column;
  /* min-height: 477px; */
  max-width: 100%;
  max-height: 215px;
  /* width: 199px; */
  overflow-y: scroll;
  margin-top: 0.75rem;
  /* background-color: #e0dce24a; */
}

.buy-offer .filter-item {
  display: flex;
  gap: 8px;
}

input[type="checkbox"] {
  accent-color: #fe4e44;
}

/* Inquiry Form Styles */
.buy-offer .inquiry-form {
  background: white;
  width: 100%;
  box-shadow: 0px 0px 5px -1px rgba(0, 0, 0, 0.25);
}

.buy-offer .inquiry-header {
  background: #ebebeb;
  padding: 19px 30px;
  font-size: 20px;
  font-weight: 600;
}

.buy-offer .inquiry-body {
  padding: 30px;
}

.buy-offer .form-group {
  margin-bottom: 20px;
}

.buy-offer .form-group label {
  display: block;
  font-size: 14px;
  color: #515050;
  font-weight: 500;
  margin-bottom: 10px;
}

.buy-offer .supplier-name-field {
  background: white;
  padding: 16px 32px;
  font-size: 16px;
}

.buy-offer #email,
.buy-offer #message {
  width: 100%;
  padding: 17px 31px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
}

.buy-offer #message {
  resize: none;
  height: 200px;
}

.buy-offer .btn-inquire-now {
  background: linear-gradient(90deg, #fe4e44 0%, #9f0900 100%);
  color: white;
  border: none;
  border-radius: 40px;
  padding: 10px 25px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
}
.buy-offer .mobile-heart {
  display: none !important;
}
.buy-offer .filter-button {
  display: none;
  margin-left: 50px;
  width: 101px;
  height: 30px;
  align-items: center;
  gap: 6px;
  border: 1px solid #ccc;
  padding: 6px 12px;
  background-color: white;
  cursor: pointer;
}

@media (max-width: 1400px) {
  .buy-offer .container {
    padding: 15px;
  }

  .buy-offer .lead-card-inner {
    flex-wrap: nowrap;
    gap: 0.28rem;
  }

  .buy-offer .gap-5 {
    gap: 0rem;
  }

  .buy-offer .sidebar {
    width: 20%;
  }

  .buy-offer .contact-btn {
    width: 106px;
    height: 34px;
    white-space: nowrap;
    font-size: 12px;
  }

  .buy-offer .lead-posted {
    font-size: 10px;
    white-space: nowrap;
  }

  .buy-offer .verified-badge {
    margin-left: auto;
  }

  .buy-offer .lead-title {
    font-size: 14px;
  }

  .buy-offer .lead-description {
    font-size: 12px;
  }

  .buy-offer .lead-tags-content {
    font-size: 10px;
  }

  .buy-offer .lead-location {
    margin-right: 34px;
  }

  .buy-offer .detail-value {
    font-size: 12px;
  }

  .buy-offer .detail-label {
    font-size: 12px;
  }

  .buy-offer .lead-details {
    column-gap: 59px;
    justify-content: normal;
  }

  .buy-offer .search-and-filters-container {
    display: none;
    /* display: flex;  */
    gap: 20px;
    align-items: center;
  }

  .buy-offer .lead-info {
    align-self: stretch;
    /* width: 100%; */
    /* max-width: 625px; */
  }

  .buy-offer .pagination-inner {
    margin-top: 0%;
  }
}

@media (max-width: 1024px) {
  .buy-offer .container {
    padding: 15px;
  }

  .buy-offer .lead-card-inner {
    flex-wrap: nowrap;
    gap: 0.28rem;
  }

  .buy-offer .gap-5 {
    gap: 0rem;
  }

  .buy-offer .sidebar {
    width: 22.5%;
  }

  .buy-offer .contact-btn {
    width: 106px;
    height: 34px;
    white-space: nowrap;
    font-size: 12px;
  }

  .buy-offer .lead-posted {
    font-size: 10px;
    white-space: nowrap;
  }

  .buy-offer .verified-badge {
    margin-left: auto;
  }

  .buy-offer .lead-title {
    font-size: 14px;
  }

  .buy-offer .main-content {
    width: 75%;
  }

  .buy-offer .lead-description {
    font-size: 12px;
  }

  .buy-offer .lead-tags-content {
    font-size: 10px;
  }

  .buy-offer .lead-location {
    margin-right: 34px;
  }

  .buy-offer .detail-value {
    font-size: 12px;
  }

  .buy-offer .detail-label {
    font-size: 12px;
  }

  .buy-offer .lead-details {
    column-gap: 59px;
    justify-content: normal;
  }

  .buy-offer .search-and-filters-container {
    display: none;
    /* display: flex;  */
    gap: 20px;
    align-items: center;
  }

  .buy-offer .lead-info {
    align-self: stretch;
    width: 100%;
    /* max-width: 625px; */
  }

  .buy-offer .pagination-inner {
    margin-top: 0%;
  }
}

/* Media queries for responsiveness */
@media (max-width: 768px) {
  .buy-offer .container {
    padding: 1.25rem;
  }
  .buy-offer .lead-card-inner-div {
    /* flex-direction: column; */
    width: 100% !important;
    overflow-x: scroll;
  }
  .buy-offer .mobile-heart {
    display: block !important;
  }
  .overflow-div {
    width: 100% !important;
    overflow-x: scroll !important;
  }
  .buy-offer .flex {
    flex-direction: column;
  }

  .buy-offer .sidebar,
  .buy-offer .main-content {
    width: 100%;
    margin-left: 0;
  }

  .buy-offer .main-content {
    margin-top: 19px;
  }

  .buy-offer .lead-actions .verified-badge {
    margin-right: 0.125rem;
    position: absolute;
    left: 64%;
    top: 77px;
  }

  .buy-offer .lead-actions .contact-btn {
    margin-top: 2.5rem;
  }

  .buy-offer .lead-actions .lead-posted {
    margin-top: 03%;
    margin-left: 0.625rem;
    margin-right: 0.625rem;
  }

  .buy-offer .pagination-inner {
    padding: 0.875rem 1.25rem;
  }

  .buy-offer .sidebar {
    display: none;
  }

  .buy-offer .search-and-filters-container {
    display: flex !important;
  }

  .buy-offer .lead-description {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 14px !important;
  }

  .buy-offer .lead-card-inner {
    gap: 20px !important;
    flex-wrap: wrap !important;
  }

  .buy-offer .visibleonlow {
    display: block !important;
  }

  .buy-offer .visibleonhigh {
    display: none !important;
  }

  .buy-offer .lead-header {
    /* display: block; */
    display: flex;
  }

  .buy-offer .lead-header {
    position: relative;
    flex-wrap: unset;
  }
  .buy-offer .mobile-hide {
    display: none !important;
  }
  .buy-offer .lead-actions {
    flex-direction: row;
    flex-direction: row-reverse;
    width: 100%;
    justify-content: space-between;
  }

  .buy-offer .lead-actions .contact-btn {
    margin: 0.3rem 0 !important;
    width: 120px;
  }

  .buy-offer .lead-tags {
    display: block;
    font-size: 12px;
  }

  .buy-offer .divider {
    display: none;
  }

  .buy-offer .lead-details {
    column-gap: 35px;
  }

  #search-box {
    width: 318.66px;
  }

  .buy-offer .search-and-filters-container {
    justify-content: space-between;
  }

  /* .lead-location img{
        position: absolute;
        bottom: -211%;
    } */

  /* .lead-location {
        position: absolute;
        bottom: -211%;
            margin-left: 54px; */

  /* }  */

  /* .lead-tags{
    margin-top: 40px;
    } */
  .buy-offer .search-box {
    background: #fff;
    width: 300px;
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 6px 10px;
  }

  .buy-offer .filters-button {
    display: flex;
    margin-left: 50px;
    /* width: 180px; */
    height: 30px;
    align-items: center;
    gap: 6px;
    border: 1px solid #ccc;
    padding: 6px 12px;
    background-color: white;
    cursor: pointer;
    border-radius: 5px;
  }

  .buy-offer .lead-info {
    /* max-width: 675px !important; */
  }

  .buy-offer .pagination-inner {
    margin-top: 0%;
  }
}

@media (max-width: 430px) {
  .buy-offer .lead-details {
    column-gap: 14px;
    width: 100%;
  }

  .buy-offer .pagination-inner {
    display: none;
  }

  .buy-offer .bottom-banner img {
    display: none;
  }

  .buy-offer .search-box {
    width: 100%;
  }

  .buy-offer .filters-button {
    width: 100%;
  }

  .buy-offer .filters-button {
    margin-left: 0%;
  }

  .buy-offer .search-and-filters-container {
    gap: 9px !important;
  }
}
