/* Shipmoo 1:1 Design System */
body {
  background-color: #fbfaff;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.bg-gradient-payment-card {
  background-image: linear-gradient(90deg, #ff0202 0%, #ff6801 67.71%, #ffe600 100%);
}

#top-loader {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: #f06b04;
  z-index: 9999;
  transition: width 0.2s ease, opacity 0.2s ease;
  opacity: 0;
}
#top-loader.active { width: 75%; opacity: 1; }
#top-loader.done { width: 100%; opacity: 0; }

#toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9998;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 400px;
}

.sm-toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-radius: 0.375rem;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 10px 25px rgba(54, 28, 93, 0.22);
  animation: toastSlide 0.2s ease;
}
.sm-toast.success { background: #10b981; }
.sm-toast.error { background: #ef4444; }
.sm-toast.info { background: #361c5d; }

@keyframes toastSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.ui-card {
  border: 1px solid #e1e3e6;
  border-radius: 0.5rem;
  background: #ffffff;
  box-shadow: -10px 18px 32px rgba(54, 28, 93, 0.04);
}

.ui-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: 'Rubik', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.625rem 1.5rem;
  border-radius: 0.25rem;
  transition: all 0.15s ease;
  cursor: pointer;
}
.ui-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.ui-btn-primary {
  background: #f06b04;
  color: #ffffff;
  box-shadow: -11.09px 18.13px 36.6483px rgba(240, 107, 4, 0.13);
}
.ui-btn-primary:hover:not(:disabled) { background: #f1791d; }
.ui-btn-primaryAlt {
  background: transparent;
  color: #f06b04;
  border: 1px solid #f06b04;
}
.ui-btn-primaryAlt:hover:not(:disabled) { background: #fdf0e5; }
.ui-btn-secondary {
  background: #361c5d;
  color: #ffffff;
  box-shadow: -11.09px 18.13px 36.6483px rgba(54, 28, 93, 0.13);
}
.ui-btn-secondary:hover:not(:disabled) { background: #4a326d; }
.ui-btn-secondaryAlt {
  background: transparent;
  color: #361c5d;
  border: 1px solid #361c5d;
}
.ui-btn-secondaryAlt:hover:not(:disabled) { background: #e7e4ef; }
.ui-btn-alert { background: #ef4444; color: #fff; }
.ui-btn-alert:hover:not(:disabled) { background: #dc2626; }
.ui-btn-transparent { background: transparent; color: #37322c; }
.ui-btn-transparent:hover:not(:disabled) { background: #f3f4f6; }

/* Floating Label Inputs matching UiInput */
.ui-field { position: relative; }
.ui-input, .ui-select, .ui-textarea {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  background: #ffffff;
  font-size: 0.875rem;
  color: #1f2937;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ui-input, .ui-select {
  height: 3rem;
  padding: 1rem 0.875rem 0.35rem;
}
.ui-input.no-float, .ui-select.no-float {
  padding: 0.5rem 0.875rem;
}
.ui-input:focus, .ui-select:focus, .ui-textarea:focus {
  outline: none;
  border-color: #361c5d;
  box-shadow: 0 0 0 3px rgba(54, 28, 93, 0.12);
}
.ui-input.error, .ui-select.error, .ui-textarea.error {
  border-color: #ef4444;
  border-width: 2px;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}
.ui-float-label {
  position: absolute;
  left: 0.875rem;
  top: 0.35rem;
  font-size: 0.65rem;
  font-weight: 500;
  color: #757d8a;
  pointer-events: none;
  transition: all 0.15s;
}

.ui-spinner {
  width: 40px;
  height: 40px;
  background-color: #f06b04;
  margin: 0 auto;
  animation: sk-rotateplane 1.2s infinite ease-in-out;
}
@keyframes sk-rotateplane {
  0% { transform: perspective(120px) rotateX(0deg) rotateY(0deg); }
  50% { transform: perspective(120px) rotateX(-180.1deg) rotateY(0deg); }
  100% { transform: perspective(120px) rotateX(-180deg) rotateY(-179.9deg); }
}

.sm-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  overflow-y: auto;
}
.sm-modal-box {
  background: #ffffff;
  border-radius: 0.75rem;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(54, 28, 93, 0.25);
}

/* Autocomplete Dropdown */
.sm-ac-wrap { position: relative; }
.sm-ac-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  box-shadow: 0 12px 28px rgba(54, 28, 93, 0.16);
  z-index: 300;
  max-height: 260px;
  overflow-y: auto;
}
.sm-ac-item {
  padding: 0.6rem 0.85rem;
  cursor: pointer;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.8125rem;
}
.sm-ac-item:last-child { border-bottom: none; }
.sm-ac-item:hover, .sm-ac-item.active { background: #e7e4ef; }

.rate-quote-card {
  border: 2px solid #e1e3e6;
  border-radius: 0.5rem;
  background: #fff;
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: all 0.15s ease;
}
.rate-quote-card:hover { border-color: #f7b17a; }
.rate-quote-card.selected {
  border-color: #f06b04;
  box-shadow: -11.09px 18.13px 36.6483px rgba(240, 107, 4, 0.13);
}
