/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

.text-heading {
  color: #111827;
}

.text-body {
  color: #6b7280;
}

.bg-neutral-secondary-medium {
  background-color: #f9fafb;
}

.bg-neutral-primary-soft {
  background-color: #ffffff;
}

.bg-neutral-tertiary {
  background-color: #f3f4f6;
}

.hover\:bg-neutral-quaternary:hover {
  background-color: #f3f4f6;
}

.border-default {
  border-color: #e5e7eb;
}

.border-default-medium {
  border-color: #d1d5db;
}

.rounded-base {
  border-radius: 0.375rem;
}

.rounded-t-base {
  border-top-left-radius: 0.375rem;
  border-top-right-radius: 0.375rem;
}

.rounded-xs {
  border-radius: 0.125rem;
}

.bg-brand {
  background-color: #1d4ed8;
}

.hover\:bg-brand-strong:hover {
  background-color: #1e40af;
}

.text-fg-brand {
  color: #1d4ed8;
}

.border-fg-brand {
  border-color: #1d4ed8;
}

.border-body {
  border-color: #6b7280;
}

.text-fg-danger-strong {
  color: #be123c;
}

.text-fg-success-strong {
  color: #166534;
}

.text-fg-warning-strong {
  color: #92400e;
}

.text-fg-info-strong {
  color: #1d4ed8;
}

.bg-danger-soft {
  background-color: #ffe4e6;
}

.bg-success-soft {
  background-color: #dcfce7;
}

.bg-warning-soft {
  background-color: #fef3c7;
}

.bg-info-soft {
  background-color: #dbeafe;
}

.bg-success {
  background-color: #22c55e;
}

.bg-danger {
  background-color: #f43f5e;
}

.bg-warning {
  background-color: #f59e0b;
}

.bg-info {
  background-color: #3b82f6;
}

.border-danger-subtle {
  border-color: #fda4af;
}

.border-success-subtle {
  border-color: #86efac;
}

.border-warning-subtle {
  border-color: #fcd34d;
}

.border-info-subtle {
  border-color: #93c5fd;
}

.w-4\.5 {
  width: 1.125rem;
}

.h-4\.5 {
  height: 1.125rem;
}

.focus\:border-brand:focus {
  border-color: #1d4ed8;
}

.focus\:ring-brand:focus {
  --tw-ring-color: rgb(29 78 216 / 0.2);
  box-shadow: 0 0 0 1px #1d4ed8, 0 0 0 4px var(--tw-ring-color);
}

.focus\:ring-brand-medium:focus {
  --tw-ring-color: rgb(147 197 253 / 0.45);
  box-shadow: 0 0 0 4px var(--tw-ring-color);
}

.focus\:ring-brand-soft:focus {
  --tw-ring-color: rgb(191 219 254 / 0.7);
  box-shadow: 0 0 0 4px var(--tw-ring-color);
}

.flowbite-file-input {
  color-scheme: light;
}

.flowbite-file-input::file-selector-button,
.flowbite-file-input::-webkit-file-upload-button {
  appearance: none;
  -webkit-appearance: none;
  margin-right: 0.75rem;
  border: 0 !important;
  border-right: 1px solid #d1d5db !important;
  border-radius: 0;
  background-color: #e5e7eb !important;
  color: #334155 !important;
  padding: 0.625rem 0.875rem;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
}

.flowbite-file-input::file-selector-button:hover,
.flowbite-file-input::-webkit-file-upload-button:hover {
  background-color: #d1d5db !important;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-primary {
  background-color: #059669;
  border: 1px solid #059669;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background-color: #047857;
  border-color: #047857;
}

.btn-secondary {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  color: #334155;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
  background-color: #f1f5f9;
}

.order-item-remove-button {
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

.order-item-remove-button:hover,
.order-item-remove-button:focus-visible {
  background-color: #ffe4e6 !important;
  border-color: #fecdd3 !important;
  color: #be123c !important;
}

.order-item-remove-button:active {
  background-color: #fecdd3 !important;
}

.gmp-place-autocomplete,
gmp-place-autocomplete {
  display: block;
  width: 100%;
  --gmpx-color-surface: #ffffff;
  --gmpx-color-on-surface: #0f172a;
  --gmpx-color-outline: #cbd5e1;
  --gmpx-color-outline-variant: #e2e8f0;
  --gmpx-color-primary: #10b981;
  --gmpx-font-family: inherit;
  --gmpx-font-size: 0.875rem;
  --gmpx-icon-color: #94a3b8;
  --gmpx-input-height: 2.75rem;
  --gmpx-input-padding: 0.625rem 0.75rem 0.625rem 2.5rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background-color: #ffffff;
  min-height: 2.75rem;
}

.gmp-place-autocomplete::part(input),
.gmp-place-autocomplete::part(text-input),
gmp-place-autocomplete::part(input),
gmp-place-autocomplete::part(text-input) {
  width: 100%;
  box-sizing: border-box;
  height: 2.75rem;
  border: 1px solid #cbd5e1 !important;
  border-radius: 0.5rem !important;
  background-color: #ffffff !important;
  padding: 0.625rem 0.75rem 0.625rem 2.5rem !important;
  font-size: 0.875rem !important;
  color: #0f172a !important;
  opacity: 1 !important;
  display: block;
  line-height: 1.25rem;
  caret-color: #0f172a;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.gmp-place-autocomplete::part(input)::placeholder,
.gmp-place-autocomplete::part(text-input)::placeholder,
gmp-place-autocomplete::part(input)::placeholder,
gmp-place-autocomplete::part(text-input)::placeholder {
  color: #94a3b8;
}

.gmp-place-autocomplete::part(input),
.gmp-place-autocomplete::part(text-input),
.gmp-place-autocomplete::part(input)::placeholder,
.gmp-place-autocomplete::part(text-input)::placeholder,
gmp-place-autocomplete::part(input),
gmp-place-autocomplete::part(text-input),
gmp-place-autocomplete::part(input)::placeholder,
gmp-place-autocomplete::part(text-input)::placeholder {
  visibility: visible;
}

.gmp-place-autocomplete::part(input):focus {
  border-color: #10b981;
  outline: 2px solid transparent;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
}

#machine-address-suggestions button {
  cursor: pointer;
}

.pac-container {
  z-index: 60 !important;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  background-color: #fee2e2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.btn-danger:hover {
  background-color: #fecaca;
}

.search-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.25rem;
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  line-height: 1.25rem;
  font-weight: 500;
  background-color: #059669;
  border: 1px solid transparent;
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.search-submit-button:hover {
  background-color: #047857;
}

.search-submit-button:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(110, 231, 183, 0.45);
}

.flowbite-material-dropdown-item:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

.material-unit-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 0.375rem;
  border: 1px solid #d1d5db;
  background-color: #f9fafb;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #64748b;
}

.material-unit-chip:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.material-unit-chip-active {
  border-color: #2563eb;
  background-color: rgba(37, 99, 235, 0.1);
  color: #2563eb;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 2.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  background-color: #cbd5e1;
  transition: background-color 0.2s ease;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.6);
}

.toggle-switch::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  background-color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

.toggle-input:checked + .toggle-switch {
  background-color: #059669;
}

.toggle-input:checked + .toggle-switch::after {
  transform: translateX(1rem);
}

.toggle-input:focus-visible + .toggle-switch {
  outline: 2px solid transparent;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.3);
}

.part-preview-frame {
  --mask-url: none;
  --texture-url: none;
  --texture-color: transparent;
  position: relative;
  width: 4rem;
  height: 4rem;
  overflow: visible;
}

.part-preview-frame-3d {
  width: 4rem;
  height: 4rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.5rem;
  background: radial-gradient(circle at 30% 20%, #f8fafc 0%, #e2e8f0 100%);
  overflow: hidden;
}

.part-preview-frame-3d.part-preview-frame-expanded {
  width: 100%;
  height: 12rem;
}

@media (min-width: 1024px) {
  .part-preview-frame-3d.part-preview-frame-expanded {
    height: 14rem;
  }
}

.part-preview-frame.part-preview-frame-large {
  width: 8rem;
  height: 8rem;
}

.part-three-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.part-texture-preview {
  position: absolute;
  inset: 0;
  background-color: var(--texture-color);
  background-image: var(--texture-url);
  background-size: 120px 120px;
  background-repeat: repeat;
  -webkit-mask-image: var(--mask-url);
  mask-image: var(--mask-url);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  z-index: 2;
}

.part-shadow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(15, 23, 42, 0.4);
  -webkit-mask-image: var(--mask-url);
  mask-image: var(--mask-url);
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
  filter: blur(5px);
  transform: translate(2px, 3px);
  pointer-events: none;
  z-index: 1;
}

.part-shadow.part-shadow-soft {
  background-color: rgba(15, 23, 42, 0.28);
  filter: blur(4px);
  transform: scale(1.04);
}

[data-checkout-email][disabled] {
  background-color: #f1f5f9;
  color: #64748b;
  box-shadow: none;
  cursor: not-allowed;
}

.portal-account-email {
  display: inline-block;
  min-width: 9rem;
}

.portal-sign-in-label {
  display: inline-block;
}

@media (max-width: 767px) {
  .portal-account-email {
    display: none;
    min-width: 0;
  }

  .portal-sign-in-label {
    display: none;
  }
}
