:root {
  --wsx-bg: #f5f7fa;
  --wsx-panel: #ffffff;
  --wsx-text: #212529;
  --wsx-muted: #6c757d;
  --wsx-primary: #0088cc;
  --wsx-primary-dark: #005299;
  --wsx-border: #e5e7eb;
  --wsx-focus: 0 0 0 3px rgba(0, 136, 204, 0.12);
  --wsx-header-offset-desktop: 78px;
  --wsx-header-offset-mobile: 132px;
}

/* Base compartilhada das telas de produto (cadastro e selecao) */
.wsx-produto-page {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--wsx-bg) !important;
}

#wsx-produto-root,
#wsx-produto-root *,
#wsx-produto-root *::before,
#wsx-produto-root *::after {
  all: revert;
  box-sizing: border-box;
}

#wsx-produto-root {
  min-height: 100vh;
  width: 100%;
  overflow-x: hidden;
  isolation: isolate;
  font-family: "Segoe UI", "Roboto", sans-serif;
  color: var(--wsx-text);
  background: var(--wsx-bg);
}

#wsx-produto-root .wsx-main-container {
  padding-top: var(--wsx-header-offset-desktop);
}

#wsx-produto-root .wsx-global-header,
#wsx-produto-root .wsx-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  width: 100%;
  max-width: none !important;
  background: #ffffff;
  border-bottom: 1px solid var(--wsx-border);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

#wsx-produto-root .wsx-breadcrumb {
  color: var(--wsx-muted);
  font-size: 13px;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#wsx-produto-root .wsx-breadcrumb a {
  color: var(--wsx-primary);
  text-decoration: none;
}

#wsx-produto-root .wsx-breadcrumb strong {
  color: var(--wsx-text);
}

#wsx-produto-root .wsx-brand,
#wsx-produto-root .wsx-header-logos {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 276px;
  min-width: 276px;
  flex-shrink: 0;
  justify-content: flex-end;
}

#wsx-produto-root .wsx-brand-text,
#wsx-produto-root .wsx-logo-container {
  width: 144px;
  min-width: 144px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#wsx-produto-root .wsx-brand-logo {
  display: block;
  width: auto;
  height: 44px;
  max-width: 132px;
  object-fit: contain;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
}

#wsx-produto-root .wsx-client-icon,
#wsx-produto-root .wsx-client-logo {
  width: 120px;
  min-width: 120px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

#wsx-produto-root .wsx-client-icon img,
#wsx-produto-root .wsx-client-logo img {
  width: auto;
  height: 44px;
  max-width: 120px;
  object-fit: contain;
  object-position: center;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: auto;
}

@media (max-width: 768px) {
  #wsx-produto-root .wsx-main-container {
    padding-top: var(--wsx-header-offset-mobile);
  }

  #wsx-produto-root .wsx-global-header,
  #wsx-produto-root .wsx-header {
    flex-direction: column;
    align-items: flex-start;
  }

  #wsx-produto-root .wsx-breadcrumb {
    width: 100%;
  }

  #wsx-produto-root .wsx-brand,
  #wsx-produto-root .wsx-header-logos {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }
}

.wsx-login-page {
  margin: 0;
  background: var(--wsx-bg);
  min-height: 100vh;
}

#wsx-login-root,
#wsx-login-root *,
#wsx-login-root *::before,
#wsx-login-root *::after {
  all: revert;
  box-sizing: border-box;
}

#wsx-login-root {
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", "Roboto", Arial, sans-serif;
  color: var(--wsx-text);
  background: var(--wsx-bg);
}
