/* Component rules the theme utilities cannot express. Prefixed so they do not
   collide with each other or with Bootstrap's .container.
   !important is required: these rules override the design-system stylesheet. */
/* biome-ignore-all lint/complexity/noImportantStyles: design-system overrides */

/* Empty until the navigation script runs. These match the component's own bar. */
jt-navbar {
  display: block;
  min-height: 62px;
}

/* Talon is inserted in the navbar, then fixed over the page. Take it out of
   the bar before that script runs. Clicks pass through until the chat opens. */
talon-chat-container#talonchat-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

talon-chat-container#talonchat-container.visible {
  pointer-events: auto;
}

/* py-3 plus the stacked Privacy Policy, Terms of Use, Help, and year lines. */
jt-footer {
  display: block;
  box-sizing: border-box;
  min-height: calc(2rem + 1.3125rem + 0.75rem + 1.3125rem + 1rem + 1.3125rem + 1rem + 1.3125rem + 1px);
}

@media (min-width: 768px) {
  jt-navbar {
    min-height: 107px;
  }

  /* Links sit on one row; Help and the year line stay below, with the component's 1rem gaps. */
  jt-footer {
    min-height: calc(2rem + 1.3125rem + 1rem + 1.3125rem + 1rem + 1.3125rem + 1px);
  }
}

@media (min-width: 992px) {
  jt-footer {
    min-height: calc(2rem + 1.3125rem + 1px);
  }
}

.report-spinner {
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 50px;
}

.report-spinner-page {
  top: 10vh;
}

.report-spinner-dashboard {
  top: 7vh;
}

.field-error {
  margin-top: 4px;
  color: #ff0000;
  font-size: 0.8rem;
}

.report-location {
  font-size: 12px;
}

.places-error {
  font-size: 80%;
}

.report-submit {
  margin-left: 12px;
}

.live-select-menu {
  z-index: 1000;
  max-height: 340px;
  overflow-y: auto;
}

.live-multi-list {
  max-height: 300px;
  overflow-x: hidden;
  overflow-y: auto;
}

.alert-accent {
  color: #184673;
}

.alert-title {
  margin-left: 10px;
  color: #184673;
  font-weight: bold;
}

.alert-dismiss {
  right: 40px;
  color: #184673;
}

.contact-modal-body {
  padding: 16px;
  text-align: center;
}

.contact-modal-icon-wrap {
  margin-bottom: 16px;
}

.contact-modal-icon {
  margin-bottom: 12px;
  color: #184673;
  font-size: 32px;
}

.contact-modal-title {
  margin-bottom: 12px;
  color: #184673;
  font-size: 16px;
}

.contact-modal-copy {
  margin-bottom: 16px;
  color: #525252;
  font-size: 14px;
  line-height: 1.4;
}

.contact-modal-actions {
  display: flex;
  justify-content: center;
}

.contact-modal-ok {
  min-width: 80px;
  font-size: 14px;
}

.input-error-message {
  margin-left: 5px;
  color: #ff0000;
}

.input-field-error base-input-field base-input input {
  border: 1px solid #ff0000 !important;
  outline: none !important;
}

.input-field base-input-field base-input input:focus {
  border: 1px solid var(--primary, #2f86dd) !important;
  outline: none !important;
}

.date-range-input-error {
  border: 1px solid #dc3545 !important;
  background-image: none !important;
  box-shadow: none !important;
}

.date-range-error {
  width: max-content;
  min-width: 100%;
}

base-date-range-picker {
  display: block;
  width: 100%;
}

base-date-range-picker .input-group {
  width: 100%;
  margin-bottom: 0;
}

.daterangepicker td.date-range-day-blocked,
.daterangepicker li.date-range-preset-blocked {
  pointer-events: auto !important;
  cursor: not-allowed !important;
  color: #999999 !important;
  opacity: 1 !important;
}

.daterangepicker td.date-range-day-blocked {
  background-color: #f8f9fa !important;
}

.typeahead-input base-input-field base-input input {
  padding-right: 40px !important;
  text-overflow: ellipsis;
  color: #495057;
}

.typeahead-input base-input-field base-input input::placeholder {
  color: #6c757d;
}

.typeahead-input base-input-field base-input input:focus {
  border: 1px solid var(--primary, #2f86dd) !important;
  outline: none !important;
}

.typeahead-input.typeahead-input-showing base-input-field base-input input::placeholder {
  color: #495057;
}

.typeahead-clear {
  position: absolute;
  right: 10px;
  bottom: 7px;
  width: 24px;
  height: 24px;
  color: #6b7280;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  z-index: 1;
}

.typeahead-clear:hover,
.typeahead-clear:focus {
  color: #374151;
  outline: none;
}

.typeahead-dropdown {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  max-height: 340px;
  overflow: hidden;
}

.typeahead-options {
  overflow-y: auto;
  max-height: 220px;
}

.typeahead-option {
  min-height: 40px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 0.875rem;
}

.typeahead-option:hover,
.typeahead-option:focus {
  background-color: #e4e6ef;
  outline: none;
}

.typeahead-option-check {
  pointer-events: none;
}

.typeahead-option-text {
  min-width: 0;
}

.typeahead-option-selected {
  background-color: #e4e6ef;
}

.typeahead-empty {
  padding: 16px 12px;
  color: #6b7280;
  font-size: 0.875rem;
}

.typeahead-actions {
  padding: 12px;
}

.typeahead-action base-button,
.typeahead-action button {
  width: 100% !important;
}

.typeahead-action button {
  color: var(--primary, #2f86dd) !important;
  border: 1px solid transparent !important;
  background-color: transparent !important;
}

.typeahead-action button:hover,
.typeahead-action button:focus,
.typeahead-action button:focus-visible {
  color: var(--primary, #2f86dd) !important;
  border-color: var(--primary, #2f86dd) !important;
  background-color: transparent !important;
}

.live-multi-selected {
  color: #495057;
}

.live-multi-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 12px;
  border: 1px solid #e4e6ef;
  border-radius: 4px;
  background-color: #fff;
  height: 38px;
  width: 100%;
  font-size: 0.875rem;
  line-height: 1.5;
  cursor: pointer;
  text-align: left;
  appearance: none;
}

.live-multi-input.live-multi-input-open {
  border-color: var(--primary, #2f86dd);
  outline: 0;
}

.live-multi-input:focus-within {
  border-color: #2f86dd;
  outline: none;
  box-shadow: 0 0 0 3px rgba(47, 134, 221, 0.1);
}

.live-multi-dropdown {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  box-shadow:
    0 4px 6px -1px rgba(0, 0, 0, 0.1),
    0 2px 4px -1px rgba(0, 0, 0, 0.06);
  z-index: 1000;
  max-height: 300px;
}

.live-multi-search {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.live-multi-search-input {
  width: 100%;
  padding: 6px 12px;
  border: 1px solid #ced4da;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  line-height: 1.5;
  background-color: #fff;
  outline: none;
  height: 38px;
}

.live-multi-search-input:focus {
  border-color: var(--primary, #2f86dd);
  outline: 0;
}

.live-multi-search-input::placeholder {
  color: #6c757d;
}

.live-multi-select-all {
  padding: 8px 12px;
  border-bottom: 1px solid #e5e7eb;
  background-color: #f9fafb;
}

.live-multi-select-all-button {
  background: none;
  border: none;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.live-multi-select-all-button:disabled {
  color: #9ca3af;
  cursor: not-allowed;
}

.live-multi-option {
  padding: 12px;
  cursor: pointer;
}

.live-multi-option:hover {
  background-color: #e4e6ef;
}

.live-multi-option:last-child {
  border-bottom: none;
}

.live-multi-option.live-multi-option-selected {
  background-color: #e4e6ef;
}

.live-multi-remove {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  margin-left: 8px;
}

.live-multi-remove:hover {
  background-color: #f3f4f6;
  color: #374151;
}

.live-multi-empty {
  padding: 16px 12px;
  color: #525252;
}

.pill-item {
  margin-bottom: 8px;
  width: 100%;
}

@media (min-width: 992px) {
  .pill-item {
    margin: 0 4px;
    width: calc(25% - 6px);
  }

  .pill-item:first-of-type {
    margin: 0 4px 0 0;
  }

  .pill-item:last-of-type {
    margin: 0 0 0 4px;
  }
}

.pill-link {
  border: 1px solid var(--gray-300, #dee2e6) !important;
  border-radius: var(--border-radius, 0.375rem);
  padding: var(--py, 1.375rem);
}

.pill-main-nav {
  display: flex;
  flex-direction: row;
  gap: var(--pill-gap, 0.5rem);
  flex-wrap: wrap;
  min-height: calc(1.375rem * 2 + 1.3125rem + 2px);
}

.pill-main-tab {
  border: 1px solid var(--gray-300, #dee2e6);
  border-radius: var(--border-radius, 0.375rem);
  padding: var(--py-3, 1.375rem);
  text-align: center;
  color: var(--primary, #2f86dd);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media (min-width: 992px) {
  .pill-main-tab {
    flex: 1;
  }
}

.pill-new-badge {
  position: absolute;
  left: 100%;
  margin-left: 8px;
  top: 50%;
  transform: translateY(-55%);
  white-space: nowrap;
}

.pill-main-tab-active {
  background-color: var(--primary, #2f86dd);
  color: var(--white, #fff);
  border-color: var(--primary, #2f86dd);
}

.pill-main-tab-active:hover {
  color: var(--white, #fff);
}

nav[aria-label="sub navigation"] {
  min-height: calc(10px + 8px + 8px + 1.3125rem);
}

.pill-sub-tab-item {
  margin-right: 16px;
  margin-top: 10px;
}

.pill-sub-tab {
  border: none !important;
  background: none !important;
  color: var(--gray-600, #6c757d) !important;
  padding: 8px 16px !important;
  font-weight: 400 !important;
  position: relative;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.pill-sub-tab:hover {
  color: var(--primary, #2f86dd) !important;
  text-decoration: none;
}

.pill-sub-tab-active {
  color: var(--primary, #2f86dd) !important;
  font-weight: 500 !important;
  border: none !important;
  position: relative;
}

.pill-sub-tab-active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: -8px;
  right: -8px;
  height: 2px;
  background-color: var(--primary, #2f86dd);
}

@media (max-width: 991px) {
  .pill-main-nav {
    gap: 8px;
    flex-direction: column;
    min-height: calc((16px + 16px + 1.3125rem + 2px) * 4 + 8px * 3);
  }

  .pill-main-tab {
    margin: 0 2px;
    padding: 16px 0;
  }

  .pill-sub-tab-item {
    margin-right: 16px;
  }
}

.pill-contact-modal .modal-root__close-btn {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.pill-contact-modal .modal-root__close-btn:focus,
.pill-contact-modal .modal-root__close-btn:active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.premium-modal .modal-root__close-btn {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.premium-modal .modal-root__close-btn:focus,
.premium-modal .modal-root__close-btn:active {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

.premium-modal .modal-body {
  padding: 0 !important;
  max-height: calc(100vh - 200px);
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

.premium-hero {
  max-height: 300px;
}

.premium-hero img {
  width: 120%;
  height: auto;
  max-height: 300px;
  border: none;
  margin: 0;
  padding: 0;
  display: block;
}

.premium-hero-content {
  position: absolute;
  top: 50%;
  left: 35%;
  transform: translate(-50%, -50%);
  padding: 20px;
  border-radius: 8px;
  max-width: 100%;
  text-align: left;
}

.premium-hero-content .premium-hero-title {
  font-size: 20px;
  margin: 0 0 16px 0;
  font-weight: 700;
}

.premium-hero-content p:not(.premium-hero-title) {
  font-size: 16px;
  color: var(--dark-gray-text);
  margin: 0;
  line-height: 1.5;
}

.premium-content {
  padding: 0 24px;
}

.premium-content .premium-intro {
  font-size: 16px;
  color: var(--dark-gray-text);
  margin: 0 0 24px 0;
  line-height: 1.5;
}

.premium-benefits {
  list-style: disc;
  padding-left: 20px;
  margin: 0 0 75px 0;
  color: var(--dark-gray-text);
}

.premium-benefits li {
  margin-bottom: 20px;
  font-size: 16px;
  color: var(--dark-gray-text);
  line-height: 1.4;
}

.premium-actions {
  gap: 12px;
}

.premium-actions .btn.btn-transparent {
  color: var(--primary) !important;
}

.premium-actions button {
  padding: 12px 20px;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.premium-actions button.secondary {
  background: white;
  border: 0px solid var(--primary);
  color: var(--primary);
}

.premium-actions button.primary {
  background: var(--primary);
  border: 1px solid var(--primary);
  color: white;
}

@media (max-width: 768px) {
  .premium-modal .modal-body {
    max-height: calc(100vh - 180px) !important;
  }

  .premium-hero-content {
    padding: 20px;
    max-width: 90%;
  }

  .premium-hero-content .premium-hero-title {
    font-size: 20px;
  }

  .premium-hero-content p:not(.premium-hero-title) {
    font-size: 15px;
  }

  .premium-actions {
    flex-direction: row;
    justify-content: flex-end;
  }

  .premium-actions button {
    font-size: 15px;
    padding: 10px 16px;
  }
}
