.manage-product-title {
  font-family: "KrungsriCondensed";
  font-weight: bold;
  font-size: 28px;
  color: #222222;
  margin-top: 14px;
  margin-bottom: 18px;
}

.rfq-detail-page .company-name {
  display: -webkit-box; 
  -webkit-box-orient: vertical; 
  overflow: hidden; 
  text-overflow: ellipsis;
}

.rfq-detail-page .company-name.company-name-viewer {
  line-clamp: 1;
  -webkit-line-clamp: 1;
}

.rfq-detail-page .company-name.company-name-owner {
  line-clamp: 2;
  -webkit-line-clamp: 2;
}

/* RFQ Status Badge */
.rfq-detail-page .b2b-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rfq-detail-page .b2b-badge img {
  width: 8px;
  height: 8px;
  flex-shrink: 0;
}

.rfq-detail-page .product-status {
  font-size: 16px;
  margin-left: 12px;
  margin-bottom: 18px;
  align-items: center;
  gap: 8px;
}

.rfq-detail-page .product-status b {
  font-family: "KrungsriCondensed";
  font-weight: 600;
}

/* RFQ Keyword Badges */
.rfq-keywords-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.rfq-keyword-badge {
  color: #222222;
  background-color: transparent;
  border: 1px solid #e3e3e3;
  font-family: "KrungsriCondensed";
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* RFQ Attachment Section */
.rfq-attachment-section dt {
  font-family: "KrungsriCondensed";
  font-weight: bold;
  font-size: 20px;
  color: #222222;
  margin-bottom: 8px;
}

.rfq-attachment-section .sub-title {
  font-size: 14px;
  font-weight: bold;
  font-family: "KrungsriCondensed";
  color: #222222;
  margin-top: 8px;
}

.rfq-files-container {
  display: flex;
  flex-wrap: wrap;
}

.rfq-document-area {
  height: 78px;
  padding: 12px;
  border-radius: 8px;
  background-color: #ffffff;
  box-shadow: 1px 2px 10px 0 rgba(35, 19, 18, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  overflow: hidden;
  max-width: 100%;
  min-width: 260px
}

.product-detail-view-owner .rfq-document-area {
  min-width: 100%
}

.rfq-document-area:hover {
  box-shadow: 1px 2px 12px 0 rgba(35, 19, 18, 0.3);
}

.rfq-document-area:focus,
.rfq-document-area:active,
.rfq-document-area:focus-visible {
  box-shadow: 1px 2px 10px 0 rgba(35, 19, 18, 0.2) !important;
  outline: none !important;
}

.rfq-doc-icon-wrapper {
  flex-shrink: 0;
  width: 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rfq-doc-content {
  flex: 1;
  padding-left: 12px;
  border-left: 1px solid #eeeeee;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
}

.rfq-doc-download-wrapper {
  flex-shrink: 0;
  width: 40px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rfq-document-area .file-name-detail {
  color: #222222;
  font-family: "KrungsriCondensed";
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0;
  line-height: 1.3;
  margin: 0;
  margin-bottom: 2px;
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.rfq-document-area .file-size-detail {
  color: #626262;
  font-family: "Thongterm-Roman";
  font-size: 14px;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0;
}

.rfq-document-area .document-icon-area,
.rfq-document-area .download-icon-area {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

@media only screen and (min-width: 768px) {
  .rfq-document-area {
    max-width: 340px;
  }

  .product-detail-view-owner .rfq-document-area {
    min-width: 245px;
    max-width: 245px;
  }
}

@media only screen and (min-width: 992px) {
  /* Button spacing for desktop */
  .rfq-detail-page .product-detail-actions-container {
    padding-top: 20px;
    padding-bottom: 40px;
  }

  .rfq-detail-page .product-detail-actions-container .b2b-button-product-detail-yellow,
  .rfq-detail-page .product-detail-actions-container .b2b-button-product-detail-default {
    margin-bottom: 0;
  }

  .rfq-document-area {
    min-width: 250px;
  }

  .product-detail-view-owner .rfq-document-area {
    min-width: 190px;
    max-width: 190px;
  }
  
}

/* Mobile specific styles */
@media only screen and (max-width: 991px) {
  .rfq-detail-page .product-detail-actions-container {
    padding: 20px 12px 40px 12px;
  }

  .rfq-detail-page .product-detail-actions-container .b2b-button-product-detail-yellow,
  .rfq-detail-page .product-detail-actions-container .b2b-button-product-detail-default {
    width: 100%;
    margin: 0 0 12px 0;
  }

  .rfq-detail-page .product-detail-actions-container .b2b-button-product-detail-default {
    margin-bottom: 12px;
  }

  /* Status container - align to right in mobile */
  .rfq-detail-page .product-status-container.mobile {
    margin-top: 32px;
    margin-bottom: 0;
    justify-content: flex-end;
  }
  
  .rfq-detail-page .product-status-container.mobile > div {
    margin-left: auto;
  }
}

/* Extra small devices - ensure right alignment */
@media only screen and (max-width: 767px) {
  .rfq-detail-page .product-status-container.mobile .col {
    margin-left: auto;
    margin-right: 0;
  }
}

@media only screen and (min-width: 1200px) {
  .rfq-document-area {
    min-width: 320px;
  }

  .product-detail-view-owner .rfq-document-area {
    min-width: 240px;
    max-width: 320px;
  }
}