/* Loaded after Hilite — overrides template typography */

.sidebar .nav .nav-item.nav-profile .profile-image img,
.navbar .navbar-menu-wrapper .navbar-nav .nav-item.nav-user-icon img {
  border-radius: 50%;
  object-fit: cover;
}

:root {
  --bs-font-sans-serif: var(--font-montserrat), 'Montserrat', sans-serif;
  --bs-body-font-family: var(--font-montserrat), 'Montserrat', sans-serif;
  --bs-btn-font-family: var(--font-montserrat), 'Montserrat', sans-serif;
  --bs-body-font-weight: 400;
  --bs-badge-font-weight: 600;
}

body,
.sidebar,
.navbar,
.main-panel,
.card,
.form-control,
.btn,
.table,
.footer-wrapper .footer,
.footer,
code,
.settings-panel,
.settings-panel .settings-heading,
.settings-panel .events p,
.datepicker.datepicker-dropdown .datepicker-days table.table-condensed thead tr th.dow,
.datepicker.datepicker-inline .datepicker-days table.table-condensed thead tr th.dow,
h1, h2, h3, h4, h5, h6,
p, span, label, input, textarea, select, button,
.nav-link,
.menu-title,
.card-title,
.profile-name .name,
.profile-name .designation {
  font-family: var(--font-montserrat), 'Montserrat', sans-serif !important;
  font-synthesis: none !important;
}

body {
  font-weight: 400 !important;
  -webkit-font-smoothing: auto !important;
  -moz-osx-font-smoothing: auto !important;
  text-rendering: optimizeLegibility;
}

.sidebar {
  font-weight: 400 !important;
}

.sidebar .nav .nav-item.active > .nav-link .menu-title,
.sidebar .nav .nav-item.active > .nav-link i,
.sidebar .nav.sub-menu .nav-item .nav-link.active,
code,
.settings-panel .settings-heading,
.display-1,
.display-2,
.display-3,
.display-4,
.display-5,
.display-6,
.fw-light,
.fw-lighter,
.fw-medium,
.font-weight-light,
.font-weight-lighter,
.font-weight-medium {
  font-weight: 400 !important;
}

strong,
b,
.fw-semibold,
.fw-bold,
.fw-bolder,
.font-weight-semibold,
.font-weight-bold,
.font-weight-bolder,
h1, .h1,
h2, .h2,
h3, .h3,
h4, .h4,
h5, .h5,
h6, .h6,
.card-title,
.badge,
th {
  font-weight: 600 !important;
}

.mdi::before,
[class^='mdi-']::before,
[class*=' mdi-']::before {
  font-family: 'Material Design Icons' !important;
  font-weight: normal !important;
}

.badge.bg-light-gray {
  background-color: #e9ecef !important;
  color: #495057 !important;
}

h3.page-title {
  color: #1c2c42;
  font-weight: 700 !important;
  line-height: 1.2;
  margin-bottom: 0.75rem !important;
}

.fw-normal {
  font-weight: 400 !important;
}

.btn-success,
.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success:visited {
  color: #fff !important;
  font-weight: 700 !important;
}

.btn-info,
.btn-info:hover,
.btn-info:focus,
.btn-info:active,
.btn-info:visited {
  color: #fff !important;
  font-weight: 700 !important;
}

.badge.bg-success {
  color: #fff !important;
}

.reviews-table-card .table-responsive {
  min-height: calc(100vh - 260px);
}

.admin-reviews-table {
  table-layout: fixed;
}

.admin-reviews-table .admin-reviews-text-col {
  width: 20%;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.table thead tr.reviews-filters-row th {
  padding: 0.2rem 0.5rem;
  background: transparent;
  border-top: none;
  font-weight: 400 !important;
  vertical-align: middle;
}

.table thead tr.reviews-filters-row .form-control,
.table thead tr.reviews-filters-row .form-select {
  min-height: 28px;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

.user-table-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.horizontal-menu .top-navbar .navbar-menu-wrapper .navbar-nav .nav-item.nav-user-icon img {
  border-radius: 50%;
  object-fit: cover;
}

.owner-project-tabs .nav-link {
  cursor: pointer;
  border: none;
  background: transparent;
  font-weight: 700 !important;
}

.owner-project-tabs .nav-link.active {
  font-weight: 700 !important;
}

.owner-dashboard-date {
  font-weight: 700 !important;
  color: #1c2c42 !important;
}

/* Hilite переопределяет .form-check (padding-left: 0) — выравниваем радиокнопки с контентом */
.widget-review-sort-settings .form-check {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding-left: 0;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.widget-review-sort-settings .form-check:last-child {
  margin-bottom: 0;
}

.widget-review-sort-settings .form-check .form-check-input {
  float: none;
  margin-left: 0;
  margin-top: 0.2em;
  flex-shrink: 0;
  position: static;
}

/* Hilite: без нижнего меню — отключаем отступ при «липком» хедере */
.owner-dashboard-scroller .horizontal-menu.fixed-on-scroll + .page-body-wrapper {
  padding-top: 0 !important;
}

.widget-review-sort-settings .form-check .form-check-label {
  margin-left: 0;
  min-height: auto;
  font-size: 0.875rem;
  line-height: 1.5;
}

.widget-bounce-settings__toggle.form-check.form-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0;
  margin-top: 0;
}

.widget-bounce-settings__toggle .form-check-input {
  float: none;
  margin-left: 0;
  flex-shrink: 0;
  position: static;
}

.widget-bounce-settings__toggle .form-check-label {
  margin-left: 0;
  min-height: auto;
}

.widget-bounce-settings__interval .form-select {
  max-width: 120px;
}

.widget-view-stats-chart .card-body {
  padding: 0.75rem 1.25rem 0.875rem;
}

.widget-view-stats-chart__title {
  margin-bottom: 0.15rem;
  font-size: 1rem;
  line-height: 1.25;
}

.widget-view-stats-chart__subtitle {
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  line-height: 1.25;
}

.widget-view-stats-chart__row {
  display: grid;
  grid-template-columns: 7fr 1fr;
  align-items: stretch;
  column-gap: 0.75rem;
  min-height: 0;
}

.widget-view-stats-chart__chart {
  min-width: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.widget-view-stats-chart__chart canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100%;
}

.widget-view-stats__figures {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
  min-width: 0;
}

.widget-view-stats__figure h1 {
  font-size: 1.75rem;
  font-weight: 500;
  line-height: 1.1;
  color: #343a40;
}

.widget-view-stats__figure p {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.3;
}

@media (max-width: 767px) {
  .widget-view-stats-chart__row {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }

  .widget-view-stats__figures {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
  }

  .widget-view-stats__figure {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 120px;
  }

  .widget-view-stats-chart__chart {
    height: 110px;
    min-height: 110px;
  }

  .widget-view-stats__figure h1 {
    font-size: 1.5rem;
  }
}

/* Модалка магазина — та же ширина, что у .content-wrapper на странице */
.project-modal-dialog {
  width: calc(100% - 2 * var(--bs-modal-margin, 0.5rem));
  max-width: 100%;
}

@media (min-width: 576px) {
  .project-modal-dialog {
    max-width: 540px;
  }
}

@media (min-width: 768px) {
  .project-modal-dialog {
    max-width: 720px;
  }
}

@media (min-width: 992px) {
  .project-modal-dialog {
    max-width: 960px;
  }
}

@media (min-width: 1200px) {
  .project-modal-dialog {
    max-width: 1140px;
  }
}

@media (min-width: 1400px) {
  .project-modal-dialog {
    max-width: 1320px;
  }
}

h4.card-title,
.card-body > h4.card-title {
  color: #1c2c42;
  font-weight: 700 !important;
}

.table thead th {
  color: #1c2c42;
  font-weight: 700 !important;
  border-bottom-width: 1px;
}

.badge.status-badge-outline {
  background: transparent !important;
  border: 1px solid;
  font-weight: 600 !important;
  padding: 0.35em 0.75em;
}

.reviews-table-header__actions {
  margin-left: auto;
}

.reviews-integrations-beta {
  white-space: nowrap;
}

.reviews-import-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.reviews-import-item__logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 6px;
}

.reviews-import-item__hint {
  font-size: 0.75rem;
  white-space: nowrap;
}

.integrations-page .page-title {
  margin-bottom: 0;
}

/* Hilite: .form-check { padding-left: 0 } + label margin — ломает Bootstrap form-switch */
.integration-card .form-check.form-switch {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0;
  margin-top: 0;
}

.integration-card .form-check.form-switch .form-check-input {
  float: none;
  margin-left: 0;
  width: 2em;
  flex-shrink: 0;
  position: static;
}

.integration-card .form-check.form-switch .form-check-label {
  margin-left: 0;
  min-height: auto;
  display: inline;
}

.integrations-project-picker {
  min-width: 260px;
  max-width: 320px;
}

.integrations-project-select {
  background-color: #fff !important;
  border: 1px solid #c9d3e0 !important;
  border-radius: 4px;
  color: #1c2c42 !important;
  font-weight: 600;
  min-height: 46px;
  padding: 0.55rem 2rem 0.55rem 0.85rem;
  box-shadow: 0 1px 4px rgba(28, 44, 66, 0.08);
  cursor: pointer;
  appearance: auto;
}

.integrations-project-select:focus {
  border-color: #1e88e5 !important;
  box-shadow: 0 0 0 0.15rem rgba(30, 136, 229, 0.18);
  outline: 0;
}

.integration-card__header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.integration-card__logo {
  flex-shrink: 0;
  border-radius: 8px;
}

.integration-sync-modes {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.integration-sync-mode {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  cursor: pointer;
  font-size: 0.9rem;
}

.integration-sync-mode input {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.integration-sync-mode__auto {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.integration-sync-hours {
  width: 72px;
  display: inline-block;
}

.review-date-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.review-source-logo {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 3px;
}

.btn.btn-outline-wb {
  --bs-btn-color: #a73afd;
  --bs-btn-border-color: #a73afd;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #a73afd;
  --bs-btn-hover-border-color: #a73afd;
  --bs-btn-focus-shadow-rgb: 167, 58, 253;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #9628e8;
  --bs-btn-active-border-color: #9628e8;
  --bs-btn-disabled-color: #a73afd;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #a73afd;
  font-weight: 600;
}

.btn.btn-outline-ozon {
  --bs-btn-color: #005bff;
  --bs-btn-border-color: #005bff;
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #005bff;
  --bs-btn-hover-border-color: #005bff;
  --bs-btn-focus-shadow-rgb: 0, 91, 255;
  --bs-btn-active-color: #fff;
  --bs-btn-active-bg: #0047cc;
  --bs-btn-active-border-color: #0047cc;
  --bs-btn-disabled-color: #005bff;
  --bs-btn-disabled-bg: transparent;
  --bs-btn-disabled-border-color: #005bff;
  font-weight: 600;
}

.reviews-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.reviews-table {
  table-layout: fixed;
  width: 100%;
  min-width: 960px;
  margin-bottom: 0;
}

.reviews-table .review-date-col {
  width: 96px;
}

.reviews-table .review-author-col {
  width: 10%;
}

.reviews-table .review-text-col {
  width: 22%;
}

.reviews-table .review-icon-col {
  width: 42px;
}

.reviews-table .review-rating-col {
  width: 108px;
}

.reviews-table .review-status-col {
  width: 118px;
}

.reviews-table .review-active-col {
  width: 64px;
}

.reviews-table .review-actions-col {
  width: 148px;
}

.links-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.links-table {
  table-layout: fixed;
  width: 100%;
  min-width: 640px;
  margin-bottom: 0;
}

.links-table .link-status-col {
  width: 118px;
}

.links-table .link-url-col {
  width: 140px;
  max-width: 140px;
}

.links-table .link-expires-col {
  width: 148px;
}

.links-table .link-review-status-col {
  width: 118px;
}

.links-table .link-actions-col {
  width: 148px;
}

.links-table tbody td {
  padding: 0.45rem 0.4rem;
  vertical-align: middle;
}

.reviews-table tbody td {
  padding: 0.45rem 0.4rem;
  vertical-align: middle;
  line-height: 1.25;
}

.reviews-table tbody td.review-text-col {
  vertical-align: middle;
}

.review-text-inner {
  display: flex;
  align-items: flex-start;
  gap: 0.35rem;
  min-width: 0;
}

.review-edited-icon {
  flex-shrink: 0;
  font-size: 1rem;
  line-height: 1.35;
  color: #17a2b8;
  cursor: help;
}

.review-text-preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-overflow: ellipsis;
  min-width: 0;
  flex: 1;
}

.review-star-rating {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  white-space: nowrap;
}

.review-star-rating .mdi-star {
  color: #ffc107 !important;
}

.review-star-rating .mdi-star-outline {
  color: #d5d9e2 !important;
}

.review-star-rating .mdi {
  font-size: 1.15rem;
  line-height: 1;
}

.review-star-rating-lg .mdi {
  font-size: 1.45rem;
}

.pagination.pagination-rounded .page-item .page-link {
  padding: 0.75rem 1.1rem;
  min-width: 2.75rem;
  text-align: center;
  line-height: 1;
}

.pagination.pagination-rounded button.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.btn.btn-icon.btn-icon-table {
  width: 34px;
  height: 34px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.review-action-buttons {
  display: flex;
  gap: 0.35rem;
  flex-wrap: nowrap;
}

/* Public review form (/r/[token]) — HiliteUI register-style auth layout */
.public-review-auth-page.container-scroller {
  overflow: visible;
  min-height: 100vh;
  height: auto;
}

.public-review-auth-page .page-body-wrapper.full-page-wrapper {
  background: #edeef2;
  min-height: 100vh;
  height: auto;
}

.public-review-auth-page .page-body-wrapper.full-page-wrapper .content-wrapper,
.public-review-auth-page .content-wrapper.auth {
  background: #edeef2;
  min-height: 100vh;
  height: auto !important;
  max-width: none;
}

.public-review-auth-page .public-review-auth-content {
  align-items: flex-start;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

@media (min-width: 768px) {
  .public-review-auth-page .public-review-auth-content {
    align-items: center;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
}

.public-review-auth-page .auth-form-light.public-review-auth-panel {
  background: #ffffff;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.08);
  margin-bottom: 0.5rem;
}

.owner-project-tabs .owner-project-tab-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.owner-project-tabs .project-tab-edit-icon {
  display: inline-flex;
  align-items: center;
  font-size: 0.95rem;
  line-height: 1;
  color: #6c757d;
  cursor: pointer;
  flex-shrink: 0;
}

.owner-project-tabs .project-tab-edit-icon:hover {
  color: #1b2653;
}

.public-review-form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.public-review-form-actions .btn {
  width: 100%;
  margin-bottom: 0 !important;
}

@media (min-width: 768px) {
  .public-review-form-actions {
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
  }

  .public-review-form-actions .btn {
    flex: 1 1 0;
    min-width: 0;
  }
}

.project-logo-preview-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #f6f2f2;
  background: #f6f8fa;
}

.project-logo-preview-wrap .project-logo-preview,
img.project-logo-preview {
  display: block;
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  object-fit: cover;
}

.public-review-header {
  padding-bottom: 0.25rem;
}

.public-review-logo {
  flex-shrink: 0;
  width: 108px;
  height: 108px;
  border-radius: 12px;
  overflow: hidden;
  background: #f6f8fa;
  border: 1px solid #e8ebf1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.public-review-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-review-logo-placeholder {
  color: #adb5bd;
  font-size: 3rem;
  line-height: 1;
}

.public-review-header .public-review-title {
  padding-top: 0;
}

.public-review-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.public-review-success-icon {
  color: #28a745;
  font-size: 3.5rem;
  line-height: 1;
}

.public-review-success-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #1c2c42;
  line-height: 1.35;
}

.public-review-stars {
  display: flex;
  gap: 0.25rem;
}

.public-review-star-btn {
  border: none;
  background: none;
  padding: 0;
  line-height: 1;
  cursor: pointer;
  color: #d5d9e2;
  font-size: 1.75rem;
  transition: color 0.15s ease;
}

.public-review-star-btn.active,
.public-review-star-btn:hover {
  color: #ffc107;
}

.public-review-textarea {
  min-height: 120px;
  resize: vertical;
}

.public-review-media-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.public-review-media-thumb {
  position: relative;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.public-review-media-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #f6f2f2;
  display: block;
}

.public-review-media-remove {
  position: absolute;
  top: 0;
  right: 0;
  padding: 2px 6px !important;
  line-height: 1;
  border-radius: 0 4px 0 4px;
}

.public-review-media-preview video {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid #f6f2f2;
}

.widget-style-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

@media (max-width: 1199px) {
  .widget-style-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .widget-style-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.widget-style-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  padding: 8px;
  border: 2px solid #e8ebf1;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  text-align: center;
}

.widget-style-tile:hover {
  border-color: #b8c2cc;
}

.widget-style-tile--active {
  border-color: #28a745;
  box-shadow: 0 0 0 1px #28a745;
}

.widget-style-tile:disabled {
  opacity: 0.75;
  cursor: wait;
}

.widget-style-tile__image-wrap {
  display: block;
  width: 100%;
  aspect-ratio: 10 / 7;
  border-radius: 6px;
  overflow: hidden;
  background-color: #f6f8fa;
}

.widget-style-tile__label {
  display: block;
  margin-top: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #343a40;
  line-height: 1.2;
}

.widget-style-tile__badge {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  background: #28a745;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.4;
}

.widget-style-tile__saving {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.75rem;
  font-weight: 600;
  color: #495057;
}

.widget-style-table-preview {
  display: block;
  width: 120px;
  height: 84px;
  border-radius: 6px;
  border: 1px solid #e8ebf1;
  background-color: #f6f8fa;
}

.widget-style-edit-preview {
  display: block;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 10 / 7;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e8ebf1;
  background-color: #f6f8fa;
}

.widget-icon-settings__preview-box {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  padding: 24px;
  background: #1a1a1a;
  border-radius: 12px;
  border: 1px solid #e8ebf1;
}

.widget-icon-settings__preview-box--white {
  background: #ffffff;
}

.widget-icon-settings__preview-box--black {
  background: #1a1a1a;
}

.widget-icon-settings__preview-box--white .widget-icon-preview__powered {
  color: #6c757d;
}

.widget-icon-settings__preview-bg {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.widget-icon-settings__preview-bg-label {
  font-weight: 600;
  color: #343a40;
}

.collapsible-settings-block__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0 0 1rem;
  padding: 0 0 0.75rem;
  border: none;
  border-bottom: 1px solid #e8ebf1;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.collapsible-settings-block__title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #343a40;
}

.collapsible-settings-block__arrow {
  font-size: 1.5rem;
  line-height: 1;
  color: #6c757d;
}

.collapsible-settings-block__body {
  padding-top: 0.25rem;
}

.widget-icon-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 248px;
  font-family: system-ui, -apple-system, sans-serif;
}

.widget-icon-preview--compact {
  max-width: 160px;
}

.widget-icon-preview__frame-wrap {
  width: 100%;
  padding: 7px;
  border-radius: 18px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.widget-icon-preview__frame-shine {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.18) 22%,
    rgba(255, 255, 255, 0.04) 42%,
    transparent 58%
  );
  z-index: 1;
}

.widget-icon-preview__frame-inner {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #e8eaed;
  position: relative;
  z-index: 2;
}

.widget-icon-preview__image {
  display: block;
  width: 100%;
  height: 100%;
}

.widget-icon-preview__panel {
  width: 82%;
  margin-top: -12px;
  padding: 14px 6px 10px;
  border-radius: 0 0 14px 14px;
  position: relative;
  z-index: 1;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
  line-height: 1.2;
  text-transform: uppercase;
  white-space: nowrap;
}

.widget-icon-preview__powered {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 10px;
  text-align: center;
  line-height: 1.3;
}

.widget-icon-preview__brand {
  text-decoration: underline;
}

.widget-icon-settings .asColorPicker-wrap {
  display: block;
  width: 100%;
}

.widget-icon-settings .asColorPicker-input {
  display: none !important;
}

.widget-icon-settings .asColorPicker-trigger {
  display: block;
  width: 100%;
  height: 38px;
  border: 1px solid #e8ebf1;
  border-radius: 4px;
  background-image:
    linear-gradient(45deg, #d8dde3 25%, transparent 25%),
    linear-gradient(-45deg, #d8dde3 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #d8dde3 75%),
    linear-gradient(-45deg, transparent 75%, #d8dde3 75%);
  background-size: 8px 8px;
  background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
}

.widget-icon-settings .asColorPicker-trigger span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 3px;
}

.widget-icon-settings .asColorPicker-clear {
  display: none !important;
}

/* Dropdown рендерится в body; flex только когда пикер открыт (иначе перебивает display:none плагина) */
#asColorPicker-dropdown.asColorPicker_open,
.asColorPicker-dropdown[data-mode='simple'].asColorPicker_open {
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: flex-start !important;
  align-content: flex-start !important;
  gap: 6px !important;
  padding: 8px !important;
  width: auto !important;
  box-sizing: border-box !important;
}

#asColorPicker-dropdown .asColorPicker-saturation,
.asColorPicker-dropdown[data-mode='simple'] .asColorPicker-saturation {
  order: 1;
  float: none !important;
  clear: none !important;
  flex: 0 0 175px !important;
  width: 175px !important;
  height: 175px !important;
  display: block !important;
}

#asColorPicker-dropdown .asColorPicker-hue,
.asColorPicker-dropdown[data-mode='simple'] .asColorPicker-hue {
  order: 2;
  float: none !important;
  clear: none !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 175px !important;
  margin: 0 !important;
  display: block !important;
}

#asColorPicker-dropdown .asColorPicker-alpha,
.asColorPicker-dropdown[data-mode='simple'] .asColorPicker-alpha {
  order: 3;
  float: none !important;
  clear: none !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 175px !important;
  margin: 0 !important;
  display: block !important;
}

#asColorPicker-dropdown .asColorPicker-preview,
#asColorPicker-dropdown .asColorPicker-palettes,
#asColorPicker-dropdown .asColorPicker-buttons,
#asColorPicker-dropdown .asColorPicker-hex,
.asColorPicker-dropdown[data-mode='simple'] .asColorPicker-preview,
.asColorPicker-dropdown[data-mode='simple'] .asColorPicker-palettes,
.asColorPicker-dropdown[data-mode='simple'] .asColorPicker-buttons,
.asColorPicker-dropdown[data-mode='simple'] .asColorPicker-hex {
  order: 10;
  float: none !important;
  flex: 0 0 100% !important;
  width: 100% !important;
  clear: both !important;
}

.site-brand-logo img {
  width: auto;
  max-width: none;
  height: 38px;
}

.owner-dashboard-scroller .horizontal-menu .top-navbar .navbar-brand-wrapper .navbar-brand img {
  max-width: none;
}

.owner-dashboard-scroller .horizontal-menu .site-brand-logo img {
  height: 44px;
  width: auto;
  max-width: none;
  mix-blend-mode: normal;
}

.owner-dashboard-scroller .horizontal-menu .site-brand-logo.brand-logo-mini img {
  width: auto;
  height: 40px;
  max-width: none;
  mix-blend-mode: normal;
}

.horizontal-menu .site-brand-logo img {
  mix-blend-mode: normal;
}

.navbar .site-brand-logo img {
  height: 40px;
  width: auto;
  max-width: none;
  mix-blend-mode: normal;
}

.auth .brand-logo img {
  width: 180px;
  height: auto;
  max-width: 100%;
  mix-blend-mode: normal;
}

.widget-icon-preset-carousel {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
}

.widget-icon-preset-thumb {
  flex: 0 0 auto;
  width: 72px;
  padding: 3px;
  border: 2px solid #e8ebf1;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.widget-icon-preset-thumb:hover {
  border-color: #b8c2cc;
}

.widget-icon-preset-thumb--active {
  border-color: #17a2b8;
  box-shadow: 0 0 0 1px #17a2b8;
}

.widget-icon-preset-thumb__img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  background-color: #f6f8fa;
  background-size: contain;
}

.widget-icon-style-thumb {
  flex: 0 0 auto;
  width: 72px;
  padding: 3px;
  border: 2px solid #e8ebf1;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.widget-icon-style-thumb:hover {
  border-color: #b8c2cc;
}

.widget-icon-style-thumb--active {
  border-color: #17a2b8;
  box-shadow: 0 0 0 1px #17a2b8;
}

.widget-icon-style-thumb__gradient {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
}

.widget-icon-style-thumb-wrap {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
}

.widget-icon-style-thumb-wrap .widget-icon-style-thumb {
  width: 100%;
}

.widget-icon-style-thumb--custom {
  cursor: default;
}

.widget-icon-style-thumb__gradient--custom {
  background: #d8dde3;
}

.widget-icon-style-thumb__label {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  color: #6c757d;
}

.widget-icon-preset-table-preview {
  display: block;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 1px solid #e8ebf1;
  background-color: #f6f8fa;
}

.widget-icon-preset-edit-preview {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 10px;
  border: 1px solid #e8ebf1;
  background-color: #f6f8fa;
}

.widget-demo-page {
  min-height: 100vh;
  padding: 48px 24px 48px 100px;
  background: #f0f2f5;
  color: #343a40;
  font-family: system-ui, -apple-system, sans-serif;
}

.widget-demo-page__container {
  max-width: 720px;
  margin: 0 auto;
}

.widget-demo-page h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.widget-demo-page p {
  color: #6c757d;
  line-height: 1.5;
}

.widget-demo-page__hint {
  margin-top: 24px;
  padding: 16px 20px;
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 12px;
  border-left: 4px solid #0d6efd;
  color: #6c757d;
  line-height: 1.5;
}

.widget-demo-page__hint strong {
  color: #0d6efd;
}

.widget-demo-page__error {
  margin-top: 16px;
  padding: 12px 16px;
  background: #f8d7da;
  color: #842029;
  border-radius: 8px;
}

.quill-editor-host .ql-container {
  min-height: 320px;
  font-family: var(--font-montserrat), 'Montserrat', sans-serif;
  font-size: 15px;
}

.quill-editor-host .ql-editor {
  min-height: 280px;
}

.simple-mail-editor .ql-container {
  min-height: 200px;
  font-family: var(--font-montserrat), 'Montserrat', sans-serif;
  font-size: 15px;
}

.simple-mail-editor .ql-editor {
  min-height: 160px;
}

.btn-support-nav {
  background: transparent;
  border: 1px solid #fff;
  color: #fff;
  padding: 0.45rem 0.9rem;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-support-nav:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.support-unread-dot {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #dc3545;
  border: 2px solid #1f3bb3;
}

.support-list-unread-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc3545;
  flex-shrink: 0;
}

.support-mail-card {
  min-height: 560px;
}

.support-mail-layout {
  min-height: 560px;
}

.support-mail-list-col {
  background: #f8f9fb;
}

.support-mail-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e8ebf1;
}

.support-mail-list {
  max-height: 500px;
  overflow-y: auto;
}

.support-mail-list-item {
  display: block;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e8ebf1;
  text-decoration: none;
  color: inherit;
}

.support-mail-list-item:hover {
  background: #eef2ff;
}

.support-mail-list-item.active {
  background: #e3e9ff;
}

.support-mail-preview {
  color: #1f2a44;
}

.support-mail-view-col {
  min-height: 560px;
}

.support-mail-compose,
.support-mail-thread {
  padding: 1.5rem;
  min-height: 560px;
  display: flex;
  flex-direction: column;
}

.support-mail-thread-header {
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.support-mail-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1rem;
}

.support-mail-message {
  padding: 1rem;
  border-radius: 8px;
  background: #f4f6fb;
}

.support-mail-message-admin {
  background: #e8f4ff;
  border: 1px solid #cfe6ff;
}

.support-mail-message-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.support-mail-reply {
  padding-top: 1rem;
  margin-top: auto;
}
