/* Igualador de color compartido — integrado al estilo visual de EPC. */
html body .epc .epc-matcher {
  color: var(--D, var(--epc-dark, #1e1e1e)) !important;
}

html body .epc .epc-color-control {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  width: 100% !important;
  margin: 22px 0 26px !important;
}

html body .epc .epc-native-color {
  width: 70px !important;
  height: 70px !important;
  min-width: 70px !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 6px solid var(--G, var(--epc-light, #f4f6f9)) !important;
  border-radius: 50% !important;
  background: transparent !important;
  cursor: pointer !important;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .12) !important;
  transition: transform .25s ease !important;
}

html body .epc .epc-native-color:hover { transform: scale(1.05) !important; }
html body .epc .epc-native-color::-webkit-color-swatch-wrapper { padding: 0 !important; }
html body .epc .epc-native-color::-webkit-color-swatch { border: 0 !important; border-radius: 50% !important; }
html body .epc .epc-native-color::-moz-color-swatch { border: 0 !important; border-radius: 50% !important; }

html body .epc .epc-hex-field {
  display: flex !important;
  flex: 1 1 150px !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 0 !important;
  min-height: 58px !important;
  padding: 8px 16px !important;
  border: 2px solid #e4ebf2 !important;
  border-radius: 14px !important;
  background: var(--G, var(--epc-light, #f4f6f9)) !important;
}

html body .epc .epc-hex-field > span {
  color: #87838b !important;
  font-size: .62rem !important;
  font-weight: 800 !important;
  letter-spacing: .1em !important;
}

html body .epc .epc-hex-input {
  width: 100% !important;
  min-width: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  color: var(--D, var(--epc-dark, #1e1e1e)) !important;
  font: 800 1rem/1.3 var(--epc-font-body, var(--font-body, sans-serif)) !important;
  text-transform: uppercase !important;
}

html body .epc .epc-icon-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(0, 174, 239, .12) !important;
  color: var(--B, var(--dyn-color, #00aeef)) !important;
  cursor: pointer !important;
  font-size: 1.05rem !important;
  transition: transform .25s ease, background .25s ease !important;
}

html body .epc .epc-icon-button:hover {
  transform: translateY(-2px) !important;
  background: rgba(0, 174, 239, .2) !important;
}

html body .epc .epc-matches-heading {
  margin: 8px 0 14px !important;
}

html body .epc .epc-matches-heading h4 {
  margin: 0 !important;
  color: var(--P, var(--epc-purple, #8a2b8b)) !important;
  font-size: .85rem !important;
  font-weight: 800 !important;
  letter-spacing: .03em !important;
  text-transform: uppercase !important;
}

html body .epc .epc-matches-heading h4 i { margin-right: 7px !important; color: var(--B, #00aeef) !important; }

html body .epc .pantone-grid.epc-match-grid,
html body .epc .epc-match-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

html body .epc .epc-match-card {
  min-width: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  border: 1px solid #dcdfe5 !important;
  border-radius: 0 !important;
  background: #fff !important;
  color: var(--D, var(--epc-dark, #1e1e1e)) !important;
  text-align: left !important;
  cursor: pointer !important;
  box-shadow: none !important;
  transition: border-color .2s ease, box-shadow .2s ease !important;
}

html body .epc .epc-match-card:hover,
html body .epc .epc-match-card.is-active {
  border-color: var(--dyn-color, var(--B, #00aeef)) !important;
  box-shadow: 0 0 0 2px rgba(0, 174, 239, .14) !important;
}

html body .epc .epc-match-swatch {
  display: block !important;
  width: 100% !important;
  height: 108px !important;
  box-shadow: inset 0 -1px rgba(0, 0, 0, .08) !important;
}

html body .epc .epc-match-copy {
  display: block !important;
  min-height: 78px !important;
  padding: 9px 10px 11px !important;
  text-align: left !important;
}

html body .epc .epc-pantone-brand {
  display: block !important;
  color: #0c0c0d !important;
  font-family: var(--epc-font-title, var(--font-title, sans-serif)) !important;
  font-size: .83rem !important;
  font-weight: 900 !important;
  letter-spacing: -.045em !important;
  line-height: 1.05 !important;
}

html body .epc .epc-pantone-brand sup {
  position: relative !important;
  top: -.12em !important;
  margin-left: 1px !important;
  font-size: .42em !important;
}

html body .epc .epc-pantone-code,
html body .epc .epc-pantone-name {
  display: block !important;
  color: #3f4248 !important;
  font-size: .7rem !important;
  line-height: 1.25 !important;
}

html body .epc .epc-pantone-code { margin-top: 2px !important; font-weight: 500 !important; }
html body .epc .epc-pantone-name { margin-top: 1px !important; color: #16171a !important; font-weight: 700 !important; }

html body .epc .epc-pantone-name::first-letter {
  text-transform: uppercase !important;
}

html body .epc .epc-related-section {
  width: 100% !important;
  margin-bottom: 30px !important;
  padding: 20px !important;
  border: 2px solid #eee8f2 !important;
  border-radius: 20px !important;
  background: rgba(138, 43, 139, .035) !important;
}

html body .epc .epc-related-grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(96px, 1fr)) !important;
  gap: 12px !important;
}

html body .epc .epc-related-card .epc-match-swatch {
  height: 82px !important;
}

html body .epc .epc-related-card .epc-match-copy {
  min-height: 74px !important;
  padding: 8px 8px 10px !important;
}

html body .epc .epc-image-picker {
  width: 100% !important;
  margin: 0 0 30px !important;
  padding: 18px !important;
  border: 2px dashed #dfe6ee !important;
  border-radius: 18px !important;
  background: #fafbfc !important;
}

html body .epc .epc-image-picker-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

html body .epc .epc-image-picker-copy { min-width: 0 !important; }
html body .epc .epc-image-picker .epc-image-picker-title {
  margin: 0 !important;
  color: var(--D, #1e1e1e) !important;
  font-size: .84rem !important;
  font-weight: 850 !important;
  line-height: 1.25 !important;
}

html body .epc .epc-image-picker .epc-image-picker-help {
  margin: 4px 0 0 !important;
  color: #747983 !important;
  font-size: .68rem !important;
  line-height: 1.35 !important;
}

html body .epc .epc-image-picker-actions {
  display: flex !important;
  flex: 0 0 auto !important;
  gap: 8px !important;
}

html body .epc .epc-image-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 42px !important;
  padding: 9px 13px !important;
  border: 1px solid #e0e4ea !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: var(--P, #8a2b8b) !important;
  cursor: pointer !important;
  font-size: .72rem !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .05) !important;
}

html body .epc .epc-image-action-camera {
  border-color: transparent !important;
  background: var(--P, #8a2b8b) !important;
  color: #fff !important;
}

html body .epc .epc-image-action input { display: none !important; }
html body .epc .epc-image-canvas {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  margin-top: 16px !important;
  border: 3px solid #fff !important;
  border-radius: 12px !important;
  cursor: crosshair !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .1) !important;
  touch-action: manipulation !important;
}

html body .epc .epc-image-canvas[hidden],
html body .epc .epc-image-hint[hidden] { display: none !important; }

html body .epc .epc-image-picker .epc-image-hint {
  margin: 9px 0 0 !important;
  color: var(--P, #8a2b8b) !important;
  font-size: .72rem !important;
  font-weight: 750 !important;
  text-align: center !important;
}

html body .epc .epc-catalog-match-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
}

html body .epc .epc-catalog-match-card {
  display: grid !important;
  grid-template-columns: 68px minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 14px !important;
  min-height: 78px !important;
  padding: 7px 14px 7px 7px !important;
  border: 2px solid #edf0f4 !important;
  border-radius: 16px !important;
  background: #fff !important;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .05) !important;
}

html body .epc .epc-catalog-match-card:first-child {
  border-color: rgba(0, 174, 239, .45) !important;
  box-shadow: 0 8px 20px rgba(0, 174, 239, .1) !important;
}

html body .epc .epc-catalog-swatch {
  width: 64px !important;
  height: 64px !important;
  border-radius: 12px !important;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08) !important;
}

html body .epc .epc-catalog-copy { min-width: 0 !important; }
html body .epc .epc-catalog-copy strong { display: block !important; color: var(--D, #1e1e1e) !important; font-size: 1rem !important; }
html body .epc .epc-catalog-copy span { display: block !important; margin-top: 3px !important; color: #777 !important; font-size: .72rem !important; text-transform: capitalize !important; }
html body .epc .epc-catalog-distance small { color: var(--B, #00aeef) !important; font-size: .65rem !important; font-weight: 800 !important; }

html body .epc .epc-empty-state {
  grid-column: 1 / -1 !important;
  padding: 20px !important;
  color: #777 !important;
  text-align: center !important;
}

html body .epc .epc-matcher :is(button, input):focus-visible {
  outline: 3px solid rgba(0, 174, 239, .28) !important;
  outline-offset: 3px !important;
}

@media (max-width: 600px) {
  html body .epc .epc-color-control { gap: 10px !important; }
  html body .epc .epc-native-color { width: 62px !important; height: 62px !important; min-width: 62px !important; }
  html body .epc .epc-icon-button { width: 48px !important; height: 48px !important; min-width: 48px !important; }
  html body .epc .pantone-grid.epc-match-grid,
  html body .epc .epc-match-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  html body .epc .epc-match-swatch { height: 94px !important; }
  html body .epc .epc-match-copy { min-height: 72px !important; padding: 8px 7px 10px !important; }
  html body .epc .epc-pantone-brand { font-size: .75rem !important; }
  html body .epc .epc-pantone-code,
  html body .epc .epc-pantone-name { font-size: .65rem !important; }
  html body .epc .epc-related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  html body .epc .epc-related-card .epc-match-swatch { height: 88px !important; }
  html body .epc .epc-image-picker { padding: 15px !important; }
  html body .epc .epc-image-picker-header { align-items: stretch !important; flex-direction: column !important; }
  html body .epc .epc-image-picker-actions { width: 100% !important; }
  html body .epc .epc-image-action { flex: 1 1 0 !important; min-height: 46px !important; }
  html body .epc .epc-catalog-match-card { grid-template-columns: 58px minmax(0, 1fr) !important; }
  html body .epc .epc-catalog-swatch { width: 56px !important; height: 56px !important; }
  html body .epc .epc-catalog-distance { grid-column: 2 !important; }
}

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