/**
 * Floating border labels — shared (My Account, Order Service/Status, CssCoding).
 * Section/page scopes may override --order-* tokens.
 */
:root {
  --order-accent: #bd7b1b;
  --order-border: #e5e7eb;
  --order-surface-elevated: #fff;
  --order-text-muted: #6b7280;
  --order-radius: 8px;
  --order-control-h: 44px;
}

.order-float-field {
  position: relative;
  width: 100%;
  min-width: 0;
}

.order-float-field .order-float-label {
  position: absolute;
  inset-inline-start: 12px;
  top: 0;
  transform: translateY(-50%) scale(0.92);
  margin: 0;
  padding: 0 4px;
  padding-block: 0 !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--order-text-muted);
  pointer-events: none;
  line-height: 1.2;
  max-width: calc(100% - 0.5rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  background: var(--order-surface-elevated);
  transition: color 0.18s ease;
  z-index: 2;
}

.order-float-field .order-float-control {
  display: block;
  width: 100%;
  min-height: var(--order-control-h);
  padding: 1.45rem 0.75rem 0.45rem;
  line-height: 1.35;
  border: 1px solid var(--order-border);
  border-radius: var(--order-radius);
  background: var(--order-surface-elevated);
}

.order-float-field .order-float-control::placeholder {
  color: transparent;
}

.order-float-field:focus-within .order-float-label {
  color: var(--order-accent);
}

.order-float-field select.order-float-control {
  padding: 1.45rem 2rem 0.45rem 0.75rem;
  line-height: 1.25;
  min-height: var(--order-control-h);
}

.page-wrapper.dir_rtl .order-float-field select.order-float-control {
  padding: 1.45rem 0.75rem 0.45rem 2rem;
}
