/**
 * Business Registration - Enterprise Mobile-First Styles
 * Version: 2.0
 * Role-based color system with neutral base palette
 */

/* ========================================
   CSS CUSTOM PROPERTIES (DESIGN TOKENS)
   ======================================== */
:root {
  /* Neutral Palette */
  --br-ink: #0f172a;
  --br-slate-900: #0f172a;
  --br-slate-800: #1e293b;
  --br-slate-700: #334155;
  --br-slate-600: #475569;
  --br-slate-500: #64748b;
  --br-slate-400: #94a3b8;
  --br-slate-300: #cbd5e1;
  --br-slate-200: #e2e8f0;
  --br-slate-100: #f1f5f9;
  --br-slate-50: #f8fafc;
  --br-white: #ffffff;

  /* Role Colors - Manufacturer (Purple) */
  --br-manufacturer: #8b5cf6;
  --br-manufacturer-hover: #7c3aed;
  --br-manufacturer-dark: #6d28d9;
  --br-manufacturer-light: rgba(139, 92, 246, 0.08);
  --br-manufacturer-lighter: rgba(139, 92, 246, 0.04);
  --br-manufacturer-border: rgba(139, 92, 246, 0.25);

  /* Role Colors - Reseller (Emerald) */
  --br-reseller: #10b981;
  --br-reseller-hover: #059669;
  --br-reseller-dark: #047857;
  --br-reseller-light: rgba(16, 185, 129, 0.08);
  --br-reseller-lighter: rgba(16, 185, 129, 0.04);
  --br-reseller-border: rgba(16, 185, 129, 0.25);

  /* Functional Colors */
  --br-success: #22c55e;
  --br-success-light: rgba(34, 197, 94, 0.1);
  --br-warning: #f59e0b;
  --br-warning-light: rgba(245, 158, 11, 0.1);
  --br-danger: #ef4444;
  --br-danger-light: rgba(239, 68, 68, 0.1);
  --br-info: #3b82f6;

  /* Typography */
  --br-font: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;

  /* Spacing */
  --br-space-1: 0.25rem;
  --br-space-2: 0.5rem;
  --br-space-3: 0.75rem;
  --br-space-4: 1rem;
  --br-space-5: 1.25rem;
  --br-space-6: 1.5rem;
  --br-space-8: 2rem;
  --br-space-10: 2.5rem;
  --br-space-12: 3rem;

  /* Border Radius */
  --br-radius-sm: 6px;
  --br-radius-md: 10px;
  --br-radius-lg: 16px;
  --br-radius-xl: 24px;
  --br-radius-full: 9999px;

  /* Shadows */
  --br-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --br-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
  --br-shadow-lg: 0 12px 24px rgba(15, 23, 42, 0.1);
  --br-shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.12);
  --br-shadow-card: 0 2px 16px rgba(15, 23, 42, 0.06);
  --br-shadow-card-hover: 0 8px 32px rgba(15, 23, 42, 0.1);

  /* Transitions */
  --br-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --br-transition: 250ms var(--br-ease);
}

/* ========================================
   BASE & RESET
   ======================================== */
.br-page {
  font-family: var(--br-font);
  background: linear-gradient(
    180deg,
    var(--br-slate-50) 0%,
    var(--br-white) 100%
  );
  min-height: 100vh;
  color: var(--br-ink);
  -webkit-font-smoothing: antialiased;
}

/* ========================================
   HEADER
   ======================================== */
.br-header {
  text-align: center;
  padding: var(--br-space-8) var(--br-space-4) var(--br-space-6);
  max-width: 600px;
  margin: 0 auto;
}

.br-header__logo {
  height: 48px;
  margin-bottom: var(--br-space-4);
}

.br-header__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--br-slate-900);
  margin: 0 0 var(--br-space-2);
  letter-spacing: -0.02em;
}

.br-header__subtitle {
  font-size: 1rem;
  color: var(--br-slate-500);
  margin: 0;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .br-header {
    padding: var(--br-space-12) var(--br-space-6) var(--br-space-8);
  }
  .br-header__title {
    font-size: 2.25rem;
  }
  .br-header__subtitle {
    font-size: 1.125rem;
  }
}

/* ========================================
   TRUST BADGES
   ======================================== */
.br-trust {
  display: flex;
  justify-content: center;
  gap: var(--br-space-4);
  flex-wrap: wrap;
  padding: var(--br-space-4);
  margin-bottom: var(--br-space-6);
}

.br-trust__item {
  display: flex;
  align-items: center;
  gap: var(--br-space-2);
  font-size: 0.8125rem;
  color: var(--br-slate-500);
}

.br-trust__icon {
  width: 18px;
  height: 18px;
  color: var(--br-success);
}

/* ========================================
   STEP INDICATOR
   ======================================== */
.br-steps {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0;
  padding: var(--br-space-4) var(--br-space-4) var(--br-space-6);
  max-width: 500px;
  margin: 0 auto;
}

.br-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
  max-width: 120px;
}

.br-step__circle {
  width: 40px;
  height: 40px;
  border-radius: var(--br-radius-full);
  background: var(--br-slate-100);
  border: 2px solid var(--br-slate-200);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--br-slate-400);
  transition: all var(--br-transition);
  position: relative;
  z-index: 2;
}

.br-step__label {
  margin-top: var(--br-space-2);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--br-slate-400);
  text-align: center;
  transition: color var(--br-transition);
}

.br-step__connector {
  position: absolute;
  top: 20px;
  left: calc(50% + 24px);
  width: calc(100% - 48px);
  height: 2px;
  background: var(--br-slate-200);
  z-index: 1;
  transition: background var(--br-transition);
}

/* Step States */
.br-step--active .br-step__circle {
  background: var(--br-slate-700);
  border-color: var(--br-slate-700);
  color: var(--br-white);
  box-shadow: 0 0 0 4px rgba(71, 85, 105, 0.15);
}

.br-step--active .br-step__label {
  color: var(--br-slate-700);
}

.br-step--completed .br-step__circle {
  background: var(--br-success);
  border-color: var(--br-success);
  color: var(--br-white);
}

.br-step--completed .br-step__label {
  color: var(--br-success);
}

.br-step--completed .br-step__connector {
  background: var(--br-success);
}

@media (min-width: 768px) {
  .br-step__circle {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }
  .br-step__label {
    font-size: 0.8125rem;
  }
  .br-step__connector {
    top: 24px;
    left: calc(50% + 28px);
    width: calc(100% - 56px);
  }
}

/* ========================================
   MAIN CONTAINER
   ======================================== */
.br-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--br-space-4) var(--br-space-8);
}

@media (min-width: 768px) {
  .br-container {
    padding: 0 var(--br-space-6) var(--br-space-12);
  }
}

/* ========================================
   FORM PANELS (Step Content)
   ======================================== */
.br-panel {
  display: none;
  opacity: 0;
  transform: translateY(16px);
}

.br-panel--active {
  display: block;
  animation: brPanelIn 400ms var(--br-ease) forwards;
}

.br-panel--exit {
  animation: brPanelOut 250ms ease forwards;
}

@keyframes brPanelIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes brPanelOut {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-16px);
  }
}

.br-panel__header {
  text-align: center;
  margin-bottom: var(--br-space-6);
}

.br-panel__title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--br-slate-900);
  margin: 0 0 var(--br-space-2);
}

.br-panel__desc {
  font-size: 0.9375rem;
  color: var(--br-slate-500);
  margin: 0;
}

@media (min-width: 768px) {
  .br-panel__header {
    margin-bottom: var(--br-space-8);
  }
  .br-panel__title {
    font-size: 1.625rem;
  }
}

/* ========================================
   ROLE CARDS (Step 1)
   ======================================== */
.br-roles {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--br-space-4);
}

@media (min-width: 640px) {
  .br-roles {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--br-space-5);
  }
}

.br-role-card {
  background: var(--br-white);
  border: 2px solid var(--br-slate-200);
  border-radius: var(--br-radius-lg);
  padding: var(--br-space-5);
  cursor: pointer;
  transition: all var(--br-transition);
  position: relative;
  overflow: hidden;
}

.br-role-card:hover {
  border-color: var(--br-slate-300);
  box-shadow: var(--br-shadow-card-hover);
  transform: translateY(-2px);
}

.br-role-card:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.2);
}

/* Role Card - Manufacturer */
.br-role-card--manufacturer:hover,
.br-role-card--manufacturer.br-role-card--selected {
  border-color: var(--br-manufacturer);
  background: var(--br-manufacturer-lighter);
}

.br-role-card--manufacturer.br-role-card--selected {
  box-shadow: 0 0 0 3px var(--br-manufacturer-border), var(--br-shadow-card);
}

/* Role Card - Reseller */
.br-role-card--reseller:hover,
.br-role-card--reseller.br-role-card--selected {
  border-color: var(--br-reseller);
  background: var(--br-reseller-lighter);
}

.br-role-card--reseller.br-role-card--selected {
  box-shadow: 0 0 0 3px var(--br-reseller-border), var(--br-shadow-card);
}

/* Role Card Header */
.br-role-card__header {
  display: flex;
  align-items: flex-start;
  gap: var(--br-space-3);
  margin-bottom: var(--br-space-4);
}

.br-role-card__icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--br-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--br-transition);
}

.br-role-card--manufacturer .br-role-card__icon-wrap {
  background: var(--br-manufacturer-light);
  color: var(--br-manufacturer);
}

.br-role-card--reseller .br-role-card__icon-wrap {
  background: var(--br-reseller-light);
  color: var(--br-reseller);
}

.br-role-card__icon {
  font-size: 1.5rem;
}

.br-role-card__title {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--br-slate-900);
  margin: 0 0 var(--br-space-1);
}

.br-role-card__subtitle {
  font-size: 0.8125rem;
  color: var(--br-slate-500);
  margin: 0;
  line-height: 1.4;
}

/* Role Card Features */
.br-role-card__features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--br-space-2);
}

.br-role-card__feature {
  display: flex;
  align-items: center;
  gap: var(--br-space-2);
  font-size: 0.8125rem;
  color: var(--br-slate-600);
}

.br-role-card__check {
  width: 18px;
  height: 18px;
  border-radius: var(--br-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.br-role-card--manufacturer .br-role-card__check {
  background: var(--br-manufacturer);
  color: var(--br-white);
}

.br-role-card--reseller .br-role-card__check {
  background: var(--br-reseller);
  color: var(--br-white);
}

.br-role-card__check i {
  font-size: 0.625rem;
}

/* Selection Badge */
.br-role-card__badge {
  position: absolute;
  top: var(--br-space-3);
  right: var(--br-space-3);
  width: 24px;
  height: 24px;
  border-radius: var(--br-radius-full);
  background: var(--br-success);
  color: var(--br-white);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 300ms var(--br-ease);
}

.br-role-card--selected .br-role-card__badge {
  opacity: 1;
  transform: scale(1);
}

@media (min-width: 768px) {
  .br-role-card {
    padding: var(--br-space-6);
  }
  .br-role-card__icon-wrap {
    width: 56px;
    height: 56px;
  }
  .br-role-card__icon {
    font-size: 1.75rem;
  }
  .br-role-card__title {
    font-size: 1.125rem;
  }
}

/* ========================================
   FORM SECTIONS
   ======================================== */
.br-section {
  background: var(--br-white);
  border: 1px solid var(--br-slate-200);
  border-radius: var(--br-radius-lg);
  padding: var(--br-space-5);
  margin-bottom: var(--br-space-4);
  box-shadow: var(--br-shadow-sm);
}

.br-section__header {
  display: flex;
  align-items: center;
  gap: var(--br-space-2);
  margin-bottom: var(--br-space-5);
  padding-bottom: var(--br-space-4);
  border-bottom: 1px solid var(--br-slate-100);
}

.br-section__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--br-radius-sm);
  background: var(--br-slate-100);
  color: var(--br-slate-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.br-section__title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--br-slate-800);
  margin: 0;
}

@media (min-width: 768px) {
  .br-section {
    padding: var(--br-space-6);
    margin-bottom: var(--br-space-5);
  }
}

/* Role-specific section styling */
.br-section--manufacturer .br-section__icon {
  background: var(--br-manufacturer-light);
  color: var(--br-manufacturer);
}

.br-section--reseller .br-section__icon {
  background: var(--br-reseller-light);
  color: var(--br-reseller);
}

/* ========================================
   FORM GRID
   ======================================== */
.br-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--br-space-4);
}

.br-grid--2col {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .br-grid--2col {
    grid-template-columns: repeat(2, 1fr);
  }
}

.br-grid__full {
  grid-column: 1 / -1;
}

/* ========================================
   FORM CONTROLS
   ======================================== */
.br-field {
  display: flex;
  flex-direction: column;
  gap: var(--br-space-1);
}

.br-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--br-slate-700);
}

.br-label__required {
  color: var(--br-danger);
  margin-left: 2px;
}

.br-input,
.br-select,
.br-textarea {
  width: 100%;
  padding: var(--br-space-3) var(--br-space-4);
  font-size: 0.9375rem;
  font-family: inherit;
  color: var(--br-slate-900);
  background: var(--br-white);
  border: 1.5px solid var(--br-slate-200);
  border-radius: var(--br-radius-md);
  transition: all var(--br-transition);
  -webkit-appearance: none;
  appearance: none;
}

.br-input:hover,
.br-select:hover,
.br-textarea:hover {
  border-color: var(--br-slate-300);
}

.br-input:focus,
.br-select:focus,
.br-textarea:focus {
  outline: none;
  border-color: var(--br-slate-500);
  box-shadow: 0 0 0 3px rgba(71, 85, 105, 0.1);
}

.br-input::placeholder {
  color: var(--br-slate-400);
}

.br-textarea {
  min-height: 100px;
  resize: vertical;
}

/* Select Arrow */
.br-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M4.427 6.427l3.396 3.396a.25.25 0 0 0 .354 0l3.396-3.396A.25.25 0 0 0 11.396 6H4.604a.25.25 0 0 0-.177.427z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--br-space-3) center;
  padding-right: var(--br-space-10);
}

/* Validation States */
.br-input--valid {
  border-color: var(--br-success);
}

.br-input--valid:focus {
  box-shadow: 0 0 0 3px var(--br-success-light);
}

.br-input--invalid {
  border-color: var(--br-danger);
}

.br-input--invalid:focus {
  box-shadow: 0 0 0 3px var(--br-danger-light);
}

.br-field__error {
  font-size: 0.75rem;
  color: var(--br-danger);
  display: flex;
  align-items: center;
  gap: var(--br-space-1);
}

.br-field__hint {
  font-size: 0.75rem;
  color: var(--br-slate-500);
}

/* ========================================
   PASSWORD FIELD
   ======================================== */
.br-password-wrap {
  position: relative;
}

.br-password-wrap .br-input {
  padding-right: var(--br-space-10);
}

.br-password-toggle {
  position: absolute;
  right: var(--br-space-3);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--br-slate-400);
  cursor: pointer;
  padding: var(--br-space-1);
  transition: color var(--br-transition);
}

.br-password-toggle:hover {
  color: var(--br-slate-600);
}

/* Password Strength */
.br-password-strength {
  margin-top: var(--br-space-2);
}

.br-password-bar {
  height: 4px;
  background: var(--br-slate-200);
  border-radius: var(--br-radius-full);
  overflow: hidden;
  margin-bottom: var(--br-space-2);
}

.br-password-bar__fill {
  height: 100%;
  width: 0;
  border-radius: var(--br-radius-full);
  transition: all 300ms ease;
}

.br-password-bar__fill--weak {
  width: 33%;
  background: var(--br-danger);
}
.br-password-bar__fill--medium {
  width: 66%;
  background: var(--br-warning);
}
.br-password-bar__fill--strong {
  width: 100%;
  background: var(--br-success);
}

.br-password-reqs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--br-space-1) var(--br-space-3);
}

.br-password-req {
  display: flex;
  align-items: center;
  gap: var(--br-space-1);
  font-size: 0.75rem;
  color: var(--br-slate-400);
  transition: color var(--br-transition);
}

.br-password-req--met {
  color: var(--br-success);
}

.br-password-req i {
  font-size: 0.625rem;
}

/* ========================================
   CHECKBOXES
   ======================================== */
.br-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--br-space-3);
  cursor: pointer;
}

.br-checkbox__input {
  width: 18px;
  height: 18px;
  border: 2px solid var(--br-slate-300);
  border-radius: 4px;
  cursor: pointer;
  flex-shrink: 0;
  margin-top: 2px;
  transition: all var(--br-transition);
}

.br-checkbox__input:checked {
  background: var(--br-slate-700);
  border-color: var(--br-slate-700);
}

.br-checkbox__label {
  font-size: 0.875rem;
  color: var(--br-slate-600);
  line-height: 1.5;
}

.br-checkbox__label a {
  color: var(--br-slate-800);
  text-decoration: underline;
}

/* ========================================
   BUTTONS
   ======================================== */
.br-actions {
  display: flex;
  flex-direction: column;
  gap: var(--br-space-3);
  margin-top: var(--br-space-6);
}

@media (min-width: 640px) {
  .br-actions {
    flex-direction: row;
    justify-content: space-between;
  }
  .br-actions--right {
    justify-content: flex-end;
  }
}

.br-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--br-space-2);
  padding: var(--br-space-3) var(--br-space-6);
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: inherit;
  border-radius: var(--br-radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--br-transition);
  min-height: 48px;
}

.br-btn--primary {
  background: var(--br-slate-800);
  color: var(--br-white);
}

.br-btn--primary:hover {
  background: var(--br-slate-900);
  transform: translateY(-1px);
  box-shadow: var(--br-shadow-md);
}

.br-btn--secondary {
  background: var(--br-white);
  color: var(--br-slate-700);
  border: 1.5px solid var(--br-slate-200);
}

.br-btn--secondary:hover {
  background: var(--br-slate-50);
  border-color: var(--br-slate-300);
}

.br-btn--manufacturer {
  background: var(--br-manufacturer);
  color: var(--br-white);
}

.br-btn--manufacturer:hover {
  background: var(--br-manufacturer-hover);
}

.br-btn--reseller {
  background: var(--br-reseller);
  color: var(--br-white);
}

.br-btn--reseller:hover {
  background: var(--br-reseller-hover);
}

.br-btn--loading {
  pointer-events: none;
  opacity: 0.8;
}

.br-btn--loading::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: brSpin 600ms linear infinite;
}

@keyframes brSpin {
  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   SUPPORT LINK
   ======================================== */
.br-support {
  text-align: center;
  margin-top: var(--br-space-6);
  padding-top: var(--br-space-6);
  border-top: 1px solid var(--br-slate-100);
}

.br-support__link {
  display: inline-flex;
  align-items: center;
  gap: var(--br-space-2);
  font-size: 0.875rem;
  color: var(--br-slate-500);
  text-decoration: none;
  transition: color var(--br-transition);
}

.br-support__link:hover {
  color: var(--br-slate-700);
}

/* ========================================
   SUCCESS SCREEN
   ======================================== */
.br-success {
  text-align: center;
  padding: var(--br-space-8) var(--br-space-4);
  max-width: 560px;
  margin: 0 auto;
}

.br-success__icon {
  width: 80px;
  height: 80px;
  border-radius: var(--br-radius-full);
  background: var(--br-success-light);
  color: var(--br-success);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--br-space-6);
  font-size: 2.5rem;
}

.br-success__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--br-slate-900);
  margin: 0 0 var(--br-space-2);
}

.br-success__text {
  font-size: 1rem;
  color: var(--br-slate-500);
  margin: 0 0 var(--br-space-6);
}

.br-success__card {
  background: var(--br-slate-50);
  border-radius: var(--br-radius-lg);
  padding: var(--br-space-5);
  text-align: left;
  margin-bottom: var(--br-space-6);
}

.br-success__steps {
  list-style: none;
  padding: 0;
  margin: 0;
}

.br-success__step {
  display: flex;
  gap: var(--br-space-3);
  padding: var(--br-space-3) 0;
  border-bottom: 1px solid var(--br-slate-200);
}

.br-success__step:last-child {
  border-bottom: none;
}

.br-success__step-num {
  width: 24px;
  height: 24px;
  border-radius: var(--br-radius-full);
  background: var(--br-slate-200);
  color: var(--br-slate-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  flex-shrink: 0;
}

.br-success__step-text {
  font-size: 0.875rem;
  color: var(--br-slate-700);
  line-height: 1.5;
}

.br-success__countdown {
  font-size: 0.875rem;
  color: var(--br-slate-500);
  margin-bottom: var(--br-space-4);
}

/* ========================================
   TOAST NOTIFICATIONS
   ======================================== */
.br-toast {
  position: fixed;
  top: var(--br-space-4);
  right: var(--br-space-4);
  left: var(--br-space-4);
  max-width: 400px;
  margin-left: auto;
  padding: var(--br-space-4);
  border-radius: var(--br-radius-md);
  display: flex;
  align-items: flex-start;
  gap: var(--br-space-3);
  box-shadow: var(--br-shadow-xl);
  z-index: 1000;
  animation: brToastIn 300ms var(--br-ease);
}

@keyframes brToastIn {
  from {
    opacity: 0;
    transform: translateY(-16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.br-toast--success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.br-toast--error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.br-toast--warning {
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.br-toast__close {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  padding: 0;
}

.br-toast__close:hover {
  opacity: 1;
}

@media (min-width: 640px) {
  .br-toast {
    left: auto;
  }
}

@media (max-width: 767.98px) {
  .br-header {
    margin-top: var(--br-space-6);
  }

  .br-actions {
    background-color: var(--br-white);
    position: sticky;
    bottom: 0;
    padding: var(--br-space-3);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }

  .br-container {
    padding: var(--br-space-4);
  }
}
