/* Rising Embers Commerce v1.5.2 — configurable checkout/upload colors.
   Defaults can be changed in WooCommerce > Rising Embers > Checkout & Upload Colors.
   Kept separate from the main plugin CSS so it loads AFTER existing styling. */
:root {
  --re-text-color: #252525;
  --re-action-button-color: #ff5e5b;
}

/* Order Saved: Ecosoap's thank-you summary (outside the custom payment sections). */
body.re-bacs-order-received .woocommerce .woocommerce-thankyou-order-received,
body.re-bacs-order-received .woocommerce .woocommerce-thankyou-order-details,
body.re-bacs-order-received .woocommerce .woocommerce-thankyou-order-details li,
body.re-bacs-order-received .woocommerce .woocommerce-thankyou-order-details li strong {
  color: var(--re-text-color) !important;
}

/* Custom order reference, native BACS account details, optional-upload card and
   built-in post-order blog module. Avoid overriding custom Elementor templates. */
body.re-bacs-order-received .woocommerce .woo-pay-perfect.text-theme :is(
  .re-order-saved,
  .woocommerce-bacs-bank-details,
  .re-payment-upload-cta,
  .re-post-order-blog
) {
  color: var(--re-text-color) !important;
}
body.re-bacs-order-received .woocommerce .woo-pay-perfect.text-theme :is(
  .re-order-saved,
  .woocommerce-bacs-bank-details,
  .re-payment-upload-cta,
  .re-post-order-blog
) :is(h1,h2,h3,h4,h5,h6,p,li,strong,span,label) {
  color: var(--re-text-color) !important;
}
/* Preserve the small coral blog kicker and white button labels. */
body.re-bacs-order-received .woocommerce .woo-pay-perfect .re-post-order-kicker {
  color: #ff5e5b !important;
}

/* Secure upload form: headings, helper text, labels, details and confirmation. */
body.re-payment-upload-context .re-payment-upload-page,
body.re-payment-upload-context .re-payment-upload-shell,
body.re-payment-upload-context .re-payment-upload-shell :is(h1,h2,h3,h4,h5,h6,p,span,label,strong),
body.re-payment-upload-context .re-payment-upload-shell .re-upload-replace-link {
  color: var(--re-text-color) !important;
}
/* Preserve status error contrast; do not treat error feedback as ordinary text. */
body.re-payment-upload-context .re-payment-upload-shell .re-error,
body.re-payment-upload-context .re-payment-upload-shell .re-error :is(span,p,strong) {
  color: #8b2929 !important;
}

/* Coral primary actions owned by the plugin, including screenshot CTAs,
   account/member CTAs, and the pre-checkout bank-transfer confirmation modal. */
.re-button.re-button-primary,
.re-button.re-post-order-blog-button,
.re-bank-modal .re-bank-modal-accept,
body.re-bacs-order-received .woocommerce .woo-pay-perfect.text-theme .re-button.re-button-primary,
body.re-bacs-order-received .woocommerce .woo-pay-perfect.text-theme .re-button.re-post-order-blog-button {
  background-color: var(--re-action-button-color) !important;
  border-color: var(--re-action-button-color) !important;
  color: #fff !important;
}
.re-button.re-button-primary:hover,
.re-button.re-button-primary:focus-visible,
.re-button.re-post-order-blog-button:hover,
.re-button.re-post-order-blog-button:focus-visible,
.re-bank-modal .re-bank-modal-accept:hover,
.re-bank-modal .re-bank-modal-accept:focus-visible,
body.re-bacs-order-received .woocommerce .woo-pay-perfect.text-theme .re-button.re-button-primary:hover,
body.re-bacs-order-received .woocommerce .woo-pay-perfect.text-theme .re-button.re-post-order-blog-button:hover {
  background-color: var(--re-action-button-color) !important;
  border-color: var(--re-action-button-color) !important;
  color: #fff !important;
  filter: brightness(.90);
}
body.re-payment-upload-context .re-payment-upload-shell .re-button.re-button-primary {
  color: #fff !important;
}
