/* Shared Naver-style SmartEditor used by free/depositor board write pages */
:is(.customer-board-free-write-page, .admin-terms-form) .free-board-content-row {
  min-height: 398px;
  align-items: stretch;
}
:is(.customer-board-free-write-page, .admin-terms-form) .free-board-editor {
  min-width: 0;
}
:is(.customer-board-free-write-page, .admin-terms-form) .naver-smarteditor {
  position: relative;
  display: grid;
  grid-template-rows: 34px minmax(320px, 1fr) 24px;
  min-width: 0;
  min-height: 378px;
  border: 1px solid #b9b9b9;
  background: #fff;
  box-sizing: border-box;
}
:is(.customer-board-free-write-page, .admin-terms-form) .naver-smarteditor-toolbar {
  display: flex;
  align-items: center;
  min-width: 0;
  height: 34px;
  padding: 3px 6px;
  overflow: hidden;
  border-bottom: 1px solid #c8c8c8;
  background: linear-gradient(#fafafa, #ececec);
  font-family: Arial, "Malgun Gothic", sans-serif;
  white-space: nowrap;
  box-sizing: border-box;
}
:is(.customer-board-free-write-page, .admin-terms-form) .naver-smarteditor-toolbar select {
  width: 76px;
  height: 25px;
  margin: 0 3px 0 0;
  padding: 0 20px 0 6px;
  border: 1px solid #bcbcbc;
  border-radius: 0;
  background: #fff;
  color: #333;
  font-size: 12px;
}
:is(.customer-board-free-write-page, .admin-terms-form) .naver-smarteditor-toolbar select[data-editor-size] {
  width: 54px;
}
:is(.customer-board-free-write-page, .admin-terms-form) .naver-smarteditor-toolbar button {
  display: inline-grid;
  place-items: center;
  width: 25px;
  min-width: 25px;
  height: 24px;
  margin: 0;
  padding: 0;
  border: 0;
  border-right: 1px solid #d0d0d0;
  border-radius: 0;
  background: transparent;
  color: #222;
  font-family: Gulim, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  cursor: pointer;
}
:is(.customer-board-free-write-page, .admin-terms-form) .naver-smarteditor-toolbar button:hover,
:is(.customer-board-free-write-page, .admin-terms-form) .naver-smarteditor-toolbar button:focus-visible {
  background: #dfe8f5;
  outline: 1px solid #9fb5d0;
  outline-offset: -1px;
}
:is(.customer-board-free-write-page, .admin-terms-form) .naver-smarteditor-toolbar button[data-editor-image] {
  width: auto;
  min-width: 56px;
  margin-left: 3px;
  padding: 0 7px;
  border-left: 1px solid #c8c8c8;
  border-right: 0;
}
:is(.customer-board-free-write-page, .admin-terms-form) .naver-smarteditor-canvas,
:is(.customer-board-free-write-page, .admin-terms-form) .naver-smarteditor-source {
  grid-row: 2;
  box-sizing: border-box;
  width: 100%;
  min-height: 320px;
  height: 100%;
  padding: 14px 16px;
  overflow: auto;
  resize: none;
  border: 0;
  border-radius: 0;
  outline: 0;
  background: #fff;
  color: #222;
  font-family: Gulim, "Malgun Gothic", sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
}
:is(.customer-board-free-write-page, .admin-terms-form) .naver-smarteditor-canvas:empty::before {
  color: #aaa;
  content: "내용을 입력해 주세요.";
  pointer-events: none;
}
:is(.customer-board-free-write-page, .admin-terms-form) .naver-smarteditor-source[hidden],
:is(.customer-board-free-write-page, .admin-terms-form) .naver-smarteditor-canvas[hidden] {
  display: none !important;
}
:is(.customer-board-free-write-page, .admin-terms-form) .naver-smarteditor-resize {
  grid-row: 3;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 24px;
  padding: 0 188px 0 8px;
  border-top: 1px solid #c8c8c8;
  background: #f7f7f7;
  color: #777;
  font-family: Dotum, sans-serif;
  font-size: 11px;
  box-sizing: border-box;
  cursor: ns-resize;
  user-select: none;
}
:is(.customer-board-free-write-page, .admin-terms-form) .naver-smarteditor-resize::before {
  margin-right: 5px;
  content: "↕";
  color: #999;
}
:is(.customer-board-free-write-page, .admin-terms-form) .naver-smarteditor-modes {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  height: 23px;
}
:is(.customer-board-free-write-page, .admin-terms-form) .naver-smarteditor-modes button {
  min-width: 62px;
  height: 23px;
  padding: 0 9px;
  border: 0;
  border-left: 1px solid #c8c8c8;
  border-radius: 0;
  background: #f2f2f2;
  color: #777;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 400;
}
:is(.customer-board-free-write-page, .admin-terms-form) .naver-smarteditor-modes button.active,
:is(.customer-board-free-write-page, .admin-terms-form) .naver-smarteditor-modes button.is-active {
  background: #fff;
  color: #333;
}

/* Both boards use one editor module; page-specific differences stay outside editor selectors. */
.customer-board-depositor-write-page .free-board-content-row {
  min-height: 440px;
}
.customer-board-depositor-write-page .naver-smarteditor {
  min-height: 410px;
}
.customer-board-depositor-write-page .naver-smarteditor-canvas,
.customer-board-depositor-write-page .naver-smarteditor-source {
  min-height: 352px;
}
.customer-board-depositor-write-page .free-board-content-row .free-board-write-label {
  padding-top: 194px;
}
.customer-board-depositor-write-page .depositor-file-row {
  grid-template-columns: 90px minmax(0, 1fr);
  min-height: 52px;
  margin-top: 0;
  border-bottom: 1px solid #e4e5e7;
}
.customer-board-depositor-write-page .depositor-file-row input[type="file"] {
  min-height: 32px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #45494f;
  font-size: 13px;
}
.customer-board-depositor-write-page .depositor-file-row input[type="file"]::file-selector-button {
  height: 30px;
  margin-right: 9px;
  padding: 0 14px;
  border: 1px solid #9b9da1;
  border-radius: 2px;
  background: #fff;
  color: #20242a;
  font: inherit;
  cursor: pointer;
}
.customer-board-depositor-write-page .customer-board-form-actions {
  margin-top: 34px;
}

@media (max-width: 760px) {
  :is(.customer-board-free-write-page, .admin-terms-form) .free-board-content-row,
  .customer-board-depositor-write-page .free-board-content-row {
    min-height: 0;
  }
  :is(.customer-board-free-write-page, .admin-terms-form) .naver-smarteditor,
  .customer-board-depositor-write-page .naver-smarteditor {
    grid-template-rows: auto minmax(260px, 1fr) 24px;
    min-height: 326px;
  }
  :is(.customer-board-free-write-page, .admin-terms-form) .naver-smarteditor-toolbar {
    height: auto;
    min-height: 34px;
    flex-wrap: wrap;
    overflow: visible;
  }
  :is(.customer-board-free-write-page, .admin-terms-form) .naver-smarteditor-canvas,
  :is(.customer-board-free-write-page, .admin-terms-form) .naver-smarteditor-source,
  .customer-board-depositor-write-page .naver-smarteditor-canvas,
  .customer-board-depositor-write-page .naver-smarteditor-source {
    min-height: 260px;
  }
  :is(.customer-board-free-write-page, .admin-terms-form) .naver-smarteditor-resize {
    justify-content: flex-start;
    padding-right: 150px;
    font-size: 10px;
  }
  :is(.customer-board-free-write-page, .admin-terms-form) .naver-smarteditor-modes button {
    min-width: 48px;
  }
  .customer-board-depositor-write-page .free-board-content-row .free-board-write-label {
    padding-top: 0;
  }
  .customer-board-depositor-write-page .depositor-file-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}
