/**
 * Styles for the injected POS checkout button.
 *
 * The new button sits next to the orange "Confirm Payment & Generate Invoice"
 * button in the checkout action footer.
 *
 * The existing Confirm button is roughly:
 *   - Orange background (#f37021)
 *   - ~14px bold white text
 *   - ~12px 24px padding
 *   - border-radius ~6px
 * We match these dimensions so both buttons look cohesive.
 */

/* ── New Action Button ── */
.wkwcpos-new-action-btn {
  min-width: 140px;
  box-sizing: border-box;
  margin: 5px;
  display: inline-flex; 
  cursor: pointer;

  /* Colors — Green to visually distinguish from the orange Confirm button */
  background-color: #25d366;
  color: #ffffff;
  border: none;
  border-radius: 6px;

  /* Typography — match the POS font stack */
  font-size: 14px;
  font-weight: 600;
  font-family: "Roboto", -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.3px;
  text-transform: none;
  white-space: nowrap;
  line-height: 1.4;

  /* Interaction */
  cursor: pointer;
  -webkit-transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(37, 211, 102, 0.3);

  /* Prevent React from hiding it */
  visibility: visible !important;
  opacity: 1 !important;
}

/* Hover state */
.wkwcpos-new-action-btn:hover {
  background-color: #1da851;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
}

/* Active / pressed state */
.wkwcpos-new-action-btn:active {
  background-color: #189444;
  -webkit-transform: translateY(0);
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(37, 211, 102, 0.3);
}

/* Focus ring for accessibility */
.wkwcpos-new-action-btn:focus-visible {
  outline: 2px solid #25d366;
  outline-offset: 2px;
}

/* Disabled state */
.wkwcpos-new-action-btn:disabled {
  background-color: #cccccc;
  color: #888888;
  cursor: not-allowed;
  box-shadow: none;
  -webkit-transform: none;
  transform: none;
}
