.local-backend-message {
  display: none;
  width: 820px;
  margin: 12px auto;
  padding: 12px 14px;
  border: 1px solid #b8cbe8;
  background: #f6f9ff;
  color: #1f3557;
  font-family: Pretendard, SCoreDream, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
}

.local-backend-message[data-type="success"] {
  border-color: #9dccb0;
  background: #f1fbf5;
  color: #1f6b3c;
}

.local-backend-message[data-type="error"] {
  border-color: #e2a6a6;
  background: #fff5f5;
  color: #9b1c1c;
}

.local-search-feedback {
  box-sizing: border-box;
  width: 100%;
  margin: 8px 0 0;
  padding: 8px 10px;
  border: 1px solid #cfd9e8;
  background: #f7fbff;
  color: #27466f;
  font-family: Pretendard, SCoreDream, Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.search_tit + .local-search-feedback {
  width: auto;
  margin: 0 0 12px;
}

.main_tsearch_new > .local-search-feedback {
  position: absolute;
  top: 58px;
  left: 0;
  z-index: 5000;
  width: 690px;
  margin: 0;
  padding: 10px 14px;
  border-radius: 4px;
  box-shadow: 0 8px 18px rgba(18, 38, 72, 0.14);
  text-align: left;
}

.local-search-feedback.success {
  border-color: #9dccb0;
  background: #f1fbf5;
  color: #1f6b3c;
}

.local-search-feedback.error {
  border-color: #e2a6a6;
  background: #fff5f5;
  color: #9b1c1c;
}

.local-backend-panel {
  width: 820px;
  margin: 14px auto;
}

.local-backend-panel strong {
  display: inline-block;
  margin-right: 10px;
  color: #12355f;
}

.local-required-agreement-helper {
  box-sizing: border-box;
  width: 820px;
  max-width: calc(100% - 24px);
  margin: 0 auto 14px;
  padding: 13px 15px;
  border: 2px solid #2f6fd6;
  background: #f7fbff;
  color: #1e2f47;
  font-family: Pretendard, SCoreDream, Arial, sans-serif;
}

.local-required-agreement-helper[data-state="error"] {
  border-color: #d92828;
  background: #fff4f4;
}

.local-required-agreement-helper[data-state="complete"] {
  border-color: #239257;
  background: #f1fbf5;
}

.local-required-agreement-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
  font-size: 15px;
}

.local-required-agreement-head strong {
  margin: 0;
  color: #163d74;
  font-size: 16px;
}

.local-required-agreement-head b {
  color: #d92828;
}

.local-required-agreement-helper[data-state="complete"] .local-required-agreement-head b {
  color: #157347;
}

.local-required-agreement-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

.local-required-agreement-list li {
  min-height: 28px;
  padding: 6px 8px;
  border: 1px solid #ccd9ea;
  background: #fff;
  color: #3a4f6b;
  font-size: 12px;
  line-height: 1.35;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.local-required-agreement-list li::before {
  content: "□";
  display: inline-block;
  width: 16px;
  color: #d92828;
  font-weight: 700;
}

.local-required-agreement-list li.is-checked::before {
  content: "✓";
  color: #157347;
}

.local-required-agreement-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.local-required-agreement-actions button {
  min-width: 150px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #245cb5;
  background: #2f6fd6;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.local-required-agreement-actions span {
  color: #d92828;
  font-size: 13px;
  line-height: 1.45;
}

.local-required-agreement-helper[data-state="complete"] .local-required-agreement-actions span {
  color: #157347;
}

.local-required-agree {
  outline: 1px solid #d7e4f7;
  outline-offset: 2px;
  background: #f7fbff;
}

.local-required-agree.local-required-agree-missing {
  outline-color: #d92828;
  background: #fff4f4;
}

.local-required-agree-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 6px;
  border-radius: 2px;
  background: #d92828;
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  vertical-align: middle;
}

.local-sell-picker {
  padding: 12px;
  border: 1px solid #d7e4f7;
  background: #f6f9ff;
}

.local-sell-picker label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 10px;
  color: #333;
  font-size: 13px;
}

.local-sell-picker select {
  min-width: 150px;
  height: 30px;
  border: 1px solid #bfc8d5;
  background: #fff;
}

.local-trade-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
}

.local-trade-action {
  min-height: 24px;
  padding: 2px 7px;
  border: 1px solid #9eb8dc;
  background: #f7fbff;
  color: #24528f;
  font-size: 12px;
  line-height: 18px;
  cursor: pointer;
}

.local-trade-action:disabled {
  cursor: wait;
  opacity: 0.55;
}

.local-trade-messages {
  margin-top: 8px;
  padding: 8px;
  border: 1px solid #e1e7f0;
  background: #fafcff;
  font-size: 12px;
  line-height: 1.45;
}

.local-trade-messages-title {
  margin-bottom: 5px;
  color: #244b80;
  font-weight: 700;
}

.local-trade-messages ul {
  margin: 0 0 6px;
  padding: 0;
  list-style: none;
}

.local-trade-messages li {
  margin-bottom: 4px;
}

.local-trade-message-meta {
  display: block;
  color: #777;
}

.local-trade-message-text {
  display: block;
  color: #333;
  word-break: break-word;
}

.local-trade-message-form {
  display: flex;
  gap: 5px;
}

.local-trade-message-form input {
  min-width: 0;
  flex: 1;
  height: 24px;
  border: 1px solid #c6d2e2;
  padding: 0 6px;
  font-size: 12px;
}

.local-trade-message-form button {
  min-width: 48px;
  height: 24px;
  border: 1px solid #8eaeda;
  background: #f4f8ff;
  color: #24528f;
  font-size: 12px;
  cursor: pointer;
}

.local-trade-message-form button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.local-inquiry-title,
.local-inquiry-summary,
.local-inquiry-answer {
  display: block;
  word-break: break-word;
}

.local-inquiry-title {
  margin-bottom: 4px;
  color: #222;
}

.local-inquiry-summary {
  color: #555;
  font-size: 12px;
  line-height: 1.45;
}

.local-inquiry-answer {
  margin-top: 4px;
  color: #24528f;
  font-size: 12px;
  line-height: 1.45;
}

.local-inquiry-status {
  display: inline-block;
  min-width: 64px;
  padding: 2px 6px;
  border: 1px solid #e1c7a5;
  color: #8b5a14;
  background: #fff8ed;
  font-size: 12px;
  line-height: 18px;
}

.local-inquiry-status.answered {
  border-color: #9dccb0;
  color: #1f6b3c;
  background: #f1fbf5;
}

.local-inquiry-status.closed {
  border-color: #cfd6df;
  color: #596270;
  background: #f6f7f9;
}

.local-charge-selected {
  outline: 2px solid #467be1 !important;
  outline-offset: 2px;
}

.payment-box.local-payment-selected,
.payment-box.on {
  border-color: #467be1 !important;
  outline: 2px solid #467be1 !important;
  outline-offset: 2px;
  background: #eef6ff !important;
  color: #0057b8 !important;
}

.local-auth-ok,
.local-auth-pending {
  display: inline-block;
  margin: 2px 4px 0 0;
  padding: 1px 5px;
  border: 1px solid #c8d7ec;
  color: #315f9d;
  background: #f6f9ff;
  font-size: 11px;
  line-height: 18px;
}

.local-auth-pending {
  border-color: #e1c7a5;
  color: #8b5a14;
  background: #fff8ed;
}

.local-listing-auth-summary {
  margin-top: 4px;
}

.local-busy {
  pointer-events: none;
  opacity: 0.6;
}

.local-profile-page {
  min-height: 560px;
}

.local-profile-summary {
  display: flex;
  width: 820px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid #d8e4f4;
  background: #f8fbff;
  box-sizing: border-box;
  gap: 18px;
  color: #333;
  font-size: 13px;
}

.local-profile-summary span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

.local-profile-summary strong {
  color: #1f63b5;
}

.local-profile-table {
  width: 820px;
  border-top: 1px solid #ababab;
}

.local-profile-table th {
  height: 40px;
  padding: 7px 14px;
  background: #f4f4f4;
  color: #333;
  text-align: left;
  font-weight: 500;
}

.local-profile-table td {
  min-height: 40px;
  padding: 7px 10px;
}

.local-profile-table .inptxt {
  height: 30px;
  border: 1px solid #d9d9d9;
  box-sizing: border-box;
}

.local-profile-table .w80 {
  width: 80px;
}

.local-profile-table .w90 {
  width: 90px;
}

.local-profile-table .w160 {
  width: 160px;
}

.local-profile-table .w180 {
  width: 180px;
}

.local-profile-inline {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.local-profile-select {
  width: 130px;
  height: 30px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #333;
}

.local-profile-bank-select {
  width: 180px;
  height: 30px;
  border: 1px solid #d9d9d9;
  background: #fff;
  color: #333;
}

.local-readonly {
  background: #f7f7f7;
  color: #777;
}

.local-profile-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.local-profile-badge {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid #e1c7a5;
  background: #fff8ed;
  color: #8b5a14;
  font-size: 12px;
  line-height: 18px;
}

.local-profile-badge.on {
  border-color: #9dccb0;
  background: #f1fbf5;
  color: #1f6b3c;
}

.local-profile-link {
  display: inline-block;
  margin-top: 7px;
  color: #236bd5;
  font-size: 12px;
  text-decoration: underline;
}

.local-profile-actions {
  width: 820px;
  margin-top: 60px;
  text-align: right;
}

.local-profile-actions button {
  min-width: 106px;
  height: 40px;
  border: 0;
  border-radius: 2px;
  background: #1f9df2;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.local-register-step2[hidden] {
  display: none;
}

.local-register-step1-section[hidden],
.local-register-step1-actions[hidden],
.local-required-agreement-helper[hidden] {
  display: none;
}

.local-register-step2 {
  clear: both;
}

.local-inline-button,
.local-register-primary,
.local-register-secondary {
  min-height: 30px;
  border: 1px solid #2f6fd6;
  background: #2f6fd6;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

.local-inline-button {
  margin-left: 6px;
  padding: 0 12px;
}

.local-inline-result {
  margin-left: 8px;
  font-size: 12px;
  color: #555;
}

.local-inline-result[data-state="ok"] {
  color: #157347;
}

.local-inline-result[data-state="error"] {
  color: #b42318;
}

.local-register-step2-actions {
  width: 820px;
  margin-top: 18px;
  text-align: center;
}

.local-register-step2-actions button {
  min-width: 104px;
  height: 38px;
  margin: 0 4px;
}

.local-register-secondary {
  border-color: #777;
  background: #777;
}

.local-custom-charge {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  color: #333;
}

.local-profile-help {
  margin: 6px 0 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.45;
}

.local-sold-badge,
.local-home-sold {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 2px;
  background: #6b7280;
  color: #fff;
  font-style: normal;
  font-size: 11px;
  line-height: 16px;
  vertical-align: middle;
}

.search_list table tr.local-listing-completed {
  position: relative !important;
  background-color: #f2f2f2 !important;
}

.search_list table tr.local-listing-completed td,
.search_list table tr.local-listing-completed td *:not(.local-sold-badge) {
  color: #8b929c !important;
}

.search_list table tr.local-listing-completed .info_incen img,
.search_list table tr.local-listing-completed .info_incen span,
.search_list table tr.local-listing-completed .badge.hasScreenshot {
  filter: grayscale(1);
  opacity: 0.46;
}

.search_list table tr.local-listing-completed .local-sold-badge {
  position: relative;
  z-index: 2;
  background: #5f6670 !important;
  color: #fff !important;
  opacity: 1;
}

.search_list table tr.local-listing-completed::after {
  content: "거래완료" !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 60px !important;
  line-height: 60px !important;
  background: rgba(255, 255, 255, 0.74) !important;
  color: #5f6670 !important;
  font-family: "Pretendard", sans-serif !important;
  font-size: 16px !important;
  font-weight: 800 !important;
  text-align: center !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.sell_bbtn.local-purchase-button {
  background: #216ed7 !important;
  color: #fff !important;
  cursor: pointer;
}

.sell_bbtn.local-sold-button {
  background: #8b929c !important;
  color: #fff !important;
  cursor: default !important;
  pointer-events: none;
}

.sell_bbtn.local-sold-button-completed {
  background: #737b86 !important;
}

.local-sold-detail {
  margin: 10px 0;
  padding: 10px;
  border: 1px solid #c9ccd3;
  background: #f5f6f8;
  color: #374151;
  font-weight: 700;
}

.tbl .local-seller-cert-grid {
  display: grid;
  grid-template-columns: repeat(4, 108px);
  align-items: center;
  gap: 6px;
}

.tbl .local-seller-cert-grid .cer_state {
  box-sizing: border-box;
  width: 108px;
  min-width: 108px;
  height: 30px;
  margin: 0 !important;
  padding: 0 8px !important;
  line-height: 28px;
  text-align: center;
  white-space: nowrap;
}

.tbl .local-seller-cert-grid .cer_state.local-cert-off {
  border-color: #c8ccd3 !important;
  background: #f2f3f5 !important;
  color: #8b929c !important;
}
