/*
 * Site-wide overrides — loaded after style.css.
 * Fixes the theme's select2 skin (transparent dropdown, pink hover)
 * and unifies the premium form look.
 */

/* ---------- Select2 dropdown ---------- */
.select2-dropdown {
  background-color: #ffffff !important;
  border: 1px solid #eadfca !important;
  border-radius: 12px !important;
  box-shadow: 0 14px 40px rgba(42, 37, 29, 0.16);
  overflow: hidden;
  margin-top: 6px;
  padding: 6px 0;
}

.select2-container--open .select2-dropdown--below {
  border-top: 1px solid #eadfca !important;
}

.select2-results__option,
.select2-results__option[aria-selected] {
  padding: 10px 18px !important;
  font-size: 14.5px;
  color: #4a4438;
  transition: background-color .15s ease, color .15s ease;
}

.select2-results__option:hover,
.select2-results__option.select2-results__option--highlighted,
.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #faf3e6 !important;
  color: #a5824a !important;
}

.select2-container--default .select2-results__option[aria-selected="true"] {
  background-color: #d2b171 !important;
  color: #ffffff !important;
}

.select2-container--default .select2-results > .select2-results__options {
  max-height: 240px;
}

/* Slim gold scrollbar inside dropdowns */
.select2-container--default .select2-results > .select2-results__options::-webkit-scrollbar {
  width: 6px;
}
.select2-container--default .select2-results > .select2-results__options::-webkit-scrollbar-track {
  background: transparent;
}
.select2-container--default .select2-results > .select2-results__options::-webkit-scrollbar-thumb {
  background: #d8c39a;
  border-radius: 999px;
}

.select2-search--dropdown {
  padding: 8px;
}
.select2-search--dropdown .select2-search__field {
  border: 1px solid #eadfca !important;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 14px;
}

.select2-search--dropdown .select2-search__field:focus {
  border-color: #d2b171 !important;
}

/* ---------- Select2 selection box ---------- */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  border-radius: 8px;
  border: 1px solid #eadfca !important;
  background-color: #ffffff !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__rendered,
.select2-container--default.select2-container--focus .select2-selection--single .select2-selection__rendered {
  border-color: #d2b171 !important;
  box-shadow: 0 0 0 3px rgba(210, 177, 113, 0.18);
}

/* Outside labels must never fade away (theme hides .form-label.focus) */
.form-label.form-label-outside,
.form-label.form-label-outside.focus,
.form-label-outside.focus {
  opacity: 1 !important;
}

/* ---------- Navbar chat unread badge ---------- */
.chat-nav-link {
  position: relative;
}
.chat-nav-badge {
  position: absolute;
  top: -9px;
  right: -14px;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border-radius: 999px;
  background: #EB6739;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 19px;
  text-align: center;
  box-shadow: 0 0 0 2px rgba(210, 177, 113, .55);
}

/* Mobile drawer: keep the badge inline next to "Czat" instead of
   pinned off the right edge of the full-width link. */
@media (max-width: 1199.98px) {
  .chat-nav-badge {
    position: static;
    display: inline-block;
    margin-left: 10px;
    vertical-align: 2px;
    box-shadow: none;
  }
}

/* ---------- Pagination spacing ---------- */
.pagination-outer {
  margin-top: 24px;
}
.msg-panel .pagination-outer {
  margin-top: 0;
  padding: 16px 20px;
  border-top: 1px solid #f3ead6;
}
.msg-panel .pagination {
  margin-bottom: 0;
}
