/* Oversea Buyer 전용 스타일 */
.ob-page {
  padding-bottom: 100px;
}

.ob-title-wrap {
  padding: 60px 0 0px;
}

.ob-title-group {
  padding-bottom: 24px;
  border-bottom: 1px solid #1e1e1e;
}

.ob-title-group .ob-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  display: flex;
}

.ob-title-group .ob-title i {
  color: #2f83f7;
}

.ob-title-group p {
  font-size: 16px;
  color: #1e1e1e;
  line-height: 1.6;
}

.ob-filter-wrap {
  margin-top: 30px;
  border-bottom: none;
}

.ob-select-wrap {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ob-select-wrap .form-input {
  width: 200px;
  height: 44px;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 0 15px;
}

.ob-search-info {
  margin-top: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ob-amount {
  font-size: 16px;
  font-weight: 500;
}

/* 테이블 영역 */
.ob-table-wrap {
  margin-top: 12px;
}

.ob-table-head {
  display: flex;
  background-color: #eff6ff;
  border-top: 1px solid #d6e0eb;
  border-left: 1px solid #d6e0eb;
  border-right: 1px solid #d6e0eb;
  box-sizing: border-box;
  /* padding: 15px 0; */
}

.ob-table-title {
  flex: 1;
  height: 43px;
  line-height: 19px;
  text-align: center;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 0px; /* 패딩 추가 */
  border-right: 1px solid #d6e0eb;
  border-bottom: 1px solid #d6e0eb;
}

.ob-table-title:last-child {
  border-right: none;
}

/* 주소 및 생산품 컬럼 너비 고정 */
.ob-table-head .ob-table-title:nth-child(1),
.ob-table-item .ob-table-txt:nth-child(1) {
  flex: 0 0 100px;
  min-width: 100px;
}

.ob-table-head .ob-table-title:nth-child(2),
.ob-table-item .ob-table-txt:nth-child(2) {
  flex: 0 0 250px;
  min-width: 250px;
}

.ob-table-head .ob-table-title:nth-child(3),
.ob-table-item .ob-table-txt:nth-child(3) {
  flex: 0 0 200px;
  min-width: 200px;
}

.ob-table-head .ob-table-title:nth-child(4),
.ob-table-head .ob-table-title:nth-child(5),
.ob-table-item .ob-table-txt:nth-child(4),
.ob-table-item .ob-table-txt:nth-child(5) {
  flex: 0 0 300px;
  min-width: 300px; /* 확실한 너비 고정 */
}

.ob-table-item .ob-table-txt:nth-child(4),
.ob-table-item .ob-table-txt:nth-child(5),
.ob-table-item .ob-table-txt:nth-child(6) {
  align-items: flex-start;
}

.ob-table-head .ob-table-title:nth-child(6),
.ob-table-item .ob-table-txt:nth-child(6) {
  min-width: 150px;
}

.ob-table-body {
  display: flex;
  flex-direction: column;
  font-size: 15px;
}

.ob-table-item {
  display: flex;
  /* padding: 20px 0; */
  border-bottom: 1px solid #d0d0d0;
  border-left: 1px solid #d0d0d0;
  border-right: 1px solid #d0d0d0;
  box-sizing: border-box;
  transition: background 0.2s;
  align-items: center;
  text-align: center;
  color: inherit;
  text-decoration: none;
  width: 100%; /* 너비 100% 보장 */
}

.ob-table-item:hover {
  background-color: #fcfcfc;
}

.ob-table-txt {
  flex: 1;
  padding: 0 16px;
  height: 50px;
  word-break: break-all;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-sizing: border-box; /* 패딩이 너비에 포함되도록 설정 */
  border-right: 1px solid #d0d0d0;
}

.ob-table-txt:last-child {
  border-right: none;
}

.ob-table-txt .country {
  font-weight: 400;
  color: #000;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
}

.ob-table-txt .title {
  font-weight: 400;
  color: #00438a;
  text-decoration: underline;
  width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.ob-table-txt .phone {
  /* font-size: 15px; */
}

/* 주소 필드 한 줄 처리 */
.ob-table-item .ob-table-txt:nth-child(1) .txt,
.ob-table-item .ob-table-txt:nth-child(4) .txt,
.ob-table-item .ob-table-txt:nth-child(5) .txt {
  width: 100%; /* 부모 너비(300px)에서 패딩을 뺀 나머지만 차지하도록 수정 */
  max-width: 280px; /* 300px - 좌우패딩 20px */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.ob-table-txt .txt {
  color: #000;
  text-align: left;
}

.ob-btn-link {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid #2f5bc1;
  color: #2f5bc1;
  border-radius: 4px;
  font-size: 13px;
  text-decoration: none;
}

/* 모바일 대응 */
@media screen and (max-width: 1024px) {
  .ob-title-wrap {
    padding: 40px 0 0px;
  }

  .ob-select-wrap {
    display: inline;
  }

  .ob-select-wrap .form-input {
    width: 100%;
    height: 48px;
    margin-bottom: 12px;
  }

  /* 모바일 카드 스타일 (test.html 참고) */
  .ob-mobile-list {
    margin-top: 12px;
  }

  .ob-mobile-list .card {
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid #d0d0d0;
  }

  .ob-mobile-list .card-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.5;
  }

  .ob-mobile-list .card-row:last-child {
    margin-bottom: 0;
  }

  .ob-mobile-list h3 {
    font-size: 4.8077vw; /* 20px */
    margin-bottom: 16px;
  }

  .ob-mobile-list .card-label {
    min-width: 110px;
    color: #5a5a5a;
    font-size: 4.0865vw; /* 17px */
    flex-shrink: 0;
  }

  .ob-mobile-list .card-value {
    color: #000;
    font-size: 4.0865vw; /* 17px */
    word-break: break-all;
  }

  .ob-mobile-list .card-value.highlight {
    color: #5b9bd5;
  }
}

/* 모달 팝업 스타일 */
.ob-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.ob-popup {
  background: #fff;
  width: 820px;
  max-width: 95vw;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 4px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.ob-popup-header {
  background: #00438a;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
}

.ob-popup-header h2 {
  font-size: 24px;
  line-height: 36px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: #fff;
}

.ob-popup-header .close-btn {
  background: none;
  border: none;
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
  padding: 0 2px;
  opacity: 0.9;
}

.ob-popup-header .close-btn:hover {
  opacity: 1;
}

.ob-popup-body {
  padding: 32px 24px 60px;
}

.ob-popup-body .company-name {
  font-size: 24px;
  font-weight: 600;
  color: #000;
  margin-bottom: 24px;
}

.ob-popup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  color: #222;
}

.ob-popup-table tr {
  border-bottom: 1px solid #ddd;
}

.ob-popup-table td {
  padding: 11px 14px;
  vertical-align: middle;
}

.ob-popup-table td:first-child {
  background: transparent;
  color: #555;
  font-weight: 500;
  white-space: nowrap;
  font-size: 16px;
}

.ob-popup-table td:last-child {
  color: #222;
  line-height: 1.5;
  text-align: left;
  font-size: 15px;
}

.ob-popup-table .tag {
  display: inline-block;
  border: 1px solid #bbb;
  border-radius: 3px;
  padding: 2px 8px;
  font-size: 12px;
  color: #444;
  margin-right: 6px;
}

.ob-popup-table a {
  color: #1a5bbf;
  text-decoration: underline;
  font-size: 14px;
  word-break: break-all;
}
