/* OmniVenta V62.44 — POS register action visibility.
   Keeps Add payment / Complete sale unmistakably visible across every light theme.
   The quick-complete link lives inside an input-group-addon, so text-only contrast
   rules were not enough: white text could sit on a nearly-white addon surface. */

.add-payment-form .input-group-addon {
  padding: 0 !important;
  overflow: hidden;
  background: transparent !important;
  border-color: var(--ov-primary, #8d3b68) !important;
}

#add_payment_button,
#finish_sale_alternate_button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 136px;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid var(--ov-primary, #8d3b68) !important;
  border-radius: 0 6px 6px 0;
  background: linear-gradient(105deg,
    var(--ov-primary-deep, #71304f),
    var(--ov-primary, #963d6c)) !important;
  color: #fff !important;
  font-weight: 700 !important;
  line-height: 1.15;
  text-align: center;
  text-decoration: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  white-space: nowrap;
  box-shadow: none !important;
}

#add_payment_button:hover,
#add_payment_button:focus,
#finish_sale_alternate_button:hover,
#finish_sale_alternate_button:focus {
  background: var(--ov-primary-deep, #71304f) !important;
  color: #fff !important;
  text-decoration: none !important;
}

/* Bootstrap's hidden state must remain authoritative even with the ID rules above. */
#add_payment_button.hidden,
#finish_sale_alternate_button.hidden {
  display: none !important;
  visibility: hidden !important;
}

/* The normal completion button shown after a payment has been posted. */
#finish_sale_button.btn,
.finish-sale #finish_sale_button {
  min-height: 42px;
  border-color: var(--ov-primary, #8d3b68) !important;
  background: linear-gradient(105deg,
    var(--ov-primary-deep, #71304f),
    var(--ov-primary, #963d6c)) !important;
  color: #fff !important;
  font-weight: 700 !important;
  opacity: 1 !important;
}

#finish_sale_button.btn:hover,
#finish_sale_button.btn:focus {
  background: var(--ov-primary-deep, #71304f) !important;
  color: #fff !important;
}

@media (max-width: 1199px) {
  #add_payment_button,
  #finish_sale_alternate_button {
    min-width: 120px;
    padding-left: 10px;
    padding-right: 10px;
  }
}

@media (max-width: 480px) {
  #add_payment_button,
  #finish_sale_alternate_button {
    min-width: 106px;
    font-size: 12px !important;
  }
}
