:root {
  --bg: #f0f2f3;
  --surface: #ffffff;
  --border: #d4dee9;
  --text: #1a2332;
  --muted: #64748b;
  --accent: #5d09ec;
  --accent-hover: #4b07c5;
  --accent-soft: rgba(93, 9, 236, 0.1);
  --accent-ring: rgba(93, 9, 236, 0.22);
  --bar: #5e08ec;
  --bar-hover: #aa76ff;
  --danger: #dc2626;
  --radius: 10px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Evita “salti” di layout quando compare la scrollbar (logo/menu che si restringono). */
html {
  scrollbar-gutter: stable;
}

body.celero-app {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.celero-login-body {
  overflow-x: hidden;
}

body.celero-app.celero-login-body {
  background: #f8f9fa;
  color: #1a2332;
}

.celero-login-page {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 100vh;
  padding: 1.5rem;
  gap: 0;
  isolation: isolate;
}

.celero-login-body .celero-login-page {
  padding: 0;
  background: #f8f9fa;
  border: none;
  box-sizing: border-box;
}

.celero-login-brand {
  flex-shrink: 0;
  width: 100%;
  max-width: 400px;
  padding: 0 0 1.5rem;
  box-sizing: border-box;
  text-align: center;
}

.celero-login-brand .celero-login-logo {
  display: inline-block;
  margin: 0 auto;
}

.celero-login-main {
  flex: 0.8 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
  padding: 1.5rem;
  box-sizing: border-box;
}

.celero-login-after {
  width: 100%;
  max-width: 400px;
  margin-top: 1.5rem;
  text-align: center;
  box-sizing: border-box;
}

.celero-login-signup {
  margin: 0;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

.celero-login-link {
  font-size: inherit;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.celero-login-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.celero-login-hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 1.25rem auto 0;
  max-width: min(320px, 100%);
}

.celero-login-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex: 1 1 auto;
  width: 100%;
  min-height: 0;
}

.celero-login-footer {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  width: 100%;
  max-width: 24rem;
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}

.celero-login-body .celero-login-footer {
  max-width: none;
  padding: 1rem 1.5rem 1.5rem;
  margin-top: auto;
  color: #94a3b8;
}

/* Login: cerchi colorati concentrici (fissi) + anelli tratteggiati solo verso l’esterno */
.celero-login-galaxy {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg);
}

/* Tratteggiati grandi, sopra la vignetta; il primo inizia oltre i cerchi colorati */
.celero-login-static-rings {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.celero-static-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  box-sizing: border-box;
  border-radius: 50%;
  border: 1px dashed rgba(62, 83, 103, 0.75);
  background: transparent;
  aspect-ratio: 1;
}

.celero-login-static-rings .celero-static-ring:nth-child(1) {
  width: 178vmin;
  height: 178vmin;
  opacity: 0.36;
}

.celero-login-static-rings .celero-static-ring:nth-child(2) {
  width: 214vmin;
  height: 214vmin;
  opacity: 0.32;
}

.celero-login-static-rings .celero-static-ring:nth-child(3) {
  width: 250vmin;
  height: 250vmin;
  opacity: 0.29;
}

.celero-login-static-rings .celero-static-ring:nth-child(4) {
  width: 286vmin;
  height: 286vmin;
  opacity: 0.26;
}

.celero-login-static-rings .celero-static-ring:nth-child(5) {
  width: 322vmin;
  height: 322vmin;
  opacity: 0.24;
}

.celero-login-static-rings .celero-static-ring:nth-child(6) {
  width: 358vmin;
  height: 358vmin;
  opacity: 0.22;
}

.celero-login-static-rings .celero-static-ring:nth-child(7) {
  width: 394vmin;
  height: 394vmin;
  opacity: 0.2;
}

.celero-login-static-rings .celero-static-ring:nth-child(8) {
  width: 430vmin;
  height: 430vmin;
  opacity: 0.18;
}

/* Come le vecchie orbite: blu / viola / teal / ambra — senza animazione né nodi */
.celero-login-colored-rings {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vmin, 640px);
  height: min(92vmin, 640px);
  z-index: 3;
  pointer-events: none;
}

.celero-colored-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate3d(-50%, -50%, 0);
  border-radius: 50%;
  box-sizing: border-box;
  border-style: solid;
  border-width: 1.5px;
  background: transparent;
  animation: celero-login-ring-soft 12s ease-in-out infinite;
}

.celero-colored-ring--1 {
  width: 46%;
  height: 46%;
  border-color: rgba(0, 159, 227, 0.32);
  animation-delay: 0s;
}

.celero-colored-ring--2 {
  width: 70%;
  height: 70%;
  border-color: rgba(0, 159, 227, 0.28);
  animation-delay: -2s;
}

.celero-colored-ring--3 {
  width: 100%;
  height: 100%;
  border-color: rgba(0, 159, 227, 0.24);
  animation-delay: -4s;
}

.celero-colored-ring--4 {
  width: 118%;
  height: 118%;
  border-color: rgba(167, 139, 250, 0.32);
  animation-delay: -6s;
}

.celero-colored-ring--5 {
  width: 138%;
  height: 138%;
  border-color: rgba(45, 212, 191, 0.28);
  animation-delay: -8s;
}

.celero-colored-ring--6 {
  width: 162%;
  height: 162%;
  border-color: rgba(251, 191, 36, 0.26);
  animation-delay: -10s;
}

/* Ciclo più leggibile: spenti del tutto (0) → accensione graduale → picco → spegnimento graduale; sfasamento 12s/6 */
@keyframes celero-login-ring-soft {
  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 0.92;
  }
}

@media (prefers-reduced-motion: reduce) {
  .celero-colored-ring {
    animation: none;
    opacity: 1;
  }
}

.celero-galaxy-vignette {
  position: absolute;
  inset: -15%;
  z-index: 1;
  background: radial-gradient(
    circle at 50% 50%,
    transparent 0%,
    transparent 28%,
    rgba(15, 20, 25, 0.55) 55%,
    var(--bg) 78%
  );
}

.celero-login-logo-wrap {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  line-height: 0;
}

.celero-login-logo {
  display: block;
  height: 35px;
  width: auto;
  max-width: min(240px, 72vw);
}

.celero-login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem 2rem 2rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.celero-login-header {
  text-align: center;
  margin-bottom: 1.35rem;
}

.celero-login-title {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.celero-login-body .celero-login-title {
  color: #1a2332;
}

.celero-login-subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 400;
}

.celero-login-body .celero-login-subtitle {
  color: #64748b;
  font-size: 0.85rem;
}

/* Form login: campi a tutta larghezza come il pulsante (no griglia .celero-filters) */
.celero-login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.celero-login-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  width: 100%;
  margin: 0;
}

.celero-login-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 300;
}

.celero-login-body .celero-login-label {
  color: #374151;
  font-weight: 500;
}

.celero-login-field--checkbox {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.5rem;
}

.celero-login-field--checkbox input[type="checkbox"] {
  margin-top: 0.2rem;
  flex-shrink: 0;
}

.celero-login-label--inline {
  font-size: 0.8rem;
  line-height: 1.35;
  font-weight: 400;
}

.celero-login-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 0.5rem 0 0.25rem;
}

.celero-login-qr {
  max-width: 220px;
  height: auto;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.celero-login-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

.celero-login-body .celero-login-hint {
  color: #64748b;
}

.celero-login-form input[type="text"],
.celero-login-form input[type="password"],
.celero-login-form input[type="email"] {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  line-height: 1.4;
}

.celero-login-body .celero-login-form input[type="text"],
.celero-login-body .celero-login-form input[type="password"],
.celero-login-body .celero-login-form input[type="email"] {
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #1a2332;
}

.celero-login-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.celero-login-body .celero-login-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.celero-login-password-wrap {
  position: relative;
  display: block;
  width: 100%;
}

.celero-login-form .celero-login-password-wrap input[type="text"],
.celero-login-form .celero-login-password-wrap input[type="password"] {
  padding-right: 2.65rem;
}

.celero-login-password-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.celero-login-password-toggle:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.06);
}

.celero-login-body .celero-login-password-toggle {
  color: #64748b;
}

.celero-login-body .celero-login-password-toggle:hover {
  color: #1a2332;
  background: rgba(15, 23, 42, 0.06);
}

.celero-login-password-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.celero-login-body .celero-login-password-toggle:focus-visible {
  outline-color: var(--accent);
}

.celero-login-password-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

/* [hidden] altrimenti è sovrascritto da display:flex sopra (entrambe le icone visibili) */
.celero-login-password-toggle .celero-login-password-icon[hidden] {
  display: none !important;
}

.celero-login-password-icon svg {
  display: block;
}

/* Login: solo larghezza piena; font/padding come .celero-btn-primary globale (stile Accedi) */
.celero-login-form .celero-btn-primary {
  width: 100%;
  margin-top: 0.25rem;
}

.celero-login-body .celero-login-form .celero-btn-primary:hover {
  background: var(--accent-hover);
}

.celero-login-body .celero-messages .error {
  background: rgba(248, 113, 113, 0.12);
  color: #b91c1c;
}

.celero-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.celero-topbar {
  --celero-topbar-height: 3.5rem;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.75rem 1rem;
  padding: 0.75rem 1.25rem;
  min-height: 3.5rem;
  box-sizing: border-box;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 170;
}

.celero-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
  display: flex;
  align-items: center;
  line-height: 0;
  flex-shrink: 0;
}

.celero-brand:hover {
  opacity: 0.92;
}

.celero-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: center;
}

.celero-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
}

.celero-nav a:hover,
.celero-nav a.active {
  color: var(--accent);
}

.celero-nav .soon {
  color: var(--muted);
  opacity: 0.65;
  cursor: default;
}

.celero-user {
  font-size: 0.85rem;
  color: var(--muted);
}

.celero-account-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.celero-account-avatar {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background: #37e7bb;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.celero-account-avatar:hover {
  background: #2ed4ad;
}

.celero-account-avatar:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.celero-account-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 20rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.14);
  padding: 0;
  display: none;
  z-index: 180;
}

.celero-account-menu.is-open .celero-account-dropdown {
  display: block;
}

.celero-account-card {
  padding: 1rem 1.25rem 1.1rem;
  border-radius: 18px;
}

.celero-account-card-top {
  display: flex;
  justify-content: center;
  padding: 0.25rem 0 0.75rem;
}

.celero-account-email {
  font-weight: 400;
  color: var(--text);
  font-size: 0.8rem;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.celero-account-card-mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0 0.9rem;
}

.celero-account-photo-wrap {
  position: relative;
  width: 84px;
  height: 84px;
}

.celero-account-photo {
  width: 84px;
  height: 84px;
  border-radius: 999px;
  background: #37e7bb;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 2.1rem;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  background-size: cover;
  background-position: center;
}

.celero-account-photo.has-image .celero-account-photo-letter {
  display: none;
}

.celero-account-photo-btn {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.16);
  background: #ffffff;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.14);
}

.celero-account-photo-btn svg {
  width: 13.5px;
  height: 13.5px;
}

.celero-account-photo-remove {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.celero-account-photo-remove:hover {
  color: var(--text);
}

.celero-account-hello {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--text);
  line-height: 1.1;
}

.celero-account-card-actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.65rem;
  padding: 0 0 0.25rem;
  width: 100%;
}

.celero-account-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-sizing: border-box;
  width: 100%;
  min-height: 2.75rem;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.35);
  background: #ffffff;
  color: #2563eb;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
}

.celero-account-pill:hover {
  background: rgba(15, 23, 42, 0.03);
}

.celero-account-logout-form {
  margin: 0;
  width: 100%;
}

.celero-account-pill--logout {
  color: var(--text);
}

.celero-account-pill--logout svg {
  flex-shrink: 0;
}

@media (max-width: 900px) {
  /* Dropdown stile Google solo desktop. */
  .celero-account-menu {
    display: none;
  }
}

.celero-main {
  flex: 1;
  padding: calc(var(--celero-topbar-height, 3.5rem) + 1.25rem) 1.25rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.celero-page-title {
  margin: 0 0 1rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.celero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  margin-top: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.celero-filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.75rem 1rem;
  align-items: end;
  margin-bottom: 1rem;
}

.celero-filters label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.celero-filters input,
.celero-filters select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  padding: 0.45rem 0.6rem;
  font-size: 0.9rem;
}

.celero-filters input:focus,
.celero-filters select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

/* Pulsanti: padding uniforme su tutte le varianti .celero-btn* */
.celero-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 400;
  cursor: pointer;
  border: none;
  text-decoration: none;
  line-height: 1.25;
  font-family: inherit;
}

.celero-btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 400;
}

.celero-btn-primary:hover {
  background: var(--accent-hover);
}

.celero-btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  font-weight: 400;
}

.celero-btn-ghost:hover {
  color: var(--text);
  border-color: var(--muted);
}

/* Vente Unique: switch mercato Italia / Francia (segmented) */
.celero-market-segment {
  display: inline-flex;
  align-items: stretch;
  flex-shrink: 0;
}

.celero-market-segment .celero-market-segment-btn {
  position: relative;
  margin: 0;
  min-width: 4.25rem;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  font-weight: 400;
  transition: color 0.15s, border-color 0.15s;
}

.celero-market-segment .celero-market-segment-btn + .celero-market-segment-btn {
  margin-left: -1px;
}

.celero-market-segment .celero-market-segment-btn:first-child {
  border-radius: 12px 0 0 12px;
}

.celero-market-segment .celero-market-segment-btn:last-child {
  border-radius: 0 12px 12px 0;
}

.celero-market-segment .celero-market-segment-btn.is-active {
  z-index: 1;
  color: var(--text);
  border-color: #5d09ec;
}

.celero-market-segment .celero-market-segment-btn:hover {
  z-index: 1;
  color: var(--text);
}

.celero-market-segment .celero-market-segment-btn:not(.is-active):hover {
  border-color: var(--muted);
}

.celero-market-segment .celero-market-segment-btn.is-active:hover {
  border-color: #5d09ec;
}

.celero-market-segment .celero-market-segment-btn:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 1px;
  z-index: 2;
}

.celero-orders-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Conforama: Forza Sync (top nav) — bordo e testo arancione, sfondo trasparente */
.celero-btn-conforama-sync {
  background: transparent;
  color: #ff6600;
  border: 1px solid #ff6600;
  font-weight: 500;
}

.celero-btn-conforama-sync:hover {
  background: rgba(255, 102, 0, 0.08);
  border-color: #e65c00;
  color: #e65c00;
}

.celero-btn-danger-soft {
  background: #fbd3dc;
  color: #e61947;
  border: 1px solid #e61947;
  font-weight: 400;
}

.celero-btn-danger-soft:hover {
  background: #f5c0cb;
  color: #e61947;
  border-color: #e61947;
}

.celero-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.celero-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.celero-table th,
.celero-table td {
  padding: 0.6rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.celero-table th {
  background: rgba(15, 23, 42, 0.04);
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
}

.celero-table tr:last-child td {
  border-bottom: none;
}

.celero-table .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* Import offerte Conforama (OF02): intestazioni più evidenti + icona download report */
.celero-mirakl-import-runs .celero-mirakl-import-table thead th {
  color: var(--text);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  background: rgba(26, 35, 50, 0.07);
  border-bottom-color: rgba(26, 35, 50, 0.12);
}

.celero-mirakl-import-runs .celero-mirakl-import-table .celero-mirakl-import-col-errori {
  text-align: center;
  width: 3rem;
}

.celero-mirakl-import-runs .celero-mirakl-import-dl {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  color: var(--text);
  line-height: 0;
  vertical-align: middle;
}

.celero-mirakl-import-runs .celero-mirakl-import-dl:hover {
  background: var(--accent-soft);
  border-color: var(--accent-ring);
  color: var(--accent);
}

.celero-mirakl-import-runs .celero-mirakl-import-dl:focus-visible {
  outline: 2px solid var(--accent-ring);
  outline-offset: 2px;
}

.celero-table-products tbody tr {
  background: #ffffff;
}

.celero-badge {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  font-size: 0.75rem;
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger);
}

.celero-pagination-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.celero-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 0.85rem;
  align-items: center;
  justify-content: center;
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.celero-pagination-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  width: 100%;
  max-width: 36rem;
}

.celero-pagination-summary {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 500;
  white-space: nowrap;
}

.celero-pagination-jump-form {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0;
}

.celero-pagination-jump-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.celero-pagination-jump-input {
  width: 4rem;
  min-width: 0;
  padding: 0.35rem 0.45rem;
  font-size: 0.9rem;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
}

.celero-pagination-jump-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.celero-pagination a {
  color: var(--muted);
  text-decoration: none;
}

.celero-pagination a:hover {
  text-decoration: underline;
}

.celero-pagination-pages {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.celero-pagination-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  font-size: 0.88rem;
  color: var(--accent);
  text-decoration: none;
  border: 1px solid transparent;
}

.celero-pagination-num:hover {
  text-decoration: none;
  background: var(--accent-soft);
  border-color: var(--border);
}

.celero-pagination-current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  padding: 0.25rem 0.45rem;
  border-radius: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(93, 9, 236, 0.12);
  border: 1px solid var(--border);
}

.celero-pagination-gap {
  padding: 0 0.15rem;
  color: var(--muted);
  user-select: none;
}

.celero-pagination-meta {
  white-space: nowrap;
}

.celero-messages {
  margin-bottom: 1rem;
}

.celero-messages .msg {
  padding: 0.6rem 0.9rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.celero-messages .error {
  background: rgba(248, 113, 113, 0.12);
  color: #b91c1c;
}

.celero-messages .success {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

/* Toast messages (bottom-left, auto-hide) */
.celero-toast-stack {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: min(520px, calc(100vw - 2rem));
}

.celero-toast {
  background: #0f172a;
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font-size: 0.9rem;
  line-height: 1.35;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.celero-toast.success {
  color: color-mix(in srgb, #15803d 100%, transparent) !important;
  background-color: color-mix(in srgb, rgba(34, 197, 94, 0.16) 100%, transparent) !important;
  border-color: color-mix(in srgb, rgba(34, 197, 94, 0.45) 100%, transparent) !important;
}

.celero-toast.error {
  color: color-mix(in srgb, #b91c1c 100%, transparent) !important;
  background-color: color-mix(in srgb, rgba(248, 113, 113, 0.14) 100%, transparent) !important;
  border-color: color-mix(in srgb, rgba(220, 38, 38, 0.35) 100%, transparent) !important;
}

.celero-toast-hide {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.celero-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.celero-stat {
  padding: 1rem;
  background: rgba(15, 23, 42, 0.03);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.celero-stat .label {
  font-size: 0.8rem;
  color: var(--muted);
}

.celero-stat .value {
  font-size: 1.5rem;
  font-weight: 600;
}

.celero-stat-grid--hero {
  margin-bottom: 1.25rem;
}

.celero-stat--hero .label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.celero-stat--hero .value {
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

/* Feed ManoMano: tag ultima generazione (come stati ordine) */
.celero-channel-section-head--actions .celero-manomano-feed-refresh-form {
  margin: 0;
  flex-shrink: 0;
}

.celero-feed-gen-tags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0.4rem 0 0;
}

.celero-feed-gen-tags-stack .celero-feed-gen-tags + .celero-feed-gen-tags {
  margin-top: 0.25rem;
}

.celero-feed-gen-tags-stack {
  margin-top: 0.5rem;
}

/* Dashboard: card con barre (macro categoria, marca, mercato) */
.celero-dash-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (max-width: 900px) {
  .celero-dash-panels {
    grid-template-columns: 1fr;
  }
}

.celero-dash-bars-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.15rem 1rem;
}

.celero-dash-bars-card--wide {
  margin-bottom: 1rem;
}

.celero-dash-bars-title {
  margin: 0 0 0.25rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.celero-dash-bars-sub {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}

.celero-dash-bars-head {
  display: grid;
  grid-template-columns: 1fr minmax(7.5rem, 30%);
  gap: 0.75rem;
  align-items: end;
  padding-bottom: 0.45rem;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.celero-dash-bars-head span:last-child {
  text-align: right;
}

.celero-dash-bars-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.celero-dash-bars-row {
  display: grid;
  grid-template-columns: 1fr minmax(7.5rem, 30%);
  gap: 0.75rem;
  align-items: center;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.celero-dash-bars-row:last-child {
  border-bottom: none;
}

.celero-dash-bars-name {
  min-width: 0;
  font-size: 0.88rem;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.celero-dash-bars-code {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
}

.celero-dash-bars-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  min-width: 0;
}

.celero-dash-bars-count {
  font-size: 0.88rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

.celero-dash-bar-track {
  width: 100%;
  height: 7px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.07);
  overflow: hidden;
}

.celero-dash-bar-fill {
  height: 100%;
  min-width: 0;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--bar-hover), var(--bar));
  transition: width 0.45s ease;
}

.celero-dash-bars-empty {
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.celero-dash-bars-footnote {
  margin: 0.65rem 0 0;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  font-size: 0.78rem;
  color: var(--muted);
}

.celero-dash-next {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.celero-dash-next a {
  color: var(--accent);
  text-decoration: none;
}

.celero-dash-next a:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

/* ——— Topbar: logo a sinistra, burger mobile a destra ——— */
.celero-topbar-left {
  display: flex;
  align-items: center;
  min-width: 0;
}

.celero-topbar-account {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.celero-logo {
  display: block;
  height: 25px;
  width: 140px;
  max-width: 140px;
  object-fit: contain;
  object-position: left center;
  flex-shrink: 0;
}

.celero-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.celero-logout-form {
  margin: 0;
}

.celero-btn-sm {
  font-size: 0.75rem;
  padding: 0.6rem 1rem;
  font-weight: 400;
}

.celero-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: #37e7bb;
  color: #0f172a;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.celero-menu-btn:hover {
  background: #2ed4ad;
}

.celero-menu-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* Hamburger → X: 2 linee sottili; in apertura stesso centro (X simmetrica) */
.celero-menu-icon {
  --celero-menu-icon-h: 0.625rem;
  --celero-menu-line-h: 1.5px;
  position: relative;
  display: block;
  width: 1.2rem;
  height: var(--celero-menu-icon-h);
  flex-shrink: 0;
}

.celero-menu-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: var(--celero-menu-line-h);
  background: currentColor;
  border-radius: 1px;
  transform-origin: center center;
  transition:
    top 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.celero-menu-line:nth-child(1) {
  top: 0;
  transform: rotate(0deg);
}

.celero-menu-line:nth-child(2) {
  top: calc(100% - var(--celero-menu-line-h));
  transform: rotate(0deg);
}

.celero-menu-btn.is-open .celero-menu-line:nth-child(1),
.celero-menu-btn.is-open .celero-menu-line:nth-child(2) {
  top: 50%;
  margin-top: calc(var(--celero-menu-line-h) / -2);
}

.celero-menu-btn.is-open .celero-menu-line:nth-child(1) {
  transform: rotate(45deg);
}

.celero-menu-btn.is-open .celero-menu-line:nth-child(2) {
  transform: rotate(-45deg);
}

.celero-nav-desktop {
  justify-content: center;
}

@media (max-width: 900px) {
  /* Evita scroll orizzontale e “striscia” scura a destra (ombra drawer / 100vw). */
  html {
    overflow-x: hidden;
    scrollbar-gutter: auto;
  }

  body.celero-app {
    overflow-x: hidden;
  }

  /* Canali Shopify: contenuti larghi (toolbar + tabelle) — hidden taglierebbe tutto; consenti scroll orizzontale.
     Classi .celero-html-shopify-wide / .celero-body-shopify-wide le imposta base_app.html (no solo :has(), utile su WebView vecchi). */
  html.celero-html-shopify-wide,
  body.celero-app.celero-body-shopify-wide,
  html:has(#celero-main .celero-shopify-tabpanels),
  body.celero-app:has(#celero-main .celero-shopify-tabpanels) {
    overflow-x: auto;
  }

  #celero-main:has(.celero-shopify-tabpanels) {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }

  .celero-menu-btn {
    display: inline-flex;
  }

  .celero-nav-desktop {
    display: none;
  }

  .celero-topbar {
    grid-template-columns: 1fr auto;
    align-items: stretch;
    gap: 0;
    padding: 0 0 0 1rem;
    height: 3.5rem;
    min-height: 3.5rem;
    max-height: 3.5rem;
  }

  .celero-topbar-left {
    padding: 0 0;
    align-items: center;
    min-height: 0;
  }

  .celero-topbar-account {
    display: none;
  }

  .celero-topbar-right {
    gap: 0;
    align-self: stretch;
    display: flex;
    margin: 0;
    padding: 0;
  }

  .celero-menu-btn {
    align-self: stretch;
    flex: 0 0 3.5rem;
    width: 3.5rem;
    min-width: 3.5rem;
    max-width: 3.5rem;
    height: 100%;
    min-height: 0;
    max-height: none;
    border: none;
    box-shadow: none;
    outline: none;
  }

  .celero-menu-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
  }
}

@media (min-width: 901px) {
  .celero-nav-sheet,
  .celero-nav-backdrop {
    display: none !important;
  }
}

.celero-nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: rgba(15, 23, 42, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
}

@media (max-width: 900px) {
  .celero-nav-backdrop {
    top: var(--celero-topbar-height, 3.5rem);
  }
}

.celero-nav-sheet {
  position: fixed;
  top: var(--celero-topbar-height, 3.5rem);
  left: 0;
  right: 0;
  z-index: 160;
  width: 100%;
  max-height: calc(100vh - var(--celero-topbar-height, 3.5rem));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  box-shadow: none;
  transform: translateY(-100%);
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.28s ease, visibility 0.28s ease;
  display: flex;
  flex-direction: column;
}

.celero-nav-sheet.is-open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
  touch-action: pan-y;
}

.celero-nav-sheet-links {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0 0.25rem;
}

.celero-nav-sheet-links a {
  padding: 1rem 1.25rem;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.celero-nav-sheet-links a:hover {
  color: var(--accent-hover);
}

.celero-nav-sheet-links a.active {
  color: var(--accent);
  font-weight: 700;
}

.celero-nav-sheet-footer {
  margin-top: auto;
  padding: 0.75rem 1.25rem 1.5rem;
}

.celero-nav-sheet-account {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  margin: 0 0 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid #0f172a;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
}

.celero-nav-sheet-account-icon {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  color: var(--text);
}

.celero-nav-sheet-account-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.celero-nav-sheet-logout-form {
  margin: 0;
}

.celero-nav-sheet-logout-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 1rem;
  border: 1px solid #0f172a;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
}

.celero-nav-sheet-logout-btn:hover {
  background: rgba(15, 23, 42, 0.04);
}

html.celero-nav-open {
  overflow: hidden !important;
  overscroll-behavior: none;
}

body.celero-app.celero-no-scroll {
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
  overflow: hidden !important;
  overscroll-behavior: none;
}

/* ——— Tabella prodotti: anteprima ——— */
.celero-th-thumb {
  width: 3.5rem;
}

.celero-td-thumb {
  width: 3.5rem;
  vertical-align: middle;
}

/* Anteprima media (prodotti, ordini): fallback se immagine assente o errore caricamento */
.celero-media-thumb {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  vertical-align: middle;
}

.celero-media-thumb--72 {
  width: 72px;
  height: 72px;
  border-radius: 8px;
}

.celero-media-thumb__img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.celero-media-thumb__img.is-broken {
  display: none;
}

.celero-media-thumb__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #9ca3af;
}

.celero-media-thumb__img:not(.is-broken) ~ .celero-media-thumb__placeholder {
  display: none;
}

.celero-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.celero-thumb-placeholder {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--border);
}

.celero-row-click {
  cursor: pointer;
  transition: background 0.12s ease;
}

.celero-row-click:hover {
  background: rgb(191 191 191 / 8%);
}

.celero-row-click:focus {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* ——— Pannello prodotto (da destra) ——— */
.celero-panel-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 23, 42, 0.42);
  cursor: pointer;
}

.celero-side-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 210;
  width: min(100%, 28rem);
  max-width: 100vw;
  background: var(--surface);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.14);
  transform: translateX(100%);
  animation: celero-slide-in 0.28s ease forwards;
  display: flex;
  flex-direction: column;
}

@keyframes celero-slide-in {
  to {
    transform: translateX(0);
  }
}

.celero-side-panel-inner {
  overflow-y: auto;
  padding: 0 1.1rem 2rem;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}

.celero-side-panel-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 0 0.75rem;
  margin-bottom: 0.5rem;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.celero-side-panel-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  padding-right: 0.5rem;
}

.celero-side-panel-close {
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  border-radius: 6px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.celero-side-panel-close:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.06);
}

/* Mount pannello fetch: consente click su backdrop/pannello */
.celero-product-panel-mount {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}

.celero-product-panel-mount:not([hidden]) .celero-panel-backdrop,
.celero-product-panel-mount:not([hidden]) .celero-side-panel,
.celero-product-panel-mount:not([hidden]) .celero-product-panel-error {
  pointer-events: auto;
}

/* Errore fetch dettaglio prodotto (non più in alto a sinistra sotto il logo) */
.celero-product-panel-error {
  position: fixed;
  bottom: max(1rem, env(safe-area-inset-bottom, 0px));
  left: max(1rem, env(safe-area-inset-left, 0px));
  max-width: min(26rem, calc(100vw - 2rem));
  z-index: 220;
  margin: 0;
  padding: 1rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
}

.celero-product-panel-error-title {
  color: #f87171;
  margin: 0 0 0.5rem;
  line-height: 1.45;
  font-weight: 600;
  font-size: 0.95rem;
}

.celero-product-panel-error-title code {
  font-size: 0.85em;
}

.celero-product-panel-error-hint {
  color: var(--muted);
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.45;
}

.celero-product-panel-error-hint code {
  font-size: 0.85em;
}

/* Lista prodotti: titolo + icona filtri (stile canali, tutte le viewport) */
.celero-products-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
  max-width: 1400px;
}

.celero-products-page-title {
  margin: 0;
  flex: 1;
  min-width: 0;
}

@media (max-width: 767px) {
  .celero-product-toolbar-main .celero-toolbar-actions {
    display: none;
  }
}

/* Toolbar ricerca + drawer filtri (sinistra) */
.celero-product-filter-form {
  margin-bottom: 1rem;
}

.celero-product-toolbar {
  margin-bottom: 0.5rem;
}

.celero-product-toolbar-main {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 1rem;
}

.celero-toolbar-search--desktop {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 1rem;
  flex: 1 1 auto;
  min-width: 0;
}

.celero-toolbar-search--mobile {
  display: none;
}

@media (max-width: 767px) {
  .celero-toolbar-search--desktop {
    display: none;
  }

  .celero-toolbar-search--mobile {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
  }

  .celero-product-toolbar-main .celero-toolbar-actions > button[type="submit"] {
    display: none;
  }

  .celero-toolbar-search--mobile .celero-toolbar-field {
    min-width: 0;
    width: 100%;
  }

  .celero-toolbar-search--mobile .celero-toolbar-field-grow {
    flex: none;
    min-width: 0;
  }
}

.celero-filter-drawer-section-label,
.celero-filter-modal-section-label {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}

.celero-toolbar-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 7rem;
}

.celero-toolbar-field-grow {
  flex: 1 1 12rem;
  min-width: 10rem;
}

.celero-toolbar-label {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 500;
}

.celero-toolbar-field input {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
  min-width: 0;
}

.celero-toolbar-field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.celero-product-filter-form input[type="search"]::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.celero-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

/* Filtri prodotti: popup centrato (stesso schema .celero-modal delle impostazioni canale) */
.celero-modal-dialog--filters {
  max-width: min(28rem, 94vw);
}

.celero-product-filters-modal-body {
  padding: 0 0 0.35rem;
  margin: 0 0 0.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.celero-product-filters-modal-body label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.celero-product-filters-modal-body select {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.45rem 0.55rem;
  font-size: 0.9rem;
}

.celero-product-filters-modal-body input[type="search"] {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
  min-width: 0;
  width: 100%;
}

.celero-product-filters-modal-body select:focus,
.celero-product-filters-modal-body input[type="search"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

.celero-filter-checkbox {
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.5rem !important;
  color: var(--text) !important;
}

.celero-product-filters-modal-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.85rem;
  margin-bottom: 0;
}

#celero-close-filter-drawer-footer {
  margin-right: auto;
}

.celero-carousel {
  margin-bottom: 1.25rem;
}

.celero-carousel-track {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 0.35rem;
  -webkit-overflow-scrolling: touch;
}

.celero-carousel-slide {
  flex: 0 0 auto;
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  scroll-snap-align: start;
}

.celero-carousel-slide .celero-media-thumb {
  border: none;
}

.celero-media-thumb--carousel {
  width: 120px;
  height: 140px;
  border-radius: 8px;
}

.celero-media-thumb--carousel .celero-media-thumb__img:not(.is-broken) {
  position: static;
  width: auto;
  height: auto;
  max-width: min(240px, 70vw);
  max-height: 200px;
}

.celero-media-thumb--carousel .celero-media-thumb__placeholder svg {
  width: 28px;
  height: 28px;
}

.celero-carousel-empty {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.celero-carousel-empty--fallback {
  margin-top: 0.35rem;
}

.celero-carousel:not(:has(.celero-media-thumb__img:not(.is-broken))) .celero-carousel-empty--fallback {
  display: block;
}

.celero-carousel:not(:has(.celero-media-thumb__img:not(.is-broken))) .celero-carousel-track {
  display: none;
}

.celero-dl {
  display: grid;
  grid-template-columns: minmax(0, 8.5rem) 1fr;
  gap: 0.35rem 0.75rem;
  font-size: 0.88rem;
  margin: 0 0 1rem;
}

.celero-dl dt {
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.celero-dl dd {
  margin: 0;
  word-break: break-word;
}

.celero-subheading {
  font-size: 0.95rem;
  margin: 1rem 0 0.5rem;
  font-weight: 600;
}

.celero-subheading--panel-first {
  margin-top: 0;
}

.celero-pre {
  font-size: 0.8rem;
  white-space: pre-wrap;
  word-break: break-word;
  background: #f3f4f6;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin: 0 0 1rem;
}

.celero-prose {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--text);
}

.celero-panel-rich-text {
  background: #f3f4f6;
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  margin: 0 0 1rem;
  overflow-x: auto;
}

.celero-panel-data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: inherit;
  line-height: 1.45;
  margin: 0;
}

.celero-panel-data-table th[scope="row"] {
  text-align: left;
  vertical-align: top;
  color: var(--muted);
  font-weight: 500;
  padding: 0.4rem 0.75rem 0.4rem 0;
  width: 8.75rem;
  max-width: 42%;
}

.celero-panel-data-table td {
  padding: 0.4rem 0;
  word-break: break-word;
  color: var(--text);
}

.celero-panel-data-table tbody tr + tr th,
.celero-panel-data-table tbody tr + tr td {
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.celero-prose-html :first-child {
  margin-top: 0;
}

.celero-prose-html :last-child {
  margin-bottom: 0;
}

.celero-prose-html p {
  margin: 0.5em 0;
}

.celero-prose-html ul,
.celero-prose-html ol {
  margin: 0.5em 0;
  padding-left: 1.35rem;
}

.celero-prose-html li {
  margin: 0.2em 0;
}

.celero-prose-html a {
  color: var(--accent);
}

.celero-prose-html a:hover {
  color: var(--accent-hover);
}

.celero-prose-html img,
.celero-prose-html video {
  max-width: 100%;
  height: auto;
}

.celero-prose-html table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85em;
  margin: 0.5em 0;
}

.celero-prose-html th,
.celero-prose-html td {
  border: 1px solid var(--border);
  padding: 0.35rem 0.5rem;
  text-align: left;
}

.celero-prose-html h1,
.celero-prose-html h2,
.celero-prose-html h3,
.celero-prose-html h4 {
  margin: 0.65em 0 0.35em;
  font-size: 1.05em;
  font-weight: 600;
}

.celero-prose-html h1:first-child,
.celero-prose-html h2:first-child,
.celero-prose-html h3:first-child {
  margin-top: 0;
}

.celero-prose-html code,
.celero-prose-html pre {
  font-size: 0.9em;
  background: rgba(15, 23, 42, 0.06);
  border-radius: 4px;
}

.celero-prose-html pre {
  padding: 0.5rem 0.65rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.celero-prose-html code {
  padding: 0.1em 0.35em;
}

/* --- Canali / marketplace --- */
.celero-lead {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  max-width: 52rem;
}

.celero-back-wrap {
  margin: 0 0 1rem;
}

.celero-link-back {
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
}

.celero-link-back:hover {
  text-decoration: underline;
}

.celero-channel-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.celero-channel-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  padding-top: 1.65rem;
  min-height: 4.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.celero-channel-tile-repricing {
  position: absolute;
  top: 0.45rem;
  right: 0.45rem;
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.18rem 0.42rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  color: #0a7a42;
  background: #e9f7ef;
  border: 1px solid rgba(10, 122, 66, 0.14);
  border-radius: 999px;
  pointer-events: none;
}

.celero-channel-tile-repricing-icon {
  flex-shrink: 0;
  opacity: 0.92;
}

.celero-channel-tile-repricing-label {
  white-space: nowrap;
}

.celero-channel-tile:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.celero-channel-tile-label {
  font-weight: 500;
  font-size: 14px;
}

.celero-channel-tile-hint {
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 767px) {
  .celero-channel-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .celero-channel-tile {
    padding: 0.75rem 0.65rem;
    padding-top: 1.45rem;
    min-height: 3.75rem;
  }

  .celero-channel-tile-repricing {
    top: 0.35rem;
    right: 0.35rem;
    padding: 0.14rem 0.34rem;
    font-size: 0.58rem;
  }

  .celero-channel-tile-repricing-icon {
    width: 10px;
    height: 10px;
  }

  .celero-channel-tile-label {
    font-size: 16px;
    line-height: 1.25;
  }

  .celero-channel-tile-hint {
    font-size: 12px;
  }
}

.celero-channel-section {
  margin-bottom: 1rem;
}

.celero-channel-section-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  min-width: 0;
}

.celero-channel-section-head--actions {
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.celero-channel-section-head--actions > .celero-channel-section-title {
  flex: 1 1 auto;
  min-width: 0;
}

/* Toolbar sync Shopify: pulsanti su più righe su schermi stretti */
.celero-shopify-sync-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  flex-wrap: wrap;
  min-width: 0;
}

.celero-shopify-sync-toolbar > .celero-channel-section-title {
  min-width: 0;
  flex: 1 1 8rem;
  overflow-wrap: anywhere;
}

.celero-shopify-sync-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
  min-width: 0;
  flex: 1 1 12rem;
  justify-content: flex-end;
}

.celero-shopify-sync-toolbar-actions form {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.celero-shopify-pause-form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
  min-width: 0;
}

.celero-channel-section-icon {
  display: flex;
  color: var(--muted);
}

.celero-channel-section-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.celero-mirakl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  align-items: center;
}

.celero-mirakl-lookup-form {
  margin-top: 1rem;
  max-width: 28rem;
}

.celero-mirakl-lookup-cap {
  display: block;
  margin-bottom: 0.35rem;
}

.celero-mirakl-lookup-row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.celero-mirakl-lookup-row .celero-input {
  flex: 1;
  min-width: 0;
}

.celero-mirakl-repr-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7.5rem, 1fr));
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.celero-mirakl-repr-stat {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  text-align: center;
}

.celero-mirakl-repr-stat--wide {
  grid-column: 1 / -1;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.celero-mirakl-repr-stat-val {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
}

.celero-mirakl-repr-stat-lbl {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}

.celero-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  line-height: 1.3;
}

.celero-tag--ok {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.celero-tag--warn {
  background: rgba(234, 88, 12, 0.12);
  color: #c2410c;
}

.celero-tag--neutral {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.celero-tag--muted {
  background: rgba(15, 23, 42, 0.06);
  color: var(--muted);
}

.celero-table--compact td,
.celero-table--compact th {
  font-size: 0.8rem;
  padding: 0.4rem 0.5rem;
}

/* --- Tabs (Shopify canale) --- */
.celero-tabs {
  display: flex;
  gap: 0.25rem;
  padding: 0.25rem;
  border: 1px solid var(--border);
  background: #1e293b;
  border-radius: var(--radius);
  width: 100%;
  box-sizing: border-box;
}

.celero-tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  padding: 0.55rem 0.85rem;
  border-radius: calc(var(--radius) - 4px);
  cursor: pointer;
  flex: 1 1 0%;
  text-align: center;
}

.celero-tab[aria-selected="true"] {
  background: #333e50;
  border-color: #3b4857;
  color: #f6fbff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
}

.celero-tab:focus {
  outline: none;
  box-shadow: none;
}

.celero-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-ring);
}

/* Toast risultato test (popup impostazioni) */
.celero-modal-toast {
  margin-top: 0.75rem;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  font-size: 0.88rem;
  line-height: 1.35;
}

.celero-modal-toast-title {
  font-weight: 700;
  color: #f1f5f9;
  margin: 0 0 0.25rem;
}

.celero-modal-toast-link {
  color: #c7d2fe;
  text-decoration: none;
  word-break: break-word;
}

.celero-modal-toast-link:hover {
  text-decoration: underline;
}

.celero-modal-toast--err {
  background: #1f0a0a;
}

.celero-mirakl-lookup-dl {
  margin-top: 0.5rem;
}

.celero-inline-form {
  display: inline-block;
  margin: 0;
}

.celero-help {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.celero-form-stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 36rem;
}

.celero-field-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.celero-field-inline {
  flex: 1;
  min-width: 0;
}

.celero-input,
.celero-input-textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.5rem 0.65rem;
  font-size: 0.9rem;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.celero-input:focus,
.celero-input-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
}

select.celero-input,
select.celero-input-inline {
  cursor: pointer;
}

.celero-input-inline {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.45rem 0.55rem;
  font-size: 0.88rem;
  min-width: 0;
}

.celero-field-help {
  font-size: 0.78rem;
  opacity: 0.85;
}

.celero-field-error {
  color: #f87171;
  font-size: 0.8rem;
}

.celero-excl-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  flex: 1;
  align-items: flex-end;
}

.celero-dynamic-row.celero-excl-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.celero-dynamic-row.celero-excl-row:last-child {
  border-bottom: none;
}

/* Rimozione voce esclusione: checkbox sempre visibile + testo cliccabile */
.celero-excl-delete-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
  margin-left: auto;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--muted);
  user-select: none;
}

.celero-excl-delete-wrap:hover {
  color: var(--text);
}

.celero-excl-delete-checkbox,
.celero-excl-delete-wrap input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  min-width: 1.125rem;
  min-height: 1.125rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.celero-excl-delete-text {
  white-space: nowrap;
}

.celero-excl-row:has(.celero-excl-delete-wrap input:checked) {
  opacity: 0.65;
}

.celero-excl-row:has(.celero-excl-delete-wrap input:checked) .celero-excl-fields {
  text-decoration: line-through;
}

.celero-subheading {
  margin: 1.25rem 0 0.65rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.celero-discount-list {
  margin-bottom: 1rem;
}

.celero-discount-price-row,
.celero-discount-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  align-items: flex-end;
}

.celero-discount-mode-row .celero-field-label {
  min-width: 10rem;
}

/* Shopify discount modal: nicer alignment on desktop */
@media (min-width: 900px) {
  .celero-discount-mode-row .celero-field-label {
    flex: 1 1 calc(50% - 0.75rem);
    min-width: 0;
  }
  .celero-discount-mode-row .celero-field-label input,
  .celero-discount-mode-row .celero-field-label select,
  .celero-discount-mode-row .celero-field-label textarea {
    width: 100%;
  }
}

.celero-inline-form {
  display: inline;
  margin: 0;
}

.celero-card-muted {
  opacity: 0.92;
}

.celero-muted {
  color: var(--muted);
}

/* Header marketplace + modal impostazioni + griglia due colonne */
.celero-channel-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  max-width: 1400px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.celero-channel-page-head--tight {
  margin-bottom: 0.75rem;
}

.celero-card--mt-0 {
  margin-top: 0 !important;
}


.celero-channel-page-head-main {
  flex: 1;
  min-width: 0;
}

.celero-channel-page-title {
  margin-bottom: 0.35rem;
}

.celero-channel-lead {
  margin-bottom: 0;
}

/* Leclerc: Test connessione + Blocca + info sulla stessa riga, allineati a sinistra e verticalmente */
.celero-channel-lead--leclerc-tools {
  text-align: left;
}

.celero-channel-lead-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem 0.85rem;
  width: 100%;
  box-sizing: border-box;
}

.celero-channel-lead-actions .celero-inline-form {
  display: inline-flex;
  align-items: center;
  margin: 0;
}

.celero-channel-lead-actions__cluster {
  gap: 0.45rem;
}

.celero-channel-lead-actions__switch {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  user-select: none;
  margin: 0;
}

.celero-channel-lead-actions__switch-label {
  font-size: 0.9rem;
  line-height: 1;
}

.celero-channel-lead-actions__info {
  margin: 0;
}

.celero-back-wrap-tight {
  margin-bottom: 0.35rem;
}

.celero-channel-settings-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-top: 0.15rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.celero-channel-settings-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(59, 130, 246, 0.06);
}

/* Pulsanti header canale (Sync/Sconti/Esclusioni) */
.celero-channel-topnav-btn {
  height: 2.4rem; /* come .celero-channel-settings-btn */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.7rem;
  border-radius: 12px;
  box-sizing: border-box;
}

/* Tab canale attiva (Sync, Repricing, Sconti, Esclusioni) — non il picker IT/FR */
.celero-channel-topnav-btn.is-active:not(.celero-market-segment-btn) {
  border-color: #ff6600;
  color: #ff6600;
  background: rgba(255, 102, 0, 0.08);
}

.celero-channel-topnav-btn.is-active:not(.celero-market-segment-btn):hover {
  border-color: #ff6600;
  color: #ff6600;
  background: rgba(255, 102, 0, 0.12);
}

/* Shopify Sync dashboard */
.celero-sync-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.5rem 0 0.75rem;
}

.celero-sync-stat {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.02);
}

.celero-sync-stat-label {
  font-size: 0.78rem;
  color: var(--muted);
}

.celero-sync-stat-value {
  margin-top: 0.15rem;
  font-weight: 700;
  color: var(--text);
}

/* Contesto sync Shopify (card riepilogo) */
.celero-sync-context--new {
  color: #15803d;
}
.celero-sync-context--update {
  color: #c2410c;
}
.celero-sync-context--prune {
  color: #b91c1c;
}
.celero-sync-context--full {
  color: var(--text);
}

/* Badge fase nella tabella storico sync */
.celero-sync-phase-cell {
  white-space: normal;
  line-height: 1.35;
}
.celero-sync-phase-badge {
  display: inline-block;
  padding: 0.14rem 0.5rem;
  border-radius: 7px;
  font-size: 0.74rem;
  font-weight: 600;
  margin: 0.12rem 0.35rem 0 0;
  vertical-align: middle;
}
.celero-sync-phase-badge--new {
  background: rgba(34, 197, 94, 0.2);
  color: #15803d;
}
.celero-sync-phase-badge--update {
  background: rgba(249, 115, 22, 0.22);
  color: #c2410c;
}
.celero-sync-phase-badge--prune {
  background: rgba(239, 68, 68, 0.18);
  color: #b91c1c;
}

.celero-sync-phase-badge--cancelled {
  background: rgba(100, 116, 139, 0.22);
  color: #475569;
}

.celero-sync-published-stack {
  margin-top: 0.15rem;
}

.celero-sync-published-remote-line {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  line-height: 1.35;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.25rem 0.5rem;
}

.celero-sync-published-remote-line strong {
  font-weight: 600;
  color: var(--text);
}

.celero-sync-metrics-err {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  color: var(--danger);
}

.celero-sync-align-form {
  margin-top: 0.45rem;
}

.celero-shopify-force-info {
  flex-shrink: 0;
}

.celero-sync-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  overflow: hidden;
}

.celero-sync-bar-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.25s ease;
}

/* Shopify Sync: toggle "Blocca" (on/off) */
.celero-switch {
  cursor: pointer;
}
.celero-switch-ui {
  width: 44px;
  height: 24px;
  border-radius: 999px;
  /* OFF */
  background: rgba(239, 68, 68, 0.35);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.35);
  transition: background 150ms ease-in-out, box-shadow 150ms ease-in-out;
}
.celero-switch-ui::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
  transition: transform 150ms ease-in-out;
}
.celero-switch input[type="checkbox"]:checked + .celero-switch-ui {
  /* ON */
  background: rgba(34, 197, 94, 0.35);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.35);
}
.celero-switch input[type="checkbox"]:checked + .celero-switch-ui::after {
  transform: translateX(20px);
}

@media (max-width: 720px) {
  .celero-sync-grid {
    grid-template-columns: 1fr;
  }
}

/* Shopify canali: scroll orizzontale affidabile su tabelle larghe (mobile) */
@media (max-width: 900px) {
  .celero-channel-main-grid.celero-shopify-tabpanels {
    max-width: 100%;
    min-width: 0;
  }

  .celero-shopify-tabpanels .celero-table-wrap {
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    touch-action: pan-x pan-y;
  }

  .celero-shopify-tabpanels .celero-table-wrap .celero-table {
    width: max-content;
    min-width: 100%;
  }
}

@media (max-width: 640px) {
  .celero-channel-page-head {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }

  .celero-channel-page-head > div:last-child {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.35rem;
  }

  .celero-channel-topnav-btn {
    padding: 0 0.55rem;
    font-size: 0.82rem;
  }
}

.celero-channel-main-grid {
  display: grid;
  /* minmax(0, 1fr) evita che la griglia superi il viewport su mobile (min implicito auto). */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  max-width: 1400px;
  margin-bottom: 1rem;
  min-width: 0;
}

/* Shopify tabs: pannelli full-width (override griglia 2 colonne) */
.celero-channel-main-grid.celero-shopify-tabpanels {
  max-width: none;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
}

.celero-shopify-tabpanels > section {
  min-width: 0;
  max-width: 100%;
}

.celero-shopify-tabpanels .celero-card {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 960px) {
  .celero-channel-main-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.celero-channel-col {
  margin-top: 0;
  min-width: 0;
}

.celero-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 1.5rem 1rem 2.5rem;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.celero-modal[hidden] {
  display: none !important;
}

.celero-modal:not([hidden]) {
  display: flex !important;
}

.celero-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  cursor: pointer;
}

.celero-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  flex-shrink: 0;
  margin: 0;
  overflow: visible;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}

.celero-modal-dialog--wide {
  max-width: min(44rem, 96vw);
}

.celero-excl-modal-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-right: 0.25rem;
  margin: 0 -0.25rem 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
}

.celero-excl-modal-list .celero-dynamic-row.celero-excl-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--border);
  margin: 0;
}

.celero-excl-modal-list .celero-dynamic-row.celero-excl-row:last-child {
  border-bottom: none;
}

.celero-excl-modal-row-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 1rem;
  align-items: start;
}

@media (max-width: 520px) {
  .celero-excl-modal-row-grid {
    grid-template-columns: 1fr;
  }
}

.celero-excl-field-cap {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.celero-excl-value-block {
  margin-bottom: 0;
}

/* Modal esclusioni (es. Leroy Merlin): Tipo + Valore su sfondo bianco */
.celero-excl-modal-list .celero-input,
.celero-excl-modal-list .celero-input-inline,
.celero-excl-modal-list .celero-input-textarea {
  background: #ffffff;
}

.celero-field-has-error .celero-input,
.celero-field-has-error .celero-input-inline,
.celero-field-has-error input,
.celero-field-has-error select {
  border-color: #f87171 !important;
  box-shadow: 0 0 0 2px rgba(248, 113, 113, 0.2);
}

.celero-field-error-note {
  display: block;
  font-size: 0.72rem;
  color: #dc2626;
  margin-top: 0.3rem;
  line-height: 1.35;
}

.celero-excl-stats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.9rem;
  color: var(--text);
}

.celero-excl-stat-sep {
  color: var(--muted);
}

.celero-excl-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.celero-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.celero-excl-import-panel {
  margin-top: 0.25rem;
  padding: 1.1rem 1.2rem 1.15rem;
  border-radius: 12px;
  background: linear-gradient(155deg, #1e293b 0%, #0f172a 55%, #020617 100%);
  color: rgba(248, 250, 252, 0.94);
}

.celero-excl-import-panel-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: 0.01em;
}

.celero-excl-import-panel-lead {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: rgba(226, 232, 240, 0.88);
}

.celero-excl-import-panel-lead strong {
  color: #f1f5f9;
  font-weight: 600;
}

.celero-excl-import-panel-downloads {
  margin: 0 0 1rem;
  font-size: 0.8rem;
}

.celero-excl-import-panel-downloads a {
  color: #7dd3fc;
  text-decoration: none;
  font-weight: 500;
}

.celero-excl-import-panel-downloads a:hover {
  color: #bae6fd;
  text-decoration: underline;
}

.celero-excl-import-dl-sep {
  margin: 0 0.35rem;
  color: rgba(148, 163, 184, 0.7);
}

.celero-excl-import-form-inner {
  margin: 0;
}

.celero-excl-import-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.65rem;
}

.celero-excl-import-pick-btn {
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #f8fafc !important;
  border: 1px solid rgba(255, 255, 255, 0.28);
  font-weight: 400;
}

.celero-excl-import-pick-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.42);
  color: #fff !important;
}

label.celero-excl-import-file-label {
  cursor: pointer;
  margin: 0;
}

.celero-excl-file-name-display {
  flex: 1;
  min-width: 12rem;
  font-size: 0.78rem;
  color: rgba(241, 245, 249, 0.82);
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}

.celero-excl-import-panel .celero-btn-primary {
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.celero-excl-import-panel .celero-btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.celero-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.celero-modal-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

.celero-modal-close {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.celero-modal-close:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.06);
}

.celero-modal-intro {
  margin-top: 0;
}

/* Impostazioni canale Mirakl: icona info accanto al label */
.celero-field-mirakl {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.celero-field-mirakl-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}

.celero-field-mirakl-caption {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
  margin: 0;
  flex: 1;
  min-width: 0;
}

.celero-inline-info {
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

.celero-inline-info-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  cursor: pointer;
  margin: 0;
  padding: 0.2rem;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  line-height: 0;
  transition: color 0.15s, background 0.15s;
}

.celero-inline-info-trigger::-webkit-details-marker {
  display: none;
}

.celero-inline-info-trigger:hover,
.celero-inline-info[open] .celero-inline-info-trigger {
  color: var(--accent);
  background: rgba(93, 9, 236, 0.08);
}

.celero-inline-info-icon {
  display: block;
  flex-shrink: 0;
}

.celero-inline-info-drop {
  position: absolute;
  z-index: 20;
  right: 0;
  top: calc(100% + 0.35rem);
  min-width: min(17.5rem, calc(100vw - 2.5rem));
  max-width: min(22rem, calc(100vw - 2.5rem));
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text);
}

.celero-inline-info-heading {
  margin: 0 0 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.celero-inline-info-list {
  margin: 0;
  padding-left: 1.15rem;
}

.celero-inline-info-list li {
  margin-bottom: 0.35rem;
}

.celero-inline-info-list li:last-child {
  margin-bottom: 0;
}

.celero-inline-info-drop code {
  font-size: 0.92em;
  word-break: break-all;
}

.celero-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin: 1.25rem 0 0;
}

.celero-orders-page-head {
  margin-bottom: 1rem;
}

.celero-orders-sync-head {
  flex-shrink: 0;
  margin: 0;
}

.celero-orders-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.celero-orders-field-channel {
  flex: 0 0 auto;
  min-width: 9rem;
}

.celero-orders-field-nation {
  flex: 0 0 auto;
  min-width: 8rem;
}

.celero-orders-field-state {
  flex: 0 0 auto;
  min-width: 9.5rem;
}

.celero-orders-field-search {
  flex: 0 1 auto;
  max-width: 16rem;
  min-width: 10rem;
}

.celero-orders-field-search .celero-input {
  width: 100%;
  max-width: 16rem;
}

.celero-orders-search-btn {
  flex-shrink: 0;
}

.celero-orders-sync-meta {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
}

.celero-orders-kpi-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: stretch;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.celero-orders-kpi {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 0 0 auto;
  width: fit-content;
  min-width: 8.25rem;
  max-width: 14rem;
  padding: 0.65rem 0.85rem;
  background: transparent;
  border: 1px solid #5e08ec;
  border-radius: 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.celero-orders-kpi-value {
  font-size: calc(1.35rem * 0.75);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.celero-orders-kpi-label {
  font-size: 0.82rem;
  color: var(--celero-muted, #6b7280);
}

/* Ordini: spazio tra tabella e pulsanti Precedente/Successiva */
.celero-orders-pagination {
  margin-top: 1.25rem;
}

.celero-table--orders .celero-order-row td {
  vertical-align: top;
}

.celero-order-lines-row > td {
  padding-top: 0;
  padding-bottom: 1rem;
  background: rgba(0, 0, 0, 0.02);
}

.celero-order-lines-inner {
  margin: 0.25rem 0 0;
}

.celero-table--orders .celero-row-click {
  cursor: pointer;
}

.celero-table--orders .celero-row-click:hover td {
  background: rgba(0, 0, 0, 0.03);
}

.celero-orders-col-thumb {
  width: 3.5rem;
  padding-right: 0.35rem !important;
}

.celero-order-thumb--empty {
  display: none;
}

.celero-order-id {
  word-break: break-all;
  display: block;
  line-height: 1.25;
}

.celero-orders-col-order {
  min-width: 6.5rem;
}

.celero-order-id-date {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--muted);
}

.celero-order-panel-meta {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.celero-order-panel-lines {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
}

.celero-order-panel-line {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.celero-order-panel-line:last-child {
  border-bottom: none;
}

.celero-order-panel-line-media .celero-media-thumb {
  flex-shrink: 0;
}

.celero-order-panel-line-title {
  margin: 0 0 0.25rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.celero-order-panel-line-ids {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
}

.celero-order-panel-line-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.35rem 0.75rem;
  margin: 0;
  font-size: 0.85rem;
}

.celero-order-panel-line-stats dt {
  margin: 0;
  font-weight: 500;
  color: var(--celero-muted, #6b7280);
}

.celero-order-panel-line-stats dd {
  margin: 0;
}

.celero-order-panel-address {
  font-style: normal;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.celero-order-panel-total {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.celero-side-panel--order {
  width: min(100%, 36rem);
}

.celero-order-panel-head .celero-side-panel-title {
  font-size: 1.05rem;
  line-height: 1.35;
}

.celero-order-panel-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--celero-muted, #6b7280);
}

.celero-order-panel-sub {
  margin: 0.25rem 0 0.5rem;
  font-size: 0.85rem;
  color: var(--celero-muted, #6b7280);
}

.celero-tag--pending {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
}

.celero-tag--received {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.celero-tag--shipping {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.celero-tag--preparation {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
}

.celero-tag--shipped {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.celero-tag--refunded {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.celero-tag--cancelled {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.celero-tag--closed {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.celero-order-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.celero-order-kpi-card {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.65rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.celero-order-kpi-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: #eff6ff;
  color: #1d4ed8;
}

.celero-order-kpi-icon--commission {
  background: #fef3c7;
  color: #b45309;
}

.celero-order-kpi-icon--ship {
  background: #ecfdf5;
  color: #047857;
}

.celero-order-kpi-icon--amount {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.celero-order-kpi-label {
  font-size: 0.72rem;
  color: var(--celero-muted, #6b7280);
}

.celero-order-kpi-value {
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.25;
}

.celero-order-section-card {
  margin-bottom: 0.85rem;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.celero-order-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.celero-order-section-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.celero-order-section-icon {
  opacity: 0.55;
  font-size: 0.85rem;
}

.celero-order-section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.celero-order-panel-line-price {
  margin: 0.2rem 0 0;
  font-size: 0.88rem;
  font-weight: 500;
}

.celero-order-payment-rows {
  margin: 0;
  font-size: 0.88rem;
}

.celero-order-payment-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.celero-order-payment-rows > div:last-child {
  border-bottom: none;
}

.celero-order-payment-rows dt {
  margin: 0;
  color: var(--celero-muted, #6b7280);
}

.celero-order-payment-rows dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
}

.celero-order-payment-total dt,
.celero-order-payment-total dd {
  font-weight: 700;
  color: inherit;
}

@media (max-width: 420px) {
  .celero-order-kpi-grid {
    grid-template-columns: 1fr;
  }

  .celero-orders-kpi-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

.celero-shopify-reconcile-card {
  margin-top: 1rem;
}

.celero-shopify-reconcile-list {
  margin: 0 0 0.75rem;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.5;
}

.celero-shopify-reconcile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --- Negozio online (Storefront admin) --- */
.celero-storefront-tabs {
  margin-bottom: 1.25rem;
}

.celero-storefront-tab {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.celero-storefront-tab.is-active {
  background: #333e50;
  border-color: #3b4857;
  color: #f6fbff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.02);
  pointer-events: none;
}

.celero-storefront-preview-card {
  margin: 1rem 0 1.25rem;
}

.celero-storefront-form .celero-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1rem;
}

.celero-storefront-form .celero-field-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.celero-storefront-code {
  display: block;
  word-break: break-all;
  padding: 0.75rem 0.85rem;
  background: var(--surface-2, #0f172a);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.85rem;
}

.celero-storefront-code-inline {
  font-size: 0.88rem;
}

.celero-storefront-api-list {
  margin: 0.5rem 0 1rem;
  padding-left: 1.2rem;
  font-size: 0.9rem;
  line-height: 1.55;
}

.celero-storefront-badge {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  background: #d8f3dc;
  color: #1b4332;
  vertical-align: middle;
}

.celero-storefront-status {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.celero-storefront-status--ok {
  background: rgba(45, 106, 79, 0.15);
  color: #2d6a4f;
}

.celero-storefront-status--pending {
  background: rgba(176, 137, 0, 0.15);
  color: #9a6b00;
}

.celero-storefront-domains-actions {
  text-align: right;
  white-space: nowrap;
}

.celero-storefront-domains-actions .celero-inline-form {
  display: inline-flex;
  margin-left: 0.25rem;
}

.celero-storefront-steps {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  line-height: 1.55;
  font-size: 0.92rem;
}

.celero-storefront-dns-table .celero-storefront-dns-hint-row td {
  padding-top: 0;
  padding-bottom: 0.85rem;
  font-size: 0.82rem;
  border-bottom: 1px solid var(--border);
}

.celero-storefront-token-card {
  border-color: #2d6a4f;
  margin-bottom: 1rem;
}
