
/* CellRx shared storefront polish v1 */
:root {
  --cellrx-red: #ed213d;
  --cellrx-red-hover: #c91731;
  --cellrx-dark: #101115;
  --cellrx-border: #e5e7eb;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

a, button {
  transition:
    background-color .18s ease,
    color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ff5369;
  outline-offset: 3px;
}

button:not(:disabled) {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: .6;
}

/* Main brand header */
header {
  position: relative;
  z-index: 20;
}

header .container {
  min-width: 0;
}

header a.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  text-decoration: none;
  letter-spacing: -.035em;
}

header .cellrx-brand-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex: 0 0 auto;
}

header .links a {
  text-decoration: none;
}

header .links a:hover {
  color: #ff4a63;
}

/* Give existing card and form components a cleaner feel */
input:not([type=checkbox]):not([type=radio]),
select,
textarea {
  max-width: 100%;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--cellrx-red);
}

/* Keep narrow layouts from overflowing */
main, section, article, footer {
  min-width: 0;
}

pre, code {
  overflow-wrap: anywhere;
}

@media (max-width: 768px) {
  header .cellrx-brand-icon {
    width: 30px;
    height: 30px;
  }

  button, select {
    touch-action: manipulation;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
