.select-widget-shell {
  position: relative;
}

.select-widget__native {
  display: none;
}

.selector-modal {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.selector-modal[hidden] {
  display: none !important;
}

.selector-modal__dialog {
  width: min(960px, 100%);
  max-height: calc(100vh - 4rem);
  background: #ffffff;
  border-radius: 1.25rem;
  border: 1px solid rgba(29, 55, 100, 0.08);
  box-shadow: 0 1.5rem 3rem rgba(16, 24, 40, 0.22);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.selector-modal--default .selector-modal__dialog {
  width: min(960px, 100%);
}

.selector-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(17, 24, 39, 0.45);
  z-index: 2990;
}

.selector-modal-backdrop[hidden] {
  display: none !important;
}

body.selector-modal-open {
  overflow: hidden;
}

.selector-modal__header {
  padding: 1.5rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(29, 55, 100, 0.08);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.selector-modal__header-copy {
  min-width: 0;
}

.selector-modal__title {
  color: #1d3764;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.selector-modal__subtitle {
  color: #5b6b83;
  margin-bottom: 0;
}

.selector-modal-close {
  border: 0;
  background: #eef3fb;
  color: #1d3764;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.selector-modal-close:hover {
  background: #dfe9f8;
  transform: translateY(-1px);
}

.selector-trigger {
  cursor: pointer;
}

.selector-trigger .form-control {
  cursor: pointer;
  background-color: #ffffff;
}

.selector-trigger.is-active .input-group-text,
.selector-trigger.is-active .form-control {
  border-color: rgba(29, 55, 100, 0.4);
  box-shadow: 0 0 0 0.2rem rgba(29, 55, 100, 0.08);
}

.selector-trigger.is-disabled {
  opacity: 0.72;
}

.selector-trigger.is-disabled .form-control {
  background-color: #eef3fb;
  cursor: not-allowed;
}

.selector-empty-state {
  padding: 1rem 1.25rem;
  border-radius: 1rem;
  border: 1px dashed rgba(29, 55, 100, 0.18);
  background: rgba(238, 243, 251, 0.7);
  color: #5b6b83;
  margin-bottom: 1rem;
}

.selector-empty-state strong {
  color: #1d3764;
}

.selector-modal__body {
  padding: 1.25rem 1.5rem 1.5rem;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  max-height: calc(100vh - 13rem);
  overflow: hidden;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.selector-search-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(29, 55, 100, 0.1);
  background: #ffffff;
  color: #5b6b83;
  margin-bottom: 1.1rem;
  box-shadow: inset 0 0 0 1px rgba(29, 55, 100, 0.02);
}

.selector-search-row i {
  color: #1d3764;
}

.selector-search-input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  box-shadow: none;
  color: #1d3764;
  font-size: 1rem;
}

.selector-search-input::placeholder {
  color: #5b6b83;
}

.selector-results {
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  padding-right: 0.25rem;
}

.ship-pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ship-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(29, 55, 100, 0.12);
  background: #f4f7fd;
  color: #1d3764;
  font-weight: 700;
  transition: all 0.2s ease;
}

.ship-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.5rem 1rem rgba(29, 55, 100, 0.1);
}

.ship-pill.active {
  background: rgba(56, 103, 214, 0.16);
  border-color: rgba(29, 55, 100, 0.4);
  box-shadow: inset 0 0 0 1px rgba(29, 55, 100, 0.08);
}

.ship-pill .ship-class {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: #ffffff;
  color: #5b6b83;
  font-size: 0.78rem;
  font-weight: 700;
}

.ship-list-section {
  margin-top: 1.5rem;
}

.ship-list-heading {
  color: #1d3764;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

.ship-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ship-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(29, 55, 100, 0.1);
  background: #f4f7fd;
  color: #1d3764;
  text-align: left;
  transition: all 0.2s ease;
}

.ship-list-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.5rem 1rem rgba(29, 55, 100, 0.1);
}

.ship-list-item.active {
  background: rgba(56, 103, 214, 0.16);
  border-color: rgba(29, 55, 100, 0.4);
  box-shadow: inset 0 0 0 1px rgba(29, 55, 100, 0.08);
}

.ship-list-main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.ship-list-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #1d3764;
  box-shadow: inset 0 0 0 1px rgba(29, 55, 100, 0.08);
  flex-shrink: 0;
}

.ship-list-copy {
  min-width: 0;
}

.ship-list-copy h5 {
  color: #1d3764;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.ship-list-copy p {
  color: #5b6b83;
  margin-bottom: 0;
  font-size: 0.92rem;
}

.ship-list-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.ship-meta-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: #ffffff;
  color: #5b6b83;
  font-size: 0.8rem;
  font-weight: 700;
}

.cruise-line-group + .cruise-line-group {
  margin-top: 1.5rem;
}

.cruise-line-letter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  background: #1d3764;
  color: #ffffff;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 0.9rem;
}

.cruise-line-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cruise-line-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(29, 55, 100, 0.1);
  background: #f4f7fd;
  color: #1d3764;
  text-align: left;
  transition: all 0.2s ease;
}

.cruise-line-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.5rem 1rem rgba(29, 55, 100, 0.1);
}

.cruise-line-item.active {
  background: rgba(56, 103, 214, 0.16);
  border-color: rgba(29, 55, 100, 0.4);
  box-shadow: inset 0 0 0 1px rgba(29, 55, 100, 0.08);
}

.cruise-line-main {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.cruise-line-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #1d3764;
  box-shadow: inset 0 0 0 1px rgba(29, 55, 100, 0.08);
  flex-shrink: 0;
}

.cruise-line-copy {
  min-width: 0;
}

.cruise-line-copy h5 {
  color: #1d3764;
  font-size: 1rem;
  margin-bottom: 0.15rem;
}

.cruise-line-copy p {
  color: #5b6b83;
  margin-bottom: 0;
  font-size: 0.92rem;
}

.cruise-line-meta {
  color: #5b6b83;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
}

.itinerary-month-group + .itinerary-month-group {
  margin-top: 1.5rem;
}

.itinerary-month-heading {
  color: #1d3764;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.9rem;
}

.itinerary-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.itinerary-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 1rem 1.1rem;
  border-radius: 1rem;
  border: 1px solid rgba(29, 55, 100, 0.12);
  background: #f4f7fd;
  color: #1d3764;
  text-align: left;
  transition: all 0.2s ease;
}

.itinerary-list-item.active {
  background: rgba(56, 103, 214, 0.16) !important;
  border-color: rgba(29, 55, 100, 0.4) !important;
  box-shadow: inset 0 0 0 1px rgba(29, 55, 100, 0.08) !important;
}

.itinerary-list-item.current {
  background: rgba(56, 214, 127, 0.16);
  border-color: rgba(29, 100, 46, 0.4);
  box-shadow: inset 0 0 0 1px rgba(29, 55, 100, 0.08);
}

.itinerary-list-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 0.5rem 1rem rgba(29, 55, 100, 0.1);
}

.itinerary-main {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-width: 0;
}

.itinerary-date-badge {
  min-width: 70px;
  text-align: center;
  border-radius: 0.85rem;
  background: #ffffff;
  padding: 0.6rem 0.75rem;
  box-shadow: inset 0 0 0 1px rgba(29, 55, 100, 0.08);
}

.itinerary-date-badge .month {
  display: block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #5b6b83;
}

.itinerary-date-badge .day {
  display: block;
  font-size: 1.35rem;
  line-height: 1.1;
  font-weight: 800;
  color: #1d3764;
}

.itinerary-date-badge .year {
  display: block;
  font-size: 0.75rem;
  color: #5b6b83;
}

.itinerary-copy {
  min-width: 0;
}

.itinerary-copy h5 {
  color: #1d3764;
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.itinerary-copy p {
  color: #5b6b83;
  margin-bottom: 0;
  font-size: 0.95rem;
}

.itinerary-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.itinerary-nights {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: #ffffff;
  color: #1d3764;
  font-weight: 700;
  font-size: 0.85rem;
}

.selector-modal__footer {
  padding: 1rem 1.5rem 1.35rem;
  border-top: 1px solid rgba(29, 55, 100, 0.08);
  color: #5b6b83;
  font-style: italic;
  background: #ffffff;
  min-height: 0;
}

:root[data-bs-theme="dark"] .selector-modal__dialog,
:root[data-theme="dark"] .selector-modal__dialog,
html.dark .selector-modal__dialog {
  background: #1f2c42;
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: 0 1.5rem 3rem rgba(2, 6, 23, 0.45);
}

:root[data-bs-theme="dark"] .selector-modal__header,
:root[data-theme="dark"] .selector-modal__header,
html.dark .selector-modal__header,
:root[data-bs-theme="dark"] .selector-modal__footer,
:root[data-theme="dark"] .selector-modal__footer,
html.dark .selector-modal__footer,
:root[data-bs-theme="dark"] .ship-list-icon,
:root[data-theme="dark"] .ship-list-icon,
html.dark .ship-list-icon,
:root[data-bs-theme="dark"] .cruise-line-icon,
:root[data-theme="dark"] .cruise-line-icon,
html.dark .cruise-line-icon {
  background: #24344d;
  border-color: rgba(148, 163, 184, 0.2);
  color: #e5eefc;
}

:root[data-bs-theme="dark"] .selector-modal__title,
:root[data-theme="dark"] .selector-modal__title,
html.dark .selector-modal__title,
:root[data-bs-theme="dark"] .itinerary-month-heading,
:root[data-theme="dark"] .itinerary-month-heading,
html.dark .itinerary-month-heading,
:root[data-bs-theme="dark"] .ship-list-copy h5,
:root[data-theme="dark"] .ship-list-copy h5,
html.dark .ship-list-copy h5,
:root[data-bs-theme="dark"] .cruise-line-copy h5,
:root[data-theme="dark"] .cruise-line-copy h5,
html.dark .cruise-line-copy h5,
:root[data-bs-theme="dark"] .itinerary-copy h5,
:root[data-theme="dark"] .itinerary-copy h5,
html.dark .itinerary-copy h5,
:root[data-bs-theme="dark"] .itinerary-date-badge .day,
:root[data-theme="dark"] .itinerary-date-badge .day,
html.dark .itinerary-date-badge .day,
:root[data-bs-theme="dark"] .itinerary-nights,
:root[data-theme="dark"] .itinerary-nights,
html.dark .itinerary-nights {
  color: #e5eefc !important;
}

:root[data-bs-theme="dark"] .itinerary-month-heading:hover,
:root[data-theme="dark"] .itinerary-month-heading:hover,
html.dark .itinerary-month-heading:hover,
:root[data-bs-theme="dark"] .itinerary-month-heading:focus,
:root[data-theme="dark"] .itinerary-month-heading:focus,
html.dark .itinerary-month-heading:focus {
  color: #e5eefc !important;
}

:root[data-bs-theme="dark"] .selector-modal__subtitle,
:root[data-theme="dark"] .selector-modal__subtitle,
html.dark .selector-modal__subtitle,
:root[data-bs-theme="dark"] .selector-empty-state,
:root[data-theme="dark"] .selector-empty-state,
html.dark .selector-empty-state,
:root[data-bs-theme="dark"] .selector-empty-state strong,
:root[data-theme="dark"] .selector-empty-state strong,
html.dark .selector-empty-state strong,
:root[data-bs-theme="dark"] .selector-search-row,
:root[data-theme="dark"] .selector-search-row,
html.dark .selector-search-row,
:root[data-bs-theme="dark"] .ship-list-copy p,
:root[data-theme="dark"] .ship-list-copy p,
html.dark .ship-list-copy p,
:root[data-bs-theme="dark"] .cruise-line-copy p,
:root[data-theme="dark"] .cruise-line-copy p,
html.dark .cruise-line-copy p,
:root[data-bs-theme="dark"] .cruise-line-meta,
:root[data-theme="dark"] .cruise-line-meta,
html.dark .cruise-line-meta,
:root[data-bs-theme="dark"] .itinerary-copy p,
:root[data-theme="dark"] .itinerary-copy p,
html.dark .itinerary-copy p,
:root[data-bs-theme="dark"] .itinerary-date-badge .month,
:root[data-theme="dark"] .itinerary-date-badge .month,
html.dark .itinerary-date-badge .month,
:root[data-bs-theme="dark"] .itinerary-date-badge .year,
:root[data-theme="dark"] .itinerary-date-badge .year,
html.dark .itinerary-date-badge .year,
:root[data-bs-theme="dark"] .ship-meta-chip,
:root[data-theme="dark"] .ship-meta-chip,
html.dark .ship-meta-chip {
  color: #b5c1d6;
}

:root[data-bs-theme="dark"] .selector-modal__body,
:root[data-theme="dark"] .selector-modal__body,
html.dark .selector-modal__body {
  background: linear-gradient(180deg, #1f2c42 0%, #24344d 100%);
}

:root[data-bs-theme="dark"] .selector-search-row,
:root[data-theme="dark"] .selector-search-row,
html.dark .selector-search-row,
:root[data-bs-theme="dark"] .selector-empty-state,
:root[data-theme="dark"] .selector-empty-state,
html.dark .selector-empty-state,
:root[data-bs-theme="dark"] .ship-pill,
:root[data-theme="dark"] .ship-pill,
html.dark .ship-pill,
:root[data-bs-theme="dark"] .ship-list-item,
:root[data-theme="dark"] .ship-list-item,
html.dark .ship-list-item,
:root[data-bs-theme="dark"] .cruise-line-item,
:root[data-theme="dark"] .cruise-line-item,
html.dark .cruise-line-item,
:root[data-bs-theme="dark"] .itinerary-list-item,
:root[data-theme="dark"] .itinerary-list-item,
html.dark .itinerary-list-item,
:root[data-bs-theme="dark"] .itinerary-date-badge,
:root[data-theme="dark"] .itinerary-date-badge,
html.dark .itinerary-date-badge,
:root[data-bs-theme="dark"] .itinerary-nights,
:root[data-theme="dark"] .itinerary-nights,
html.dark .itinerary-nights,
:root[data-bs-theme="dark"] .ship-meta-chip,
:root[data-theme="dark"] .ship-meta-chip,
html.dark .ship-meta-chip {
  background: #2a3c58;
  border-color: rgba(148, 163, 184, 0.2);
  color: #e5eefc;
}

:root[data-bs-theme="dark"] .selector-search-row i,
:root[data-theme="dark"] .selector-search-row i,
html.dark .selector-search-row i,
:root[data-bs-theme="dark"] .selector-search-input,
:root[data-theme="dark"] .selector-search-input,
html.dark .selector-search-input {
  color: #e5eefc;
}

:root[data-bs-theme="dark"] .selector-search-row .selector-search-input,
:root[data-theme="dark"] .selector-search-row .selector-search-input,
html.dark .selector-search-row .selector-search-input {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  appearance: none;
  -webkit-appearance: none;
  padding: 0 !important;
}

:root[data-bs-theme="dark"] .selector-search-input::placeholder,
:root[data-theme="dark"] .selector-search-input::placeholder,
html.dark .selector-search-input::placeholder {
  color: #b5c1d6;
}

:root[data-bs-theme="dark"] .selector-modal-close,
:root[data-theme="dark"] .selector-modal-close,
html.dark .selector-modal-close {
  background: #2a3c58;
  color: #e5eefc;
}

:root[data-bs-theme="dark"] .selector-modal-close:hover,
:root[data-theme="dark"] .selector-modal-close:hover,
html.dark .selector-modal-close:hover {
  background: #32486b;
}

:root[data-bs-theme="dark"] .cruise-line-letter,
:root[data-theme="dark"] .cruise-line-letter,
html.dark .cruise-line-letter {
  background: #243f73;
  color: #e5eefc;
}

:root[data-bs-theme="dark"] .itinerary-date-badge,
:root[data-theme="dark"] .itinerary-date-badge,
html.dark .itinerary-date-badge,
:root[data-bs-theme="dark"] .itinerary-nights,
:root[data-theme="dark"] .itinerary-nights,
html.dark .itinerary-nights {
  background: #24344d !important;
  border-color: rgba(148, 163, 184, 0.24);
}

:root[data-bs-theme="dark"] .itinerary-date-badge .month,
:root[data-theme="dark"] .itinerary-date-badge .month,
html.dark .itinerary-date-badge .month,
:root[data-bs-theme="dark"] .itinerary-date-badge .year,
:root[data-theme="dark"] .itinerary-date-badge .year,
html.dark .itinerary-date-badge .year {
  color: #cbd5e1;
}

:root[data-bs-theme="dark"] .itinerary-list-item:hover .itinerary-date-badge .month,
:root[data-theme="dark"] .itinerary-list-item:hover .itinerary-date-badge .month,
html.dark .itinerary-list-item:hover .itinerary-date-badge .month,
:root[data-bs-theme="dark"] .itinerary-list-item:hover .itinerary-date-badge .year,
:root[data-theme="dark"] .itinerary-list-item:hover .itinerary-date-badge .year,
html.dark .itinerary-list-item:hover .itinerary-date-badge .year {
  color: #cbd5e1 !important;
}

:root[data-bs-theme="dark"] .itinerary-list-item:hover .itinerary-date-badge .day,
:root[data-theme="dark"] .itinerary-list-item:hover .itinerary-date-badge .day,
html.dark .itinerary-list-item:hover .itinerary-date-badge .day {
  color: #e5eefc !important;
}

:root[data-bs-theme="dark"] .ship-pill.active,
:root[data-theme="dark"] .ship-pill.active,
html.dark .ship-pill.active,
:root[data-bs-theme="dark"] .ship-list-item.active,
:root[data-theme="dark"] .ship-list-item.active,
html.dark .ship-list-item.active,
:root[data-bs-theme="dark"] .cruise-line-item.active,
:root[data-theme="dark"] .cruise-line-item.active,
html.dark .cruise-line-item.active,
:root[data-bs-theme="dark"] .itinerary-list-item.active,
:root[data-theme="dark"] .itinerary-list-item.active,
html.dark .itinerary-list-item.active {
  background: rgba(96, 165, 250, 0.18) !important;
  border-color: rgba(139, 184, 255, 0.4) !important;
}

:root[data-bs-theme="dark"] .selector-modal__footer a,
:root[data-theme="dark"] .selector-modal__footer a,
html.dark .selector-modal__footer a,
:root[data-bs-theme="dark"] .selector-empty-state a,
:root[data-theme="dark"] .selector-empty-state a,
html.dark .selector-empty-state a {
  color: #a9c9ff;
}

@media (max-width: 991.98px) {
  .selector-modal__header {
    padding-bottom: 1.25rem;
  }
}

@media (max-width: 767.98px) {
  .selector-modal__body,
  .selector-modal__header,
  .selector-modal__footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .itinerary-list-item,
  .cruise-line-item,
  .ship-list-item {
    align-items: flex-start;
    flex-direction: column;
  }

  .itinerary-main,
  .itinerary-meta,
  .cruise-line-main,
  .cruise-line-meta,
  .ship-list-main,
  .ship-list-meta {
    width: 100%;
  }

  .ship-pill {
    width: 100%;
    justify-content: space-between;
  }

  .itinerary-meta,
  .ship-list-meta {
    justify-content: space-between;
  }

  .ship-pill-grid {
    gap: 0.6rem;
  }

  .selector-modal {
    padding: 0.5rem;
  }

  .selector-modal__dialog {
    width: 100%;
    max-height: calc(100vh - 1rem);
  }
}
