.rfq-page-title {
  font-family: "KrungsriCondensed", sans-serif;
  color: #222222;
  font-size: 24px;
  font-weight: bold;
  letter-spacing: 0;
  line-height: 42px;
}

/* -------------- RFQ Banner -------------- */
.b2b-button-brown {
  font-family: "KrungsriCondensed", sans-serif;
  color: #ffffff;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0;
  line-height: 30px;
  text-align: center;
  box-sizing: border-box;
  height: 44px;
  width: 216px;
  border-radius: 8px;
  margin: 0 12px;
  transition: all 0.5s;
  background-color: #6f5f5e;
  border: 1px solid #6f5f5e;
}

.b2b-button-brown:hover {
  background-color: #5e4e4d;
  border: 1px solid #5e4e4d;
  color: #ffffff;
}

.btn.b2b-button-brown:disabled,
.btn.b2b-button-brown[disabled] {
  background-color: #e8e8e8 !important;
  border: 1px solid #e8e8e8 !important;
  color: #a0a0a0 !important;
  opacity: 1 !important;
  pointer-events: none;
  cursor: default;
}

.rfq-banner-wrapper > div {
  width: 100%;
  color: #222222;
}

.rfq-banner-wrapper .btn {
  margin: 0;
  width: 100%;
}

.rfq-banner-wrapper .image {
  position: relative;
  height: 213px;
  background-image: url("/img/rfq/rfqs-page-banner-mobile.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: 65% 50%;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}

.rfq-banner-wrapper .desc {
  height: 171px;
  background-color: #ffd400;
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  padding: 16px;
}

.rfq-banner-wrapper .desc .title {
  font-family: "KrungsriCondensed", sans-serif;
  font-style: normal;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
}

.rfq-banner-wrapper .desc .detail {
  font-family: "KrungsriCondensed", sans-serif;
  font-style: normal;
  font-weight: 300;
  font-size: 14px;
  line-height: 26px;
}

.rfq-banner-wrapper .desc .action-button-wrapper {
  margin-top: 18px;
  width: 100%;
}

.rfq-banner-detail-container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1;
  width: 100%;
  padding: 0 24px;
}

.rfq-banner-detail-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 12px;
}

.rfq-banner-detail-icon {
  width: 50px;
  height: 50px;
  object-fit: contain;
  flex-shrink: 0;
}

.rfq-banner-detail-text {
  font-family: "KrungsriCondensed", sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  white-space: normal;
  line-height: 1.2;
  text-align: left;
  margin-left: 16px;
}

/* ------------- Access Denied Modal ------------- */
.access-denied-add-rfq-modal
  .modal-dialog
  .modal-content
  .modal-footer
  .action-button-wrapper
  .btn {
  max-width: 216px;
}

/* ------------- RFQ Card Styles ------------ */
.rfq-list-item {
  display: block;
  padding: 4px;
  margin: 0 0 24px;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 0 2px 7px 2px rgba(0, 0, 0, 0.1);
  height: 270px;
  transition: all 0.3s ease;
}

.rfq-list-item:hover {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.rfq-list-item .wrapper {
  min-height: auto;
  height: 100%;
}

.rfq-list-item .wrapper .content {
  cursor: pointer;
  margin: 0;
  height: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
}

.rfq-list-item .content .left {
  width: 262px;
  height: 262px;
  flex: 0 0 262px;
  min-width: 262px;
}

.rfq-list-item .content .right {
  flex: 1;
  overflow: hidden;
}

.rfq-list-item .content .left .ratio {
  background-image: url("../../images/icons/icon-img.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 80px;
  border-radius: 8px;
  width: 262px;
  height: 262px;
  overflow: hidden;
}

.rfq-list-item .content .left .cover-image {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 8px;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease;
}

.rfq-list-item:hover .content .left .cover-image {
  transform: scale(1.1);
}

.rfq-list-item .content .right p,
.rfq-list-item .content .right span,
.rfq-list-item .content .right div {
  font-family: "Thongterm-Roman", serif;
  color: #222222;
  letter-spacing: 0;
}

.rfq-list-item .content .right .rfq-name {
  font-family: "KrungsriCondensed", sans-serif;
  font-size: 18px;
  font-weight: bold;
  line-height: 1.4;
  display: -webkit-box;
  line-clamp: 1;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rfq-list-item .content .right .rfq-country {
  margin: 8px 0 16px;
  color: #626262;
  font-size: 12px;
  line-height: 26px;
}

.rfq-list-item .content .right .rfq-quantity,
.rfq-list-item .content .right .rfq-budget {
  font-size: 16px;
  font-weight: bold;
  line-height: 34px;
}

.rfq-list-item .content .right .rfq-description {
  font-family: "Thongterm-Roman", serif;
  color: #222222;
  margin: 13px 0 13px 0;
  font-size: 16px;
  font-weight: normal;
  line-height: 1.5;
  display: -webkit-box;
  line-clamp: 3;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rfq-list-item .action .rfq-info-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}

.rfq-list-item .action .rfq-info-group .rfq-expire,
.rfq-list-item .action .rfq-info-group .rfq-updated {
  font-size: 14px;
  color: #626262;
  line-height: 26px;
}

.rfq-list-item .action .rfq-info-group .rfq-divider {
  color: #d0d0d0;
}

.rfq-list-item .action .rfq-info-group-mobile .rfq-expire,
.rfq-list-item .action .rfq-info-group-mobile .rfq-updated {
  font-size: 14px;
  color: #626262;
  line-height: 26px;
}

/* ------------- RFQ No Result ------------- */
.html-rfqs-page .no-result-title {
    font-family: 'Thongterm-Roman';
    font-size: 16px;
    color: #222222;
    text-align: center;
}

/* ------------- RFQ Dropdown ------------- */
/* Keep dropdown row in single line */
.html-rfqs-page .row.gx-1 {
  flex-wrap: nowrap;
}

/* Category Filter Dropdown */
.html-rfqs-page #category-selector + .select2-container {
  min-width: auto !important;
  width: auto !important;
  max-width: 180px !important;
  flex-shrink: 1;
}

.html-rfqs-page #category-selector + .select2-container .select2-selection {
  min-width: auto !important;
  width: auto !important;
  max-width: 180px !important;
}

.html-rfqs-page
  #category-selector
  + .select2-container
  .select2-selection__rendered {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  padding-right: 30px;
  max-width: 180px;
}

/* Sort By Dropdown */
.html-rfqs-page #sortBy + .select2-container {
  min-width: auto !important;
  width: auto !important;
}

.html-rfqs-page #sortBy + .select2-container .select2-selection__rendered {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

body .select2-container--open .select2-dropdown.sort-by {
  min-width: 200px !important;
  width: auto !important;
}

body
  .select2-container--open
  .select2-dropdown.sort-by
  .select2-results__option {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 8px 12px;
}

.category-selector-dropdown.select2-dropdown--below,
.category-selector-dropdown.select2-dropdown--above {
  min-width: 320px !important;
}

@media only screen and (min-width: 768px) {
  
  /* Dropdown Styles */
  .html-rfqs-page #category-selector + .select2-container {
    min-width: 200px !important;
    max-width: 300px !important;
  }

  .html-rfqs-page #category-selector + .select2-container .select2-selection {
    min-width: 200px !important;
    max-width: 300px !important;
  }

  .html-rfqs-page #sortBy + .select2-container {
    min-width: 180px !important;
  }
}

@media only screen and (min-width: 992px) {
  .rfq-banner-wrapper > div {
    width: 100%;
    max-width: 100%;
    height: 265px;
  }

  .rfq-banner-wrapper .image {
    width: 100%;
    height: 100%;
    background-image: url("/img/rfq/rfqs-page-banner.png");
    background-position: 65% 50%;
    border-top-left-radius: 0;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
  }

  .rfq-banner-wrapper .desc {
    min-width: 340px;
    height: 100%;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 0;
    padding: 24px;
  }

  .rfq-banner-wrapper .desc .action-button-wrapper {
    margin-top: 40px;
    width: 68%;
  }

  .rfq-banner-wrapper .desc .title {
    font-weight: 700;
    font-size: 28px;
    line-height: 41px;
  }

  .rfq-banner-wrapper .desc .detail {
    font-weight: 300;
    font-size: 14px;
    line-height: 34px;
  }

  .rfq-banner-detail-icon {
    width: 112px;
    height: 112px;
  }

  .rfq-banner-detail-text {
    line-height: normal;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
    color: #ffffff;
    margin-left: 0;
  }
}

@media only screen and (min-width: 1280px) {
  .rfq-banner-wrapper .image {
    background-position: 100% 50%;
  }

  .rfq-banner-detail-container {
    flex-direction: row;
    display: flex;
    gap: 15px;
    width: auto;
    padding: 0;
  }

  .rfq-banner-detail-item {
    flex-direction: column;
    gap: 13px;
    width: 240px;
  }

  .rfq-banner-detail-container {
    display: flex;
    gap: 15px;
  }

  .rfq-page-title {
    font-size: 28px;
  }

  .rfq-banner-wrapper .image {
    background-position: 80% 50%;
  }

  .rfq-banner-wrapper .desc {
    min-width: 350px;
  }

  .rfq-banner-detail-icon {
    width: 112px;
    height: 112px;
  }

  .rfq-banner-detail-text {
    font-size: 16px;
  }
}

@media only screen and (max-width: 767px) {
  .b2b-button-brown {
    width: 100%;
  }

  /* RFQ Card Styles */
  .rfq-list-item {
    padding: 6px;
    height: auto;
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 7px 2px rgba(0, 0, 0, 0.1);
  }

  .rfq-list-item .wrapper .content {
    flex-direction: column;
    height: auto;
  }

  .rfq-list-item .content .left {
    width: 100%;
    height: auto;
    flex: 0 0 auto;
    padding: 0;
    margin-bottom: 16px;
  }

  .rfq-list-item .content .left .ratio {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    background-color: #f8f8f8;
    overflow: hidden;
  }

  .rfq-list-item .content .left .cover-image {
    border-radius: 8px;
  }

  .rfq-list-item .content .right {
    padding: 0;
    width: 100%;
  }

  .rfq-list-item .content .right .rfq-name {
    margin-bottom: 8px;
    white-space: normal;
    line-clamp: 2;
    -webkit-line-clamp: 2;
  }

  .rfq-list-item .content .right .rfq-description {
    font-size: 14px;
    margin-bottom: 16px;
    line-clamp: 2;
    -webkit-line-clamp: 2;
  }

  /* RFQ Card Details */
  .rfq-details-mobile {
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .rfq-details-mobile .detail-row {
    font-family: "Thongterm-Roman", serif;
    display: flex;
    flex-direction: row;
    font-size: 14px;
    line-height: 1.5;
  }

  .rfq-details-mobile .detail-label {
    font-family: "KrungsriCondensed", sans-serif !important;
    color: #626262 !important;
    font-size: 14px !important;
    font-weight: 200 !important;
    width: 90px;
    flex-shrink: 0;
  }

  .rfq-details-mobile .detail-sep {
    font-family: "KrungsriCondensed", sans-serif !important;
    color: #626262 !important;
    font-size: 14px !important;
    font-weight: 200 !important;
    width: 10px;
    text-align: center;
    margin-right: 8px;
    flex-shrink: 0;
  }

  .rfq-details-mobile .detail-value {
    font-family: "KrungsriCondensed", sans-serif !important;
    color: #626262 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .access-denied-add-rfq-modal
    .modal-dialog
    .modal-content
    .modal-footer
    .action-button-wrapper
    .btn {
    max-width: none;
  }
}
