
@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);
  /* Component Variables Mapping */
  --input-radius: var(--lmvz-component-input-radius-default, 999px);
  --input-bg: var(--lmvz-semantic-color-surface-input-primary, #ffffff);
  --input-border-color: var(--lmvz-semantic-color-border-default, #e0e0e0);
  --input-border-color-hover: var(--lmvz-semantic-color-border-hover, #c7c7c7);
  --input-border-color-focus: var(--lmvz-semantic-color-status-on-selected, #0e7ab4);
  --input-border-width: var(--lmvz-semantic-border-width-default, 1px);
  --input-height: 48px; /* From Figma input-size=48 */
  --input-padding-x: 16px;

  --label-color: var(--lmvz-semantic-color-on-surface-input-secondary, #7a7a7a);
  --input-text-color: var(--lmvz-semantic-color-on-surface-input-primary, #000000);
  --helper-text-color: var(--lmvz-semantic-color-on-surface-input-secondary, #7a7a7a);
  --error-text-color: var(--lmvz-semantic-color-status-on-danger, #e52a31);

  --label-floating-scale: 0.85; /* 14px -> 12px approx */
  --label-minimized-top: -6px;
  --label-minimized-bg: var(--input-bg);
  --label-minimized-padding-x: 4px;

  /* Disabled state uses opacity token */
  --input-disabled-opacity: var(--lmvz-component-input-disabled-opacity, 40%);
}
.input-container {
  display: flex;
  flex-direction: column;
  position: relative;
  width: 100%;
}
.input-wrapper {
  background-color: var(--input-bg);
  border: var(--input-border-width) solid var(--input-border-color);
  border-radius: var(--input-radius);
  display: flex;
  align-items: center;
  height: var(--input-height);
  padding: 0 var(--input-padding-x);
  position: relative;
  transition: border-color 0.2s ease;
  gap: 8px; /* input-gap-x */
}
:host([disabled]) .input-wrapper {
  opacity: var(--input-disabled-opacity);
  cursor: not-allowed;
  pointer-events: none;
}
.input-container:focus-within .input-wrapper {
  border-color: var(--input-border-color-focus);
  outline: 2px solid var(--input-border-color-focus);
  outline-offset: 2px;
}
/* Enhanced focus indicator for keyboard users */
.input-container:has(input:focus-visible) .input-wrapper {
  box-shadow: 0 0 0 3px rgb(0 86 214 / 20%);
}
/* Error State */
:host([error]) .input-wrapper {
  border-color: var(--error-text-color);
}
:host([error]):focus-within .input-wrapper {
  border-color: var(--error-text-color);
  outline-color: var(--error-text-color);
}
/* Hover State - Use CSS pseudo-selector instead of class */
:host(:not([disabled])) .input-wrapper:hover {
  border-color: var(--input-border-color-hover);
}
.label-input-group {
  position: relative;
  flex-grow: 1;
  display: flex;
  align-items: center;
  height: 100%;
}
label {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--label-color);
  font-size: 14px; /* body-md size from Figma */
  font-family: Router, sans-serif;
  font-weight: 400;
  pointer-events: none;
  transition: all 0.2s ease-out;
  background-color: transparent;
  padding: 0;
  margin: 0;
  line-height: normal;
  white-space: nowrap;
}
label.floating {
  top: 0; /* Align to top border area */
  transform: translateY(-50%) scale(0.85); /* Scale down */
  transform-origin: left top;
  background-color: var(--label-minimized-bg);
  padding: 0 var(--label-minimized-padding-x);
  left: -2px; /* Adjust for padding/border visual alignment */
  color: var(--input-text-color); /* Darker when floating */
  font-weight: 500; /* Medium weight when minimized */
}
.required-indicator {
  color: var(--error-text-color);
  margin-left: 2px;
}
input {
  border: none;
  background: transparent;
  width: 100%;
  height: 100%;
  color: var(--input-text-color);
  font-family: inherit;
  font-size: 14px;
  outline: none;
  padding: 0;
  margin: 0;
  font-weight: 400; /* Regular weight */
}
input::placeholder {
  color: var(--label-color);
}
div:empty {
  display: none;
}
[role='status'] {
  padding-top: 8px; /* space-gap-component-input-helper-text */
  padding-left: 12px; /* input-md-padding-x for helper text indent */
  font-size: 12px;
  color: var(--helper-text-color);
  font-family: Router, sans-serif;
  font-weight: 500; /* Medium weight */
}
[role='alert'] {
  padding-top: 8px;
  padding-left: 12px;
  font-size: 12px;
  color: var(--error-text-color);
  font-family: Router, sans-serif;
  font-weight: 500;
}
::slotted(lmvz-button) {
  /* Minimize padding for (icon) buttons due to height constraints */
  --lmvz-button-padding: 4px;
}
