/* Element popovers are mounted on the document body. Canvas pickers use a
   dedicated confirm action, including inside the embedded view editor. */
html:root body :is(.el-color-dropdown .el-button.el-color-dropdown__btn,
                   .color-list-picker-dialog .picker-footer .el-button--primary,
                   #admin-view-color-picker [data-picker-confirm],
                   button[data-picker-confirm]):not(:disabled, .is-disabled, [aria-disabled="true"]) {
  background-color: var(--picker-confirm-fill, #1f4e79) !important;
  border-color: var(--picker-confirm-fill, #1f4e79) !important;
  color: #fff !important;
}
html:root body :is(.el-color-dropdown .el-color-dropdown__btn,
                   .color-list-picker-dialog .picker-footer .el-button--primary,
                   button[data-picker-confirm]):not(:disabled, .is-disabled, [aria-disabled="true"]):hover {
  --picker-confirm-fill: #285d89;
}
html:root body :is(.el-color-dropdown .el-color-dropdown__btn,
                   .color-list-picker-dialog .picker-footer .el-button--primary,
                   button[data-picker-confirm]):not(:disabled, .is-disabled, [aria-disabled="true"]):active {
  --picker-confirm-fill: #183d60;
}
html:root body :is(.el-color-dropdown .el-color-dropdown__btn,
                   .color-list-picker-dialog .picker-footer .el-button--primary,
                   button[data-picker-confirm]):focus-visible {
  outline: 2px solid #285d89 !important;
  outline-offset: 2px;
}


/* The mockup HEX picker opens inside a themed dialog in the product editor. */
html:root body #mp-filter-hex .mp-hsv-footer button[data-picker-confirm]:enabled {
  background: var(--picker-confirm-fill, #1f4e79) !important;
  border-color: var(--picker-confirm-fill, #1f4e79) !important;
  color: #fff !important;
}
