@layer base {
  :root {
    --background: 0 0% 100%;
    --foreground: 230 25% 12%;

    --card: 0 0% 100%;
    --card-foreground: 230 25% 12%;

    --popover: 0 0% 100%;
    --popover-foreground: 230 25% 12%;

    --primary: 258 60% 52%;
    --primary-foreground: 0 0% 100%;

    --secondary: 230 80% 96%;
    --secondary-foreground: 258 60% 42%;

    --muted: 230 30% 96%;
    --muted-foreground: 230 10% 46%;

    --accent: 210 100% 52%;
    --accent-foreground: 0 0% 100%;

    --destructive: 0 84% 60%;
    --destructive-foreground: 0 0% 100%;

    --border: 230 20% 90%;
    --input: 230 20% 90%;
    --ring: 258 60% 52%;

    --radius: 0.75rem;
  }
}

.price-range {
  position: relative;
  height: 18px;
}

.price-range::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  background: #e2e8f0;
  border-radius: 999px;
  transform: translateY(-50%);
  z-index: 0;
}

.price-range__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 18px;
  background: transparent;
  pointer-events: none;
  -webkit-appearance: none;
  appearance: none;
  z-index: 1;
}

.price-range__input::-webkit-slider-runnable-track {
  height: 2px;
  background: transparent;
  border-radius: 999px;
}

.price-range__input::-moz-range-track {
  height: 2px;
  background: transparent;
  border-radius: 999px;
}

.price-range__input::-webkit-slider-thumb {
  pointer-events: auto;
  -webkit-appearance: none;
  height: 14px;
  width: 14px;
  border-radius: 999px;
  background: #0f172a;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #e2e8f0;
  margin-top: -6px;
}

.price-range__input::-moz-range-thumb {
  pointer-events: auto;
  height: 14px;
  width: 14px;
  border-radius: 999px;
  background: #0f172a;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px #e2e8f0;
}

.modal-dialog {
  border: none;
  padding: 0;
  background: transparent;
  margin: auto;
}

.modal-dialog::backdrop {
  background: rgba(15, 23, 42, 0.5);
}

.modal-panel {
  width: min(92vw, 640px);
  max-height: 80vh;
  overflow: auto;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  padding: 20px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.25);
}

.field_with_errors input,
.field_with_errors select,
.field_with_errors textarea {
  border-color: #fda4af;
  box-shadow: 0 0 0 2px rgba(244, 63, 94, 0.25);
}
