/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* PWA 앱 환경 최적화 */
html, body {
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}

body, button, a, input, select, textarea {
  touch-action: manipulation;
}

body {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

/* 입력 필드, 채팅 메시지(.selectable), 관리자 화면만 텍스트 선택 허용 (계좌번호·연락처 복사) */
input, textarea, [contenteditable="true"],
.selectable, .selectable *,
body.admin-body, body.admin-body * {
  -webkit-user-select: text;
  user-select: text;
  -webkit-touch-callout: default;
}

/* 키보드 올라올 때 하단 고정 요소 숨김 */
@media (max-width: 767px) {
  body.keyboard-open .fixed.bottom-0,
  body.keyboard-open .hide-on-keyboard {
    display: none;
  }
}
