: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;
  --esago-sidebar-rail-width: 3.65rem;
  --esago-sidebar-panel-width: 12.25rem;
  --esago-sidebar-width: calc(var(--esago-sidebar-rail-width) + var(--esago-sidebar-panel-width));
  --esago-mobile-menu-gap: 1.125rem;
  --esago-search-focus: #2686ff;
  --esago-search-focus-ring: rgb(9 115 236 / 12%);
}

/* Campi search — X cancella minimal (stesso blu del focus) */
input[type="search"]::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  margin-left: 4px;
  cursor: pointer;
  opacity: 0.9;
  background: center / 12px 12px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232686ff' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E");
}

input[type="search"]::-webkit-search-cancel-button:hover {
  opacity: 1;
}

input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-results-button {
  -webkit-appearance: none;
  appearance: none;
}

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

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

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

body.esago-app a,
body.esago-app button,
body.esago-app [role="button"],
body.esago-app input:not([type="hidden"]),
body.esago-app select,
body.esago-app textarea,
body.esago-app summary,
body.esago-app label[for] {
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

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

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

.esago-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;
}

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

.esago-login-page--split {
  flex-direction: row;
  align-items: stretch;
  justify-content: stretch;
  min-height: 100vh;
  min-height: 100dvh;
}

.esago-login-visual {
  flex: 0 0 42%;
  max-width: 42%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  overflow: hidden;
  background: #0f1419;
}

.esago-login-visual-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  opacity: 0;
  transition: opacity 0.65s ease;
}

.esago-login-visual-image.is-loaded {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .esago-login-visual-image {
    transition: none;
  }
}

.esago-login-panel {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 100vh;
  min-height: 100dvh;
  background: #f8f9fa;
  box-sizing: border-box;
}

.esago-login-page--split .esago-login-main {
  flex: 1 1 auto;
  justify-content: center;
}

.esago-login-page--split .esago-login-footer {
  margin-top: auto;
}

@media (max-width: 899px) {
  .esago-login-page--split {
    flex-direction: column;
  }

  .esago-login-visual {
    display: none;
  }

  .esago-login-panel {
    flex: 1 1 auto;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
  }

  .esago-login-body .esago-login-card {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  }
}

@media (min-width: 900px) {
  .esago-login-page--split .esago-login-main {
    padding: 2rem 2.5rem;
  }

  .esago-login-visual {
    flex: 0 0 min(42%, 806px);
    max-width: min(42%, 806px);
  }
}

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

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

.esago-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;
}

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

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

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

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

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

.esago-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;
}

.esago-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;
}

.esago-login-body .esago-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 */
.esago-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 */
.esago-login-static-rings {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.esago-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;
}

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

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

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

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

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

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

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

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

/* Come le vecchie orbite: blu / viola / teal / ambra — senza animazione né nodi */
.esago-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;
}

.esago-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: esago-login-ring-soft 12s ease-in-out infinite;
}

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

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

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

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

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

.esago-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 esago-login-ring-soft {
  0%,
  100% {
    opacity: 0;
  }

  50% {
    opacity: 0.92;
  }
}

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

.esago-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%
  );
}

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

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

.esago-login-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background: #ffffff00;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.75rem 2rem 2rem;
}

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

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

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

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

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

.esago-app-not-found {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 4rem);
  min-height: calc(100dvh - 4rem);
  padding: 2rem 1.25rem 3rem;
}

.esago-app-not-found__card {
  width: 100%;
  max-width: 28rem;
  padding: 2.25rem 2rem;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.04);
}

.esago-app-not-found__code {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #f67965;
}

.esago-app-not-found__code--guest {
  margin-bottom: 0.5rem;
}

.esago-app-not-found__title {
  margin: 0 0 0.65rem;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.esago-app-not-found__lead {
  margin: 0 auto 1.35rem;
  max-width: 24rem;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--muted);
}

.esago-app-not-found__actions {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.esago-app-not-found__actions--guest {
  width: 100%;
}

.esago-app-not-found__actions--guest .esago-btn {
  width: 100%;
}

.esago-login-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

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

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

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

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

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

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

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

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

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

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

.esago-login-form input[type="text"],
.esago-login-form input[type="password"],
.esago-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;
}

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

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

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

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

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

.esago-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;
}

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

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

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

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

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

.esago-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) */
.esago-login-password-toggle .esago-login-password-icon[hidden] {
  display: none !important;
}

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

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

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

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

.esago-shell {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

.esago-htmx-loader {
  position: fixed;
  inset: 0;
  z-index: 420;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(248, 249, 250, 0.62);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s ease, visibility 0.18s ease;
}

.esago-htmx-loader.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

.esago-htmx-loader[hidden] {
  display: none !important;
}

.esago-htmx-loader.is-active[hidden] {
  display: flex !important;
}

.esago-htmx-loader__ring {
  position: relative;
  width: 64px;
  height: 64px;
}

.esago-htmx-loader__ring svg {
  display: block;
  width: 64px;
  height: 64px;
  animation: esago-loader-spin 0.9s linear infinite;
}

.esago-htmx-loader__arc {
  transform-origin: center;
}

.esago-htmx-loader__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 34px;
  transform: translate(-50%, -50%);
  object-fit: contain;
}

body.esago-htmx-loading {
  overflow: hidden;
}

@keyframes esago-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.esago-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--esago-sidebar-width);
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: row;
  align-items: stretch;
  z-index: 180;
  padding: 0;
  box-sizing: border-box;
  transition: width 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.esago-sidebar-mobile-head {
  display: none;
}

.esago-sidebar-mobile-body {
  display: contents;
}

.esago-sidebar-mobile-close {
  display: none;
}

.esago-sidebar-rail {
  width: var(--esago-sidebar-rail-width);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.45rem;
  padding: 0.85rem 0.5rem;
  border-right: 1px solid var(--border);
  background: #fafbfc;
  box-sizing: border-box;
}

.esago-rail-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.esago-rail-btn--logo.is-active,
.esago-rail-btn--logo:hover,
.esago-rail-btn--shop.is-active,
.esago-rail-btn--shop:hover {
  background: #f3efff;
  border-color: #e4d9fc;
}

.esago-rail-logo {
  width: 1.5rem;
  height: 1.5rem;
  display: block;
  object-fit: contain;
}

.esago-rail-shop-icon {
  width: 1.45rem;
  height: 1.45rem;
  display: block;
  object-fit: contain;
  border-radius: 5px;
}

.esago-rail-btn--add {
  background: #f4f2f8;
  border-color: transparent;
  color: #5d09ec;
}

.esago-rail-btn--add:hover {
  background: #ece8f6;
  color: #4b07c5;
}

.esago-rail-btn--add svg {
  width: 1.22rem;
  height: 1.22rem;
}

.esago-sidebar-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0.85rem 0.65rem 1rem;
  box-sizing: border-box;
  overflow: hidden;
}

.esago-sidebar-panel-view {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.esago-sidebar-panel-view[hidden] {
  display: none !important;
}

.esago-sidebar-panel-heading {
  margin: 0 0 0.55rem;
  padding: 0 0.75rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  flex-shrink: 0;
}

.esago-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 0.1rem;
}

.esago-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  padding: 0.52rem 0.65rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #425466;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
}

.esago-sidebar-link:hover {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
}

.esago-sidebar-link.active {
  background: transparent;
  color: var(--accent);
}

.esago-sidebar-link.active:hover {
  background: rgba(15, 23, 42, 0.04);
  color: var(--accent);
}

.esago-sidebar-link--btn {
  appearance: none;
}

.esago-sidebar-icon {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.esago-sidebar-icon svg {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
}

.esago-sidebar-label {
  min-width: 0;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.esago-sidebar-link:hover .esago-sidebar-label {
  transform: translateX(0.18rem);
}

.esago-sidebar-group {
  display: flex;
  flex-direction: column;
  gap: 0.08rem;
}

.esago-sidebar-group-row {
  display: flex;
  align-items: stretch;
  gap: 0.15rem;
}

.esago-sidebar-link--group {
  flex: 1;
  min-width: 0;
}

.esago-sidebar-group-toggle {
  flex: 0 0 2rem;
  width: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.2s ease;
}

.esago-sidebar-group-toggle:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text);
}

.esago-sidebar-group-toggle svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.esago-sidebar-group.is-open .esago-sidebar-group-toggle svg {
  transform: rotate(180deg);
}

.esago-sidebar-group.is-open .esago-sidebar-group-toggle {
  color: var(--accent);
}

.esago-sidebar-subnav {
  display: grid;
  grid-template-rows: 0fr;
  padding-left: 0.35rem;
  transition: grid-template-rows 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.esago-sidebar-group.is-open .esago-sidebar-subnav {
  grid-template-rows: 1fr;
}

.esago-sidebar-subnav-inner {
  overflow: hidden;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.06rem;
  padding: 0;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.26s ease,
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    padding 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.esago-sidebar-group.is-open .esago-sidebar-subnav-inner {
  padding: 0.1rem 0 0.2rem;
  opacity: 1;
  transform: translateY(0);
}

.esago-sidebar-sublink {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.55rem 0.42rem 0.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: #425466;
  font-size: 11.5px;
  font-weight: 400;
  line-height: 1.25;
  transition: background 0.15s ease, color 0.15s ease;
}

.esago-sidebar-sublink-count {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: #94a3b8;
  transition: color 0.15s ease;
}

.esago-sidebar-sublink.active .esago-sidebar-sublink-count {
  color: var(--accent);
}

.esago-sidebar-sublink:hover {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
}

.esago-sidebar-sublink.active {
  background: transparent;
}

.esago-sidebar-sublink.active .esago-sidebar-sublink-label {
  color: var(--accent);
}

.esago-sidebar-sublink.active:hover {
  background: rgba(15, 23, 42, 0.04);
}

.esago-sidebar-sublink-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.esago-sidebar-sublink:hover .esago-sidebar-sublink-label {
  transform: translateX(0.18rem);
}

.esago-channel-mark {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
  background: var(--ch-bg, #f1f5f9);
  color: var(--ch-fg, #475569);
}

.esago-channel-mark--title {
  width: 2rem;
  height: 2rem;
  font-size: 0.7rem;
  border-radius: 8px;
}

.esago-channel-mark--tile {
  width: 1.625rem;
  height: 1.625rem;
  font-size: 0.65rem;
  border-radius: 7px;
}

.esago-sidebar-channel {
  display: flex;
  flex-direction: column;
}

.esago-sidebar-sublink--channel.active .esago-sidebar-sublink-label {
  color: var(--ch-fg, var(--accent));
}

.esago-sidebar-tab-rail {
  --rail-x: 0.42rem;
  position: relative;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  margin-left: 0.5rem;
  padding-left: 0;
  transition:
    max-height 0.34s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.26s ease,
    margin 0.28s ease;
}

.esago-sidebar-tab-rail::before {
  content: "";
  position: absolute;
  left: var(--rail-x);
  top: var(--rail-line-top, 0.55rem);
  width: 1px;
  height: var(--rail-line-height, 0px);
  border-radius: 1px;
  pointer-events: none;
  transform: translateX(-50%);
  background: #d8e2ec;
}

.esago-sidebar-channel.is-expanded .esago-sidebar-tab-rail {
  max-height: 11rem;
  opacity: 1;
  margin-top: 0.05rem;
  margin-bottom: 0.15rem;
}

.esago-sidebar-tablink {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  padding: 0.26rem 0.4rem 0.26rem 0;
  border-radius: 6px;
  text-decoration: none;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 500;
  line-height: 1.25;
  position: relative;
  z-index: 1;
  transition: color 0.15s ease;
}

.esago-sidebar-tablink:hover {
  color: var(--text);
}

.esago-sidebar-tablink-dot {
  width: 7px;
  height: 7px;
  margin-left: calc(var(--rail-x, 0.42rem) - 3.5px);
  border-radius: 50%;
  background: var(--surface);
  border: 1.5px solid #c5d0dc;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.esago-sidebar-tablink.is-current {
  color: var(--ch-fg, var(--accent));
}

.esago-sidebar-tablink.is-current .esago-sidebar-tablink-dot {
  background: var(--ch-fg, var(--accent));
  border-color: var(--ch-fg, var(--accent));
}

.esago-sidebar-tablink-label {
  min-width: 0;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.esago-sidebar-tablink:hover .esago-sidebar-tablink-label {
  transform: translateX(0.18rem);
}

.esago-sidebar-footer {
  border-top: 1px solid var(--border);
  padding-top: 0.65rem;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  flex-shrink: 0;
}

.esago-sidebar-logout-form {
  margin: 0;
  width: 100%;
}

.esago-sidebar-user {
  padding: 0.45rem 0.65rem 0.15rem;
  font-size: 0.75rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.esago-notifications {
  position: relative;
}

.esago-notifications__trigger {
  width: 100%;
  position: relative;
}

.esago-notifications__trigger--mobile {
  display: none;
}

.esago-notifications__trigger--desktop {
  display: flex;
}

.esago-notifications__badge {
  position: absolute;
  top: 8px;
  right: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #5e08ec;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}

.esago-notifications__panel {
  position: fixed;
  left: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: 300px;
  height: 420px;
  max-width: calc(100vw - var(--esago-sidebar-width) - 24px);
  max-height: calc(100vh - 14px);
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: none;
  z-index: 500;
  transform: translateY(calc(100% + 14px));
  opacity: 0;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.24s ease;
  will-change: transform, opacity;
}

.esago-notifications__panel.is-open {
  transform: translateY(0);
  opacity: 1;
}

.esago-notifications__panel.is-closing {
  transform: translateY(calc(100% + 14px));
  opacity: 0;
}

.esago-notifications__panel-head,
.esago-notifications__tabs,
.esago-notifications__foot {
  flex-shrink: 0;
}

.esago-notifications__panel[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .esago-notifications__panel,
  .esago-notifications__panel.is-open,
  .esago-notifications__panel.is-closing {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

.esago-notifications__panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 14px 12px;
}

.esago-notifications__panel-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: #111827;
  letter-spacing: -0.01em;
}

.esago-notifications__refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  flex-shrink: 0;
}

.esago-notifications__refresh:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.esago-notifications__refresh svg {
  width: 16px;
  height: 16px;
}

.esago-notifications__refresh.is-loading svg {
  animation: esago-notifications-spin 0.8s linear infinite;
}

@keyframes esago-notifications-spin {
  to {
    transform: rotate(360deg);
  }
}

.esago-notifications__tabs {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0 14px 10px;
  padding: 3px;
  overflow: hidden;
  background: #f3f4f6;
  border-radius: 999px;
}

.esago-notifications__tab-indicator {
  position: absolute;
  top: 3px;
  left: 0;
  height: calc(100% - 6px);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  transition:
    transform 0.24s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.24s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
  z-index: 0;
}

.esago-notifications__tab-indicator.is-instant {
  transition: none !important;
}

.esago-notifications__tab-indicator[hidden] {
  display: none !important;
}

.esago-notifications__tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 0;
  flex: 1 1 0;
  padding: 6px 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6b7280;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.esago-notifications__tab:hover {
  color: #374151;
}

.esago-notifications__tab.is-active {
  color: #111827;
  font-weight: 600;
  background: transparent;
  box-shadow: none;
}

.esago-notifications__tab-count {
  color: #9ca3af;
  font-weight: 500;
}

.esago-notifications__tab.is-active .esago-notifications__tab-count {
  color: #6b7280;
}

.esago-notifications__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 0 14px;
}

.esago-notifications__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.esago-notifications__mark-all {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  color: #111827;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.esago-notifications__delete-all {
  border: 0;
  background: transparent;
  padding: 0;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  color: #111827;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s ease, color 0.15s ease;
}

.esago-notifications__mark-all:hover:not(:disabled),
.esago-notifications__delete-all:hover:not(:disabled) {
  opacity: 0.72;
}

.esago-notifications__mark-all:disabled {
  opacity: 0.45;
  cursor: wait;
}

.esago-notifications__delete-all:disabled {
  opacity: 1;
  color: #9ca3af;
  cursor: not-allowed;
}

.esago-notifications-center-mark-all {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.72rem;
  text-decoration: none;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.esago-notifications-center-mark-all:hover:not(:disabled) {
  filter: brightness(0.96);
}

.esago-notifications-center-mark-all:disabled {
  opacity: 0.65;
  cursor: wait;
}

.esago-notifications__list {
  list-style: none;
  margin: 0;
  padding: 0 0 8px;
  display: grid;
  gap: 8px;
  align-content: start;
  min-height: 100%;
}

.esago-notifications__item {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  position: relative;
}

.esago-notifications__item.is-unread {
  border-color: #dbeafe;
  background: #fcfdff;
}

.esago-notifications__item[hidden] {
  display: none;
}

.esago-notifications__card-wrap {
  position: relative;
}

.esago-notifications__dismiss {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}

.esago-notifications__dismiss svg {
  width: 12px;
  height: 12px;
}

.esago-notifications__dismiss:hover {
  background: #e5e7eb;
  color: #111827;
}

.esago-notifications__card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 34px 12px 12px;
  color: inherit;
  text-decoration: none;
}

.esago-notifications__card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  flex-shrink: 0;
}

.esago-notifications__card-icon svg {
  width: 15px;
  height: 15px;
}

.esago-notifications__card-icon--orders {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.esago-notifications__card-icon--reviews {
  background: rgba(34, 197, 94, 0.14);
  color: #16a34a;
}

.esago-notifications__card-icon--messages {
  background: #e8f0fc;
  color: #2b8cff;
}

.esago-notifications__card-icon--reminders {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.esago-notifications__card-icon--other {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.esago-notifications__card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.esago-notifications__card-title {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  color: #111827;
}

.esago-notifications__card-when {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  color: #9ca3af;
}

.esago-notifications__empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  padding: 28px 12px;
  font-size: 11px;
  text-align: center;
  color: #9ca3af;
  box-sizing: border-box;
}

.esago-notifications__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px 12px;
  border-top: 1px solid #e5e7eb;
}

.esago-notifications__center-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 9px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #fff;
  color: #111827;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.esago-notifications__center-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.esago-notifications-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.esago-notifications-center {
  margin-top: 20px;
}

.esago-notifications-center-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.esago-notifications-topic {
  display: flex;
  flex-direction: column;
  min-height: 220px;
  padding: 0;
  overflow: hidden;
}

.esago-notifications-topic.is-coming-soon {
  border-style: dashed;
}

.esago-notifications-topic__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--border);
}

.esago-notifications-topic__lead {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.esago-notifications-topic__actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.esago-notifications-topic__view {
  text-decoration: none;
  white-space: nowrap;
}

.esago-notifications-topic__view:hover {
  filter: brightness(0.96);
}

.esago-notifications-topic__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
}

.esago-notifications-topic__icon svg {
  width: 20px;
  height: 20px;
}

.esago-notifications-topic__icon--orders {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.esago-notifications-topic__icon--reviews {
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
}

.esago-notifications-topic__icon--reminders {
  background: rgba(16, 185, 129, 0.12);
  color: #059669;
}

.esago-notifications-topic__icon--other {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.esago-notifications-topic__copy {
  flex: 1;
  min-width: 0;
}

.esago-notifications-topic__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.esago-notifications-topic__title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.25;
}

.esago-notifications-topic__desc {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.esago-notifications-topic__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #5e08ec;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  flex-shrink: 0;
}

.esago-notifications-topic__list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}

.esago-notifications-topic__item {
  border-bottom: 1px solid var(--border);
  position: relative;
}

.esago-notifications-topic__item:last-child {
  border-bottom: 0;
}

.esago-notifications-topic__item.is-unread {
  background: #faf9ff;
}

.esago-notifications-topic__item.is-unread::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #5e08ec;
}

.esago-notifications-topic__item.is-unread .esago-notifications-topic__link strong {
  font-weight: 700;
  color: #14213d;
}

.esago-notifications-topic__row {
  position: relative;
}

.esago-notifications-topic__item .esago-notifications__dismiss {
  top: 10px;
  right: 10px;
}

.esago-notifications-topic__link {
  display: block;
  padding: 12px 40px 12px 16px;
  color: inherit;
  text-decoration: none;
}

.esago-notifications-topic__link strong {
  display: block;
  font-size: 11px;
  line-height: 1.35;
}

.esago-notifications-topic__link span,
.esago-notifications-topic__link time {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.esago-notifications-topic__empty,
.esago-notifications-topic__soon {
  margin: 0;
  padding: 20px 16px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
}

@media (max-width: 900px) {
  .esago-notifications-page-head {
    gap: 0.5rem;
    margin-bottom: 0.25rem;
  }

  .esago-notifications-center {
    margin-top: 0.5rem;
  }

  .esago-notifications-center-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .esago-notifications-center .esago-notifications-topic.esago-card {
    margin-top: 0;
    margin-bottom: 0;
    min-height: 0;
  }

  .esago-notifications-topic__head {
    padding: 0.75rem 0.85rem 0.55rem;
    gap: 0.5rem;
  }

  .esago-notifications-topic__lead {
    gap: 0.65rem;
  }

  .esago-notifications-topic__icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
  }

  .esago-notifications-topic__icon svg {
    width: 18px;
    height: 18px;
  }

  .esago-notifications-topic__title {
    font-size: 0.95rem;
  }

  .esago-notifications-topic__desc {
    margin-top: 0.15rem;
    font-size: 0.75rem;
  }

  .esago-notifications-topic__link {
    padding: 0.65rem 2.25rem 0.65rem 0.85rem;
  }

  .esago-notifications-topic__empty,
  .esago-notifications-topic__soon {
    padding: 0.75rem 0.85rem;
    font-size: 0.82rem;
  }
}

.esago-page-eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--muted);
}

.esago-page-eyebrow a {
  color: inherit;
  text-decoration: underline;
}

.esago-feedback-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 700;
}

.esago-feedback-status--pending {
  background: #fff7ed;
  color: #c2410c;
}

.esago-feedback-status--approved {
  background: #ecfdf5;
  color: #047857;
}

.esago-feedback-status--rejected {
  background: #fef2f2;
  color: #b91c1c;
}

.esago-feedback-sku {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.esago-feedback-status-select {
  min-width: 0;
}

.esago-customers-page-head:has(+ .esago-feedback-index),
.esago-customers-page-head:has(+ .esago-feedback-detail) {
  margin-bottom: 0.5rem;
}

.esago-feedback-index {
  display: grid;
  gap: 0.5rem;
}

.esago-feedback-toolbar {
  margin: 0;
  padding: 0.65rem 0.85rem;
}

.esago-feedback-field-status {
  flex: 0 0 auto;
  min-width: 9.5rem;
}

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

.esago-feedback-field-search .esago-input {
  width: 100%;
  max-width: 16rem;
}

.esago-feedback-results {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.esago-feedback-table-wrap {
  margin-top: 0;
}

.esago-table-feedback th,
.esago-table-feedback td {
  vertical-align: middle;
}

.esago-feedback-thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--border);
  display: block;
}

.esago-feedback-thumb--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  background: #f8fafc;
  font-size: 0.8rem;
}

.esago-feedback-product {
  display: block;
  font-size: 0.92rem;
  line-height: 1.3;
}

.esago-feedback-client {
  display: block;
  font-size: 0.88rem;
  font-weight: 700;
}

.esago-feedback-stars {
  color: #f59e0b;
  letter-spacing: 1px;
  white-space: nowrap;
}

.esago-feedback-comment {
  max-width: 280px;
  font-size: 0.84rem;
  line-height: 1.4;
  color: #475569;
}

.esago-feedback-date {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.esago-feedback-pagination {
  margin-top: 0.25rem;
}

.esago-feedback-detail {
  display: grid;
  gap: 0.875rem;
  padding: 1.125rem;
  margin: 0;
}

.esago-feedback-detail__hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.esago-feedback-detail__product {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.esago-feedback-detail__product-img,
.esago-feedback-detail__product-fallback {
  width: 84px;
  height: 84px;
  border-radius: 12px;
  flex-shrink: 0;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.esago-feedback-detail__product-img {
  object-fit: contain;
  background: #fff;
}

.esago-feedback-detail__product-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.esago-feedback-detail__product-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.25;
}

.esago-feedback-detail__rating {
  display: flex;
  align-items: center;
  gap: 4px;
}

.esago-feedback-detail__star {
  color: #d1d5db;
  font-size: 20px;
  line-height: 1;
}

.esago-feedback-detail__star.is-on {
  color: #f59e0b;
}

.esago-feedback-detail__rating-label {
  margin-left: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.esago-feedback-detail__section h3 {
  margin: 0 0 0.375rem;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.esago-feedback-detail__comment {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #1e293b;
}

.esago-feedback-detail__facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
}

.esago-feedback-detail__fact {
  padding: 0.625rem 0.75rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.esago-feedback-detail__fact span {
  display: block;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 4px;
}

.esago-feedback-detail__fact strong {
  font-size: 14px;
  color: #0f172a;
  word-break: break-word;
}

.esago-feedback-detail__photo {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.esago-feedback-detail__photo-grid {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.esago-feedback-detail__photo-grid img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  display: block;
}

.esago-feedback-detail__rejection {
  padding: 0.75rem 0.875rem;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.esago-feedback-detail__rejection p {
  margin: 0;
  color: #991b1b;
  line-height: 1.5;
}

.esago-feedback-detail__moderation {
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}

.esago-feedback-detail__moderation h3 {
  margin: 0 0 0.5rem;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.esago-feedback-detail__actions {
  display: grid;
  gap: 0.75rem;
}

.esago-feedback-detail__approve-form {
  margin: 0;
}

.esago-table .is-unread td {
  font-weight: 700;
}

/* Support inbox — 3-column messaging UI */
.esago-app-frame:has(#esago-main .esago-support-inbox),
.esago-app-frame:has(#esago-main .esago-feedback-inbox) {
  min-height: 0;
  max-height: 100dvh;
  overflow: hidden;
}

.esago-main:has(.esago-support-inbox),
.esago-main:has(.esago-feedback-inbox) {
  display: flex;
  flex-direction: column;
  max-width: none;
  min-height: 0;
  overflow: hidden;
  padding: 0.75rem 1rem 1rem;
}

.esago-support-inbox {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr) minmax(250px, 290px);
  flex: 1;
  min-height: 0;
  max-height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.esago-support-inbox__sidebar,
.esago-support-inbox__chat,
.esago-support-inbox__details {
  min-height: 0;
}

.esago-support-inbox__sidebar {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-right: 1px solid var(--border);
  background: #f8fafc;
}

.esago-support-inbox__sidebar-head {
  padding: 1rem 0.9rem 0.75rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.esago-support-inbox__heading {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
}

.esago-support-inbox__count {
  margin: 0.2rem 0 0.75rem;
  font-size: 12px;
  color: var(--muted);
}

.esago-support-inbox__search-form {
  display: grid;
  gap: 0.45rem;
}

.esago-support-views {
  margin: 0.65rem 0 0.35rem;
  padding: 0 0.35rem;
  flex-shrink: 0;
}

.esago-support-views__heading {
  margin: 0 0 0.35rem 0.5rem;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: uppercase;
}

.esago-support-views__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.esago-support-views__link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.55rem;
  border-radius: 8px;
  text-decoration: none;
  color: #425466;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.25;
  transition: background 0.15s ease, color 0.15s ease;
}

.esago-support-views__link:hover {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
}

.esago-support-views__link.is-active {
  background: transparent;
}

.esago-support-views__link.is-active:hover {
  background: rgba(15, 23, 42, 0.04);
}

.esago-support-views__link.is-active .esago-support-views__label {
  color: var(--sv-fg, var(--accent));
  font-weight: 600;
}

.esago-support-views__icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: var(--sv-bg, #f1f5f9);
  color: var(--sv-fg, #475569);
}

.esago-support-views__icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.esago-support-views__label {
  flex: 1;
  min-width: 0;
  font-size: 0.8125rem;
  line-height: 1.25;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.esago-support-views__link:hover .esago-support-views__label {
  transform: translateX(0.18rem);
}

.esago-support-views__count {
  min-width: 1.5rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
}

.esago-support-views__count.is-highlight {
  background: var(--sv-fg, var(--accent));
  color: #fff;
}

.esago-support-views__link.is-active .esago-support-views__count:not(.is-highlight) {
  background: var(--sv-bg, #f1f5f9);
  color: var(--sv-fg, #475569);
}

.esago-support-inbox__search .esago-input,
.esago-support-inbox__filter .esago-input {
  width: 100%;
  min-height: 36px;
  font-size: 13px;
}

.esago-support-inbox__ticket-list {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  overflow: auto;
  flex: 1;
}

.esago-support-inbox__ticket {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.8rem 0.9rem;
  text-decoration: none;
  color: inherit;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.esago-support-inbox__ticket:hover {
  background: rgba(93, 9, 236, 0.04);
}

.esago-support-inbox__ticket.is-active {
  background: #fff;
  border-left-color: var(--accent);
  box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.04);
}

.esago-support-inbox__ticket.is-unread .esago-support-inbox__ticket-name {
  font-weight: 800;
}

.esago-support-inbox__avatar {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.esago-support-inbox__avatar--sm {
  width: 30px;
  height: 30px;
  font-size: 13px;
}

.esago-support-inbox__ticket-body {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 0.15rem;
}

.esago-support-inbox__ticket-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.esago-support-inbox__ticket-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.esago-support-inbox__ticket-time {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}

.esago-support-inbox__ticket-subject {
  font-size: 12px;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.esago-support-inbox__ticket-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  font-size: 13px;
  color: var(--muted);
}

.esago-support-inbox__badge {
  position: absolute;
  top: 0.95rem;
  right: 0.75rem;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.esago-support-inbox__empty,
.esago-support-inbox__details-empty {
  padding: 1rem 0.9rem;
  font-size: 13px;
  color: var(--muted);
}

.esago-support-inbox__chat {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #fff;
}

.esago-support-inbox__chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: 0.95rem 1.1rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.esago-support-inbox__chat-head-main {
  min-width: 0;
  flex: 1;
}

.esago-support-inbox__back {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.125rem;
  height: 2.125rem;
  flex-shrink: 0;
  align-self: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  padding: 0;
  line-height: 0;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.esago-support-inbox__back svg {
  display: block;
  width: 1rem;
  height: 1rem;
}

.esago-support-inbox__back:hover {
  border-color: rgba(15, 23, 42, 0.2);
  color: var(--accent);
}

.esago-support-inbox__chat-id {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.esago-support-inbox__chat-title {
  margin: 0.15rem 0 0;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.esago-support-inbox__status {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--status-bg, #f1f5f9);
  color: var(--status-fg, #64748b);
}

.esago-support-inbox__status--open {
  background: var(--status-bg, #e8f0fc);
  color: var(--status-fg, #2b8cff);
}

.esago-support-inbox__status--awaiting,
.esago-support-inbox__status--awaiting_customer {
  background: var(--status-bg, #fff4e6);
  color: var(--status-fg, #f07020);
}

.esago-support-inbox__status--resolved,
.esago-support-inbox__status--closed {
  background: var(--status-bg, #e8f8ef);
  color: var(--status-fg, #2da56a);
}

.esago-support-inbox__status--archived {
  background: var(--status-bg, #f1f5f9);
  color: var(--status-fg, #64748b);
}

.esago-support-inbox__messages {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  background: linear-gradient(180deg, #fbfcfe 0%, #fff 100%);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.esago-support-chat {
  display: flex;
  align-items: flex-end;
  gap: 0.55rem;
  max-width: 78%;
}

.esago-support-chat.is-customer {
  align-self: flex-start;
}

.esago-support-chat.is-staff {
  align-self: flex-end;
  flex-direction: row-reverse;
  margin-left: auto;
}

.esago-support-chat__avatar {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.esago-support-chat__bubble {
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #f8fafc;
}

.esago-support-chat.is-staff .esago-support-chat__bubble {
  background: #e7f8f3;
  border-color: rgba(8, 124, 114, 0.2);
}

.esago-support-chat.is-staff .esago-support-chat__head strong {
  color: #065f46;
}

.esago-support-chat__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
  font-size: 13px;
  color: var(--muted);
}

.esago-support-chat__head strong {
  font-size: 12px;
  color: var(--text);
}

.esago-support-chat__body {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text);
}

.esago-support-inbox__composer {
  flex-shrink: 0;
  padding: 0.85rem 1rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.esago-support-inbox__composer--closed p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.esago-support-inbox__close-form {
  margin-top: 0.85rem;
}

.esago-support-inbox__close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  min-height: 40px;
  padding: 0.6rem 0.85rem;
  border: 0;
  border-radius: 10px;
  background: #e8f8ef;
  color: #2da56a;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

.esago-support-inbox__close-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.esago-support-inbox__close-btn:hover {
  background: #2da56a;
  color: #fff;
}

.esago-support-inbox__close-btn:hover svg {
  stroke: #fff;
}

.esago-support-inbox__reply-form {
  display: grid;
  gap: 0.55rem;
}

.esago-support-inbox__reply-label {
  display: block;
}

.esago-support-inbox__reply-label textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
}

.esago-support-inbox__reply-label textarea:focus {
  outline: 2px solid rgba(87, 214, 197, 0.45);
  border-color: #57d6c5;
}

.esago-support-inbox__send {
  min-width: 140px;
  background: #087c72;
  border-color: #087c72;
}

.esago-support-inbox__send:hover {
  background: #06695f;
  border-color: #06695f;
}

.esago-support-inbox__reply-actions {
  display: flex;
  justify-content: flex-end;
}

.esago-support-inbox__placeholder {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

.esago-support-inbox__placeholder-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

.esago-support-inbox__placeholder-text {
  margin: 0;
  max-width: 28rem;
  font-size: 13px;
  line-height: 1.5;
}

.esago-support-inbox__details {
  min-width: 0;
  border-left: 1px solid var(--border);
  background: #fff;
  padding: 1rem 0.85rem 1.1rem;
  overflow: auto;
}

.esago-support-inbox__details-title {
  margin: 0 0 0.75rem;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.esago-support-detail-status {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.65rem;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  background: var(--card-bg, #f1f5f9);
  border: 1px solid color-mix(in srgb, var(--card-fg, #475569) 12%, transparent);
}

.esago-support-detail-status__icon {
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  color: var(--card-fg, #475569);
}

.esago-support-detail-status__icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.esago-support-detail-status__label {
  margin: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--card-fg, #475569) 72%, #64748b);
}

.esago-support-detail-status__value {
  margin: 0.12rem 0 0;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--card-fg, #334155);
  line-height: 1.2;
}

.esago-support-detail-card {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
  padding: 0.72rem 0.78rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fbfcfe;
}

.esago-support-detail-card--customer {
  --card-accent-bg: #f0ebfc;
  --card-accent-fg: #6b3df0;
}

.esago-support-detail-card__icon {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--card-accent-bg, #f1f5f9);
  color: var(--card-accent-fg, #475569);
}

.esago-support-detail-card__icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

.esago-support-detail-card__label {
  margin: 0 0 0.35rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.esago-support-detail-customer {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.esago-support-detail-customer__avatar {
  background: var(--card-accent-bg, #f0ebfc);
  color: var(--card-accent-fg, #6b3df0);
}

.esago-support-detail-customer__info strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}

.esago-support-inbox__customer-email {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.esago-support-detail-grid {
  display: grid;
  gap: 0.45rem;
  margin: 0.65rem 0;
}

.esago-support-detail-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.62rem 0.68rem;
  border-radius: 10px;
  background: var(--item-bg, #f8fafc);
  border: 1px solid color-mix(in srgb, var(--item-fg, #475569) 10%, transparent);
}

.esago-support-detail-item__icon {
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: #fff;
  color: var(--item-fg, #475569);
}

.esago-support-detail-item__icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.esago-support-detail-item__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--item-fg, #64748b) 70%, #94a3b8);
}

.esago-support-detail-item__value {
  display: block;
  margin-top: 0.1rem;
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}

.esago-support-detail-subject {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.55rem 0 0.65rem;
  padding: 0.78rem 0.82rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #f5f3ff 0%, #fff 100%);
  border: 1px solid #e9e0ff;
}

.esago-support-detail-subject__icon {
  width: 1.75rem;
  height: 1.75rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  color: #7c3aed;
}

.esago-support-detail-subject__icon svg {
  width: 15px;
  height: 15px;
  display: block;
}

.esago-support-detail-subject__label {
  margin: 0 0 0.3rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7c3aed;
}

.esago-support-detail-subject__text {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text);
}

.esago-support-detail-note {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding: 0.72rem 0.78rem;
  border-radius: 10px;
  font-size: 12px;
  line-height: 1.45;
}

.esago-support-detail-note__icon {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
}

.esago-support-detail-note__icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.esago-support-detail-note p {
  margin: 0;
}

.esago-support-detail-note--archived {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.esago-support-detail-note--archived .esago-support-detail-note__icon {
  background: #fff;
  color: #64748b;
}

.esago-support-detail-note--resolved {
  background: #e8f8ef;
  color: #2da56a;
  border: 1px solid #bbf7d0;
}

.esago-support-detail-note--resolved .esago-support-detail-note__icon {
  background: #fff;
  color: #2da56a;
}

/* Feedback inbox — extends support inbox layout */
.esago-feedback-inbox__thumb-wrap {
  position: relative;
  flex-shrink: 0;
}

.esago-feedback-inbox__thumb-wrap .esago-feedback-inbox__badge {
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  border: 2px solid #f8fafc;
  box-sizing: content-box;
}

.esago-feedback-inbox .esago-support-inbox__ticket.is-active .esago-feedback-inbox__badge {
  border-color: #fff;
}

.esago-feedback-inbox__thumb {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
  background: #fff;
  border: 1px solid var(--border);
}

.esago-feedback-inbox__thumb-fallback {
  font-size: 13px;
}

.esago-feedback-inbox__stars {
  color: #f59e0b;
  letter-spacing: -0.04em;
}

.esago-feedback-inbox__rating-head {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0.35rem 0 0;
}

.esago-feedback-inbox__star {
  color: #d1d5db;
  font-size: 14px;
  line-height: 1;
}

.esago-feedback-inbox__star.is-on {
  color: #f59e0b;
}

.esago-feedback-inbox__rating-label {
  margin-left: 0.35rem;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.esago-feedback-inbox__photos {
  max-width: 78%;
  margin-left: auto;
  padding: 0.25rem 0 0;
}

.esago-feedback-inbox__photos-label {
  margin: 0 0 0.45rem;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.esago-feedback-inbox__photos-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.esago-feedback-inbox__photo {
  display: block;
  width: 72px;
  height: 72px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
}

.esago-feedback-inbox__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.esago-feedback-inbox__moderation {
  display: grid;
  gap: 0.65rem;
}

.esago-feedback-inbox__moderation-actions {
  display: flex;
  justify-content: flex-end;
}

.esago-feedback-inbox__reject-label span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
}

.esago-feedback-inbox__product-preview {
  margin: 0 0 0.65rem;
  padding: 0.55rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fbfcfe;
  text-align: center;
}

.esago-feedback-inbox__product-preview img {
  max-width: 100%;
  max-height: 120px;
  object-fit: contain;
  display: inline-block;
}

@media (max-width: 1100px) {
  .esago-support-inbox {
    grid-template-columns: minmax(250px, 280px) minmax(0, 1fr);
  }
}

@media (max-width: 1100px) and (min-width: 901px) {
  .esago-support-inbox__details {
    display: none;
  }
}

@media (max-width: 900px) {
  .esago-main:has(.esago-support-inbox),
  .esago-main:has(.esago-feedback-inbox) {
    padding: calc(var(--esago-topbar-height, 3rem) + 0.65rem) 0.65rem 1rem;
  }

  .esago-support-inbox {
    grid-template-columns: 1fr;
    flex: 1;
    min-height: 0;
    max-height: none;
    overflow: hidden;
  }

  .esago-support-inbox__sidebar {
    max-height: none;
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .esago-support-inbox__sidebar.is-collapsed-mobile {
    display: none;
  }

  .esago-support-inbox__sidebar:not(.is-collapsed-mobile) {
    flex: 1;
    min-height: min(75dvh, calc(100dvh - var(--esago-topbar-height, 3rem) - 1.5rem));
  }

  .esago-support-inbox__ticket-list {
    flex: 1;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .esago-support-inbox__chat.is-empty {
    display: none;
  }

  .esago-support-inbox__chat:not(.is-empty) {
    display: flex;
    min-height: min(75dvh, calc(100dvh - var(--esago-topbar-height, 3rem) - 1.5rem));
  }

  .esago-support-inbox.is-detail-open {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  .esago-support-inbox.is-detail-open .esago-support-inbox__chat:not(.is-empty) {
    flex: 1 1 0;
    min-height: 0;
    overflow: hidden;
    border-bottom: none;
  }

  .esago-support-inbox__back {
    display: inline-flex;
  }

  .esago-support-inbox__messages {
    min-height: 0;
  }

  .esago-support-inbox.is-detail-open .esago-support-inbox__details {
    display: block;
    flex: 0 0 auto;
    max-height: min(38dvh, 320px);
    border-left: none;
    border-top: 1px solid var(--border);
    overflow: auto;
    background: #fbfcfe;
    padding: 1rem 0.85rem 1.25rem;
    -webkit-overflow-scrolling: touch;
  }

  .esago-support-inbox:not(.is-detail-open) .esago-support-inbox__details {
    display: none;
  }
}

.esago-support-thread {
  display: grid;
  gap: 0.75rem;
}

.esago-support-message {
  padding: 0.875rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
}

.esago-support-message.is-staff {
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.esago-support-message__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  font-size: 12px;
  color: var(--muted);
}

.esago-support-message__head strong {
  color: var(--text);
  font-size: 13px;
}

.esago-support-message__body {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
}

.esago-support-reply-form {
  display: grid;
  gap: 0.75rem;
}

.esago-feedback-detail__reject-form {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem 0.875rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.esago-feedback-detail__reject-label {
  display: grid;
  gap: 6px;
  margin: 0;
}

.esago-feedback-detail__reject-label span {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.esago-feedback-detail__reject-label textarea {
  width: 100%;
  min-height: 88px;
  resize: vertical;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
}

.esago-app-frame {
  flex: 1;
  min-width: 0;
  margin-left: var(--esago-sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: margin-left 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.esago-storefront-tabs {
  display: none !important;
}

.esago-topbar--mobile {
  display: none;
}

.esago-topbar {
  --esago-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;
}

.esago-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;
}

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

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

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

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

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

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

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

.esago-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;
}

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

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

.esago-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;
}

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

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

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

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

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

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

.esago-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;
}

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

.esago-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);
}

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

.esago-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;
}

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

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

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

.esago-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;
}

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

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

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

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

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

.esago-main {
  flex: 1;
  padding: 1.5rem 1.5rem 2rem;
  max-width: 1400px;
  margin: 0 auto;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
}

.esago-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(15, 23, 42, 0.11) 1px, transparent 1px);
  background-size: 18px 18px;
  background-position: 0 0;
  opacity: 0.55;
}

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

.esago-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);
}

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

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

.esago-filters input,
.esago-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;
}

.esago-filters input:focus,
.esago-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 .esago-btn* */
.esago-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;
}

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

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

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

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

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

.esago-market-segment .esago-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;
}

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

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

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

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

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

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

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

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

.esago-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 */
.esago-btn-conforama-sync {
  background: transparent;
  color: #ff6600;
  border: 1px solid #ff6600;
  font-weight: 500;
}

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

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

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

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

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

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

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

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

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

/* Import offerte Conforama (OF02): intestazioni più evidenti + icona download report */
.esago-mirakl-import-runs .esago-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);
}

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

.esago-mirakl-import-runs .esago-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;
}

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

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

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

.esago-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);
}

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

.esago-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);
}

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

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

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

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

.esago-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);
}

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

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

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

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

.esago-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;
}

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

.esago-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);
}

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

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

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

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

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

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

/* Toast messages (bottom-left over sidebar, auto-hide) */
.esago-toast-stack {
  position: fixed;
  left: 0.85rem;
  bottom: 0.85rem;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: calc(var(--esago-sidebar-width) - 1.7rem);
  max-width: calc(var(--esago-sidebar-width) - 1.7rem);
  pointer-events: none;
}

.esago-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  width: 100%;
  padding: 0.95rem 0.95rem 0.95rem 1rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #f9fafb;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.34), 0 4px 14px rgba(15, 23, 42, 0.18);
  animation: esago-toast-in 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes esago-toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.esago-toast__icon {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.1rem;
}

.esago-toast__body {
  flex: 1;
  min-width: 0;
  padding-left: 0;
  border-left: 0;
  color: #f3f4f6;
  font-weight: 500;
}

.esago-toast__close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  margin-left: 0.1rem;
  margin-top: -0.1rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}

.esago-toast__close:hover {
  color: #f9fafb;
  background: rgba(255, 255, 255, 0.08);
}

.esago-toast__close svg {
  width: 0.95rem;
  height: 0.95rem;
}

.esago-toast.success {
  background: #111827;
  border-color: rgba(74, 222, 128, 0.22);
}

.esago-toast.success .esago-toast__icon {
  color: #4ade80;
}

.esago-toast.success .esago-toast__body {
  color: #f3f4f6;
}

.esago-toast.error {
  background: #111827;
  border-color: rgba(248, 113, 113, 0.28);
}

.esago-toast.error .esago-toast__icon {
  color: #f87171;
}

.esago-toast.error .esago-toast__body {
  color: #fef2f2;
}

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

@media (max-width: 900px) {
  .esago-toast-stack {
    left: 0.85rem;
    width: min(18rem, calc(100vw - 1.7rem));
    max-width: min(18rem, calc(100vw - 1.7rem));
  }
}

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

.esago-dash-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 1rem 1.15rem;
  margin: 0 0 1.35rem;
}

.esago-dash-welcome {
  display: flex;
  justify-content: flex-start;
  margin: 0;
  animation: esago-dash-welcome-in 0.55s ease both;
}

.esago-dash-welcome__card {
  width: 100%;
  max-width: 320px;
  padding: 1.65rem 1.2rem 1.4rem;
  border-radius: 12px;
  border: 2px solid #fcd0b6;
  background: #fbfbfc;
}

.esago-dash-welcome__hero {
  margin: 0 0 1.15rem;
}

.esago-dash-welcome__hero-clip {
  position: relative;
  height: 178px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  padding-top: 0.35rem;
}

.esago-dash-welcome__hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  transform: translateX(1.75rem);
}

.esago-dash-welcome__particle {
  position: absolute;
  left: 50%;
  top: 52%;
  width: var(--particle-size, 5px);
  height: var(--particle-size, 5px);
  margin: calc(var(--particle-size, 5px) / -2) 0 0 calc(var(--particle-size, 5px) / -2);
  border-radius: 999px;
  background: var(--particle-color);
  box-shadow: 0 0 12px var(--particle-color);
  opacity: 0;
  will-change: transform, opacity;
  animation: none;
}

.esago-dash-welcome__hero-bg.is-particles-active .esago-dash-welcome__particle {
  animation: esago-dash-particle-out var(--particle-duration, 2.6s) ease-out infinite;
  animation-delay: var(--particle-delay, 0s);
}

.esago-dash-welcome__particle--lg {
  box-shadow:
    0 0 14px var(--particle-color),
    0 0 24px color-mix(in srgb, var(--particle-color) 45%, transparent);
}

.esago-dash-welcome__hero-img {
  position: relative;
  z-index: 3;
  display: block;
  height: 172px;
  width: auto;
  max-width: none;
  margin-left: 3.55rem;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 10px 20px rgba(15, 23, 42, 0.08));
  opacity: 0;
  transition: opacity 0.55s ease;
}

.esago-dash-welcome__hero-img.is-loaded {
  opacity: 1;
}

.esago-dash-welcome__speech {
  position: absolute;
  left: 0.35rem;
  top: 50%;
  z-index: 2;
  width: 38%;
  max-width: 8.2rem;
  transform: translateY(-50%);
  pointer-events: none;
}

.esago-dash-welcome__speech::before,
.esago-dash-welcome__speech::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  z-index: 6;
  pointer-events: none;
}

.esago-dash-welcome__speech::before {
  top: 0;
  height: 1.35em;
  background: linear-gradient(to bottom, #fbfbfc 18%, rgba(251, 251, 252, 0));
}

.esago-dash-welcome__speech::after {
  bottom: 0;
  height: 0.72em;
  background: linear-gradient(to top, #fbfbfc 10%, rgba(251, 251, 252, 0) 88%);
}

.esago-dash-welcome__speech.is-scrollable {
  z-index: 4;
  pointer-events: auto;
}

.esago-dash-welcome__speech-viewport {
  position: relative;
  height: 5.75em;
  overflow: hidden;
  padding-right: 0.2rem;
  box-sizing: border-box;
  -webkit-mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.45) 11%,
    #000 24%,
    #000 88%,
    rgba(0, 0, 0, 0.45) 96%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(0, 0, 0, 0.45) 11%,
    #000 24%,
    #000 88%,
    rgba(0, 0, 0, 0.45) 96%,
    transparent 100%
  );
}

.esago-dash-welcome__speech.is-scrollable .esago-dash-welcome__speech-viewport {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: default;
}

.esago-dash-welcome__speech.is-scrollable .esago-dash-welcome__speech-viewport::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.esago-dash-welcome__speech-stack {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.esago-dash-welcome__speech-line {
  display: flex;
  flex-wrap: wrap;
  column-gap: 0.22em;
  row-gap: 0.08em;
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.38;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #585858;
}

.esago-dash-welcome__speech-word {
  display: inline-block;
  opacity: 0;
  filter: blur(2px);
  transition:
    opacity 0.42s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.esago-dash-welcome__speech-word.is-visible {
  opacity: 1;
  filter: blur(0);
}

.esago-dash-welcome__hero-line {
  height: 1px;
  margin: 0 0.35rem;
  background: linear-gradient(
    90deg,
    rgba(15, 23, 42, 0) 0%,
    rgba(15, 23, 42, 0.13) 16%,
    rgba(15, 23, 42, 0.13) 84%,
    rgba(15, 23, 42, 0) 100%
  );
}

.esago-dash-welcome__copy {
  text-align: center;
}

.esago-dash-welcome__title {
  margin: 0 0 0.5rem;
  font-size: 1.22rem;
  font-weight: 800;
  line-height: 1.25;
  color: #0f172a;
}

.esago-dash-welcome__greeting {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #64748b;
  animation: esago-dash-welcome-text 0.65s ease 0.12s both;
}

.esago-dash-welcome__name {
  display: block;
  margin-top: 0.2rem;
  animation: esago-dash-welcome-text 0.65s ease 0.22s both;
}

.esago-dash-welcome__lead {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #64748b;
  animation: esago-dash-welcome-text 0.65s ease 0.32s both;
}

.esago-dash-welcome__lead strong {
  color: #0f172a;
  font-weight: 800;
}

.esago-dash-welcome__lead .esago-dash-welcome__orders-count {
  color: #5e08ec;
  font-weight: 800;
}

.esago-dash-welcome__cta-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.05rem;
  animation: esago-dash-welcome-text 0.65s ease 0.42s both;
}

.esago-dash-welcome__cta {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 0.30rem 0.85rem;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #fcd0b6;
  color: #585858;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  box-sizing: border-box;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.esago-dash-welcome__cta:hover {
  background: #f5bc9a;
  color: #585858;
}

.esago-dash-welcome__cta--outline {
  background: transparent;
  border-color: #fcd0b6;
}

.esago-dash-welcome__cta--outline:hover {
  background: rgba(252, 208, 182, 0.22);
  border-color: #f5bc9a;
  color: #585858;
}

@media (max-width: 639px) {
  .esago-dash-welcome {
    width: 100%;
  }

  .esago-dash-welcome__card {
    max-width: none;
    width: 100%;
  }

  .esago-dash-welcome__hero-img {
    margin-left: 5.65rem;
  }

  .esago-dash-welcome__hero-bg {
    transform: translateX(4.05rem);
  }

  .esago-dash-welcome__speech {
    width: 45%;
    max-width: 8.6rem;
    left: 0.15rem;
  }

  .esago-dash-welcome__speech-line {
    font-size: 1rem;
    padding-right: 0.15rem;
  }

  .esago-dash-welcome__speech-viewport {
    height: 5.85em;
    padding-right: 0.2rem;
    box-sizing: border-box;
  }

  .esago-dash-welcome__speech-word {
    overflow: visible;
  }

  .esago-dash-orders-panel {
    width: 100%;
  }
}

.esago-dash-orders-panel {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.esago-dash-orders-filter {
  margin: 0;
}

.esago-dash-orders-filter__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: #fbfbfc;
  border: 2px solid #b9cad2;
  animation: esago-dash-welcome-in 0.55s ease 0.1s both;
}

.esago-dash-orders-filter__dates {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
}

.esago-dash-orders-filter__field {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
}

.esago-dash-orders-filter__label {
  font-weight: 700;
  white-space: nowrap;
}

.esago-dash-orders-filter__field input[type="date"] {
  min-width: 9.5rem;
  padding: 0.42rem 0.55rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: #fff;
  color: #0f172a;
  font: inherit;
}

.esago-dash-orders-filter__total {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: #64748b;
}

.esago-dash-orders-filter__total strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.esago-dash-orders-filter__total-label {
  white-space: nowrap;
}

.esago-dash-orders-card {
  flex: 1 1 auto;
  padding: 1rem 1rem 0.85rem;
  border-radius: 12px;
  background: #fbfbfc;
  border: 2px solid #c0d2b9;
  animation: esago-dash-welcome-in 0.55s ease 0.2s both;
}

.esago-dash-orders-title {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.esago-dash-orders-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0.45rem;
}

.esago-dash-orders-row {
  margin: 0;
}

.esago-dash-orders-row__link {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(15, 23, 42, 0.06);
  color: inherit;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.esago-dash-orders-row__link:hover {
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.esago-dash-orders-row__mark {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mp-bg, #f1f5f9);
  color: var(--mp-fg, #475569);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.esago-dash-orders-row__name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.esago-dash-orders-row__count {
  flex: 0 0 auto;
  min-width: 1.75rem;
  text-align: right;
  font-size: 0.92rem;
  font-weight: 800;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

@keyframes esago-dash-particle-out {
  0% {
    transform: translate3d(0, 0, 0) scale(0.55);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--particle-x), var(--particle-y), 0) scale(0.18);
    opacity: 0;
  }
}

@keyframes esago-dash-welcome-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes esago-dash-welcome-text {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .esago-dash-welcome,
  .esago-dash-welcome__greeting,
  .esago-dash-welcome__name,
  .esago-dash-welcome__lead,
  .esago-dash-welcome__cta-row,
  .esago-dash-welcome__cta,
  .esago-dash-orders-filter__row,
  .esago-dash-orders-card {
    animation: none;
  }

  .esago-dash-welcome__hero-img {
    transition: none;
  }

  .esago-dash-welcome__hero-bg.is-particles-active .esago-dash-welcome__particle {
    animation: none;
    opacity: 0.75;
    transform: translate3d(var(--particle-x), var(--particle-y), 0) scale(0.35);
  }

  .esago-dash-welcome__speech-stack {
    transition: none;
  }

  .esago-dash-welcome__speech-word {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
  }
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.esago-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);
}

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

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

.esago-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);
}

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

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

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

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

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

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

.esago-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;
}

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

.esago-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);
}

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

.esago-dash-kpi-strip {
  display: flex;
  align-items: stretch;
  margin: 0 0 1.35rem;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fbfbfc;
  overflow: hidden;
}

.esago-dash-kpi {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.35rem 1.5rem;
}

.esago-dash-kpi--divider {
  border-right: 1px solid #e5e7eb;
}

.esago-dash-kpi__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.esago-dash-kpi__label {
  margin: 0 0 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  color: #111827;
}

.esago-dash-kpi__value-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.55rem;
}

.esago-dash-kpi__value {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #111827;
}

.esago-dash-kpi__delta {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
}

.esago-dash-kpi__delta--up {
  background: #dcfce7;
  color: #15803d;
}

.esago-dash-kpi__delta--down {
  background: #ffedd5;
  color: #c2410c;
}

.esago-dash-kpi__delta-icon {
  width: 0.72rem;
  height: 0.72rem;
  flex-shrink: 0;
}

.esago-dash-kpi__compare {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.35;
  color: #6b7280;
}

.esago-dash-kpi__chart {
  flex: 0 0 38%;
  max-width: 7.5rem;
  align-self: flex-end;
  min-height: 2.75rem;
}

.esago-dash-kpi__chart svg {
  display: block;
  width: 100%;
  height: 2.75rem;
}

@media (max-width: 900px) {
  .esago-dash-kpi-strip {
    flex-direction: column;
  }

  .esago-dash-kpi--divider {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }

  .esago-dash-kpi:last-child {
    border-bottom: none;
  }
}

@media (max-width: 639px) {
  .esago-dash-kpi {
    padding: 1.1rem 1.15rem;
  }

  .esago-dash-kpi__chart {
    flex-basis: 34%;
    max-width: 6.5rem;
  }
}

.esago-dash-async {
  position: relative;
  margin: 0 0 1.35rem;
}

.esago-dash-async.is-loading .esago-dash-kpi-strip--skeleton {
  filter: blur(4px);
  opacity: 0.88;
  pointer-events: none;
  user-select: none;
}

.esago-dash-async__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.esago-dash-async__spinner {
  width: 2.35rem;
  height: 2.35rem;
}

.esago-dash-async__spinner svg {
  display: block;
  width: 100%;
  height: 100%;
  animation: esago-loader-spin 0.9s linear infinite;
}

.esago-dash-kpi__skel {
  display: block;
  background: linear-gradient(90deg, #eef2f7 0%, #f8fafc 42%, #eef2f7 84%);
  background-size: 220% 100%;
  animation: esago-dash-kpi-skel 1.15s ease-in-out infinite;
}

.esago-dash-kpi__skel--value {
  width: 5.5rem;
  height: 1.45rem;
  border-radius: 6px;
}

.esago-dash-kpi__skel--delta {
  width: 3.1rem;
  height: 1.25rem;
  border-radius: 999px;
}

.esago-dash-kpi__skel--chart {
  width: 100%;
  height: 2.75rem;
  border-radius: 8px;
}

.esago-dash-kpi-strip--skeleton .esago-dash-kpi__label,
.esago-dash-kpi-strip--skeleton .esago-dash-kpi__compare {
  color: #9ca3af;
}

@keyframes esago-dash-kpi-skel {
  0% {
    background-position: 120% 0;
  }
  100% {
    background-position: -120% 0;
  }
}

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

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

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

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

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

.esago-logo-mark {
  display: block;
  width: 2.25rem;
  height: 2.25rem;
  object-fit: contain;
  flex-shrink: 0;
}

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

.esago-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-shrink: 0;
}

.esago-topbar-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.75rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
}

.esago-topbar-icon-btn svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
}

.esago-topbar-icon-btn.is-active {
  color: var(--accent);
}

.esago-notifications__badge--topbar {
  top: 0.3rem;
  right: 0.28rem;
  min-width: 16px;
  height: 16px;
  font-size: 9px;
  line-height: 16px;
}

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

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

.esago-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: transparent;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}

.esago-menu-btn:hover,
.esago-menu-btn:active,
.esago-menu-btn:focus,
.esago-menu-btn:focus-visible,
.esago-menu-btn.is-open {
  background: transparent;
  color: var(--text);
  outline: none;
  box-shadow: none;
}

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

.esago-menu-line {
  position: absolute;
  left: 0;
  width: 100%;
  height: var(--esago-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);
}

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

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

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

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

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

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

@media (max-width: 900px) {
  .esago-app {
    --esago-topbar-height: 3rem;
  }

  .esago-app-frame {
    margin-left: 0;
    width: 100%;
  }

  .esago-topbar.esago-topbar--mobile {
    --esago-topbar-height: 3rem;
    display: grid;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 170;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.75rem 0 0.9rem;
    height: var(--esago-topbar-height);
    min-height: var(--esago-topbar-height);
    max-height: var(--esago-topbar-height);
    background: #f0f2f303;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: none;
    transition:
      background 0.28s ease,
      backdrop-filter 0.28s ease,
      -webkit-backdrop-filter 0.28s ease,
      border-color 0.28s ease,
      box-shadow 0.28s ease;
    backdrop-filter: saturate(80%) blur(6px);
    -webkit-backdrop-filter: saturate(80%) blur(6px);
  }

  .esago-brand--mobile {
    min-width: 0;
  }

  .esago-sidebar {
    top: 0;
    left: 0;
    right: auto;
    bottom: 0;
    width: 75%;
    max-width: 75%;
    height: 100dvh;
    max-height: 100dvh;
    border-radius: 0;
    z-index: 200;
    overflow: hidden;
    transform: translate3d(-100%, 0, 0);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    flex-direction: column;
    box-shadow: none;
  }

  .esago-sidebar-mobile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    gap: 0.5rem;
    height: var(--esago-topbar-height);
    min-height: var(--esago-topbar-height);
    padding: 0 0.75rem 0 0.9rem;
    padding-top: env(safe-area-inset-top, 0px);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
    box-sizing: content-box;
  }

  .esago-brand--mobile-in-drawer {
    min-width: 0;
  }

  .esago-sidebar-mobile-body {
    display: flex;
    flex: 1;
    min-height: 0;
    overflow: hidden;
  }

  .esago-sidebar-mobile-close {
    display: inline-flex;
  }

  .esago-sidebar.is-open {
    transform: translate3d(0, 0, 0);
    box-shadow: 8px 0 32px rgba(15, 23, 42, 0.12);
  }

  .esago-nav-backdrop {
    inset: 0;
    z-index: 199;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .esago-nav-backdrop.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .esago-main {
    padding-top: calc(var(--esago-topbar-height, 3rem) + 1.25rem);
  }

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

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

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

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

  .esago-menu-btn {
    display: inline-flex;
    align-self: center;
    flex: 0 0 2.75rem;
    width: 2.75rem;
    min-width: 2.75rem;
    max-width: 2.75rem;
    height: 2.75rem;
    min-height: 2.75rem;
    max-height: 2.75rem;
    margin: 0;
  }

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

  .esago-topbar:not(.esago-topbar--mobile) {
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 0.5rem;
    padding: 0 0.85rem 0 1rem;
    height: 3.5rem;
    min-height: 3.5rem;
    max-height: 3.5rem;
  }

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

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

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

  /* Niente flash al tap su menu, tendine e controlli touch */
  .esago-sidebar a:focus,
  .esago-sidebar button:focus,
  .esago-main a:focus,
  .esago-main button:focus {
    outline: none;
  }

  @media (hover: none), (pointer: coarse) {
    .esago-sidebar-link:hover,
    .esago-sidebar-link:active,
    .esago-sidebar-group-toggle:hover,
    .esago-sidebar-group-toggle:active,
    .esago-sidebar-sublink:hover,
    .esago-sidebar-sublink:active,
    .esago-sidebar-tablink:hover,
    .esago-sidebar-tablink:active,
    .esago-rail-btn:hover,
    .esago-rail-btn:active,
    .esago-notifications__trigger:hover,
    .esago-notifications__trigger:active {
      background: transparent;
    }

    .esago-sidebar-link.active,
    .esago-sidebar-link.active:hover,
    .esago-sidebar-link.active:active {
      background: transparent;
      color: var(--accent);
    }

    .esago-rail-btn--logo.is-active,
    .esago-rail-btn--shop.is-active,
    .esago-rail-btn--logo.is-active:hover,
    .esago-rail-btn--shop.is-active:hover,
    .esago-rail-btn--logo.is-active:active,
    .esago-rail-btn--shop.is-active:active {
      background: #f3efff;
      border-color: #e4d9fc;
    }

    .esago-sidebar-group.is-open .esago-sidebar-group-toggle:hover,
    .esago-sidebar-group.is-open .esago-sidebar-group-toggle:active {
      color: var(--accent);
      background: transparent;
    }
  }
}

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

  .esago-sidebar {
    transform: none;
  }

  .esago-topbar-actions {
    display: none !important;
  }

  .esago-topbar--mobile {
    display: none !important;
    position: absolute !important;
    visibility: hidden !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }
}

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


.esago-nav-sheet {
  position: fixed;
  top: var(--esago-topbar-height, 3.5rem);
  left: 0;
  right: 0;
  z-index: 160;
  width: 100%;
  max-height: calc(100vh - var(--esago-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;
}

.esago-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;
}

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

.esago-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;
}

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

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

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

.esago-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;
}

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

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

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

.esago-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;
}

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

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

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

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

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

/* Anteprima media (prodotti, ordini): fallback se immagine assente o errore caricamento */
.esago-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;
}

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

.esago-media-thumb__img {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.esago-td-thumb .esago-media-thumb__img:not(.is-broken) {
  opacity: 1;
}

.esago-media-thumb__img.is-loaded:not(.is-broken) {
  opacity: 1;
}

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

.esago-media-thumb__placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #025fff;
}

.esago-media-thumb__photo-count {
  position: absolute;
  top: -3px;
  right: -3px;
  z-index: 2;
  min-width: 15px;
  height: 15px;
  padding: 0 3px;
  border-radius: 999px;
  background: #bbee9b;
  color: #374151;
  font-size: 9px;
  font-weight: 600;
  line-height: 15px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgb(170 218 140);
}

.esago-media-thumb:has(.esago-media-thumb__img.is-loaded:not(.is-broken)) .esago-media-thumb__placeholder {
  display: none;
}

.esago-td-thumb .esago-media-thumb:has(.esago-media-thumb__img:not(.is-broken)) .esago-media-thumb__placeholder {
  display: none;
}

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

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

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

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

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

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

.esago-side-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 250;
  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: esago-slide-in 0.28s ease forwards;
  display: flex;
  flex-direction: column;
}

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

@keyframes esago-slide-out {
  to {
    transform: translateX(100%);
  }
}

@keyframes esago-panel-backdrop-out {
  to {
    opacity: 0;
  }
}

#esago-order-panel-mount .esago-side-panel--order.is-closing {
  animation: esago-slide-out 0.28s ease forwards;
}

#esago-order-panel-mount .esago-panel-backdrop.is-closing {
  animation: esago-panel-backdrop-out 0.28s ease forwards;
}

@media (prefers-reduced-motion: reduce) {
  #esago-order-panel-mount .esago-side-panel--order.is-closing,
  #esago-order-panel-mount .esago-panel-backdrop.is-closing {
    animation: none;
  }
}

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

.esago-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);
}

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

.esago-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;
}

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

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

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

/* Errore fetch dettaglio prodotto (non più in alto a sinistra sotto il logo) */
.esago-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: 260;
  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);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.esago-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;
}

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

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

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

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

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

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

.esago-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;
}

.esago-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%;
}

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

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

.esago-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;
}

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

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

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

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

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

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

.esago-media-thumb--carousel .esago-media-thumb__img:not(.is-broken) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
}

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

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

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

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

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

.esago-carousel-btn {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: #14213d;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  flex-shrink: 0;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}

.esago-carousel-btn:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent);
}

.esago-carousel-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.esago-product-gallery {
  margin-bottom: 1.25rem;
}

.esago-product-gallery__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.esago-product-gallery__count {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}

.esago-product-gallery__nav {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.esago-product-gallery__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 220px;
  max-height: min(52vh, 360px);
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  cursor: zoom-in;
}

.esago-product-gallery__main {
  display: block;
  max-width: 100%;
  max-height: min(48vh, 320px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.esago-product-gallery__main.is-broken {
  display: none;
}

.esago-product-gallery__thumbs-wrap {
  margin-top: 0.65rem;
  overflow: hidden;
}

.esago-product-gallery__thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.2rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.esago-product-gallery__thumb {
  flex: 0 0 auto;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.esago-product-gallery__thumb.is-active {
  border-color: var(--accent);
}

.esago-product-gallery__thumb .esago-media-thumb {
  pointer-events: none;
}

.esago-product-gallery__thumb .esago-media-thumb__img:not(.is-broken) {
  opacity: 1;
}

.esago-product-gallery__thumb .esago-media-thumb:has(.esago-media-thumb__img:not(.is-broken)) .esago-media-thumb__placeholder {
  display: none;
}

.esago-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  box-sizing: border-box;
}

.esago-gallery-lightbox[hidden] {
  display: none !important;
}

.esago-gallery-lightbox__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.62);
  cursor: pointer;
}

.esago-gallery-lightbox__dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  width: min(960px, 100%);
  max-height: calc(100vh - 2.5rem);
}

.esago-gallery-lightbox__close {
  position: absolute;
  top: -0.15rem;
  right: 0;
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #14213d;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.esago-gallery-lightbox__figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.esago-gallery-lightbox__img {
  display: block;
  max-width: 100%;
  max-height: min(78vh, 720px);
  width: auto;
  height: auto;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
}

.esago-gallery-lightbox__img.is-broken {
  display: none;
}

.esago-gallery-lightbox__count {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
}

.esago-gallery-lightbox__arrow {
  background: rgba(255, 255, 255, 0.95);
}

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

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

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

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

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

.esago-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;
}

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

.esago-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;
}

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

.esago-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%;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.esago-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;
}

.esago-channel-tile-name-row {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.esago-channel-tile-name-row .esago-channel-tile-label {
  min-width: 0;
}

.esago-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;
}

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

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

.esago-channel-tile:hover {
  border-color: var(--ch-fg, var(--accent));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--ch-fg, var(--accent)) 12%, transparent);
}

.esago-channel-tile:hover .esago-channel-tile-label {
  color: var(--ch-fg, var(--accent));
}

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

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

.esago-channel-tile--active {
  box-shadow: inset 0 0 0 2px var(--ch-fg, #475569);
}

.esago-app-feed-url {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0.75rem 0;
}

.esago-app-feed-url .esago-input {
  flex: 1 1 16rem;
  min-width: 0;
}

.esago-app-field-list {
  margin: 0;
  padding-left: 1.1rem;
}

.esago-app-field-list li {
  margin: 0.25rem 0;
}

/* Negozio → App — dettaglio integrazioni */
.esago-sf-app-detail-head {
  margin-bottom: 1.25rem;
}

.esago-sf-app-back {
  margin: 0 0 0.85rem;
}

.esago-sf-app-detail-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.esago-sf-app-detail-mark {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.esago-sf-app-logo {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  overflow: visible;
}

.esago-sf-app-logo img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.esago-sf-app-logo--tile {
  width: 1.625rem;
  height: 1.625rem;
}

.esago-sf-app-logo--block {
  width: 2rem;
  height: 2rem;
}

.esago-sf-app-logo--detail {
  width: 2.75rem;
  height: 2.75rem;
}

.esago-sf-app-detail-copy {
  min-width: 0;
}

.esago-sf-app-feed-panel {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.02);
}

.esago-sf-app-feed-stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed var(--border);
}

.esago-sf-app-feed-stat-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.esago-sf-app-feed-stat-value {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
}

.esago-sf-app-feed-url {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 0.35rem 0 0.5rem;
}

.esago-sf-app-feed-input {
  flex: 1 1 16rem;
  min-width: 0;
  font-size: 0.82rem;
}

.esago-sf-app-guide {
  margin-top: 1rem;
}

.esago-sf-app-field-list {
  margin: 0.35rem 0 0;
  padding-left: 1.15rem;
  font-size: 0.88rem;
  color: var(--text);
}

.esago-sf-app-field-list li {
  margin: 0.3rem 0;
}

.esago-sf-app-toggles {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.esago-sf-app-toggles-title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.esago-sf-app-toggle-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.esago-sf-app-toggle-row {
  margin: 0;
}

.esago-sf-app-toggle {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.esago-sf-app-toggle:hover {
  border-color: rgba(99, 102, 241, 0.35);
  background: rgba(99, 102, 241, 0.03);
}

.esago-sf-app-toggle .esago-switch-ui {
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.esago-sf-app-toggle-copy {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.esago-sf-app-toggle-copy strong {
  font-size: 0.9rem;
  font-weight: 700;
}

.esago-sf-app-toggle-copy .esago-sf-email-hint {
  margin: 0;
}

.esago-sf-app-actions {
  margin-top: 0.25rem;
}

.esago-sf-app-secondary-panel {
  margin-top: 0;
}

.esago-sf-subtitle {
  margin: 1rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 700;
}

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

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

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

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

  .esago-channel-tile-label {
    font-size: 11px;
    line-height: 1.22;
  }

  .esago-channel-tile-name-row {
    gap: 0.35rem;
  }

  .esago-channel-mark--tile {
    width: 1.35rem;
    height: 1.35rem;
    font-size: 0.58rem;
    border-radius: 6px;
  }

  .esago-channel-tile-hint {
    font-size: 11px;
  }
}

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

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

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

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

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

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

.esago-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;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

/* --- Tabs (Shopify canale) --- */
.esago-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;
}

.esago-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;
}

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

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

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

/* Toast risultato test (popup impostazioni) */
.esago-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;
}

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

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

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

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

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

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

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

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

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

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

.esago-input,
.esago-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;
}

.esago-input:focus,
.esago-input-textarea:focus {
  outline: none;
  border-color: var(--esago-search-focus);
  box-shadow: 0 0 0 2px var(--esago-search-focus-ring);
}

.esago-input[readonly] {
  cursor: default;
}

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

.esago-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;
}

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

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

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

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

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

/* Rimozione voce esclusione: checkbox sempre visibile + testo cliccabile */
.esago-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;
}

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

.esago-excl-delete-checkbox,
.esago-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;
}

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

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

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

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

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

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

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

.esago-table--discounts td.esago-muted {
  max-width: 280px;
}

.esago-discounts-col-actions {
  width: 2.75rem;
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  text-align: right;
  white-space: nowrap;
}

.esago-discounts-row-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.12s ease, background 0.12s ease;
}

.esago-discounts-row-edit:hover {
  color: var(--accent);
  background: var(--accent-soft);
}

.esago-discounts-row-edit svg {
  display: block;
  width: 1.05rem;
  height: 1.05rem;
}

.esago-discounts-create-wrap {
  position: relative;
}

.esago-discounts-create-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.esago-discounts-create-menu {
  position: fixed;
  z-index: 1200;
  width: 220px;
  padding: 0.25rem;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: none;
}

.esago-discounts-create-menu-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.1rem;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  color: #0f172a;
}

.esago-discounts-create-menu-item strong {
  font-size: 0.8rem;
  font-weight: 600;
}

.esago-discounts-create-menu-item span {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.3;
}

.esago-discounts-create-menu-item:hover {
  background: #f8fafc;
}

.esago-cart-discount-segment {
  margin-top: 0.35rem;
}

.esago-sf-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
}

.esago-sf-label-row .esago-sf-label {
  margin-bottom: 0;
}

.esago-sf-label-link {
  padding: 0;
  border: none;
  background: transparent;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  white-space: nowrap;
}

.esago-sf-label-link:hover {
  text-decoration: underline;
}

.esago-sf-label-link:disabled,
.esago-sf-label-link[hidden] {
  display: none;
}

.esago-sf-address-modal-dialog--wide {
  max-width: 640px;
}

.esago-sf-optional {
  font-weight: 400;
  color: var(--muted);
}

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

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

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

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

/* Header marketplace + modal impostazioni + griglia due colonne */
.esago-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;
}

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

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


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

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

.esago-channel-page-title-row {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.esago-channel-page-head-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

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

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

.esago-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;
}

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

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

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

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

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

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

.esago-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;
}

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

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

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

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

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

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

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

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

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

/* Badge fase nella tabella storico sync */
.esago-sync-phase-cell {
  white-space: normal;
  line-height: 1.35;
}
.esago-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;
}
.esago-sync-phase-badge--new {
  background: rgba(34, 197, 94, 0.2);
  color: #15803d;
}
.esago-sync-phase-badge--update {
  background: rgba(249, 115, 22, 0.22);
  color: #c2410c;
}
.esago-sync-phase-badge--prune {
  background: rgba(239, 68, 68, 0.18);
  color: #b91c1c;
}

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

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

.esago-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;
}

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

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

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

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

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

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

/* Shopify Sync: toggle "Blocca" (on/off) */
.esago-switch {
  cursor: pointer;
}
.esago-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;
}
.esago-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;
}
.esago-switch input[type="checkbox"]:checked + .esago-switch-ui {
  /* ON */
  background: rgba(34, 197, 94, 0.35);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.35);
}
.esago-switch input[type="checkbox"]:checked + .esago-switch-ui::after {
  transform: translateX(20px);
}

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

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

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

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

  .esago-customers-index {
    max-width: 100%;
    min-width: 0;
  }

  .esago-customers-table-wrap {
    max-width: 100%;
  }

  .esago-customers-table-wrap .esago-table--customers {
    width: max-content;
    min-width: 100%;
  }

  .esago-customers-page-head {
    gap: 0.75rem;
  }
}

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

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

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

.esago-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) */
.esago-channel-main-grid.esago-shopify-tabpanels {
  max-width: none;
  width: 100%;
  grid-template-columns: minmax(0, 1fr);
}

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

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

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

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

.esago-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;
}

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

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

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

.esago-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);
}

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

.esago-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);
}

.esago-excl-modal-list .esago-dynamic-row.esago-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;
}

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

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

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

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

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

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

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

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

.esago-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);
}

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

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

.esago-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;
}

.esago-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);
}

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

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

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

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

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

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

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

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

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

.esago-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;
}

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

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

.esago-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;
}

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

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

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

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

.esago-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;
}

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

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

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

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

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

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

.esago-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;
}

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

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

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

.esago-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);
}

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

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

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

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

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

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

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

.esago-orders-top-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.esago-orders-filter-form {
  flex: 1 1 auto;
  min-width: 0;
}

.esago-orders-toolbar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 0.75rem;
}

.esago-orders-filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem 0.75rem;
  flex: 1 1 auto;
  min-width: 0;
}

.esago-orders-filters-btn {
  display: none;
}

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

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

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

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

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

.esago-orders-field-date {
  flex: 0 0 auto;
  min-width: 11rem;
}

.esago-orders-date-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-width: 11rem;
  text-align: left;
  cursor: pointer;
  white-space: nowrap;
}

.esago-orders-date-range-block {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  padding: 0 1.25rem 1rem;
}

.esago-orders-date-range-block--modal {
  padding: 0;
}

.esago-orders-date-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0 1.25rem 0.85rem;
}

.esago-orders-date-range-block--modal + .esago-orders-date-presets,
.esago-orders-date-presets + .esago-orders-date-range-block--modal {
  padding-top: 0;
}

.esago-orders-filters-modal-body .esago-orders-date-presets {
  padding: 0 0 0.75rem;
}

.esago-orders-date-preset-btn {
  flex: 0 1 auto;
  padding: 0.38rem 0.7rem;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  color: #374151;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.esago-orders-date-preset-btn:hover {
  border-color: #c4b5fd;
  background: #f5f3ff;
  color: #5b21b6;
}

.esago-orders-date-preset-btn:focus-visible {
  outline: 2px solid var(--accent-ring, #c4b5fd);
  outline-offset: 1px;
}

.esago-orders-date-range-field {
  flex: 1 1 8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.esago-orders-date-range-field span {
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}

.esago-orders-field-search {
  flex: 0 0 auto;
  min-width: 9rem;
  max-width: 11rem;
}

.esago-orders-field-search .esago-input {
  width: 100%;
}

.esago-orders-field-reset {
  flex: 0 0 auto;
}

.esago-orders-field-reset-spacer {
  display: block;
  height: 1.15rem;
  visibility: hidden;
}

.esago-orders-filters-reset-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 1px solid #fbd3dc;
  border-radius: 10px;
  background: #fff;
  color: #e61947;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.esago-orders-filters-reset-btn:hover {
  color: #c4113a;
  border-color: #e61947;
  background: #fff5f7;
}

.esago-orders-filters-reset-btn:focus-visible {
  outline: 2px solid #fbd3dc;
  outline-offset: 1px;
}

.esago-orders-filters-reset-btn.is-inactive,
.js-esago-orders-filters-reset.is-inactive {
  opacity: 0.42;
  pointer-events: none;
}

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

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

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

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

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

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

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

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

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

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

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

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

.esago-table--orders-select .esago-orders-col-check {
  width: 2rem;
  padding-right: 0.25rem !important;
}

.esago-table--orders-select .esago-orders-col-check input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.esago-table--orders-select .esago-order-row.is-selected td {
  background: rgba(34, 128, 230, 0.06);
}

.esago-orders-head-check-wrap {
  position: relative;
  display: inline-flex;
}

.esago-orders-head-menu {
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 0;
  z-index: 40;
  min-width: 11rem;
  padding: 0.35rem 0;
  border-radius: 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.esago-orders-vidaxl-send[hidden] {
  display: none !important;
}

/* Ordini — conferma invio VidaXL */
.esago-orders-vidaxl-modal {
  justify-content: center;
  align-items: center;
  padding: 1.25rem;
  z-index: 1200;
}
.esago-orders-vidaxl-modal .esago-modal-backdrop {
  background: rgba(15, 23, 42, 0.32);
}
.esago-orders-vidaxl-dialog {
  position: relative;
  max-width: 22.5rem;
  width: 100%;
  padding: 1.75rem 1.5rem 1.35rem;
  margin: 0;
  border: none;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
  text-align: center;
}
.esago-orders-vidaxl-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.12s ease, background 0.12s ease;
}
.esago-orders-vidaxl-close:hover {
  color: #111827;
  background: #f3f4f6;
}
.esago-orders-vidaxl-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0.25rem;
}
.esago-orders-vidaxl-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #eef2ff 0%, #e0e7ff 100%);
  color: #4f46e5;
}
.esago-orders-vidaxl-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}
.esago-orders-vidaxl-title {
  margin: 0 0 0.45rem;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
  letter-spacing: -0.01em;
}
.esago-orders-vidaxl-count {
  margin: 0 0 0.65rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.8rem;
  font-weight: 600;
}
.esago-orders-vidaxl-count[hidden] {
  display: none !important;
}
.esago-orders-vidaxl-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #6b7280;
  max-width: 18rem;
}
.esago-orders-vidaxl-form {
  margin: 1.35rem 0 0;
}
.esago-orders-vidaxl-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.esago-orders-vidaxl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.65rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.7rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.esago-orders-vidaxl-btn--cancel {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
}
.esago-orders-vidaxl-btn--cancel:hover {
  background: #f9fafb;
}
.esago-orders-vidaxl-btn--confirm {
  border: none;
  background: var(--accent, #6366f1);
  color: #fff;
}
.esago-orders-vidaxl-btn--confirm:hover {
  filter: brightness(1.05);
}
body.esago-orders-vidaxl-modal-open {
  overflow: hidden;
}

.esago-order-vidaxl-status {
  margin: 0 0 0.35rem;
}

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

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

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

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

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

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

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

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

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

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

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

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

.esago-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;
}

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

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

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

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

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

@media (max-width: 900px) {
  #esago-order-panel-mount:not([hidden]) .esago-panel-backdrop {
    inset: auto;
    top: var(--esago-topbar-height, 3rem);
    right: 0;
    bottom: 0;
    left: 0;
  }

  #esago-order-panel-mount:not([hidden]) .esago-side-panel--order {
    top: var(--esago-topbar-height, 3rem);
    bottom: 0;
    width: 100%;
    max-width: 100%;
    border-left: none;
    box-shadow: 0 -8px 32px rgba(15, 23, 42, 0.12);
  }

  .esago-order-kpi-grid:not(.esago-order-kpi-grid--dual) .esago-order-kpi-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.5rem;
  }

  .esago-order-kpi-grid:not(.esago-order-kpi-grid--dual) .esago-order-kpi-card__text {
    display: contents;
  }

  .esago-order-kpi-grid:not(.esago-order-kpi-grid--dual) .esago-order-kpi-label {
    min-width: 0;
  }

  .esago-order-kpi-grid:not(.esago-order-kpi-grid--dual) .esago-order-kpi-value {
    margin-left: 0;
    text-align: right;
    flex: 0 0 auto;
  }
}

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

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

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

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

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

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

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

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

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

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

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

.esago-tag--discount-cart {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
}

.esago-tag--discount-product {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

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

.esago-order-kpi-grid--dual {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.esago-order-kpi-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  min-width: 0;
}

.esago-order-kpi-card__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
  flex: 1 1 auto;
}

.esago-order-kpi-grid--dual .esago-order-kpi-card__text {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

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

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

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

.esago-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;
}

.esago-order-kpi-label {
  font-size: 0.84rem;
  color: var(--esago-muted, #6b7280);
  line-height: 1.2;
  min-width: 0;
}

.esago-order-kpi-value {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  white-space: nowrap;
}

.esago-order-kpi-grid--dual .esago-order-kpi-value {
  margin-left: auto;
  text-align: right;
}

.esago-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);
}

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

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

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

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

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

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

.esago-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);
}

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

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

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

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

.esago-order-fulfillment .esago-order-section-head {
  margin-bottom: 0.75rem;
}

.esago-order-fulfillment-stack {
  display: grid;
  gap: 0.9rem;
}

.esago-order-fulfillment-empty {
  margin: 0;
  padding: 1rem 1.1rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  color: var(--esago-muted, #6b7280);
  font-size: 0.86rem;
  text-align: center;
}

.esago-order-action-block {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  padding: 1.1rem 1.15rem;
  border: 1px solid #e2e8f0;
  border-left-width: 4px;
  border-radius: 12px;
  background: #fff;
}

.esago-order-action-block--status,
.esago-order-action-block--ship {
  border-left-color: #10b981;
}

.esago-order-action-block--paid {
  border-left-color: #2563eb;
}

.esago-order-action-block--cancel,
.esago-order-action-block--refund,
.esago-order-action-block--history {
  border-left-width: 1px;
  border-color: #e2e8f0;
}

.esago-order-action-block__head {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.esago-order-action-block__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
}

.esago-order-action-block__icon--ship {
  background: #ecfdf5;
  color: #047857;
}

.esago-order-action-block__icon--paid {
  background: #eff6ff;
  color: #1d4ed8;
}

.esago-order-action-block__icon--cancel {
  background: #fef2f2;
  color: #b91c1c;
}

.esago-order-action-block__icon--refund {
  background: var(--accent-soft);
  color: var(--accent);
}

.esago-order-action-block__icon--history {
  background: #ede9fe;
  color: #6d28d9;
}

.esago-order-action-block__titles {
  min-width: 0;
  flex: 1 1 auto;
}

.esago-order-action-block__title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}

.esago-order-action-block__lead {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--esago-muted, #6b7280);
}

.esago-order-action-block__lead strong {
  color: #0f172a;
  font-weight: 700;
}

.esago-order-action-block__body,
.esago-order-action-block > .esago-order-fulfillment-meta,
.esago-order-action-block > .esago-order-refund-list,
.esago-order-action-block > .esago-order-refund-summary {
  padding: 0.95rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fafc;
}

.esago-order-action-block__body {
  display: grid;
  gap: 0.85rem;
}

.esago-order-action-block > .esago-order-refund-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0.95rem 1rem;
  list-style: none;
}

.esago-order-action-block__foot {
  display: flex;
  justify-content: flex-end;
  padding-top: 0;
  margin-top: 0;
  border-top: none;
}

.esago-order-action-block__body + .esago-order-action-block__foot,
.esago-order-action-block > .esago-order-refund-summary + .esago-order-action-block__foot {
  padding-top: 0.15rem;
}

.esago-order-ship-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: end;
}

.esago-order-ship-action {
  display: flex;
  align-items: flex-end;
}

.esago-order-ship-action .esago-btn {
  white-space: nowrap;
  min-height: 2.4rem;
}

.esago-order-action-btn--danger {
  color: #b91c1c;
  border-color: #fecaca;
  background: #fff;
}

.esago-order-action-btn--danger:hover {
  color: #991b1b;
  border-color: #fca5a5;
  background: #fef2f2;
}

.esago-order-refund-modes {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.esago-order-refund-modes legend {
  margin-bottom: 0.35rem;
  padding: 0;
}

.esago-order-refund-mode {
  display: block;
  cursor: pointer;
}

.esago-order-refund-mode > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.esago-order-refund-mode__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.esago-order-refund-mode:hover .esago-order-refund-mode__card {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.esago-order-refund-mode > input:checked + .esago-order-refund-mode__card {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent-ring);
}

.esago-order-refund-mode__title {
  font-size: 0.86rem;
  font-weight: 600;
  color: #0f172a;
}

.esago-order-refund-mode__meta {
  font-size: 0.8rem;
  color: var(--esago-muted, #6b7280);
  text-align: right;
  white-space: nowrap;
}

.esago-order-refund-lines {
  display: none;
  gap: 0.4rem;
  margin: 0.1rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.esago-order-refund-form:has(input[name="refund_mode"][value="lines"]:checked) .esago-order-refund-lines {
  display: grid;
}

.esago-order-refund-line {
  display: block;
  cursor: pointer;
}

.esago-order-refund-line > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.esago-order-refund-line__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.esago-order-refund-line:hover .esago-order-refund-line__card {
  border-color: #cbd5e1;
}

.esago-order-refund-line > input:checked + .esago-order-refund-line__card {
  border-color: #86efac;
  background: #ecfdf5;
}

.esago-order-refund-line__title {
  font-size: 0.82rem;
  color: #0f172a;
  min-width: 0;
}

.esago-order-refund-line__meta {
  font-size: 0.8rem;
  font-weight: 600;
  color: #047857;
  white-space: nowrap;
}

.esago-order-refund-custom {
  display: none;
  gap: 0.35rem;
}

.esago-order-refund-form:has(input[name="refund_mode"][value="custom"]:checked) .esago-order-refund-custom {
  display: grid;
}

.esago-order-refund-amount-input {
  max-width: 12rem;
}

.esago-order-refund-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.esago-order-refund-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.esago-order-refund-list__amount {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
}

.esago-order-refund-list__meta {
  font-size: 0.8rem;
  color: var(--esago-muted, #6b7280);
  text-align: right;
}

.esago-order-refund-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.esago-order-refund-summary > div {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
}

.esago-order-refund-summary__label {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--esago-muted, #6b7280);
}

.esago-order-refund-summary__value {
  font-size: 0.95rem;
  color: #0f172a;
}

.esago-order-fulfillment .esago-order-action-form {
  margin: 0;
  padding: 0;
  border: 0;
}

.esago-order-action-textarea {
  width: 100%;
  min-height: 4.25rem;
  resize: vertical;
  font-family: inherit;
  font-size: 0.82rem;
  line-height: 1.45;
}

.esago-order-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.esago-order-field-label {
  display: block;
  margin: 0 0 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--esago-muted, #6b7280);
}

.esago-order-fulfillment-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin: 0;
  font-size: 0.88rem;
}

.esago-order-fulfillment-meta > div {
  padding: 0.65rem 0.75rem;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #bbf7d0;
}

.esago-order-fulfillment-meta dt {
  margin: 0 0 0.15rem;
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #047857;
}

.esago-order-fulfillment-meta dd {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
  word-break: break-word;
}

.esago-order-fulfillment-note {
  margin: 0;
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.esago-order-fulfillment-note-label {
  margin: 0 0 0.25rem;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #991b1b;
}

.esago-order-fulfillment-note-body {
  margin: 0;
  font-size: 0.88rem;
  color: #7f1d1d;
  line-height: 1.45;
}

.esago-order-refund-sheet {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
}

.esago-order-refund-sheet[hidden] {
  display: none !important;
}

.esago-order-refund-sheet:not([hidden]) {
  pointer-events: auto;
}

.esago-order-refund-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  transition: opacity 0.26s ease;
}

.esago-order-refund-sheet.is-open .esago-order-refund-sheet__backdrop {
  opacity: 1;
}

.esago-order-refund-sheet__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 36rem;
  margin: 0 auto;
  padding: 0.55rem 1.15rem calc(1.1rem + env(safe-area-inset-bottom, 0px));
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: 16px 16px 0 0;
  background: var(--surface, #fff);
  box-shadow: 0 -10px 36px rgba(15, 23, 42, 0.14);
  transform: translateY(100%);
  transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
}

.esago-order-refund-sheet.is-open .esago-order-refund-sheet__panel {
  transform: translateY(0);
}

.esago-order-refund-sheet__grab {
  width: 2.5rem;
  height: 0.28rem;
  margin: 0.15rem auto 0.85rem;
  border-radius: 999px;
  background: #d1d5db;
}

.esago-order-refund-sheet__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.85rem;
}

.esago-order-refund-sheet__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}

.esago-order-refund-sheet__title {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}

.esago-order-refund-sheet__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--esago-muted, #6b7280);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}

.esago-order-refund-sheet__close:hover {
  background: #f3f4f6;
  color: #111827;
}

.esago-order-refund-sheet__text {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--esago-muted, #6b7280);
}

.esago-order-refund-sheet__text strong {
  color: #0f172a;
  font-weight: 700;
}

.esago-order-refund-sheet__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.35rem;
}

@media (max-width: 640px) {
  .esago-order-refund-sheet__panel {
    max-width: none;
    border-left: none;
    border-right: none;
    border-radius: 16px 16px 0 0;
  }

  .esago-order-refund-sheet__actions {
    justify-content: stretch;
  }

  .esago-order-refund-sheet__actions .esago-btn {
    flex: 1 1 calc(50% - 0.25rem);
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .esago-order-action-grid,
  .esago-order-ship-grid,
  .esago-order-fulfillment-meta,
  .esago-order-refund-summary {
    grid-template-columns: 1fr;
  }

  .esago-order-action-block__foot {
    justify-content: stretch;
  }

  .esago-order-action-block__foot .esago-btn,
  .esago-order-ship-action .esago-btn {
    width: 100%;
  }

  .esago-order-refund-mode__card,
  .esago-order-refund-line__card,
  .esago-order-refund-list__item {
    flex-direction: column;
    align-items: flex-start;
  }

  .esago-order-refund-mode__meta,
  .esago-order-refund-list__meta {
    text-align: left;
    white-space: normal;
  }
}

@media (max-width: 900px) {
  .esago-orders-filters-btn {
    display: inline-flex;
  }

  .esago-orders-field-reset {
    display: none;
  }

  .esago-orders-filter-bar--desktop {
    display: none;
  }

  .esago-orders-top-bar {
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
  }

  .esago-orders-filter-form {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 42%;
  }

  .esago-orders-toolbar-row {
    flex: 0 1 auto;
    min-width: 0;
    align-items: center;
  }

  .esago-orders-field-search {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 100%;
    gap: 0;
  }

  .esago-orders-field-search > span {
    display: none;
  }

  .esago-orders-field-search .esago-input {
    width: 100%;
    min-width: 0;
    height: 2.4rem;
    min-height: 2.4rem;
    font-size: 0.84rem;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
    box-sizing: border-box;
  }

  .esago-orders-head-actions {
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
    gap: 0.35rem;
    align-items: center;
  }

  .esago-orders-head-actions .esago-market-segment {
    display: none;
  }

  .esago-orders-head-actions .esago-channel-settings-btn,
  .esago-orders-sync-head .esago-btn {
    height: 2.4rem;
    min-height: 2.4rem;
    max-height: 2.4rem;
    margin-top: 0;
    padding: 0 0.65rem;
    font-size: 0.82rem;
    line-height: 1;
    border-radius: 10px;
    box-sizing: border-box;
  }

  .esago-orders-sync-head .esago-btn {
    padding: 0 0.55rem;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  #esago-orders-filters-modal:not([hidden]),
  #esago-orders-date-modal:not([hidden]),
  #esago-product-filters-modal:not([hidden]) {
    top: var(--esago-topbar-height, 3rem);
    bottom: 0;
    left: 0;
    right: 0;
    height: auto;
    padding-top: 0.75rem;
    align-items: flex-start;
  }

  .esago-orders-page-head {
    margin-bottom: 0.65rem;
  }

  .esago-orders-sync-meta {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
    line-height: 1.45;
  }

  .esago-orders-kpi-grid {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    margin-bottom: 0.75rem;
  }

  .esago-orders-kpi {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    max-width: none;
    min-width: 0;
    padding: 0.55rem 0.75rem;
    gap: 0.75rem;
  }

  .esago-orders-kpi-label {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.84rem;
  }

  .esago-orders-kpi-value {
    flex: 0 0 auto;
    font-size: 0.95rem;
    text-align: right;
  }

  .esago-notifications__trigger--mobile {
    display: flex;
  }

  .esago-notifications__trigger--desktop,
  .esago-notifications__panel {
    display: none !important;
  }
}

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

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

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

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

/* --- Negozio online (Storefront admin) --- */
.esago-storefront-page {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.esago-storefront-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 0.65rem;
}

.esago-storefront-title {
  margin: 0 0 0.2rem;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.2;
}

.esago-storefront-meta {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
}

.esago-storefront-meta strong {
  color: var(--text);
  font-weight: 600;
}

.esago-storefront-meta-sep {
  opacity: 0.45;
}

.esago-storefront-host {
  font-size: 0.8rem;
}

.esago-storefront-tabs {
  width: auto;
  display: inline-flex;
  margin-bottom: 0.85rem;
  max-width: 100%;
}

.esago-storefront-tab {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
  min-width: 5.5rem;
  white-space: nowrap;
}

.esago-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;
}

.esago-storefront-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  width: 100%;
  max-width: 100%;
}

.esago-storefront-page .esago-card {
  margin-top: 0;
  margin-bottom: 0;
}

.esago-storefront-panel {
  padding: 1rem 1.05rem;
}

.esago-storefront-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.esago-storefront-section-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}

.esago-storefront-note {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.4;
}

.esago-storefront-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.esago-storefront-pill--live {
  background: rgba(45, 106, 79, 0.14);
  color: #2d6a4f;
}

.esago-storefront-pill--draft {
  background: rgba(154, 107, 0, 0.12);
  color: #9a6b00;
}

.esago-storefront-form {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.esago-storefront-form-row--switch {
  padding: 0.35rem 0;
}

.esago-storefront-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.esago-storefront-switch-label {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
}

.esago-storefront-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.esago-storefront-field-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
}

.esago-storefront-field-hint {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.35;
}

.esago-storefront-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  color: var(--muted);
  cursor: pointer;
}

.esago-storefront-form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.15rem;
  padding-top: 0.35rem;
}

.esago-storefront-form .esago-input,
.esago-storefront-form select.esago-input {
  max-width: 100%;
}

.esago-storefront-form select.esago-input[multiple] {
  min-height: 7.5rem;
}

.esago-storefront-api {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(15, 23, 42, 0.02);
  margin-top: 0.25rem;
}

.esago-storefront-api-summary {
  cursor: pointer;
  padding: 0.65rem 0.85rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  list-style: none;
}

.esago-storefront-api-summary::-webkit-details-marker {
  display: none;
}

.esago-storefront-api-summary::before {
  content: "▸";
  display: inline-block;
  margin-right: 0.4rem;
  transition: transform 0.15s ease;
}

.esago-storefront-api[open] .esago-storefront-api-summary::before {
  transform: rotate(90deg);
}

.esago-storefront-api-body {
  padding: 0 0.85rem 0.85rem;
  border-top: 1px solid var(--border);
}

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

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

@media (max-width: 820px) {
  .esago-storefront-grid {
    grid-template-columns: 1fr;
  }

  .esago-storefront-head {
    flex-direction: column;
    align-items: stretch;
  }

  .esago-storefront-head .esago-btn {
    align-self: flex-start;
  }
}

.esago-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;
}

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

.esago-storefront-api-list {
  margin: 0.35rem 0 0.65rem;
  padding-left: 1.1rem;
  font-size: 0.82rem;
  line-height: 1.45;
}

.esago-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;
}

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

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

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

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

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

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

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

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

.esago-storefront-grid--single {
  grid-template-columns: minmax(0, 1fr);
  max-width: 42rem;
}

/* Impostazioni negozio — layout e blocco visibilità (stile Shopware) */
.esago-sf-settings-page {
  padding-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.esago-sf-settings-head,
.esago-sf-settings-stack {
  width: 100%;
  max-width: 52rem;
}

.esago-sf-settings-layout {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.esago-sf-settings-nav-title {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.esago-sf-settings-nav-link {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.esago-sf-settings-nav-link:hover {
  background: rgba(15, 23, 42, 0.04);
}

.esago-sf-settings-nav-link.is-active {
  color: var(--accent);
  background: var(--accent-soft);
}

.esago-sf-settings-head {
  margin-bottom: 1.25rem;
}

.esago-sf-settings-title {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.esago-sf-settings-lead {
  margin: 0;
  font-size: 0.9rem;
}

.esago-sf-settings-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.esago-sf-pay-stack {
  gap: 1rem;
}

.esago-sf-pay-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  overflow: hidden;
}

.esago-sf-pay-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.8rem;
  border-bottom: 1px solid transparent;
}

.esago-sf-pay-block.is-open .esago-sf-pay-block-head {
  border-bottom-color: var(--border);
}

.esago-sf-pay-block-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.esago-sf-pay-logo {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.esago-sf-pay-logo--img {
  border-radius: 8px;
  border: 1px solid #d4dee9;
  background: #e4eefa;
  overflow: hidden;
  padding: 0.40rem;
  box-sizing: border-box;
}

.esago-sf-pay-logo--img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.esago-sf-pay-mark {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  font-size: 1rem;
  border-radius: 8px;
  border: solid 1px #d4dee9;
}

.esago-sf-pay-block-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.esago-sf-pay-switch {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.esago-sf-pay-switch .esago-switch-ui {
  width: 36px;
  height: 20px;
}

.esago-sf-pay-switch .esago-switch-ui::after {
  width: 14px;
  height: 14px;
  top: 3px;
  left: 3px;
}

.esago-sf-pay-switch input[type="checkbox"]:checked + .esago-switch-ui::after {
  transform: translateX(16px);
}

.esago-sf-pay-block-titles {
  min-width: 0;
}

.esago-sf-pay-block-title {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
}

.esago-sf-pay-status {
  display: inline-flex;
  margin-top: 0.08rem;
  font-size: 0.70rem;
  font-weight: 500;
  color: var(--muted);
}

.esago-sf-pay-status--ok {
  color: #0a7a42;
}

.esago-sf-pay-block-toggle {
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s ease, color 0.12s ease, transform 0.2s ease;
}

.esago-sf-pay-block-toggle svg {
  width: 1rem;
  height: 1rem;
}

.esago-sf-pay-block-toggle:hover {
  background: rgba(15, 23, 42, 0.05);
  color: var(--text);
}

.esago-sf-pay-block.is-open .esago-sf-pay-block-toggle svg {
  transform: rotate(180deg);
}

.esago-sf-pay-block-body {
  display: none;
  padding: 1.1rem 1.05rem 1.35rem;
}

.esago-sf-pay-block.is-open .esago-sf-pay-block-body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

/* Spedizione: sezioni sempre aperte (non accordion pagamenti) */
.esago-sf-ship-block.esago-sf-pay-block .esago-sf-pay-block-body {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: 1.1rem 1.05rem 1.35rem;
}

.esago-sf-pay-block-body .esago-sf-email-actions {
  margin-top: 0.15rem;
  padding-top: 0.35rem;
}

.esago-sf-pay-form {
  display: block;
}

.esago-sf-pay-fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.esago-sf-pay-fields--grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.esago-sf-pay-field--full {
  grid-column: 1 / -1;
}

.esago-sf-pay-field .esago-input {
  width: 100%;
  box-sizing: border-box;
}

.esago-sf-pay-hint {
  margin: 0.3rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
}

.esago-sf-pay-methods {
  padding: 0.85rem 0.95rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--border);
}

.esago-sf-pay-methods-title {
  margin: 0 0 0.25rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

.esago-sf-pay-methods-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.85rem;
  margin-top: 0.65rem;
}

.esago-sf-pay-method {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  color: var(--text);
  cursor: pointer;
}

.esago-sf-pay-method input {
  margin: 0;
  accent-color: var(--accent);
}

.esago-sf-pay-note {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  background: #f5f3ff;
  border: 1px solid #e9e3ff;
}

.esago-sf-pay-note-icon {
  flex-shrink: 0;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 999px;
  background: #ede9fe;
  color: #6d28d9;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.esago-sf-pay-note p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.5;
  color: #5b21b6;
}

.esago-sf-settings-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.15rem 1.2rem 1.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
  min-width: 0;
}

.esago-sf-settings-panel-head {
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.esago-sf-settings-panel-head--flat {
  margin-bottom: 0.85rem;
}

.esago-sf-settings-panel-title {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.esago-sf-settings-panel-head--flat .esago-sf-settings-panel-title {
  margin-bottom: 0;
}

.esago-sf-settings-panel-lead {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--muted);
}

.esago-sf-settings-panel-info {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  cursor: help;
  flex-shrink: 0;
}

.esago-sf-settings-panel-body {
  min-width: 0;
}

/* Blocco tema — stile Shopify */
.esago-sf-theme-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.esago-sf-theme-previews {
  display: grid;
  grid-template-columns: 1fr auto auto 1fr;
  column-gap: 1rem;
  align-items: end;
  padding: 1.1rem 1.1rem 0;
  background: #f3f4f6;
  border-bottom: 1px solid var(--border);
  --esago-sf-preview-height: 15rem;
}

.esago-sf-theme-preview {
  position: relative;
  overflow: hidden;
  border-radius: 10px 10px 0 0;
  border: 1px solid #d8dbe0;
  border-bottom: 0;
  background: #fff;
  box-shadow: 0 -2px 16px rgba(15, 23, 42, 0.08);
}

.esago-sf-theme-preview--desktop {
  grid-column: 2;
  min-width: 0;
}

.esago-sf-theme-preview--mobile {
  grid-column: 3;
  min-width: 0;
}

.esago-sf-theme-preview-frame {
  position: absolute;
  top: 0;
  left: 0;
  border: 0;
  transform-origin: top left;
  pointer-events: none;
  background: #fff;
}

.esago-sf-theme-bar {
  padding: 1rem 1.15rem 1.15rem;
}

.esago-sf-theme-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.esago-sf-theme-bar-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.esago-sf-theme-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.55rem 0.75rem;
  flex-wrap: wrap;
  min-width: 0;
  width: 100%;
}

.esago-sf-theme-meta-start {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  min-width: 0;
}

.esago-sf-theme-preview-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.esago-sf-theme-preview-link:hover {
  color: var(--text);
}

.esago-sf-theme-preview-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
}

.esago-sf-theme-preview-link-icon svg {
  width: 100%;
  height: 100%;
}

.esago-sf-theme-name {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--text);
}

.esago-sf-theme-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.esago-sf-theme-badge--live {
  background: #d8f3dc;
  color: #1b4332;
}

.esago-sf-theme-badge--protected {
  background: #fff4e6;
  color: #9a6b00;
}

.esago-sf-theme-access {
  --esago-sf-access-control-height: 1.95rem;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem;
  width: auto;
  max-width: 100%;
}

.esago-sf-vis-password-hint {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.35;
}

.esago-sf-vis-segment.esago-market-segment {
  display: inline-flex;
  flex: 0 0 auto;
}

.esago-sf-vis-segment .esago-market-segment-btn {
  flex: 0 1 auto;
  min-width: 5.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.28rem;
  box-sizing: border-box;
  height: var(--esago-sf-access-control-height);
  min-height: var(--esago-sf-access-control-height);
  padding: 0 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}

.esago-sf-vis-segment .esago-market-segment-btn:first-child {
  border-radius: 10px 0 0 10px;
}

.esago-sf-vis-segment .esago-market-segment-btn:last-child {
  border-radius: 0 10px 10px 0;
}

.esago-sf-vis-segment .esago-market-segment-btn.is-active {
  color: var(--accent);
}

.esago-sf-vis-segment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 0.82rem;
  height: 0.82rem;
  flex-shrink: 0;
  color: inherit;
}

.esago-sf-vis-segment-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.esago-sf-vis-password-row {
  display: flex;
  align-items: stretch;
  flex: 0 0 auto;
  box-sizing: border-box;
  height: var(--esago-sf-access-control-height);
  min-height: var(--esago-sf-access-control-height);
  min-width: 9.5rem;
  border: 1px solid #d8dbe0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.esago-sf-vis-password-input {
  flex: 1;
  min-width: 4.5rem;
  width: 6.5rem;
  height: 100%;
  border: 0;
  border-radius: 10px 0 0 10px;
  padding: 0 0.55rem 0 0.7rem;
  font-size: 0.72rem;
  line-height: 1;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  outline: none;
  box-shadow: none;
}

.esago-sf-vis-password-save {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  margin: 0;
  padding: 0 0.7rem;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 0 10px 10px 0;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.esago-sf-vis-password-save:hover {
  background: var(--accent-hover);
}

.esago-sf-vis-password-input:focus,
.esago-sf-vis-password-input:focus-visible {
  outline: none;
  box-shadow: none;
}

.esago-sf-vis-password-input::placeholder {
  color: #9ca3af;
}

.esago-sf-vis-password-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.esago-sf-vis-password-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
}

.esago-sf-vis-password .esago-input {
  width: 100%;
  font-size: 0.88rem;
  padding: 0.45rem 0.55rem;
  border-radius: 8px;
}

.esago-sf-vis-public-check {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Blocco SEO — immagine social e meta */
.esago-sf-seo-layout {
  display: grid;
  grid-template-columns: minmax(0, 13.5rem) minmax(0, 1fr);
  gap: 1.35rem;
  align-items: start;
}

.esago-sf-seo-social {
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}

.esago-sf-seo-social-image {
  position: relative;
  min-height: 6.5rem;
  background: #ececec;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.65rem;
  text-align: center;
}

.esago-sf-seo-social-image.has-image {
  min-height: 5.5rem;
  padding: 0;
}

.esago-sf-seo-social-image img {
  display: block;
  width: 100%;
  height: 5.5rem;
  object-fit: cover;
}

.esago-sf-seo-image-remove {
  position: absolute;
  top: 0.4rem;
  right: 0.4rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: #f3f1f8;
  color: var(--accent);
  cursor: pointer;
  box-shadow: none;
}

.esago-sf-seo-image-remove svg {
  display: block;
  width: 0.7rem;
  height: 0.7rem;
}

.esago-sf-seo-image-remove:hover {
  background: #ebe7f6;
  color: var(--accent-hover);
}

.esago-sf-seo-image-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #d0d0d0;
  background: #fff;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
}

.esago-sf-seo-social-image.has-image .esago-sf-seo-image-add,
.esago-sf-seo-social-image.has-image .esago-sf-seo-image-hint {
  display: none;
}

.esago-sf-seo-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.esago-sf-seo-image-hint {
  margin: 0;
  font-size: 0.68rem;
  color: var(--muted);
  line-height: 1.3;
}

.esago-sf-seo-social-text {
  padding: 0.55rem 0.65rem 0.65rem;
  border-top: 1px solid #ececec;
  background: #f7f7f7;
}

.esago-sf-seo-social-host {
  margin: 0 0 0.2rem;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #8a8a8a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.esago-sf-seo-social-title {
  margin: 0 0 0.15rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.esago-sf-seo-social-desc {
  margin: 0;
  font-size: 0.7rem;
  color: #6b6b6b;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.esago-sf-seo-fields {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.esago-sf-seo-field-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}

.esago-sf-seo-field .esago-input {
  width: 100%;
  font-size: 0.88rem;
}

.esago-sf-seo-desc-input,
.esago-sf-seo-title-input {
  width: 100%;
}

.esago-sf-seo-counter {
  margin: 0.3rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.esago-sf-seo-submit {
  align-self: flex-start;
  min-width: 6.5rem;
  padding: 0.55rem 1.1rem;
  border-radius: 10px;
  font-weight: 700;
}

/* Impostazioni negozio — posta in uscita */
.esago-sf-brand-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.esago-sf-brand-field {
  max-width: 28rem;
}

.esago-sf-brand-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.esago-sf-brand-logo-title {
  margin: 0 0 0.2rem;
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--text);
}

.esago-sf-brand-logo-hint {
  margin: 0 0 0.55rem;
  font-size: 0.76rem;
  color: var(--muted);
}

.esago-sf-brand-logo-preview {
  position: relative;
  min-height: 7.5rem;
  border: 1px dashed var(--border);
  border-radius: 12px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.esago-sf-brand-logo-preview--dark {
  background: #1f2937;
  border-color: #374151;
}

.esago-sf-brand-logo-preview--favicon {
  min-height: 7.5rem;
}

.esago-sf-brand-logo-preview img {
  display: block;
  max-width: 100%;
  max-height: 4.5rem;
  object-fit: contain;
}

.esago-sf-brand-logo-preview--favicon img {
  max-width: 2.75rem;
  max-height: 2.75rem;
}

.esago-sf-brand-logo-preview.has-image .esago-sf-brand-logo-add {
  display: none;
}

.esago-sf-brand-logo-add {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 5rem;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
}

.esago-sf-brand-logo-preview--dark .esago-sf-brand-logo-add {
  color: #e5e7eb;
}

.esago-sf-brand-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.esago-sf-email-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.esago-sf-email-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}
.esago-sf-email-field--narrow {
  max-width: 9rem;
}

.esago-sf-email-port-security {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.esago-sf-email-port-security__port {
  flex: 0 0 5.75rem;
  min-width: 0;
}

.esago-sf-email-port-security__security {
  flex: 1;
  min-width: 0;
}

.esago-sf-email-port-security__port .esago-input,
.esago-sf-email-port-security__security .esago-input {
  width: 100%;
}
.esago-sf-email-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
}
.esago-sf-email-field .esago-input {
  width: 100%;
  box-sizing: border-box;
}
.esago-sf-email-hint {
  margin: 0.3rem 0 0;
  font-size: 0.75rem;
  color: var(--muted);
}
.esago-sf-auth-guide {
  margin-bottom: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f8fafc;
}
.esago-sf-auth-guide-title {
  margin: 0 0 0.65rem;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--text);
}
.esago-sf-auth-guide-steps {
  margin: 0 0 1rem;
  padding-left: 1.2rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--muted);
}
.esago-sf-auth-guide-steps li + li {
  margin-top: 0.35rem;
}
.esago-sf-auth-redirects-title {
  margin: 0 0 0.45rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}
.esago-sf-auth-redirects-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}
.esago-sf-auth-redirects-list code {
  display: block;
  padding: 0.45rem 0.55rem;
  border-radius: 6px;
  background: #fff;
  border: 1px solid var(--border);
  font-size: 0.78rem;
  word-break: break-all;
}
.esago-sf-auth-redirects-hint {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}
.esago-sf-auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.esago-sf-auth-enable {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
}
.esago-sf-auth-enable input {
  width: 1rem;
  height: 1rem;
  accent-color: #f57663;
}
.esago-sf-auth-status {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}
.esago-sf-auth-status--ok {
  color: #087c72;
}
.esago-sf-email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.esago-sf-email-save {
  min-width: 10rem;
  font-weight: 700;
}
.esago-sf-email-test {
  margin-top: 1.15rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--border);
}
.esago-sf-email-test-title {
  margin: 0 0 0.25rem;
  font-size: 0.9rem;
  font-weight: 700;
}
.esago-sf-email-test-lead {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.45;
}
.esago-sf-email-test-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.esago-sf-email-test-input {
  flex: 1;
  min-width: 12rem;
  max-width: 22rem;
}
.esago-sf-email-test-status {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  font-weight: 600;
}
.esago-sf-email-test-status.is-ok {
  color: #087c72;
}
.esago-sf-email-test-status.is-error {
  color: #c62828;
}

@media (max-width: 960px) {
  .esago-sf-settings-stack {
    max-width: none;
  }

  .esago-sf-seo-layout {
    grid-template-columns: 1fr;
  }

  .esago-sf-email-grid {
    grid-template-columns: 1fr;
  }

  .esago-sf-email-field--narrow {
    max-width: none;
  }

  .esago-sf-email-port-security {
    flex-direction: column;
    gap: 0.85rem;
  }

  .esago-sf-email-port-security__port {
    flex-basis: auto;
  }

  .esago-sf-brand-logos {
    grid-template-columns: 1fr;
  }

  .esago-sf-pay-fields--grid,
  .esago-sf-pay-methods-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .esago-sf-settings-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .esago-sf-theme-previews {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 1rem;
  }

  .esago-sf-theme-preview--mobile {
    display: none;
  }

  .esago-sf-theme-preview--desktop {
    grid-column: auto;
    width: 100%;
    max-width: 100%;
  }

  .esago-sf-theme-access {
    width: 100%;
  }

  .esago-sf-vis-password-row {
    flex: 1 1 auto;
    min-width: 0;
  }

  .esago-sf-vis-password-input {
    width: auto;
  }
}

/* Account — lista funzioni + popup */
.esago-account-list-wrap {
  max-width: 34rem;
}
.esago-account-list {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}
.esago-account-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.9rem 1rem;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: background 0.12s ease;
}
.esago-account-item:last-child {
  border-bottom: none;
}
.esago-account-item:hover {
  background: rgba(15, 23, 42, 0.03);
}
.esago-account-item--link {
  text-decoration: none;
  color: inherit;
}
.esago-account-vidaxl-back {
  margin: 0 0 0.35rem;
}
.esago-account-vidaxl-back-link {
  font-size: 0.875rem;
}
.esago-account-vidaxl-feed-downloads {
  margin: 0.75rem 0 0.35rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.esago-account-item-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9px;
  flex-shrink: 0;
}
.esago-account-item-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}
.esago-account-item-icon--feed {
  background: rgba(13, 148, 136, 0.12);
  color: #0d9488;
}
.esago-account-item-icon--2fa {
  background: var(--accent-soft);
  color: var(--accent);
}
.esago-account-item-icon--users {
  background: rgba(79, 70, 229, 0.16);
  color: #4f46e5;
  box-shadow: inset 0 0 0 1px rgba(79, 70, 229, 0.12);
}
.esago-account-item-icon--media {
  background: rgba(234, 88, 12, 0.12);
  color: #ea580c;
  box-shadow: inset 0 0 0 1px rgba(234, 88, 12, 0.14);
}
.esago-account-page-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 11px;
}
.esago-account-page-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}
.esago-account-block-icon {
  width: 2rem;
  height: 2rem;
}
.esago-account-block-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}
.esago-sf-pay-hint--lead {
  margin: 0 0 1rem;
}
.esago-team-perms-card {
  margin-top: 0.75rem;
}
.esago-team-perms-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.esago-team-perms-lead {
  margin: 0.35rem 0 0;
}
.esago-team-perms-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  flex-shrink: 0;
}
.esago-team-perms-tree {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.esago-team-perm-macro {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}
.esago-team-perm-macro-head {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.85rem 0.9rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0));
}
.esago-team-perm-macro-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  flex-shrink: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--macro-bg, #eff6ff);
  color: var(--macro-fg, #2563eb);
  border: 1px solid color-mix(in srgb, var(--macro-fg, #2563eb) 18%, transparent);
}
.esago-team-perm-macro-titles {
  flex: 1;
  min-width: 0;
}
.esago-team-perm-macro-desc {
  margin: 0.15rem 0 0 1.85rem;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}
.esago-team-perm-macro-body {
  padding: 0.15rem 0.65rem 0.75rem;
  border-top: 1px solid var(--border);
  background: #fafbfc;
}
.esago-team-perm-branch {
  margin-top: 0.35rem;
}
.esago-team-perm-branch-head {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 2rem;
  padding: 0.15rem 0.35rem;
  border-radius: 8px;
}
.esago-team-perm-branch-head:hover {
  background: rgba(15, 23, 42, 0.03);
}
.esago-team-perm-branch.has-children > .esago-team-perm-branch-head {
  font-weight: 600;
}
.esago-team-perm-branch-body {
  margin-left: 1.15rem;
  padding-left: 0.65rem;
  border-left: 2px solid rgba(148, 163, 184, 0.35);
}
.esago-team-perm-branch[data-perm-depth="2"] > .esago-team-perm-branch-head .esago-team-perm-label {
  font-weight: 600;
}
.esago-team-perm-toggle,
.esago-team-perm-toggle-spacer {
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}
.esago-team-perm-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.esago-team-perm-toggle:hover {
  background: rgba(15, 23, 42, 0.06);
  color: var(--text);
}
.esago-team-perm-toggle svg {
  width: 0.9rem;
  height: 0.9rem;
  transition: transform 0.18s ease;
}
.esago-team-perm-macro.is-open > .esago-team-perm-macro-head .esago-team-perm-toggle svg,
.esago-team-perm-branch.is-open > .esago-team-perm-branch-head .esago-team-perm-toggle svg {
  transform: rotate(0deg);
}
.esago-team-perm-macro:not(.is-open) > .esago-team-perm-macro-head .esago-team-perm-toggle svg,
.esago-team-perm-branch:not(.is-open) > .esago-team-perm-branch-head .esago-team-perm-toggle svg {
  transform: rotate(-90deg);
}
.esago-team-perm-check {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  cursor: pointer;
  user-select: none;
}
.esago-team-perm-check--macro .esago-team-perm-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}
.esago-team-perm-label {
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--text);
}
.esago-team-perm-check input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex-shrink: 0;
  accent-color: var(--accent, #2563eb);
}
.esago-team-perm-branch:not(.has-children) .esago-team-perm-label {
  font-weight: 500;
  color: #334155;
}
.esago-no-access {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 8rem);
  padding: 2rem 1rem;
}
.esago-no-access-card {
  max-width: 28rem;
  width: 100%;
  text-align: center;
  padding: 2rem 1.5rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}
.esago-no-access-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.14);
  color: #d97706;
  margin-bottom: 1rem;
}
.esago-no-access-icon svg {
  width: 1.5rem;
  height: 1.5rem;
}
.esago-no-access-title {
  margin: 0 0 0.65rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}
.esago-no-access-lead {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}
.esago-no-access-hint {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}
.esago-no-access-logout {
  margin: 0;
}
@media (max-width: 720px) {
  .esago-team-perms-head {
    flex-direction: column;
  }
  .esago-team-perm-macro-desc {
    margin-left: 0;
  }
}
.esago-account-item-body {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
  flex: 1;
}
.esago-account-item-title {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}
.esago-account-item-meta {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.35;
}
.esago-account-item-chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #b0b5bd;
}
.esago-account-item-chevron svg {
  width: 1rem;
  height: 1rem;
}
.esago-account-modal {
  justify-content: center;
  padding: 1rem;
  z-index: 300;
}
.esago-account-modal .esago-modal-backdrop {
  background: rgba(15, 23, 42, 0.38);
}
.esago-account-modal-dialog {
  max-width: min(30rem, 96vw);
  padding: 1rem 1.1rem 1.05rem;
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.16);
}
.esago-account-modal-dialog--2fa {
  max-width: min(28rem, 96vw);
}
.esago-account-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.esago-account-modal-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}
.esago-account-modal-close {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  margin: -0.1rem -0.1rem 0 0;
  padding: 0;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.12s ease, background 0.12s ease;
}
.esago-account-modal-close:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.06);
}
.esago-account-modal-body {
  font-size: 0.88rem;
}
.esago-account-panel-lead {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  line-height: 1.5;
}
.esago-account-feed-actions {
  flex-wrap: wrap;
  gap: 0.65rem;
}
.esago-account-feed-meta {
  margin: 0.85rem 0 0;
  font-size: 0.8rem;
}
.esago-account-2fa-desc--panel {
  margin: 0 0 0.65rem;
  padding-left: 0;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--muted);
}
.esago-account-2fa-status--panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}
.esago-account-2fa-since {
  font-size: 0.78rem;
  white-space: nowrap;
}
.esago-account-2fa-hint {
  margin: 0 0 0.85rem;
  font-size: 0.84rem;
}
.esago-account-2fa-form {
  display: grid;
  gap: 0.75rem;
}
.esago-account-2fa-code {
  max-width: 11rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.08em;
}
.esago-account-2fa-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.esago-account-2fa-setup-intro {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  color: var(--muted);
}
.esago-account-2fa-setup-grid {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.85rem 1rem;
  align-items: center;
}
.esago-account-2fa-setup-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}
.esago-account-2fa-setup-form {
  align-self: center;
}
.esago-account-2fa-qr-wrap {
  display: flex;
  justify-content: center;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
}
.esago-account-2fa-qr {
  display: block;
  width: 132px;
  height: 132px;
}
.esago-account-2fa-issuer {
  margin: 0;
  font-size: 0.75rem;
  text-align: center;
  line-height: 1.3;
}
body.esago-account-modal-open {
  overflow: hidden;
}
@media (max-width: 520px) {
  .esago-account-2fa-setup-grid {
    grid-template-columns: 1fr;
    justify-items: center;
  }
  .esago-account-2fa-setup-form {
    width: 100%;
    max-width: 16rem;
  }
}

/* Clienti negozio */
.esago-btn-dark {
  background: #111827;
  color: #fff;
  border: 1px solid #111827;
}
.esago-btn-dark:hover {
  background: #1f2937;
  border-color: #1f2937;
  color: #fff;
}
.esago-customers-page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem 1.25rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.esago-customers-head-main {
  min-width: 0;
}
.esago-customers-stats {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.esago-customers-stat-sep {
  opacity: 0.55;
}
.esago-customers-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.esago-customers-head-actions-desktop {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.esago-customers-head-tools-mobile {
  position: relative;
}
.esago-customers-head-tools-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}
.esago-customers-head-tools-panel {
  position: fixed;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 0.1rem;
  z-index: 1200;
  min-width: 11.5rem;
  margin: 0;
  padding: 0.3rem;
  border: 1px solid #e3e3e3;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.esago-customers-head-tools-panel[hidden] {
  display: none !important;
}
.esago-customers-head-tools-item {
  display: block;
  width: auto;
  min-width: 0;
  align-self: stretch;
  padding: 0.55rem 0.75rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #303030;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font-family: inherit;
  box-sizing: border-box;
}
.esago-customers-head-tools-item:hover {
  background: rgba(0, 0, 0, 0.04);
  color: #111827;
}
.esago-customers-head-tools-panel .esago-customers-import-form {
  display: block;
  width: 100%;
}
.esago-customers-head-tools-panel .esago-customers-import-label {
  margin: 0;
}
.esago-customers-import-form {
  margin: 0;
}
.esago-customers-import-label {
  cursor: pointer;
  margin: 0;
}

@media (max-width: 900px) {
  .esago-customers-head-actions {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }

  .esago-customers-head-actions-desktop {
    display: none !important;
  }

  .esago-customers-head-tools-mobile {
    display: block;
    flex: 0 0 auto;
  }

  .esago-customers-head-add {
    flex: 1 1 auto;
    justify-content: center;
    min-width: 0;
    white-space: nowrap;
  }
}

@media (min-width: 901px) {
  .esago-customers-head-tools-mobile {
    display: none !important;
  }
}

.esago-customers-index {
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
}
.esago-customers-toolbar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.45rem 0.35rem 0.65rem;
  background: #fff;
  border-bottom: 1px solid #ebebeb;
  border-radius: 12px 12px 0 0;
  position: relative;
  z-index: 2;
}
.esago-customers-search-form {
  flex: 1;
  min-width: 0;
}
.esago-customers-search-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.esago-customers-search-icon {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--muted);
  flex-shrink: 0;
}
.esago-customers-search-input {
  flex: 1;
  width: 100%;
  min-width: 0;
  padding: 0.45rem 0;
  border: none;
  border-radius: 0;
  font: inherit;
  font-size: 0.88rem;
  color: #303030;
  background: transparent;
  box-shadow: none;
}
.esago-customers-search-input:focus {
  outline: none;
  box-shadow: none;
}
.esago-customers-search-input::placeholder {
  color: #8a8a8a;
}
.esago-customers-search-input::-webkit-search-cancel-button,
.esago-customers-search-input::-webkit-search-decoration,
.esago-customers-search-input::-webkit-search-results-button {
  display: none;
  -webkit-appearance: none;
}
.esago-customers-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  flex-shrink: 0;
}
.esago-customers-toolbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.12s ease, background 0.12s ease;
}
.esago-customers-toolbar-btn:hover {
  color: var(--accent);
  background: var(--accent-soft);
}
.esago-customers-toolbar-delete {
  color: var(--muted);
  background: transparent;
}
.esago-customers-toolbar-delete:hover {
  color: #e11d48;
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
}
.esago-customers-toolbar-btn svg {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
}
.esago-customers-columns {
  position: relative;
  flex-shrink: 0;
}
.esago-customers-columns-trigger {
  list-style: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  transition: color 0.12s ease, background 0.12s ease;
}
.esago-customers-columns-trigger:hover,
.esago-customers-columns[open] > .esago-customers-columns-trigger {
  color: var(--accent);
  background: var(--accent-soft);
}
.esago-customers-columns-trigger::-webkit-details-marker {
  display: none;
}
.esago-customers-columns-trigger svg {
  display: block;
  width: 1.125rem;
  height: 1.125rem;
}
.esago-customers-table-wrap {
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x pan-y;
}
.esago-customers-index:has(.esago-customers-table-wrap) .esago-customers-toolbar {
  border-radius: 12px 12px 0 0;
}
.esago-customers-index:not(:has(.esago-customers-table-wrap)) .esago-customers-toolbar {
  border-bottom: none;
  border-radius: 12px;
}
.esago-table--customers th {
  background: #f7f7f7;
  color: #616161;
  font-size: 0.8rem;
  font-weight: 550;
  border-bottom: 1px solid #ebebeb;
}
.esago-table--customers td {
  border-bottom: 1px solid #ebebeb;
  font-size: 0.84rem;
  color: #303030;
}
.esago-table--customers tr:last-child td {
  border-bottom: none;
}
.esago-customers-index .esago-pagination {
  padding: 0.65rem 0.85rem;
  border-top: 1px solid #ebebeb;
}
.esago-customers-columns-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 0.35rem);
  z-index: 120;
  width: min(300px, 85vw);
  max-height: min(520px, 70vh);
  overflow: auto;
  background: #fff;
  border: 1px solid #e3e3e3;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  padding: 0.5rem;
}
.esago-customers-columns-panel.is-floating {
  position: fixed;
  right: auto;
  min-height: 300px;
}
.esago-customers-columns-title {
  margin: 0.15rem 0.45rem 0.35rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #616161;
}
.esago-customers-columns-list {
  display: grid;
  gap: 0.1rem;
}
.esago-customers-columns-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.4rem;
  border-radius: 8px;
  font-size: 0.88rem;
  color: #303030;
  position: relative;
  transition: background 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}
.esago-customers-columns-row:hover {
  background: rgba(0, 0, 0, 0.04);
}
.esago-customers-columns-row.is-dragging {
  background: var(--accent-soft);
  box-shadow: 0 4px 14px rgba(93, 9, 236, 0.14);
  z-index: 2;
}
.esago-customers-columns-row.is-drop-before::before,
.esago-customers-columns-row.is-drop-after::after {
  content: "";
  position: absolute;
  left: 0.35rem;
  right: 0.35rem;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  pointer-events: none;
}
.esago-customers-columns-row.is-drop-before::before {
  top: -1px;
}
.esago-customers-columns-row.is-drop-after::after {
  bottom: -1px;
}
.esago-customers-columns-drag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  color: var(--muted);
  cursor: grab;
  flex-shrink: 0;
  touch-action: none;
}
.esago-customers-columns-drag svg {
  width: 1rem;
  height: 1rem;
}
.esago-customers-columns-drag:active {
  cursor: grabbing;
  color: var(--accent);
}
.esago-customers-columns-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  height: 1.15rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
.esago-customers-columns-toggle:hover {
  border-color: var(--accent);
}
.esago-customers-columns-toggle[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-ring);
}
.esago-customers-columns-check {
  width: 0.75rem;
  height: 0.75rem;
  color: #fff;
  opacity: 0;
}
.esago-customers-columns-toggle[aria-pressed="true"] .esago-customers-columns-check {
  opacity: 1;
}
.esago-customers-columns-label {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
  user-select: none;
}
.esago-table--customers .esago-customers-col-check {
  width: 2rem;
}
.esago-table--customers .esago-customer-row {
  cursor: pointer;
}
.esago-table--customers .esago-customer-row:hover td {
  background: rgba(0, 0, 0, 0.03);
}
.esago-badge--success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
  font-weight: 600;
}
.esago-badge--muted {
  background: rgba(15, 23, 42, 0.06);
  color: #64748b;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-weight: 600;
}
.esago-customers-empty {
  padding: 2.5rem 1.5rem;
  text-align: center;
}
.esago-customer-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
  margin-bottom: 1rem;
}
.esago-customer-form-checks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 1rem;
  margin-bottom: 1rem;
}
.esago-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
}
.esago-customer-form-panel {
  max-width: 760px;
}
@media (max-width: 760px) {
  .esago-customer-form-grid,
  .esago-customer-form-checks {
    grid-template-columns: 1fr;
  }
}

.esago-btn-danger {
  background: #dc2626;
  color: #fff;
  border: 1px solid #dc2626;
}
.esago-btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}

.esago-customers-head-check-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.esago-customers-head-menu {
  position: fixed;
  z-index: 1200;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
  padding: 0.35rem;
}
.esago-customers-head-menu[hidden] {
  display: none !important;
}
.esago-customers-head-menu-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.5rem 0.55rem;
  border-radius: 6px;
  font: inherit;
  font-size: 0.86rem;
  cursor: pointer;
  color: var(--text);
}
.esago-customers-head-menu-item svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
}
.esago-customers-head-menu-item:hover:not(:disabled) {
  background: rgba(15, 23, 42, 0.05);
}
.esago-customers-head-menu-item--danger {
  color: #dc2626;
}
.esago-customers-head-menu-item--danger.is-disabled,
.esago-customers-head-menu-item:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.esago-table--customers .esago-customers-col-check input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}
.esago-table--customers .esago-customer-row.is-selected {
  background: var(--accent-soft);
}
.esago-table--customers .esago-customer-row.is-selected:hover td {
  background: var(--accent-soft);
}
.esago-customers-merge-list {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 0.75rem;
}
.esago-customers-merge-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}
.esago-customers-merge-item:has(input:checked) {
  border-color: #111827;
  background: rgba(17, 24, 39, 0.04);
}
.esago-customers-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 120;
  background: #111827;
  color: #fff;
  padding: 0.65rem 1rem;
  border-radius: 999px;
  font-size: 0.84rem;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.22);
}
.esago-customers-toast[hidden] {
  display: none !important;
}
body.esago-customers-modal-open {
  overflow: hidden;
}

/* Clienti — conferma eliminazione (card centrata, stile notifica) */
.esago-customers-delete-modal {
  justify-content: center;
  align-items: center;
  padding: 1.25rem;
  z-index: 1200;
}
.esago-customers-delete-modal .esago-modal-backdrop {
  background: rgba(15, 23, 42, 0.32);
}
.esago-customers-delete-dialog {
  position: relative;
  max-width: 21.5rem;
  width: 100%;
  padding: 1.75rem 1.5rem 1.35rem;
  margin: 0;
  border: none;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
  text-align: center;
}
.esago-customers-delete-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.12s ease, background 0.12s ease;
}
.esago-customers-delete-close:hover {
  color: #111827;
  background: #f3f4f6;
}
.esago-customers-delete-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 0.25rem;
}
.esago-customers-delete-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.85rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff1f2 0%, #ffe4e6 100%);
  color: #e11d48;
}
.esago-customers-delete-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}
.esago-customers-delete-title {
  margin: 0 0 0.55rem;
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.35;
  color: #111827;
  letter-spacing: -0.01em;
}
.esago-customers-delete-text {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.55;
  color: #6b7280;
  max-width: 17rem;
}
.esago-customers-delete-form {
  margin: 1.35rem 0 0;
}
.esago-customers-delete-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
.esago-customers-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 2.65rem;
  padding: 0.55rem 0.85rem;
  border-radius: 0.7rem;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease, transform 0.12s ease;
}
.esago-customers-delete-btn:active {
  transform: scale(0.98);
}
.esago-customers-delete-btn--cancel {
  border: 1.5px solid #111827;
  background: #fff;
  color: #111827;
}
.esago-customers-delete-btn--cancel:hover {
  background: #f9fafb;
}
.esago-customers-delete-btn--confirm {
  border: 1.5px solid #111827;
  background: #111827;
  color: #fff;
}
.esago-customers-delete-btn--confirm:hover {
  background: #1f2937;
  border-color: #1f2937;
}

/* Shopify-style customer form + modali condivisi (es. indirizzo, sconti) */
.esago-sf-customer-page,
.esago-sf-address-modal {
  --sf-bg: #f6f6f7;
  --sf-card: #ffffff;
  --sf-text: #303030;
  --sf-muted: #616161;
  --sf-border: #e3e3e3;
  --sf-input-border: #c9cccf;
  --sf-link: #005bd3;
  --sf-radius: 8px;
  --sf-shadow: 0 1px 0 rgba(0, 0, 0, 0.05);
  color: var(--sf-text);
  font-size: 0.8125rem;
  line-height: 1.45;
}
.esago-sf-customer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.esago-sf-customer-head-main {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.esago-sf-customer-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  color: var(--sf-muted);
  text-decoration: none;
  flex-shrink: 0;
}
.esago-sf-customer-back:hover {
  background: rgba(0, 0, 0, 0.05);
  color: var(--sf-text);
}
.esago-sf-customer-back svg {
  width: 1rem;
  height: 1rem;
}
.esago-sf-customer-title-wrap {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.esago-sf-customer-title-icon {
  display: inline-flex;
  color: var(--sf-muted);
}
.esago-sf-customer-title-icon svg {
  width: 1.15rem;
  height: 1.15rem;
}
.esago-sf-customer-title {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--sf-text);
}
.esago-sf-customer-head-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.esago-sf-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.esago-sf-btn--ghost {
  background: var(--sf-card);
  border-color: var(--sf-border);
  color: var(--sf-text);
  box-shadow: var(--sf-shadow);
}
.esago-sf-btn--ghost:hover {
  background: #fafafa;
}
.esago-sf-btn--primary {
  background: #303030;
  border-color: #303030;
  color: #fff;
}
.esago-sf-btn--primary:hover {
  background: #1a1a1a;
  border-color: #1a1a1a;
}
.esago-sf-customer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 1rem;
  align-items: start;
}
.esago-sf-customer-main,
.esago-sf-customer-aside {
  display: grid;
  gap: 1rem;
  min-width: 0;
}
.esago-sf-card {
  background: var(--sf-card);
  border: 1px solid var(--sf-border);
  border-radius: var(--sf-radius);
  box-shadow: var(--sf-shadow);
  padding: 1rem 1.05rem 1.05rem;
}
.esago-sf-card--aside {
  padding-top: 0.85rem;
}
.esago-sf-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
}
.esago-sf-card-title {
  margin: 0 0 0.15rem;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--sf-text);
}
.esago-sf-card-subtitle {
  margin: 0;
  font-size: 0.75rem;
  color: var(--sf-muted);
}
.esago-sf-card-icon {
  color: var(--sf-muted);
  opacity: 0.85;
}
.esago-sf-card-icon svg {
  width: 1rem;
  height: 1rem;
}
.esago-sf-field {
  margin-bottom: 0.85rem;
}
.esago-sf-field--flush {
  margin-bottom: 0;
}
.esago-sf-field-row {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}
.esago-sf-field-row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.esago-sf-field-row .esago-sf-field {
  margin-bottom: 0;
}
.esago-sf-label {
  display: block;
  margin-bottom: 0.28rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--sf-text);
}
.esago-sf-input,
.esago-sf-textarea,
.esago-sf-select {
  display: block;
  width: 100%;
  min-height: 2rem;
  padding: 0.35rem 0.65rem;
  border: 1px solid var(--sf-input-border, #c9cccf);
  border-radius: 6px;
  background: #fff;
  color: var(--sf-text, #303030);
  font: inherit;
  font-size: 0.8125rem;
  line-height: 1.4;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.esago-sf-textarea {
  min-height: 5.5rem;
  resize: vertical;
}
.esago-sf-input:focus,
.esago-sf-textarea:focus,
.esago-sf-select:focus {
  outline: none;
  border-color: #005bd3;
  box-shadow: 0 0 0 1px #005bd3;
}
.esago-sf-hint,
.esago-sf-legal,
.esago-sf-aside-hint {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--sf-muted);
}
.esago-sf-legal {
  margin-top: 0.65rem;
  padding-top: 0.15rem;
}
.esago-sf-phone-field {
  position: relative;
}
.esago-sf-phone-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--sf-input-border);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.esago-sf-phone-field .esago-sf-phone-wrap:focus-within {
  border-color: #005bd3;
  box-shadow: 0 0 0 1px #005bd3;
}
.esago-sf-phone-prefix {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.65rem;
  border-right: 1px solid var(--sf-border);
  background: #fafbfb;
  color: var(--sf-text);
  font-size: 0.8125rem;
  white-space: nowrap;
}
.esago-sf-phone-flag {
  font-size: 0.95rem;
  line-height: 1;
}
.esago-sf-phone-wrap .esago-sf-input--phone {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  min-height: 2rem;
}
.esago-sf-phone-wrap .esago-sf-input--phone:focus {
  box-shadow: none;
}
.esago-sf-marketing {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.15rem;
}
.esago-sf-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.8125rem;
  line-height: 1.4;
  color: var(--sf-text);
  cursor: pointer;
}
.esago-sf-check--marketing.is-disabled {
  color: #8c9196;
  cursor: not-allowed;
}
.esago-sf-checkbox {
  width: 1rem;
  height: 1rem;
  margin: 0.1rem 0 0;
  accent-color: #303030;
  flex-shrink: 0;
}
.esago-sf-check--marketing.is-disabled .esago-sf-checkbox {
  opacity: 0.45;
}
.esago-sf-address-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--sf-border);
  border-radius: 6px;
  background: #fafbfb;
  color: var(--sf-text);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}
.esago-sf-address-toggle:hover {
  background: #f1f2f3;
}
.esago-sf-address-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  font-size: 1rem;
  line-height: 1;
  color: var(--sf-muted);
}
.esago-sf-address-toggle-text {
  flex: 1;
}
.esago-sf-address-toggle-chevron {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--sf-muted);
  flex-shrink: 0;
}
.esago-sf-address-panel {
  margin-top: 0.85rem;
  padding-top: 0.15rem;
}
.esago-sf-address-panel[hidden],
[data-esago-discount-panel][hidden] {
  display: none !important;
}
.esago-sf-form-errors {
  margin-bottom: 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #fecaca;
  border-radius: 6px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.8125rem;
}
.esago-sf-field-error {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.75rem;
  color: #b42318;
}
.esago-sf-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;
}
@media (max-width: 980px) {
  .esago-sf-customer-layout {
    grid-template-columns: 1fr;
  }
  .esago-sf-customer-aside {
    order: 2;
  }
}
@media (max-width: 640px) {
  .esago-sf-field-row--2 {
    grid-template-columns: 1fr;
  }
  .esago-sf-field-row--3 {
    grid-template-columns: 1fr;
  }
  .esago-sf-customer-head {
    align-items: flex-start;
  }
  .esago-sf-customer-head-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

.esago-sf-field-row--3 {
  grid-template-columns: 0.85fr 1.15fr 1fr;
}
.esago-sf-field-row--2-cap-city {
  grid-template-columns: 0.9fr 1.1fr;
}
.esago-sf-field-row--2-cap-city [data-province-wrap] {
  display: none !important;
}
.esago-sf-select-wrap {
  position: relative;
}
.esago-sf-select-wrap .esago-sf-select {
  appearance: none;
  padding-right: 2rem;
}
.esago-sf-select-caret--field {
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 0.9rem;
  height: 0.9rem;
  color: var(--sf-muted);
  pointer-events: none;
}
.esago-sf-input-icon-wrap {
  position: relative;
}
.esago-sf-input-icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--sf-muted);
  pointer-events: none;
}
.esago-sf-input--with-icon {
  padding-left: 2.15rem;
}
.esago-sf-address-summary {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  background: #fafbfb;
  border: 1px solid var(--sf-border);
  border-radius: 6px;
  font: inherit;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--sf-text);
  white-space: pre-wrap;
}
.esago-sf-address-book {
  display: grid;
  gap: 0.65rem;
}
.esago-sf-address-book-item {
  padding: 0.65rem 0.75rem;
  background: #fafbfb;
  border: 1px solid var(--sf-border);
  border-radius: 6px;
}
.esago-sf-address-book-item.is-default {
  border-color: #f57663;
  box-shadow: 0 0 0 1px rgba(245, 118, 99, 0.2);
}
.esago-sf-address-book-item__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.esago-sf-address-book-item__head strong {
  font-size: 0.8125rem;
  color: var(--sf-text);
}
.esago-sf-address-book-badge {
  flex-shrink: 0;
  font-size: 0.625rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #f57663;
  background: #fff3f0;
  border-radius: 999px;
  padding: 0.2rem 0.45rem;
}
.esago-sf-address-book-item__body {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--sf-text);
}
.esago-sf-address-book-line {
  margin: 0;
}
.esago-sf-address-book-line + .esago-sf-address-book-line {
  margin-top: 0.15rem;
}
.esago-sf-hint--warn {
  margin-top: 0.5rem;
  color: #9a3412;
}
.esago-sf-phone-prefix--picker {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0 0.65rem;
  border: 0;
  border-right: 1px solid var(--sf-border);
  background: #fafbfb;
  color: var(--sf-text);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  min-height: 2rem;
  flex-shrink: 0;
}
.esago-sf-phone-prefix--picker .esago-sf-select-caret {
  width: 0.75rem;
  height: 0.75rem;
  color: var(--sf-muted);
}
.esago-sf-phone-prefix-panel {
  position: fixed;
  z-index: 1200;
  width: min(320px, calc(100vw - 16px));
  background: #fff;
  border: 1px solid var(--sf-border);
  border-radius: 8px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}
.esago-sf-phone-prefix-list {
  max-height: min(320px, 55vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}
.esago-sf-phone-prefix-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  padding: 0.5rem 0.65rem;
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
}
.esago-sf-phone-prefix-item:hover {
  background: #f6f6f7;
}
.esago-sf-phone-prefix-dial {
  color: var(--sf-muted);
  font-size: 0.75rem;
}
.esago-sf-address-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2.5rem 1rem 1rem;
  overflow: auto;
}
.esago-sf-address-modal[hidden] {
  display: none !important;
}
.esago-sf-address-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgb(37 36 52 / 57%);
  border: 0;
}
.esago-sf-address-modal-dialog {
  position: relative;
  z-index: 1;
  width: min(680px, 100%);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.22);
  overflow: hidden;
}
.esago-sf-address-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--sf-border);
}
.esago-sf-address-modal-title {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--sf-text);
}
.esago-sf-address-modal-close {
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--sf-muted);
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 6px;
}
.esago-sf-address-modal-close:hover {
  background: #f1f2f3;
  color: var(--sf-text);
}
.esago-sf-address-modal-body {
  padding: 1rem 1.15rem 0.25rem;
  max-height: calc(100vh - 12rem);
  overflow: auto;
}
.esago-sf-address-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
  padding: 0.85rem 1.15rem 1rem;
  border-top: 1px solid var(--sf-border);
  background: #fff;
}
body.esago-sf-address-modal-open {
  overflow: hidden;
}

.esago-sf-tags-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-height: 2.15rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--sf-input-border);
  border-radius: 6px;
  background: #fff;
  cursor: text;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.esago-sf-tags-input:focus-within {
  border-color: #005bd3;
  box-shadow: 0 0 0 1px #005bd3;
}
.esago-sf-tags-chips {
  display: contents;
}
.esago-sf-tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  max-width: 100%;
  padding: 0.15rem 0.4rem 0.15rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.35;
}
.esago-sf-tag-chip--green {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.esago-sf-tag-chip--purple {
  background: #ede9fe;
  color: #5b21b6;
  border: 1px solid #ddd6fe;
}
.esago-sf-tag-chip--orange {
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fed7aa;
}
.esago-sf-tag-chip--blue {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}
.esago-sf-tag-chip--rose {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.esago-sf-tag-chip--green .esago-sf-tag-chip-remove {
  color: #166534;
}
.esago-sf-tag-chip--purple .esago-sf-tag-chip-remove {
  color: #5b21b6;
}
.esago-sf-tag-chip--orange .esago-sf-tag-chip-remove {
  color: #c2410c;
}
.esago-sf-tag-chip--blue .esago-sf-tag-chip-remove {
  color: #1d4ed8;
}
.esago-sf-tag-chip--rose .esago-sf-tag-chip-remove {
  color: #b91c1c;
}
.esago-sf-tag-chip-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.esago-sf-tag-chip-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  padding: 0;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #616161;
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}
.esago-sf-tag-chip-remove:hover {
  background: rgba(0, 0, 0, 0.06);
  opacity: 0.85;
}
.esago-sf-tags-field {
  flex: 1 1 5rem;
  min-width: 4.5rem;
  border: 0;
  outline: none;
  background: transparent;
  padding: 0.15rem 0.2rem;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--sf-text);
}
.esago-sf-tags-field::placeholder {
  color: #8c9196;
}

/* Impostazioni spedizione negozio */
.esago-sf-ship-block-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: #f1f2f3;
  color: #616161;
  flex-shrink: 0;
}
.esago-sf-ship-block-icon svg {
  width: 1.05rem;
  height: 1.05rem;
}
.esago-sf-ship-block-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
}
.esago-sf-ship-block-sub {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.esago-sf-ship-country-search-wrap {
  position: relative;
  margin-bottom: 0.75rem;
}
.esago-sf-ship-country-search-icon {
  position: absolute;
  left: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  color: var(--muted);
  pointer-events: none;
}
.esago-sf-ship-country-search {
  padding-left: 2rem;
}
.esago-sf-ship-country-list {
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
}
.esago-sf-ship-country-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.esago-sf-ship-country-row[hidden] {
  display: none !important;
}
.esago-sf-ship-country-row:last-child {
  border-bottom: 0;
}
.esago-sf-ship-country-name {
  flex: 1;
  font-size: 0.875rem;
}
.esago-sf-ship-country-toggle {
  margin: 0;
  position: relative;
  flex-shrink: 0;
}
.esago-sf-ship-country-toggle input {
  position: absolute;
  opacity: 0;
  width: 2rem;
  height: 1.15rem;
  margin: 0;
  cursor: pointer;
}
.esago-sf-ship-country-toggle-ui {
  display: inline-block;
  width: 2rem;
  height: 1.15rem;
  border-radius: 999px;
  background: #dfe3e8;
  position: relative;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.esago-sf-ship-country-toggle-ui::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 2px;
  width: calc(1.15rem - 4px);
  height: calc(1.15rem - 4px);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  transform: translateY(-50%);
  transition: transform 0.15s ease;
}
.esago-sf-ship-country-toggle input:checked + .esago-sf-ship-country-toggle-ui {
  background: rgba(34, 197, 94, 0.35);
  box-shadow: inset 0 0 0 1px rgba(34, 197, 94, 0.35);
}
.esago-sf-ship-country-toggle input:checked + .esago-sf-ship-country-toggle-ui::after {
  transform: translate(calc(2rem - 1.15rem), -50%);
}
.esago-sf-ship-zones-body {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.esago-sf-ship-zone-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fafbfb;
}
.esago-sf-ship-zone-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.85rem;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.esago-sf-ship-zone-title {
  margin: 0;
  font-size: 0.9375rem;
}
.esago-sf-ship-zone-countries {
  margin: 0.2rem 0 0;
  font-size: 0.8125rem;
  color: var(--muted);
}
.esago-sf-ship-zone-actions {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.esago-sf-ship-rates {
  padding: 0.35rem 0.85rem 0.15rem;
}
.esago-sf-ship-rate-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
}
.esago-sf-ship-rate-row:last-child {
  border-bottom: 0;
}
.esago-sf-ship-rate-main {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  min-width: 0;
  font-size: 0.875rem;
}
.esago-sf-ship-rate-icon svg {
  width: 1rem;
  height: 1rem;
  color: var(--muted);
}
.esago-sf-ship-rate-side {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}
.esago-sf-ship-rate-price {
  font-size: 0.875rem;
  font-weight: 600;
}
.esago-sf-ship-add-rate {
  display: block;
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 0;
  border-top: 1px solid var(--border);
  background: #fff;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.esago-sf-ship-add-rate:hover {
  background: var(--accent-soft);
}
.esago-sf-ship-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.esago-sf-ship-zone-country-pick {
  max-height: 220px;
  overflow: auto;
  margin-top: 0.55rem;
  border: 1px solid var(--sf-input-border, #c9cccf);
  border-radius: 8px;
}
.esago-sf-ship-zone-country-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.65rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.8125rem;
  cursor: pointer;
}
.esago-sf-ship-zone-country-item:last-child {
  border-bottom: 0;
}
.esago-sf-ship-zone-country-note {
  margin-left: 0.35rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-style: italic;
}
.esago-sf-ship-rate-preview {
  margin-top: 0.85rem;
  padding: 0.75rem;
  border-radius: 10px;
  background: #f6f6f7;
}
.esago-sf-ship-rate-preview-label {
  margin: 0 0 0.45rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.esago-sf-ship-rate-preview-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.55rem;
  align-items: center;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-size: 0.8125rem;
}
.esago-sf-ship-rate-preview-radio {
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  border: 4px solid #005bd3;
  box-sizing: border-box;
}
.esago-sf-ship-rate-active {
  margin-top: 0.35rem;
}
.esago-sf-ship-modal-dialog {
  width: min(720px, 100%);
}

/* Documentazione utente (layout GitBook) */
.esago-main:has([data-esago-docs]) {
  max-width: none;
  padding: 0;
}

.esago-docs {
  --docs-accent: #7c3aed;
  --docs-accent-strong: #6d28d9;
  --docs-accent-soft: rgba(124, 58, 237, 0.1);
  --docs-accent-border: rgba(124, 58, 237, 0.35);
  display: grid;
  grid-template-columns: 15.5rem minmax(0, 1fr);
  min-height: calc(100dvh - 1px);
  background: transparent;
}

.esago-docs-sidebar {
  border-right: 1px solid var(--border);
  background: transparent;
  padding: 1.75rem 0.85rem 2rem 1.35rem;
  position: sticky;
  top: 0;
  align-self: start;
  max-height: 100dvh;
  overflow: auto;
}

.esago-docs-sidebar-brand {
  display: block;
  font-weight: 650;
  font-size: 0.875rem;
  color: var(--text);
  text-decoration: none;
  padding: 0 0.55rem 1.1rem;
  letter-spacing: -0.01em;
}

.esago-docs-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.esago-docs-nav-group-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.25rem 0 0.45rem;
  padding: 0 0.55rem;
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #374151;
}

.esago-docs-nav-group.is-branch-active > .esago-docs-nav-group-title {
  color: var(--docs-accent-strong);
}

.esago-docs-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  color: #6b7280;
}

.esago-docs-nav-group.is-branch-active .esago-docs-nav-icon,
.esago-docs-nav-link.is-active .esago-docs-nav-icon {
  color: var(--docs-accent);
}

.esago-docs-nav-icon svg {
  width: 100%;
  height: 100%;
}

.esago-docs-nav-subtitle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.85rem 0 0.35rem;
  padding: 0 0.55rem 0 0.55rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: #374151;
}

.esago-docs-nav-rail {
  --rail-x: 0.42rem;
  position: relative;
  margin: 0 0 0.35rem 1.35rem;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.esago-docs-nav-rail::before {
  content: "";
  position: absolute;
  left: var(--rail-x);
  top: var(--rail-line-top, 0.55rem);
  height: var(--rail-line-height, calc(100% - 1.1rem));
  width: 1px;
  transform: translateX(-50%);
  border-radius: 1px;
  pointer-events: none;
  background: rgba(124, 58, 237, 0.22);
}

.esago-docs-nav-sublink {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  padding: 0.38rem 0.45rem 0.38rem 0;
  border-radius: 8px;
  font-size: 0.8125rem;
  color: #4b5563;
  text-decoration: none;
  line-height: 1.35;
  position: relative;
  z-index: 1;
}

.esago-docs-nav-sublink-dot {
  width: 7px;
  height: 7px;
  margin-left: calc(var(--rail-x) - 3.5px);
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #cbd5e1;
  box-sizing: border-box;
  flex-shrink: 0;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.esago-docs-nav-sublink-label {
  flex: 1;
  min-width: 0;
}

.esago-docs-nav-sublink:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.04);
}

.esago-docs-nav-sublink.is-active {
  color: var(--docs-accent-strong);
  font-weight: 600;
  background: var(--docs-accent-soft);
}

.esago-docs-nav-sublink.is-active .esago-docs-nav-sublink-dot {
  background: var(--docs-accent);
  border-color: var(--docs-accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.esago-docs-nav-sublink.is-disabled {
  color: #9ca3af;
  cursor: default;
}

.esago-docs-nav-link--top {
  padding-left: 0.55rem;
  font-weight: 600;
}

.esago-docs-nav-link--category {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 0.55rem;
  font-weight: 600;
}

.esago-docs-nav-group:first-child .esago-docs-nav-group-title {
  margin-top: 0;
}

.esago-docs-nav-link {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.55rem;
  padding-left: calc(0.55rem + var(--docs-depth, 0) * 0.65rem);
  border-radius: 8px;
  font-size: 0.8125rem;
  color: #4b5563;
  text-decoration: none;
  line-height: 1.4;
}

.esago-docs-nav-link:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.04);
}

.esago-docs-nav-link.is-active {
  background: var(--docs-accent-soft);
  color: var(--docs-accent-strong);
  font-weight: 600;
}

.esago-docs-nav-link.is-disabled {
  color: #9ca3af;
  cursor: default;
}

.esago-docs-nav-soon {
  margin-left: auto;
  font-size: 0.5625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #9ca3af;
  background: rgba(15, 23, 42, 0.05);
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
}

.esago-docs-body {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 3rem;
  padding: 2.25rem 2.5rem 4rem;
  min-width: 0;
}

.esago-docs-center {
  flex: 1 1 auto;
  width: min(100%, 42rem);
  min-width: 0;
}

.esago-docs-search {
  position: relative;
  margin-bottom: 1.5rem;
  z-index: 12;
}

.esago-docs-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.esago-docs-search-field {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.esago-docs-search-field:focus-within {
  border-color: rgba(124, 58, 237, 0.45);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

.esago-docs-search-icon {
  display: inline-flex;
  width: 1rem;
  height: 1rem;
  color: #9ca3af;
  flex-shrink: 0;
}

.esago-docs-search-icon svg {
  width: 100%;
  height: 100%;
}

.esago-docs-search-input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  color: var(--text);
  outline: none;
}

.esago-docs-search-input::placeholder {
  color: #9ca3af;
}

.esago-docs-search-input::-webkit-search-cancel-button {
  display: none;
}

.esago-docs-search-clear {
  border: 0;
  background: rgba(15, 23, 42, 0.06);
  color: #6b7280;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.esago-docs-search-clear:hover {
  background: rgba(124, 58, 237, 0.12);
  color: var(--docs-accent-strong, #6d28d9);
}

.esago-docs-search-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 0.45rem);
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.esago-docs-search-hint,
.esago-docs-search-empty {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.esago-docs-search-results {
  display: flex;
  flex-direction: column;
  max-height: min(24rem, 55vh);
  overflow: auto;
}

.esago-docs-search-result {
  display: block;
  padding: 0.75rem 1rem;
  text-decoration: none;
  color: inherit;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

.esago-docs-search-result:first-child {
  border-top: 0;
}

.esago-docs-search-result:hover,
.esago-docs-search-result.is-active {
  background: rgba(124, 58, 237, 0.06);
}

.esago-docs-search-result-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.2rem;
}

.esago-docs-search-result-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.esago-docs-search-result.is-active .esago-docs-search-result-label,
.esago-docs-search-result:hover .esago-docs-search-result-label {
  color: var(--docs-accent-strong, #6d28d9);
}

.esago-docs-search-result-context {
  font-size: 0.6875rem;
  color: var(--muted);
  white-space: nowrap;
}

.esago-docs-search-result-excerpt {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #6b7280;
}

.esago-docs-search-result-excerpt mark {
  background: rgba(124, 58, 237, 0.16);
  color: var(--docs-accent-strong, #6d28d9);
  padding: 0 0.1rem;
  border-radius: 3px;
}

.esago-docs-article {
  width: 100%;
  min-width: 0;
}

.esago-docs-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.35rem;
  font-size: 0.8125rem;
  color: var(--muted);
}

.esago-docs-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.esago-docs-breadcrumb a:hover {
  color: #005bd3;
}

.esago-docs-breadcrumb-sep {
  opacity: 0.45;
}

.esago-docs-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2.25rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid var(--border);
}

.esago-docs-header-main {
  min-width: 0;
}

.esago-docs-header-actions {
  flex-shrink: 0;
  padding-top: 0.15rem;
}

.esago-docs-title {
  margin: 0;
  font-size: clamp(1.625rem, 2.5vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.esago-docs-lead {
  margin: 0.75rem 0 0;
  max-width: 38rem;
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
}

.esago-docs-section {
  margin-bottom: 3rem;
  scroll-margin-top: 1.5rem;
  padding-left: 0.85rem;
  margin-left: -0.85rem;
  border-left: 2px solid transparent;
  border-radius: 0 8px 8px 0;
  transition: border-color 0.2s ease;
}

.esago-docs-section.is-inview {
  border-left-color: var(--docs-accent);
}

.esago-docs-section.is-inview > .esago-docs-section-title {
  color: var(--docs-accent-strong);
}

.esago-docs[data-esago-docs-intro] .esago-docs-section.is-inview {
  border-left-color: transparent;
  background: none;
}

.esago-docs[data-esago-docs-intro] .esago-docs-section.is-inview > .esago-docs-section-title {
  color: inherit;
}

.esago-docs-section + .esago-docs-section {
  padding-top: 0.25rem;
}

.esago-docs-section-title {
  margin: 0 0 1rem;
  font-size: 1.25rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  scroll-margin-top: 1.5rem;
}

.esago-docs-section > p:first-of-type,
.esago-docs-field-body > p:first-child {
  margin-top: 0;
}

.esago-docs-section p,
.esago-docs-field-body p {
  margin: 0 0 1rem;
  line-height: 1.75;
  color: #4b5563;
  font-size: 0.9375rem;
}

.esago-docs-list {
  margin: 0 0 1.15rem;
  padding-left: 1.2rem;
  line-height: 1.75;
  color: #4b5563;
  font-size: 0.9375rem;
}

.esago-docs-list--compact {
  margin-bottom: 0;
}

.esago-docs-list a {
  color: #005bd3;
  text-decoration: none;
}

.esago-docs-list a:hover {
  text-decoration: underline;
}

.esago-docs-field {
  margin: 2rem 0 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
}

.esago-docs-field-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  scroll-margin-top: 1.5rem;
}

.esago-docs-figure {
  margin: 1.25rem 0 1.5rem;
}

.esago-docs-figure-caption {
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: left;
}

.esago-docs-welcome-brand {
  margin: 0 0 1.75rem;
}

.esago-docs-welcome-brand-frame {
  display: block;
  overflow: hidden;
  width: fit-content;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.07);
  transition: box-shadow 0.4s ease;
}

.esago-docs-welcome-brand-frame:hover {
  box-shadow: 0 10px 32px rgba(124, 58, 237, 0.14);
}

.esago-docs-welcome-brand img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.esago-docs-welcome-brand-frame:hover img {
  transform: scale(1.022);
}

@media (prefers-reduced-motion: reduce) {
  .esago-docs-welcome-brand img,
  .esago-docs-welcome-brand-frame {
    transition: none;
  }

  .esago-docs-welcome-brand-frame:hover img {
    transform: none;
  }
}

.esago-docs-callout {
  margin: 1.15rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 0.875rem;
  line-height: 1.6;
}

.esago-docs-callout p {
  margin: 0.35rem 0 0;
}

.esago-docs-callout strong {
  display: block;
  margin-bottom: 0;
  font-size: 0.8125rem;
}

.esago-docs-callout--info {
  background: rgba(0, 91, 211, 0.05);
  border-color: rgba(0, 91, 211, 0.12);
}

.esago-docs-callout--tip {
  background: rgba(34, 197, 94, 0.06);
  border-color: rgba(34, 197, 94, 0.14);
}

.esago-docs-mock {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  padding: 1.1rem;
  backdrop-filter: blur(4px);
}

.esago-docs-mock-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
}

.esago-docs-mock-input {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
  font-size: 0.8125rem;
  background: #fff;
  color: #111827;
}

.esago-docs-mock-input--full {
  width: 100%;
  box-sizing: border-box;
}

.esago-docs-mock-input-row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.esago-docs-mock-btn {
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.75rem;
  font-size: 0.8125rem;
  white-space: nowrap;
}

.esago-docs-mock-btn--primary {
  background: #111827;
  color: #fff;
  border-color: #111827;
}

.esago-docs-mock-previews {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.esago-docs-mock-preview {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.03);
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.esago-docs-mock-preview--desktop {
  min-height: 110px;
}

.esago-docs-mock-preview--mobile {
  width: 72px;
  min-height: 110px;
}

.esago-docs-mock-bar-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
  font-size: 0.8125rem;
}

.esago-docs-mock-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
}

.esago-docs-mock-badge--live {
  background: rgba(34, 197, 94, 0.15);
  color: #15803d;
}

.esago-docs-mock-link {
  margin-left: auto;
  color: #005bd3;
  font-size: 0.75rem;
}

.esago-docs-mock-segment {
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.05);
}

.esago-docs-mock-segment span {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
}

.esago-docs-mock-segment span.is-active {
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  font-weight: 600;
}

.esago-docs-mock-logos {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0.85rem 0 1rem;
}

.esago-docs-mock-logo-slot {
  border: 1px dashed rgba(15, 23, 42, 0.14);
  border-radius: 10px;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  font-size: 0.75rem;
  text-align: center;
  padding: 0.5rem;
}

.esago-docs-mock-logo-slot em {
  font-style: normal;
  font-size: 0.6875rem;
  color: var(--muted);
}

.esago-docs-mock-logo-slot--dark {
  background: #111827;
  color: #fff;
  border-color: #374151;
}

.esago-docs-mock-logo-slot--dark em {
  color: rgba(255, 255, 255, 0.65);
}

.esago-docs-mock-seo {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1rem;
}

.esago-docs-mock-seo-preview {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  overflow: hidden;
}

.esago-docs-mock-seo-image {
  min-height: 120px;
  background: rgba(0, 91, 211, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--muted);
}

.esago-docs-mock-seo-text {
  padding: 0.65rem 0.75rem;
  font-size: 0.75rem;
}

.esago-docs-mock-seo-text small {
  display: block;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.esago-docs-mock-seo-text strong {
  display: block;
  margin-bottom: 0.25rem;
}

.esago-docs-mock-seo-text p {
  margin: 0;
  color: var(--muted);
}

.esago-docs-mock-counter {
  display: block;
  margin: 0.25rem 0 0.65rem;
  font-size: 0.6875rem;
  color: var(--muted);
}

.esago-docs-mock-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.esago-docs-mock-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.esago-docs-mock-test {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
}

.esago-docs-toc {
  position: sticky;
  top: 2rem;
  align-self: flex-start;
  flex: 0 0 11.5rem;
  width: 11.5rem;
  max-height: calc(100dvh - 3rem);
  overflow: auto;
  padding-top: 0.15rem;
}

.esago-docs-toc-title {
  margin: 0 0 0.65rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.esago-docs-toc-nav {
  --rail-x: 0.42rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
  padding-left: 0;
}

.esago-docs-toc-nav::before {
  content: "";
  position: absolute;
  left: var(--rail-x);
  top: var(--rail-line-top, 0.55rem);
  height: var(--rail-line-height, calc(100% - 1.1rem));
  width: 1px;
  transform: translateX(-50%);
  border-radius: 1px;
  pointer-events: none;
  background: rgba(124, 58, 237, 0.22);
}

.esago-docs-toc-link {
  display: grid;
  grid-template-columns: calc(var(--rail-x) * 2) minmax(0, 1fr);
  column-gap: 0.58rem;
  align-items: center;
  padding: 0.15rem 0;
  font-size: 0.8125rem;
  color: #6b7280;
  text-decoration: none;
  line-height: 1.45;
  position: relative;
  z-index: 1;
  transition: color 0.15s ease;
}

.esago-docs-toc-dot {
  grid-column: 1;
  justify-self: center;
  align-self: center;
  width: 7px;
  height: 7px;
  margin: 0;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #cbd5e1;
  box-sizing: border-box;
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.esago-docs-toc-label {
  grid-column: 2;
  min-width: 0;
}

.esago-docs-toc-link:hover {
  color: var(--docs-accent-strong);
}

.esago-docs-toc-link.is-active {
  color: var(--docs-accent-strong);
  font-weight: 600;
}

.esago-docs-toc-link.is-active .esago-docs-toc-dot {
  background: var(--docs-accent);
  border-color: var(--docs-accent);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.esago-docs-field-body code {
  font-size: 0.8125em;
  background: rgba(15, 23, 42, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}

@media (max-width: 1180px) {
  .esago-docs-toc {
    display: none;
  }

  .esago-docs-body {
    justify-content: flex-start;
    padding-right: 2rem;
  }
}

@media (max-width: 920px) {
  .esago-docs {
    grid-template-columns: 1fr;
  }

  .esago-docs-sidebar {
    position: static;
    max-height: none;
    border-right: 0;
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 1rem 1rem;
  }

  .esago-docs-body {
    padding: 1.5rem 1.25rem 3rem;
  }

  .esago-docs-header {
    flex-direction: column;
    align-items: stretch;
  }

  .esago-docs-mock-logos,
  .esago-docs-mock-seo,
  .esago-docs-mock-grid {
    grid-template-columns: 1fr;
  }
}

/* Esago Platform admin */
.esago-platform-app .esago-platform-client-row {
  cursor: pointer;
}
.esago-platform-app .esago-table-sub {
  margin-top: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--esago-muted, #6b7280);
}
.esago-platform-app .esago-platform-shop-list {
  margin: 0;
  padding-left: 18px;
  color: #526174;
  font-size: 14px;
  line-height: 1.5;
}
.esago-platform-app .esago-platform-shop-list code {
  font-size: 12px;
}

/* EsagoHub catalogo — barra ricerca unificata in header */
.esago-hub-catalog {
  --esago-hub-catalog-gutter: 1.5rem;
  margin-inline: calc(-1 * var(--esago-hub-catalog-gutter));
  width: calc(100% + (2 * var(--esago-hub-catalog-gutter)));
}

.esago-hub-catalog-page-head {
  align-items: center;
  padding: 0 var(--esago-hub-catalog-gutter) 14px;
  margin-bottom: 0;
  border-bottom: 1px solid #e5e7eb;
}

.esago-hub-catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px var(--esago-hub-catalog-gutter) 12px;
  border-bottom: 1px solid #e5e7eb;
}

.esago-hub-catalog-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.esago-hub-catalog-row.is-selected td {
  background: #f8faff;
}

.esago-hub-catalog-table-wrap {
  overflow-x: auto;
  overflow-y: visible;
  border: none;
  border-radius: 0;
  background: transparent;
}

.esago-hub-catalog-live-wrap [data-hub-catalog-live] {
  overflow: visible;
}

.esago-hub-catalog-table tbody tr {
  position: relative;
}

.esago-hub-catalog-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.esago-hub-catalog-table thead th {
  padding: 10px 12px;
  background: transparent;
  color: #6b7280;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
  overflow: visible;
}

.esago-hub-catalog-table thead th:first-child {
  padding-left: var(--esago-hub-catalog-gutter);
}

.esago-hub-catalog-table thead th:last-child {
  padding-right: var(--esago-hub-catalog-gutter);
}

.esago-hub-catalog-table tbody td {
  padding: 12px;
  vertical-align: middle;
  border-bottom: 1px solid #eef0f2;
}

.esago-hub-catalog-table tbody td:first-child {
  padding-left: var(--esago-hub-catalog-gutter);
}

.esago-hub-catalog-table tbody td:last-child {
  padding-right: var(--esago-hub-catalog-gutter);
}

.esago-hub-catalog-table tbody tr:last-child td {
  border-bottom: none;
}

.esago-hub-catalog-row {
  cursor: pointer;
}

.esago-hub-catalog-row:hover td,
.esago-hub-catalog-row:focus-visible td {
  background: #f9fafb;
}

.esago-hub-catalog-row:focus-visible {
  outline: none;
}

.esago-hub-catalog-row:focus-visible td:first-child {
  box-shadow: inset 3px 0 0 #2686ff;
}

.esago-hub-catalog-row .esago-td-check,
.esago-hub-catalog-row .esago-td-actions {
  cursor: default;
}

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

.esago-hub-catalog-table .esago-media-thumb {
  background: #f3f4f6;
  overflow: visible;
}

.esago-hub-catalog-table .esago-td-thumb {
  overflow: visible;
}

.esago-hub-catalog-table .esago-media-thumb__img {
  border-radius: 6px;
  object-fit: cover;
  object-position: center;
  background: #f3f4f6;
  transition: opacity 0.24s ease;
}

.esago-hub-catalog-live-wrap {
  position: relative;
  min-height: 160px;
}

.esago-hub-catalog-live-loading {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: #f6f7f9;
  color: #6b7280;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.esago-hub-catalog-live-loading::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid #dbeafe;
  border-top-color: #025fff;
  border-radius: 50%;
  animation: esago-hub-drawer-loader-spin 0.75s linear infinite;
}

.esago-hub-catalog-live-wrap.is-loading .esago-hub-catalog-live-loading {
  display: flex;
}

.esago-hub-catalog-live-wrap.is-loading [data-hub-catalog-live] {
  visibility: hidden;
}

.esago-main:has(.esago-hub-catalog)::before {
  background-image: none;
  background-color: #f6f7f9;
  opacity: 1;
}

.esago-hub-catalog-head-main {
  flex: 1 1 280px;
  min-width: 0;
  max-width: 520px;
}

.esago-hub-catalog-search {
  width: 100%;
  margin: 0;
}

.esago-hub-catalog-search__field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  cursor: text;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.esago-hub-catalog-search__field:focus-within {
  border-color: var(--esago-search-focus);
  box-shadow: 0 0 0 2px var(--esago-search-focus-ring);
}

.esago-hub-catalog-search__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #9ca3af;
}

.esago-hub-catalog-search__input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: #111827;
  outline: none;
}

.esago-hub-catalog-search__input::placeholder {
  color: #9ca3af;
}

.esago-hub-catalog-empty {
  margin: 0;
  padding: 1.35rem var(--esago-hub-catalog-gutter, 1.5rem);
  text-align: left;
}

.esago-hub-catalog .esago-pagination {
  padding-inline: var(--esago-hub-catalog-gutter, 1.5rem);
}

.esago-hub-catalog-empty__body {
  min-width: 0;
}

.esago-hub-catalog-empty__text {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #374151;
}

.esago-hub-catalog-empty__hint {
  margin: 0.35rem 0 0.75rem;
  font-size: 12px;
  line-height: 1.45;
  color: #6b7280;
}

.esago-hub-catalog-empty__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  border: 1px solid #e9d5ff;
  border-radius: 8px;
  background: #fff;
  color: #5d09ec;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.esago-hub-catalog-empty__link:hover,
.esago-hub-catalog-empty__link:focus-visible {
  background: #faf5ff;
  border-color: #d8b4fe;
  color: #4a07bd;
  outline: none;
}

.esago-hub-catalog-empty__link-icon {
  display: inline-flex;
  flex-shrink: 0;
}

.esago-hub-catalog-empty__link-icon svg {
  width: 16px;
  height: 16px;
}

/* EsagoHub catalogo — azioni nuovo prodotto (Uiverse / 0x3ther) */
.esago-hub-back-catalog {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.esago-hub-back-catalog:hover,
.esago-hub-back-catalog:focus-visible {
  background: #f5f5f5;
  outline: none;
}

.esago-hub-back-catalog:focus-visible {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(93, 9, 236, 0.35);
}

.esago-hub-back-catalog__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.esago-hub-back-catalog__label {
  transform-origin: left center;
  transform: scale(0);
  transition: transform 0.2s ease;
  white-space: nowrap;
}

.esago-hub-back-catalog:hover .esago-hub-back-catalog__label,
.esago-hub-back-catalog:focus-visible .esago-hub-back-catalog__label {
  transform: scale(1);
}

.esago-hub-create-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.esago-hub-create-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #fff;
  color: #111827;
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.esago-hub-create-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(93, 9, 236, 0.35);
}

.esago-hub-create-btn:disabled {
  pointer-events: none;
  opacity: 0.5;
  cursor: not-allowed;
}

.esago-hub-create-btn__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.esago-hub-create-btn--manual .esago-hub-create-btn__icon {
  color: #5d09ec;
}

.esago-hub-create-btn--excel .esago-hub-create-btn__icon {
  color: #06b6d4;
}

.esago-hub-create-btn--order .esago-hub-create-btn__icon {
  color: #60a5fa;
}

.esago-hub-create-btn--manual:hover,
.esago-hub-create-btn--manual:focus-visible {
  background: #f5f5f5;
  color: #5d09ec;
  border-color: #d8b4fe;
}

.esago-hub-create-btn--excel:hover:not(:disabled),
.esago-hub-create-btn--excel:focus-visible:not(:disabled) {
  background: #f5f5f5;
  color: #06b6d4;
  border-color: #a5f3fc;
}

.esago-hub-create-btn--order:hover:not(:disabled),
.esago-hub-create-btn--order:focus-visible:not(:disabled) {
  background: #f5f5f5;
  color: #60a5fa;
  border-color: #bfdbfe;
}

.esago-hub-sd-modal {
  justify-content: center;
  padding-top: 4rem;
}

.esago-hub-sd-modal__anchor {
  position: relative;
  z-index: 1;
  width: 750px;
  max-width: calc(100vw - 2rem);
}

.esago-hub-sd-modal #pop-new-product.pop-new-product.start {
  width: 750px;
  max-width: 100%;
  margin: 0 auto;
}

.esago-hub-sd-modal .wrap-pop {
  box-shadow: 0 12px 40px rgba(15, 23, 42, 0.18);
  position: relative;
  background: #fff;
  border-radius: 7px;
  z-index: 10;
  width: auto;
  margin: 0 auto;
}

.esago-hub-sd-modal .wrap-pop .header-pop {
  width: 100%;
  height: 50px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.1);
  position: relative;
  background: #fff;
  border-radius: 7px 7px 0 0;
  z-index: 5;
  user-select: none;
}

.esago-hub-sd-modal .wrap-pop .header-pop.small {
  height: 40px;
}

.esago-hub-sd-modal .wrap-pop .header-pop.small .close {
  top: 10px;
}

.esago-hub-sd-modal .wrap-pop .header-pop.small .title {
  padding-top: 10px;
}

.esago-hub-sd-modal .wrap-pop .header-pop .title {
  display: block;
  text-transform: uppercase;
  font-weight: bold;
  font-size: 14px;
  padding-top: 15.5px;
  letter-spacing: 1px;
  text-align: center;
  color: rgba(52, 73, 94, 0.7);
}

.esago-hub-sd-modal .wrap-pop .content-pop.start {
  height: auto !important;
  background: #f5f6f7;
  padding: 0;
  margin: 0;
  border-radius: 0 0 7px 7px;
  overflow: hidden;
  list-style: none;
  text-align: left;
  font-size: 11px;
}

.esago-hub-sd-modal .wrap-pop .content-pop.start li {
  display: inline-flex;
  flex-direction: column;
  vertical-align: top;
  box-shadow: -1px 0 0 #dae2ea;
  text-align: center;
  margin-top: 25px;
  margin-bottom: 25px;
  margin-right: -3px;
  cursor: pointer;
  position: relative;
  padding: 0 !important;
  min-height: 248px;
  height: auto;
  width: 33.37% !important;
  user-select: none;
  background: #fff;
}

.esago-hub-sd-modal .wrap-pop .content-pop.start li:first-child {
  box-shadow: none;
}

.esago-hub-sd-modal .wrap-pop .content-pop.start li.is-disabled {
  cursor: default;
}

.esago-hub-sd-modal .esago-sd-choice__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 14px 8px;
  min-height: 0;
}

.esago-hub-sd-modal .esago-sd-choice__foot {
  flex: 0 0 auto;
  width: 100%;
  padding: 10px 12px 14px;
  border-top: 1px solid #e8ecef;
  background: #fafbfc;
}

.esago-hub-sd-modal .wrap-pop .content-pop.start li:not(.is-disabled):hover .title,
.esago-hub-sd-modal .wrap-pop .content-pop.start li:not(.is-disabled):hover .txt-intro {
  color: #10161c;
}

.esago-hub-sd-modal .wrap-pop .content-pop.start li:not(.is-disabled):hover .esago-sd-wizard-ico,
.esago-hub-sd-modal .wrap-pop .content-pop.start li:not(.is-disabled):hover .ico-wizard {
  opacity: 1;
  color: #5d09ec;
}

.esago-hub-sd-modal .wrap-pop .content-pop.start li:not(.is-disabled):hover .btn {
  color: #4a07bd;
}

.esago-hub-sd-modal .wrap-pop .content-pop .title {
  font-size: 12px;
  text-transform: uppercase;
  color: #34495e;
  font-weight: bold;
  display: block;
  padding: 10px 8px 6px;
  letter-spacing: 1px;
}

.esago-hub-sd-modal .wrap-pop .content-pop .txt-intro {
  width: 100%;
  padding: 0 6px 4px;
  font-size: 11px;
  color: #34495e;
  display: block;
  font-weight: normal;
  line-height: 1.45;
}

.esago-hub-sd-modal .wrap-pop .content-pop.start .txt-or {
  position: absolute;
  display: inline-block;
  color: rgba(52, 73, 94, 0.5);
  left: 92%;
  width: 40px;
  height: 40px;
  top: 50%;
  margin-top: -20px;
  padding-top: 12px;
  background: #f5f6f7;
  text-align: center;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 10px;
  z-index: 1;
  pointer-events: none;
}

.esago-hub-sd-modal .wrap-pop .content-pop.start .btn {
  position: static;
  display: block;
  width: 100%;
  text-align: center;
  color: #5d09ec;
  padding: 0;
  font-size: 15px;
  border: none;
  background: none;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.4;
}

.esago-hub-sd-modal .wrap-pop .content-pop.start li.is-disabled .btn {
  cursor: default;
  color: #5d09ec;
  opacity: 0.55;
}

.esago-hub-sd-modal .esago-sd-wizard-ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  margin: 4px auto 6px;
  color: #64748b;
  opacity: 0.72;
  transition: opacity 0.15s, color 0.15s;
}

.esago-hub-sd-modal .esago-sd-wizard-ico svg {
  width: 52px;
  height: 52px;
}

.esago-hub-sd-modal .ico-wizard {
  height: 70px;
  width: 70px;
  display: inline-block;
  margin: 4px auto 6px;
  opacity: 0.55;
  background: url("sd-icons/ico-wizard.png") no-repeat;
  transition: opacity 0.15s;
}

.esago-hub-sd-modal .ico-wizard.manual {
  background-position: center -13px;
}

.esago-hub-sd-modal .wrap-pop .help {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  position: absolute;
  bottom: 12px;
  right: 12px;
  opacity: 0.55;
  cursor: pointer;
  z-index: 2;
  color: #5d09ec;
  padding: 0;
}

.esago-hub-sd-modal .wrap-pop .help::before {
  content: "?";
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 15px;
  font-weight: 700;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  line-height: 1;
}

.esago-hub-sd-modal .wrap-pop .help:hover {
  opacity: 1;
}

.esago-hub-sd-modal .wrap-pop .header-pop .close {
  width: 20px;
  height: 20px;
  border: 0;
  background: transparent;
  position: absolute;
  top: 15px;
  right: 15px;
  opacity: 0.35;
  cursor: pointer;
  padding: 0;
}

.esago-hub-sd-modal .wrap-pop .header-pop.small .close {
  top: 10px;
}

.esago-hub-sd-modal .wrap-pop .header-pop .close::before,
.esago-hub-sd-modal .wrap-pop .header-pop .close::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 2px;
  background: #34495e;
  border-radius: 1px;
}

.esago-hub-sd-modal .wrap-pop .header-pop .close::before {
  transform: translate(-50%, -50%) rotate(45deg);
}

.esago-hub-sd-modal .wrap-pop .header-pop .close::after {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.esago-hub-sd-modal .wrap-pop .header-pop .close:hover {
  opacity: 0.65;
}

.esago-hub-wizard {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.esago-hub-wizard__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 4px 0;
}

.esago-hub-wizard__tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--esago-border, #e5e7eb);
  border-radius: 999px;
  background: #fff;
  color: #374151;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}

.esago-hub-wizard__tab.is-active {
  border-color: #5d09ec;
  background: #f5f0ff;
  color: #5d09ec;
}

.esago-hub-wizard__tab-pct {
  font-size: 11px;
  font-weight: 700;
  color: var(--esago-muted, #6b7280);
}

.esago-hub-wizard__tab.is-active .esago-hub-wizard__tab-pct {
  color: #5d09ec;
}

.esago-hub-wizard__body {
  padding: 0;
  overflow: hidden;
}

.esago-hub-wizard__panel {
  padding: 20px 24px 24px;
}

.esago-hub-wizard-section {
  display: grid;
  grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
  gap: 20px 28px;
  padding: 20px 0;
  border-bottom: 1px solid var(--esago-border, #eef0f3);
}

.esago-hub-wizard-section:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.esago-hub-wizard-section__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
}

.esago-hub-wizard-section__aside .esago-help {
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
}

.esago-hub-field,
.esago-hub-field-row {
  margin-bottom: 14px;
}

.esago-hub-field-row {
  display: grid;
  gap: 14px;
}

.esago-hub-field-row--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.esago-hub-field-row--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.esago-hub-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #4b5563;
}

.esago-hub-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
  margin-bottom: 6px;
}

.esago-hub-field-head .esago-hub-label {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

.esago-hub-field-head--check {
  margin-bottom: 14px;
}

.esago-hub-field-head--check .esago-hub-check {
  margin-bottom: 0;
  flex: 1;
  min-width: 0;
}

.esago-hub-field-info-body {
  margin: 0;
  font-size: inherit;
  line-height: inherit;
  color: var(--text);
}

.esago-hub-grid-th-head {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.35rem;
  width: 100%;
  min-width: 0;
}

.esago-hub-size-grid th .esago-inline-info-drop {
  right: auto;
  left: 0;
}

.esago-hub-field-info-icon,
.esago-hub-grid-th-head .esago-inline-info-icon {
  width: 15px;
  height: 15px;
}

.esago-hub-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  font-size: 14px;
  font-weight: 500;
}

.esago-hub-bulk-prices {
  margin-bottom: 16px;
  padding: 14px;
  border-radius: 10px;
  background: #f9fafb;
}

.esago-hub-size-grid-wrap {
  overflow: auto;
  border: 1px solid var(--esago-border, #e5e7eb);
  border-radius: 10px;
}

.esago-hub-size-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.esago-hub-size-grid th,
.esago-hub-size-grid td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--esago-border, #eef0f3);
  vertical-align: middle;
}

.esago-hub-size-grid th {
  background: #f9fafb;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.esago-hub-size-grid tr:last-child td {
  border-bottom: 0;
}

.esago-hub-size-label {
  font-weight: 700;
  white-space: nowrap;
  color: #111827;
}

.esago-hub-size-grid .esago-hub-col-ean {
  width: 26%;
  min-width: 148px;
}

.esago-hub-size-grid .esago-hub-col-qty {
  width: 1%;
  white-space: nowrap;
}

.esago-hub-size-grid .esago-hub-col-ean .esago-hub-grid-input {
  min-width: 132px;
  width: 100%;
}

.esago-hub-size-grid .esago-hub-col-qty .esago-hub-grid-input {
  min-width: 0;
  width: 52px;
  max-width: 56px;
  padding-left: 6px;
  padding-right: 6px;
  text-align: center;
}

.esago-hub-grid-input {
  min-width: 88px;
  padding: 8px 10px;
  font-size: 11px;
}

.esago-hub-media-drop {
  padding: 32px 20px;
  border: 1.5px dashed #d1d5db;
  border-radius: 12px;
  text-align: center;
  background: #fafafa;
  cursor: pointer;
}

.esago-hub-media-drop__title {
  margin: 0 0 4px;
  font-weight: 600;
  font-size: 13px;
}

.esago-hub-media-drop__hint {
  margin: 0;
  font-size: 11px;
  line-height: 1.35;
  color: #9ca3af;
}

.esago-hub-media-drop.is-dragover {
  border-color: #7c3aed;
  background: #f5f3ff;
}

.esago-hub-media-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.esago-hub-media-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
  padding-top: 0;
  width: 100%;
}

.esago-hub-media-preview__card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  min-width: 0;
}

.esago-hub-media-preview__visual {
  position: relative;
  width: 100%;
}

.esago-hub-media-preview__toolbar {
  position: absolute;
  top: 4px;
  left: 4px;
  right: 4px;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  transform: translateY(6px);
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.24s ease,
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.esago-hub-media-preview__item:hover .esago-hub-media-preview__toolbar,
.esago-hub-media-preview__item:focus-within .esago-hub-media-preview__toolbar {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.esago-hub-media-preview__btn {
  display: inline-block;
  max-width: 100%;
  padding: 2px 6px;
  border: 0;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.2;
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  box-shadow: none;
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.esago-hub-media-preview__btn:hover:not(:disabled) {
  transform: none;
  filter: brightness(1.05);
}

.esago-hub-media-preview__btn:active:not(:disabled) {
  filter: brightness(0.95);
}

.esago-hub-media-preview__btn:disabled,
.esago-hub-media-preview__btn[hidden] {
  display: none;
}

.esago-hub-media-preview__btn--cover {
  background: rgb(94 8 236);
}

.esago-hub-media-preview__btn--delete {
  background: #ff7878;
}

.esago-hub-media-preview__btn--move {
  background: #1e84ff;
}

.esago-hub-media-preview__item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #f3f4f6;
  transition:
    border-color 0.22s ease;
}

.esago-hub-media-preview__card:hover .esago-hub-media-preview__item {
  border-color: #d1d5db;
}

.esago-hub-media-preview__item img,
.esago-hub-media-preview__item img.esago-hub-media-preview__img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 0.24s ease;
}

.esago-hub-media-preview__item img.is-loaded:not(.is-broken) {
  opacity: 1;
}

.esago-hub-media-preview__item img.is-broken {
  display: none;
}

.esago-hub-media-preview__cover {
  position: absolute;
  left: 4px;
  bottom: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgb(94 8 236);
  color: #fff;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.2;
  pointer-events: none;
}

.esago-hub-media-preview__size {
  font-size: 10px;
  color: #9ca3af;
  line-height: 1.2;
  text-align: center;
}

.esago-hub-media-workspace {
  position: relative;
}

.esago-hub-media-uploading {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #6b7280;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.esago-hub-media-uploading::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid #dbeafe;
  border-top-color: #025fff;
  border-radius: 50%;
  animation: esago-hub-drawer-loader-spin 0.75s linear infinite;
}

.esago-hub-media-workspace.is-uploading .esago-hub-media-uploading {
  display: flex;
}

.esago-hub-media-workspace.is-uploading {
  pointer-events: none;
}

@media (min-width: 640px) {
  .esago-hub-media-preview {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
  }
}

.esago-hub-wizard--drawer .esago-hub-wizard__panel[data-hub-panel="media"] {
  padding-top: 6px;
  padding-bottom: 12px;
}

.esago-hub-wizard--drawer .esago-hub-wizard__panel[data-hub-panel="media"] .esago-hub-wizard-section {
  margin-bottom: 0;
  padding: 0;
  border-bottom: 0;
}

.esago-hub-wizard--drawer .esago-hub-media-drop {
  padding: 25px 10px;
  border-radius: 8px;
}

.esago-hub-wizard--drawer .esago-hub-media-drop__title {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 600;
}

.esago-hub-wizard--drawer .esago-hub-media-drop__hint {
  font-size: 10px;
}

.esago-hub-wizard--drawer .esago-hub-media-preview {
  margin-top: 8px;
  min-height: 0;
  padding-top: 0;
}

.esago-hub-soon-panel {
  padding: 16px 18px;
  border-radius: 10px;
  background: #f9fafb;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}

.esago-hub-wizard__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
}

.esago-hub-wizard__progress-label {
  font-size: 14px;
  color: #4b5563;
}

.esago-hub-wizard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

@media (max-width: 1100px) {
  .esago-hub-sd-modal__anchor,
  .esago-hub-sd-modal #pop-new-product.pop-new-product.start {
    width: 100%;
  }

  .esago-hub-sd-modal .wrap-pop .content-pop.start li {
    display: flex;
    width: 100% !important;
    min-height: 0;
    margin: 0;
    box-shadow: 0 -1px 0 #dae2ea;
  }

  .esago-hub-sd-modal .wrap-pop .content-pop.start li:first-child {
    box-shadow: none;
  }

  .esago-hub-sd-modal .wrap-pop .content-pop.start .txt-or {
    left: 50%;
    top: auto;
    bottom: 0;
    margin-top: 0;
    transform: translate(-50%, 50%);
  }

  .esago-hub-wizard-section {
    grid-template-columns: 1fr;
  }

  .esago-hub-field-row--2,
  .esago-hub-field-row--3 {
    grid-template-columns: 1fr;
  }

  .esago-hub-wizard__footer {
    flex-direction: column;
    align-items: stretch;
  }
}

/* EsagoHub — drawer nuovo prodotto (fade) */
body.esago-hub-drawer-open {
  overflow: hidden;
}

.esago-hub-catalog-table .esago-media-thumb {
  contain: layout style;
}

.esago-hub-create-drawer {
  position: fixed;
  inset: 0;
  z-index: 700;
  pointer-events: none;
}

.esago-hub-create-drawer:not([hidden]) {
  pointer-events: auto;
}

.esago-hub-create-drawer__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.38);
  opacity: 0;
  transition: opacity 0.62s cubic-bezier(0.22, 0.61, 0.36, 1);
  cursor: pointer;
}

.esago-hub-create-drawer.is-open .esago-hub-create-drawer__backdrop {
  opacity: 1;
}

.esago-hub-create-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(960px, 100vw);
  max-width: 100%;
  background: #fff;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.14);
  opacity: 0;
  overflow: hidden;
  transition: opacity 0.55s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: opacity;
}

.esago-hub-create-drawer.is-open .esago-hub-create-drawer__panel {
  opacity: 1;
  box-shadow: -16px 0 48px rgba(15, 23, 42, 0.16);
}

.esago-hub-create-drawer.is-closing .esago-hub-create-drawer__panel {
  opacity: 0;
  transition-duration: 0.48s;
}

.esago-hub-create-drawer__body,
.esago-hub-wizard--drawer {
  height: 100%;
  position: relative;
}

.esago-hub-wizard-drawer__layout {
  display: grid;
  grid-template-columns: 188px minmax(0, 1fr);
  height: 100%;
  min-height: 0;
}

.esago-hub-stepper {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 18px 14px;
  border-right: 1px solid #e5e7eb;
  background: #fafafa;
  overflow-y: auto;
}

.esago-hub-stepper__step {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 16px;
  position: relative;
}

.esago-hub-stepper__step:last-of-type {
  margin-bottom: 8px;
}

.esago-hub-stepper__line {
  position: absolute;
  left: 9.5px;
  top: 19px;
  bottom: -18px;
  width: 1px;
  background: #d1d5db;
  z-index: 0;
}

.esago-hub-stepper__circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  z-index: 2;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #d1d5db;
  color: #cbd5e1;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
}

.esago-hub-stepper__circle:hover {
  border-color: #94a3b8;
}

.esago-hub-stepper__circle:focus-visible {
  outline: 2px solid #025fff;
  outline-offset: 2px;
}

.esago-hub-stepper__check {
  width: 10px;
  height: 10px;
}

.esago-hub-stepper__content {
  flex: 1;
  min-width: 0;
  padding-top: 0;
}

.esago-hub-stepper__title {
  display: block;
  width: 100%;
  margin: 0 0 1px;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
  color: #94a3b8;
  cursor: pointer;
  transition: color 0.2s ease;
}

.esago-hub-stepper__pct-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.1;
  padding: 1px 8px;
  border-radius: 999px;
  background: #dde1f0;
  color: #505c7e;
}

.esago-hub-stepper__pct-tag.is-partial {
  background: #e0e7ec;
  color: #4c5267;
}

.esago-hub-stepper__pct-tag.is-complete {
  background: #dcfce7;
  color: #219c50;
}

.esago-hub-stepper__pct-tag.is-empty {
  background: #fee9e9;
  color: #ec093f;
}

.esago-hub-stepper__step.is-completed .esago-hub-stepper__circle {
  background: #025fff;
  border-color: #025fff;
  color: #fff;
}

.esago-hub-stepper__step.is-completed .esago-hub-stepper__title {
  color: #111827;
}

.esago-hub-stepper__step.is-active .esago-hub-stepper__circle {
  border-color: #025fff;
  color: #ffffff;
  background: #025fff;
}

.esago-hub-stepper__step.is-active .esago-hub-stepper__title {
  color: #025fff;
}

.esago-hub-stepper__step.is-active .esago-hub-stepper__pct-tag:not(.is-complete):not(.is-partial):not(.is-empty) {
  background: #dde1f0;
  color: #505c7e;
}

.esago-hub-wizard-panel-head {
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f3f4f6;
}

.esago-hub-wizard-panel-head__title {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
}

.esago-hub-wizard-panel-head__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  letter-spacing: 0.01em;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.esago-hub-wizard-panel-head__tag.is-active {
  background: #ede9fe;
  color: #5d09ec;
}

.esago-hub-wizard-panel-head__tag.is-complete {
  background: #dcfce7;
  color: #219c50;
}

.esago-hub-category-combo {
  position: relative;
}

.esago-hub-category-combo__field {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  transition: border-color 0.15s ease;
}

.esago-hub-category-combo__field.is-open {
  border-color: #5d09ec;
}

.esago-hub-category-combo__search {
  display: block;
  width: 100%;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent;
}

.esago-hub-category-combo__search:focus {
  outline: none;
  box-shadow: none !important;
}

.esago-hub-category-combo__results {
  display: none;
  max-height: 220px;
  overflow-y: auto;
  border-top: 1px solid #f3f4f6;
  background: #fff;
}

.esago-hub-category-combo__field.is-open .esago-hub-category-combo__results {
  display: block;
}

.esago-hub-wizard-drawer__scroll .esago-hub-category-combo {
  position: relative;
  z-index: 5;
}

.esago-hub-media-drop {
  position: relative;
}

.esago-hub-wizard-drawer__scroll .esago-hub-wizard__panel[data-hub-panel="media"] {
  overflow: visible;
  padding-top: 6px;
}

.esago-hub-catalog-count {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.esago-hub-catalog-table .esago-hub-catalog-title {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  color: #006bff;
}

.esago-hub-catalog-title-cell {
  min-width: 180px;
}

.esago-hub-catalog-code {
  margin-top: 3px;
  font-size: 11px;
  font-weight: 300;
  line-height: 1.35;
  color: #9ca3af;
}

.esago-hub-catalog-code-color {
  margin-top: 2px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  color: #6b7280;
}

.esago-hub-catalog-th-colors,
.esago-hub-catalog-colors-cell {
  width: 4.5rem;
  text-align: center;
  position: relative;
  overflow: visible;
}

.esago-hub-catalog-table tbody tr:hover .esago-hub-catalog-colors-cell {
  z-index: 4;
}

.esago-hub-catalog-colors {
  position: relative;
  display: inline-flex;
  justify-content: center;
}

.esago-hub-catalog-colors__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.65rem;
  height: 1.65rem;
  padding: 0 0.45rem;
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: #4b5563;
  background: #f3f4f6;
  cursor: pointer;
  font: inherit;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.esago-hub-catalog-colors__count:hover:not(:disabled),
.esago-hub-catalog-colors__count:focus-visible,
.esago-hub-catalog-colors__count.is-open {
  background: #ede9fe;
  color: #5b21b6;
}

.esago-hub-catalog-colors__count:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px #c4b5fd;
}

.esago-hub-catalog-colors__count:disabled {
  cursor: default;
  opacity: 0.72;
}

.esago-hub-catalog-colors__source {
  display: none !important;
}

.esago-hub-catalog-colors__popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0 0 0.35rem;
  padding: 0 0.15rem;
}

.esago-hub-catalog-colors__popover-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}

.esago-hub-catalog-colors__popover-label:last-child {
  min-width: 2rem;
  text-align: right;
}

.esago-hub-catalog-colors__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.esago-hub-catalog-colors__item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.3rem 0.15rem;
  font-size: 12px;
  line-height: 1.35;
  color: #374151;
}

.esago-hub-catalog-colors__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.esago-hub-catalog-colors__thumb {
  display: block;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 6px;
  overflow: hidden;
  background: #f3f4f6;
}

.esago-hub-catalog-colors__thumb-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.esago-hub-catalog-colors__thumb-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.esago-hub-catalog-colors__name {
  min-width: 0;
  text-align: left;
}

.esago-hub-catalog-colors__item + .esago-hub-catalog-colors__item {
  border-top: 1px solid #f3f4f6;
}

.esago-hub-catalog-colors__item.is-current .esago-hub-catalog-colors__name {
  font-weight: 600;
  color: #111827;
}

.esago-hub-catalog-colors__item.is-deleted .esago-hub-catalog-colors__name,
.esago-hub-catalog-colors__item.is-deleted .esago-hub-catalog-colors__qty {
  color: #dc2626;
}

.esago-hub-catalog-colors__item.is-deleted.is-current .esago-hub-catalog-colors__name {
  color: #dc2626;
}

.esago-hub-catalog-colors__item.is-archived .esago-hub-catalog-colors__name,
.esago-hub-catalog-colors__item.is-archived .esago-hub-catalog-colors__qty,
.esago-hub-catalog-colors__item.is-archived .esago-hub-catalog-colors__state {
  color: #ffc72f;
}

.esago-hub-catalog-colors__item.is-archived.is-current .esago-hub-catalog-colors__name {
  color: #ffc72f;
}

.esago-hub-catalog-colors__state {
  margin-left: 0.35rem;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.esago-hub-catalog-colors__qty {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: #111827;
}

.esago-hub-colors-drawer {
  position: fixed;
  inset: 0;
  z-index: 680;
  pointer-events: none;
}

.esago-hub-colors-drawer.is-open {
  pointer-events: auto;
}

.esago-hub-colors-drawer__backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.32);
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
  cursor: pointer;
}

.esago-hub-colors-drawer.is-open .esago-hub-colors-drawer__backdrop {
  opacity: 1;
}

.esago-hub-colors-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(420px, 100vw);
  max-width: 100%;
  display: flex;
  flex-direction: column;
  background: #fff;
  box-shadow: -12px 0 40px rgba(15, 23, 42, 0.14);
  opacity: 0;
  transform: translateX(12px);
  transition: opacity 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.esago-hub-colors-drawer.is-open .esago-hub-colors-drawer__panel {
  opacity: 1;
  transform: translateX(0);
}

.esago-hub-colors-drawer.is-closing .esago-hub-colors-drawer__panel {
  opacity: 0;
  transform: translateX(12px);
}

.esago-hub-colors-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #f3f4f6;
}

.esago-hub-colors-drawer__eyebrow {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9ca3af;
}

.esago-hub-colors-drawer__title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
}

.esago-hub-colors-drawer__code {
  margin: 4px 0 0;
  font-size: 12px;
  color: #6b7280;
}

.esago-hub-colors-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
}

.esago-hub-colors-drawer__close:hover,
.esago-hub-colors-drawer__close:focus-visible {
  background: #f3f4f6;
  color: #111827;
}

.esago-hub-colors-drawer__body {
  flex: 1 1 auto;
  overflow: auto;
  padding: 10px 14px 18px;
}

.esago-hub-colors-drawer__body .esago-hub-catalog-colors__popover-head {
  margin: 0 4px 8px;
  padding: 0 4px;
}

.esago-hub-colors-drawer__body .esago-hub-catalog-colors__item {
  grid-template-columns: 80px minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-radius: 0;
  border-bottom: 1px solid #e9ecef;
}

.esago-hub-colors-drawer__body .esago-hub-catalog-colors__item.is-clickable {
  cursor: pointer;
}

.esago-hub-colors-drawer__body .esago-hub-catalog-colors__item.is-clickable:hover {
  background: transparent;
}

.esago-hub-colors-drawer__body .esago-hub-catalog-colors__item.is-clickable:focus-visible {
  outline: 2px solid #c4b5fd;
  outline-offset: -2px;
  box-shadow: none;
}

.esago-hub-colors-drawer__body .esago-hub-catalog-colors__thumb {
  width: 80px;
  height: 80px;
  border-radius: 10px;
}

.esago-hub-colors-drawer__body .esago-hub-catalog-colors__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.esago-hub-colors-drawer__body .esago-hub-catalog-colors__meta {
  gap: 0.45rem;
  padding-top: 0.1rem;
}

.esago-hub-colors-drawer__body .esago-hub-catalog-colors__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.esago-hub-colors-drawer__body .esago-hub-catalog-colors__size {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 23px;
  height: 23px;
  padding: 0 6px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  color: #374151;
}

.esago-hub-colors-drawer__body .esago-hub-catalog-colors__item + .esago-hub-catalog-colors__item {
  border-top: 0;
}

.esago-hub-colors-drawer__body .esago-hub-catalog-colors__list .esago-hub-catalog-colors__item:last-child {
  border-bottom: 0;
}

.esago-hub-colors-drawer__body .esago-hub-catalog-colors__name {
  font-size: 13px;
  font-weight: 600;
}

.esago-hub-colors-drawer__body .esago-hub-catalog-colors__qty {
  font-size: 13px;
  padding-top: 0.15rem;
}

.esago-hub-catalog-category-cell {
  min-width: 160px;
  max-width: 240px;
}

.esago-hub-catalog-table .esago-hub-catalog-category-leaf {
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  color: #006bff;
}

.esago-hub-catalog-category-path {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 300;
  line-height: 1.35;
  color: #9ca3af;
}

.esago-hub-catalog-id {
  font-size: 11px;
  color: #6b7280;
}

.esago-hub-catalog-table thead th.esago-th-actions {
  overflow: visible;
  vertical-align: middle;
}

.esago-hub-catalog-table .esago-th-actions .esago-hub-catalog-toolstrip--bulk {
  float: right;
}

.esago-hub-catalog-toolstrip--bulk .esago-hub-catalog-toolstrip__tooltip {
  z-index: 1200;
  left: auto;
  bottom: auto;
  transform: none;
  transition:
    opacity 0.15s ease,
    visibility 0.15s ease;
}

.esago-hub-catalog-toolstrip--bulk .esago-hub-catalog-toolstrip__item:hover .esago-hub-catalog-toolstrip__tooltip,
.esago-hub-catalog-toolstrip--bulk .esago-hub-catalog-toolstrip__item:focus-within .esago-hub-catalog-toolstrip__tooltip {
  transform: none;
}

.esago-hub-catalog-toolstrip--bulk .esago-hub-catalog-toolstrip__tooltip.is-fixed {
  position: fixed;
  bottom: auto;
  right: auto;
  transform: none !important;
  text-transform: none;
  letter-spacing: normal;
}

.esago-hub-catalog-toolstrip--bulk .esago-hub-catalog-toolstrip__tooltip.is-fixed.is-align-end::after {
  left: auto;
  right: 12px;
  transform: none;
}

.esago-hub-catalog-toolstrip--bulk .esago-hub-catalog-toolstrip__tooltip.is-fixed.is-align-start::after {
  left: 12px;
  right: auto;
  transform: none;
}

.esago-hub-catalog-toolstrip__item:hover .esago-hub-catalog-toolstrip__tooltip.is-fixed,
.esago-hub-catalog-toolstrip__item:focus-within .esago-hub-catalog-toolstrip__tooltip.is-fixed {
  transform: none !important;
}

.esago-hub-catalog-toolstrip {
  display: inline-flex;
  overflow: visible;
  background: transparent;
}

.esago-hub-catalog-table .esago-th-actions,
.esago-hub-catalog-table .esago-td-actions {
  text-align: right;
  white-space: nowrap;
}

.esago-hub-catalog-table .esago-td-actions {
  width: 1%;
}

.esago-hub-catalog-toolstrip__item {
  display: inline-flex;
  margin: 0;
  position: relative;
}

.esago-hub-catalog-toolstrip__item + .esago-hub-catalog-toolstrip__item {
  margin-left: -1px;
}

.esago-hub-catalog-toolstrip__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 29px;
  padding: 0;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #006bff;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
}

.esago-hub-catalog-toolstrip__item:first-child .esago-hub-catalog-toolstrip__btn {
  border-radius: 8px 0 0 8px;
}

.esago-hub-catalog-toolstrip__item:last-child .esago-hub-catalog-toolstrip__btn {
  border-radius: 0 8px 8px 0;
}

.esago-hub-catalog-toolstrip__btn svg {
  width: 17px;
  height: 17px;
}

.esago-hub-catalog-toolstrip__btn:hover,
.esago-hub-catalog-toolstrip__btn:focus-visible {
  position: relative;
  z-index: 1;
  background: #f3f4f6;
  color: #006bff;
}

.esago-hub-catalog-toolstrip__btn--delete {
  color: #dc2626;
}

.esago-hub-catalog-toolstrip__btn--restore {
  color: #16a34a;
}

.esago-hub-catalog-toolstrip__btn--restore:hover,
.esago-hub-catalog-toolstrip__btn--restore:focus-visible {
  background: rgba(22, 163, 74, 0.08);
  color: #15803d;
}

.esago-hub-catalog-toolstrip__btn--delete:hover,
.esago-hub-catalog-toolstrip__btn--delete:focus-visible {
  background: #fef2f2;
  color: #dc2626;
}

.esago-hub-catalog-toolstrip__tooltip {
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  z-index: 20;
  padding: 5px 8px;
  border-radius: 4px;
  background: #006aff;
  color: #fff;
  font-size: 9px;
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(4px);
  transition:
    opacity 0.15s ease,
    transform 0.15s ease,
    visibility 0.15s ease;
}

.esago-hub-catalog-toolstrip__tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 4px solid transparent;
  border-top-color: #006aff;
}

.esago-hub-catalog-toolstrip__item:hover .esago-hub-catalog-toolstrip__tooltip,
.esago-hub-catalog-toolstrip__item:focus-within .esago-hub-catalog-toolstrip__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.esago-hub-catalog-check-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  cursor: pointer;
  line-height: 1;
  vertical-align: middle;
}

.esago-hub-catalog-check {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.esago-hub-catalog-check-box {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 15px;
  height: 15px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  background: #fff;
  flex-shrink: 0;
}

.esago-hub-catalog-check:checked + .esago-hub-catalog-check-box,
.esago-hub-catalog-check:indeterminate + .esago-hub-catalog-check-box {
  background: var(--esago-search-focus, #2686ff);
  border-color: var(--esago-search-focus, #2686ff);
}

.esago-hub-catalog-check:checked + .esago-hub-catalog-check-box::after {
  content: "";
  display: block;
  width: 4px;
  height: 7px;
  margin-top: -2px;
  margin-left: -1px;
  border: solid rgba(255, 255, 255, 0.92);
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.esago-hub-catalog-check:indeterminate + .esago-hub-catalog-check-box::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 50%;
  width: auto;
  height: 1.5px;
  margin-top: -0.75px;
  margin-left: 0;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  transform: none;
}

.esago-hub-catalog-table .esago-th-check,
.esago-hub-catalog-table .esago-td-check {
  width: 48px;
  min-width: 48px;
  padding-top: 12px;
  padding-bottom: 12px;
  padding-right: 16px;
  text-align: center;
  vertical-align: middle;
}

.esago-hub-catalog-table thead th.esago-th-check {
  padding-right: 16px;
}

.esago-hub-catalog-table tbody td.esago-td-check {
  padding-right: 16px;
}

.esago-hub-catalog-table tbody td.esago-td-thumb {
  padding-left: 4px;
}

.esago-hub-wizard-duplicate {
  padding: 0 18px 10px;
}

.esago-hub-wizard-duplicate .esago-form-error {
  margin-bottom: 8px;
}

.esago-hub-category-combo__option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-bottom: 1px solid #f9fafb;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.esago-hub-category-combo__option:last-child {
  border-bottom: 0;
}

.esago-hub-category-combo__option:hover,
.esago-hub-category-combo__option.is-highlighted {
  background: #f5f0ff;
  outline: none;
}

.esago-hub-category-combo__option-label {
  font-size: 13px;
  font-weight: 600;
  color: #111827;
  line-height: 1.35;
}

.esago-hub-category-combo__option-sector {
  font-size: 11px;
  color: #6b7280;
}

.esago-hub-category-combo__empty {
  margin: 0;
  padding: 12px;
  font-size: 13px;
  color: #6b7280;
}

.esago-hub-wizard-drawer__main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.esago-hub-wizard-drawer__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.esago-hub-wizard-drawer__head-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.esago-hub-wizard-drawer__title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #111827;
}

.esago-hub-wizard-drawer__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
}

.esago-hub-wizard-drawer__close:hover {
  background: #f3f4f6;
  color: #111827;
}

.esago-hub-wizard-drawer__close svg {
  width: 18px;
  height: 18px;
}

.esago-hub-wizard-drawer__error {
  margin: 0;
  padding: 10px 18px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 12px;
}

.esago-hub-wizard-drawer__scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 14px 18px;
}

.esago-hub-wizard-drawer__foot {
  flex-shrink: 0;
  padding: 12px 18px;
  border-top: 1px solid #e5e7eb;
  background: #fff;
}

.esago-hub-wizard-save-hint {
  margin: 0 0 0.65rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: #4b5563;
}

.esago-hub-wizard--drawer .esago-hub-wizard-section {
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 14px;
}

.esago-hub-wizard--drawer .esago-hub-wizard-section__aside {
  display: none;
}

.esago-hub-wizard--drawer .esago-hub-label {
  font-size: 11px;
  margin-bottom: 3px;
}

.esago-hub-wizard--drawer .esago-hub-field-head {
  margin-bottom: 3px;
}

.esago-hub-wizard--drawer .esago-hub-field-head .esago-hub-label {
  margin-bottom: 0;
}

.esago-hub-wizard--drawer .esago-hub-field {
  margin-bottom: 8px;
}

.esago-hub-wizard--drawer input[type="text"],
.esago-hub-wizard--drawer input[type="number"],
.esago-hub-wizard--drawer input[type="search"],
.esago-hub-wizard--drawer select,
.esago-hub-wizard--drawer textarea {
  padding: 7px 9px;
  font-size: 12px;
}

.esago-hub-wizard--drawer textarea {
  min-height: 64px;
}

.esago-hub-wizard--drawer textarea[name="description"] {
  resize: none;
}

.esago-hub-wizard--drawer .esago-hub-field-row--2 {
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.esago-hub-wizard--drawer .esago-hub-field-row--3 {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.esago-hub-wizard--drawer .esago-hub-wizard__body {
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.esago-hub-wizard--drawer .esago-hub-size-grid {
  font-size: 11px;
}

.esago-hub-wizard--drawer .esago-hub-grid-input {
  min-width: 72px;
  padding: 6px 8px;
  font-size: 11px;
}

.esago-hub-wizard--drawer .esago-hub-size-grid .esago-hub-col-ean .esago-hub-grid-input {
  min-width: 118px;
}

.esago-hub-wizard--drawer .esago-hub-size-grid .esago-hub-col-qty .esago-hub-grid-input {
  min-width: 0;
  width: 46px;
  max-width: 50px;
  padding-left: 4px;
  padding-right: 4px;
}

.esago-hub-wizard--drawer .esago-hub-wizard__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.esago-hub-ean-prefill__row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.esago-hub-ean-prefill__input {
  flex: 1;
  min-width: 0;
}

.esago-hub-ean-prefill__status.is-success {
  color: #166534;
}

.esago-hub-ean-prefill__status.is-error {
  color: #b91c1c;
}

.esago-hub-ean-ai-loader {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.62) 0%,
    rgba(255, 255, 255, 0.38) 100%
  );
  backdrop-filter: blur(10px) saturate(125%);
  -webkit-backdrop-filter: blur(10px) saturate(125%);
}

.esago-hub-ean-ai-loader[hidden] {
  display: none !important;
}

.esago-hub-ean-ai-loader__badge {
  display: flex;
  align-items: center;
  width: 240px;
  height: 70px;
  background-color: #1c5749;
  color: #dadada;
  font-weight: bold;
  border: 3px solid #000;
  padding: 0 12px;
  box-sizing: border-box;
  position: relative;
  box-shadow: 5px 5px 0 #000;
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}

.esago-hub-ean-ai-loader__badge::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: esago-hub-ean-ai-shine 1.8s ease infinite;
}

@keyframes esago-hub-ean-ai-shine {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

@keyframes esago-hub-ean-ai-spin {
  0% {
    transform: rotate(0deg) scale(1.1);
  }
  100% {
    transform: rotate(360deg) scale(1.1);
  }
}

.esago-hub-ean-ai-loader__logo {
  display: flex;
  align-items: center;
  margin-right: 16px;
}

.esago-hub-ean-ai-loader__icon {
  width: 28px;
  height: 28px;
  margin-right: 10px;
  margin-bottom: 2px;
  animation: esago-hub-ean-ai-spin 1s linear infinite;
}

.esago-hub-ean-ai-loader__brand {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: #dadada;
}

.esago-hub-ean-ai-loader__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.esago-hub-ean-ai-loader__text span:first-child {
  font-size: 9px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.esago-hub-ean-ai-loader__text span:last-child {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #2eae7f;
}

.esago-hub-wizard--drawer .esago-input:focus,
.esago-hub-wizard--drawer .esago-input-textarea:focus,
.esago-hub-wizard--drawer select.esago-input:focus,
.esago-hub-wizard--drawer input[type="text"]:focus,
.esago-hub-wizard--drawer input[type="number"]:focus,
.esago-hub-wizard--drawer input[type="search"]:focus,
.esago-hub-wizard--drawer textarea:focus,
.esago-hub-wizard--drawer select:focus {
  border-color: var(--esago-search-focus);
  box-shadow: 0 0 0 2px var(--esago-search-focus-ring);
  outline: none;
}

.esago-hub-create-drawer__loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: #fff;
  color: #6b7280;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.esago-hub-create-drawer__loading::before {
  content: "";
  width: 18px;
  height: 18px;
  border: 2px solid #dbeafe;
  border-top-color: #025fff;
  border-radius: 50%;
  animation: esago-hub-drawer-loader-spin 0.75s linear infinite;
}

@keyframes esago-hub-drawer-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.esago-hub-create-drawer.is-loading .esago-hub-create-drawer__loading {
  display: flex;
}

.esago-hub-create-drawer__body > .esago-hub-wizard--drawer {
  opacity: 0;
}

.esago-hub-create-drawer.is-content-ready .esago-hub-create-drawer__body > .esago-hub-wizard--drawer,
.esago-hub-wizard--drawer.esago-hub-drawer-content-enter {
  animation: esago-hub-drawer-content-in 0.65s cubic-bezier(0.22, 0.61, 0.36, 1) both;
}

.esago-hub-create-drawer.is-content-ready .esago-hub-create-drawer__body > .esago-hub-wizard--drawer.esago-hub-drawer-content-enter--instant,
.esago-hub-wizard--drawer.esago-hub-drawer-content-enter--instant {
  animation: none;
  opacity: 1;
  transform: none;
}

@keyframes esago-hub-drawer-content-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.esago-hub-color-variants {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.esago-hub-color-variant-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  min-height: 100%;
}

.esago-hub-color-variant-card.is-current {
  border-color: #025fff;
}

.esago-hub-color-variant-card.is-deleted {
  border-color: #fca5a5;
}

.esago-hub-color-variant-card.is-deleted .esago-hub-color-variant-card__title,
.esago-hub-color-variant-card.is-deleted .esago-hub-color-variant-card__code,
.esago-hub-color-variant-card.is-deleted .esago-hub-color-variant-card__stock-label {
  color: #dc2626;
}

.esago-hub-color-variant-card.is-deleted .esago-hub-color-variant-card__stock-label strong {
  color: #dc2626;
}

.esago-hub-color-variant-card.is-archived {
  border-color: #ffc72f;
}

.esago-hub-color-variant-card.is-archived .esago-hub-color-variant-card__title,
.esago-hub-color-variant-card.is-archived .esago-hub-color-variant-card__code,
.esago-hub-color-variant-card.is-archived .esago-hub-color-variant-card__stock-label {
  color: #ffc72f;
}

.esago-hub-color-variant-card.is-archived .esago-hub-color-variant-card__stock-label strong {
  color: #ffc72f;
}

.esago-hub-color-variant-card.is-clickable {
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.esago-hub-color-variant-card.is-clickable:hover {
  border-color: #025fff;
  transform: translateY(-2px);
}

.esago-hub-color-variant-card.is-clickable:focus-visible {
  outline: 2px solid #025fff;
  outline-offset: 2px;
}

.esago-hub-color-variant-card__visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #f3f4f6;
  flex-shrink: 0;
}

.esago-hub-color-variant-card__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  object-position: center;
}

.esago-hub-color-variant-card__placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f3f4f6, #e5e7eb);
}

.esago-hub-color-variant-card__badge {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #025fff;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.esago-hub-color-variant-card__badge--deleted {
  background: #dc2626;
}

.esago-hub-color-variant-card__badge--archived {
  background: #ffc72f;
  color: #111827;
}

.esago-hub-color-variant-card__body {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 12px;
}

.esago-hub-color-variant-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.esago-hub-color-variant-card__code {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.esago-hub-color-variant-card__stock {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.esago-hub-color-variant-card__stock-label {
  margin: 0;
  font-size: 12px;
  color: #6b7280;
}

.esago-hub-color-variant-card__stock-label strong {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
}

.esago-hub-color-variant-card__sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.esago-hub-color-variant-card__size {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  background: #f9fafb;
  font-size: 10px;
  font-weight: 400;
  line-height: 1;
  color: #374151;
}

@media (max-width: 820px) {
  .esago-hub-color-variants {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .esago-hub-wizard-drawer__layout {
    grid-template-columns: 1fr;
  }

  .esago-hub-stepper {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px;
  }

  .esago-hub-stepper__step {
    flex-direction: column;
    align-items: center;
    min-width: 88px;
    margin-bottom: 0;
    margin-right: 8px;
    text-align: center;
  }

  .esago-hub-stepper__line {
    display: none;
  }

  .esago-hub-stepper__circle {
    margin-right: 0;
    margin-bottom: 6px;
  }

  .esago-hub-stepper__title {
    text-align: center;
    font-size: 10px;
  }

  .esago-hub-wizard--drawer .esago-hub-field-row--2,
  .esago-hub-wizard--drawer .esago-hub-field-row--3 {
    grid-template-columns: 1fr;
  }
}

/* Hub catalog — conferma eliminazione (toast in basso a destra) */
.esago-hub-confirm-toast-host {
  position: fixed;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 1200;
  pointer-events: none;
}

.esago-hub-confirm-toast-host:not([hidden]) {
  pointer-events: auto;
}

.esago-hub-confirm-toast {
  position: relative;
  width: min(22rem, calc(100vw - 1.7rem));
  padding: 0.95rem 0.95rem 0.85rem 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12), 0 4px 14px rgba(15, 23, 42, 0.08);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1), transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.esago-hub-confirm-toast-host.is-visible .esago-hub-confirm-toast:not(.esago-hub-confirm-toast--hide) {
  opacity: 1;
  transform: translateY(0);
}

.esago-hub-confirm-toast.esago-hub-confirm-toast--hide {
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
}

.esago-hub-confirm-toast__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  cursor: pointer;
}

.esago-hub-confirm-toast__close:hover {
  color: #4b5563;
  background: rgba(15, 23, 42, 0.05);
}

.esago-hub-confirm-toast__main {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding-right: 1.25rem;
}

.esago-hub-confirm-toast__icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.esago-hub-confirm-toast--archive .esago-hub-confirm-toast__icon {
  background: rgba(0, 107, 255, 0.12);
  color: #006bff;
}

.esago-hub-confirm-toast--archive .esago-hub-confirm-toast__btn--confirm {
  border-color: #006bff;
  background: #006bff;
}

.esago-hub-confirm-toast--archive .esago-hub-confirm-toast__btn--confirm:hover {
  background: #0056cc;
  border-color: #0056cc;
}

.esago-hub-confirm-toast__icon svg {
  width: 1rem;
  height: 1rem;
}

.esago-hub-confirm-toast__copy {
  min-width: 0;
}

.esago-hub-confirm-toast__title {
  margin: 0 0 0.2rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.35;
  color: #111827;
}

.esago-hub-confirm-toast__text {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #6b7280;
}

.esago-hub-confirm-toast__body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.esago-hub-confirm-toast__body p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.45;
  color: #6b7280;
}

.esago-hub-confirm-toast__body p.esago-hub-confirm-toast__lead {
  color: #374151;
}

.esago-hub-confirm-toast__form {
  margin: 0.8rem 0 0;
}

.esago-hub-confirm-toast__actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.45rem;
}

.esago-hub-confirm-toast__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 1.75rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.esago-hub-confirm-toast__btn--cancel {
  border-color: #e5e7eb;
  background: #fff;
  color: #374151;
}

.esago-hub-confirm-toast__btn--cancel:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}

.esago-hub-confirm-toast__btn--confirm {
  border-color: #dc2626;
  background: #dc2626;
  color: #fff;
}

.esago-hub-confirm-toast__btn--confirm:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

@media (max-width: 900px) {
  .esago-hub-confirm-toast-host {
    right: 0.65rem;
    bottom: 0.65rem;
  }
}
