
@layer lmvz-ds.reset, lmvz-ds.theme, lmvz-ds.components, lmvz-ds.overrides;
/**
 * This defines the order of our lmvz-ds' CSS layers. See readme.md for details.
 * Important: Always import this file _before_ layering your own styles!
 */
@layer lmvz-ds.theme {
@font-face {
  font-family: Router;
  src:
    local('Router-Book'),
    url('/assets/fonts/Router-Book.woff') format('woff'),
    local('Router');
  font-weight: 400 normal;
}

@font-face {
  font-family: Router;
  src:
    local('Router-Medium'),
    url('/assets/fonts/Router-Medium.woff') format('woff'),
    local('Router');
  font-weight: 500;
}

@font-face {
  font-family: Router;
  src:
    local('Router-Bold'),
    url('/assets/fonts/Router-Bold.woff') format('woff'),
    local('Router');
  font-weight: 700 bold;
}

}
:host {
  display: block;
  font-family: var(--lmvz-global-font-family-default, Router);
  /* Extra top space to accommodate the floating label */

  --lmvz-internal-select-floating-label-top-offset: 0.375rem;

  padding-top: var(--lmvz-internal-select-floating-label-top-offset);

  /* Component variable mapping */
  --lmvz-select-radius: var(--lmvz-component-input-radius-default, 999px);
  --lmvz-select-bg: var(--lmvz-semantic-color-int-secondary, #f0f0f0);
  --lmvz-select-bg-hover: var(--lmvz-semantic-color-int-secondary-hover, #e0e0e0);
  --lmvz-select-text-color: var(--lmvz-semantic-color-int-on-secondary, #000000);
  --lmvz-select-label-color: var(--lmvz-semantic-color-on-surface-input-primary, #000000);
  --lmvz-select-padding-x: var(--lmvz-component-input-md-padding-x, clamp(0.75rem, 0.69rem + 0.26vw, 1rem));
  --lmvz-select-gap: var(--lmvz-component-input-md-gap-x, clamp(0.25rem, 0.16rem + 0.39vw, 0.63rem));
  --lmvz-select-height: 40px;
  --lmvz-select-label-font-size: var(--lmvz-component-component-typography-body-sm-font-size, 0.75rem);
  --lmvz-select-label-top-offset: calc(var(--lmvz-internal-select-floating-label-top-offset) * -1);
  --lmvz-select-label-minimized-padding-x: 4px;
  --lmvz-select-disabled-opacity: var(--lmvz-component-input-disabled-opacity, 40%);
  --lmvz-select-helper-color: var(--lmvz-semantic-color-on-surface-input-secondary, #7a7a7a);
  --lmvz-select-focus-color: var(--lmvz-semantic-color-status-on-selected, #0e7ab4);
  --lmvz-select-error-color: var(--lmvz-semantic-color-status-on-danger, #e52a31);
}
.select-wrapper {
  position: relative;
  height: var(--lmvz-select-height);
}
/* Floating label – positioned above the trigger when a value is selected */
label {
  position: absolute;
  top: 50%;
  left: var(--lmvz-select-padding-x);
  font-size: var(--lmvz-select-label-font-size);
  color: var(--lmvz-select-label-color);
  line-height: normal;
  white-space: nowrap;
  pointer-events: none;
  z-index: 2;
  transform: translateY(-50%);
  transform-origin: left top;
  transition:
    top 0.2s ease-out,
    transform 0.2s ease-out,
    opacity 0.2s ease-out,
    padding 0.2s ease-out;
}
label.assistive-label {
  opacity: 0;
  padding: 0;
}
label.floating-label {
  top: var(--lmvz-select-label-top-offset);
  transform: translateY(0) scale(0.85);
  left: calc(var(--lmvz-select-padding-x) - 2px);
  background-color: var(--lmvz-select-bg);
  padding: 0 var(--lmvz-select-label-minimized-padding-x);
  opacity: 1;
  font-weight: 500;
}
label > span[aria-hidden='true'],
div[aria-hidden='true'] > span:first-child > span[aria-hidden='true'] {
  color: var(--lmvz-select-error-color);
  margin-left: 2px;
  display: inline-block;
  line-height: 0;
  vertical-align: middle;
}
/* Visual pill trigger */
div[aria-hidden] {
  display: flex;
  align-items: center;
  gap: var(--lmvz-select-gap);
  height: 100%;
  padding: 0 var(--lmvz-select-padding-x);
  border-radius: var(--lmvz-select-radius);
  background-color: var(--lmvz-select-bg);
  cursor: pointer;
  position: relative;
  z-index: 1;
  transition: background-color 0.15s ease;
}
:host(:not([disabled])) .select-wrapper:hover div[aria-hidden] {
  background-color: var(--lmvz-select-bg-hover);
}
.select-wrapper:focus-within div[aria-hidden] {
  outline: 2px solid var(--lmvz-select-focus-color);
  outline-offset: 2px;
}
div[aria-hidden] > span:first-child {
  flex: 1 0 0;
  font-size: var(--lmvz-component-component-typography-body-md-font-size, 0.875rem);
  font-weight: var(--lmvz-global-font-weight-500, 500);
  color: var(--lmvz-select-text-color);
  line-height: 1.4;
  letter-spacing: var(--lmvz-component-body-md-letter-spacing, 0);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
div[aria-hidden] > span:last-child {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
img {
  display: block;
  width: var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.69rem + 0.26vw, 1rem));
  height: var(--lmvz-component-icon-size-xs, clamp(0.75rem, 0.69rem + 0.26vw, 1rem));
}
/* Native select – absolutely covers the trigger, invisible, intercepts clicks */
select {
  appearance: none;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
  border: none;
  background: transparent;
  margin: 0;
  padding: 0;
}
:host([disabled]) .select-wrapper {
  opacity: var(--lmvz-select-disabled-opacity);
  pointer-events: none;
  cursor: not-allowed;
}
[role='status'] {
  margin-top: 4px;
  padding-left: var(--lmvz-select-padding-x);
  font-size: var(--lmvz-select-label-font-size);
  color: var(--lmvz-select-helper-color);
  line-height: normal;
}
