:root {
	--re-purple: #3d304a;
	--re-green: var(--re-purple); /* compatibility alias */
	--re-cream: #fbf7ec;
	--re-red: #f25555;
	--re-gold: #b98a47;
	--re-border: rgba(61, 48, 74, .18);
}
.re-price-context { margin: 10px 0 20px; font-size: 15px; line-height: 1.6; }
.re-member-nudge { padding: 12px 15px; background: rgba(185,138,71,.10); border: 1px solid rgba(185,138,71,.25); border-radius: 10px; color: #4a4337; }
.re-member-nudge a, .re-wholesale-nudge a { color: var(--re-green); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.re-wholesale-nudge { margin-top: 9px; color: #746b7b; }
.re-pricing-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; font-weight: 700; letter-spacing: .02em; }
.re-member-badge { background: rgba(185,138,71,.12); color: #7c5c2e; border: 1px solid rgba(185,138,71,.28); }
.re-wholesale-badge { background: rgba(61,48,74,.10); color: var(--re-green); border: 1px solid rgba(61,48,74,.22); }
.re-selected-price-note { margin-top: 8px; font-size: 14px; color: #746b7b; }
.re-premium-preview { font-size: 1.05em; line-height: 1.8; }
.re-premium-gated { position: relative; margin: 42px 0; padding: clamp(28px, 5vw, 58px); text-align: center; background: linear-gradient(145deg, #fffaf0, #f3ead8); border: 1px solid rgba(185,138,71,.28); border-radius: 24px; box-shadow: 0 18px 60px rgba(61,48,74,.08); overflow: hidden; }
.re-premium-gated:before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at top right, rgba(61,48,74,.10), transparent 35%); pointer-events: none; }
.re-premium-gated > * { position: relative; z-index: 1; }
.re-premium-lock { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 18px; border-radius: 50%; background: var(--re-green); color: #fff; font-size: 24px; }
.re-premium-gated h2 { margin: 0 0 14px; color: var(--re-green); }
.re-premium-gated p { max-width: 720px; margin: 0 auto 18px; }
.re-premium-gated ul { display: inline-grid; gap: 9px; margin: 0 auto 26px; padding: 0; text-align: left; list-style: none; }
.re-premium-gated li:before { content: "✓"; margin-right: 9px; color: var(--re-green); font-weight: 700; }
.re-premium-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.re-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 22px; border-radius: 999px; font-weight: 700; text-decoration: none !important; border: 1px solid transparent; cursor: pointer; }
.re-button-primary { background: var(--re-green); color: #fff !important; }
.re-button-primary:hover { background: #30253b; }
.re-button-secondary { background: transparent; color: var(--re-green) !important; border-color: var(--re-green); }
.re-wholesale-form { padding: clamp(22px, 4vw, 42px); background: #fff; border: 1px solid var(--re-border); border-radius: 22px; box-shadow: 0 16px 45px rgba(61,48,74,.07); }
.re-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.re-wholesale-form p { margin: 0 0 18px; }
.re-wholesale-form label, .re-wholesale-form legend { display: block; margin-bottom: 7px; color: var(--re-green); font-weight: 700; }
.re-wholesale-form input[type="text"], .re-wholesale-form input[type="email"], .re-wholesale-form input[type="tel"], .re-wholesale-form input[type="url"], .re-wholesale-form select, .re-wholesale-form textarea { width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid var(--re-border); border-radius: 10px; background: #fffdf7; }
.re-wholesale-form fieldset { margin: 0 0 20px; padding: 18px; border: 1px solid var(--re-border); border-radius: 12px; }
.re-wholesale-form fieldset label { display: inline-flex; align-items: center; margin: 5px 18px 5px 0; font-weight: 500; }
.re-wholesale-form fieldset input { margin-right: 7px; }
.re-terms label { display: flex; align-items: flex-start; gap: 9px; font-weight: 500; }
.re-terms input { margin-top: 5px; }
.re-honeypot { position: absolute !important; left: -99999px !important; opacity: 0 !important; }
.re-form-message { margin: 0 0 18px; padding: 14px 16px; border-radius: 10px; background: #f5f2e9; border: 1px solid var(--re-border); }
.re-success { background: #f0ebf3; border-color: #d8cddd; color: #3d304a; }
.re-error { background: #fff0f0; border-color: #f0b7b7; color: #8b2929; }
.re-account-panel { padding: 24px; background: #fffaf0; border: 1px solid var(--re-border); border-radius: 18px; }
@media (max-width: 767px) {
	.re-form-grid { grid-template-columns: 1fr; gap: 0; }
	.re-premium-actions .re-button { width: 100%; }
}

.re-bank-transfer-box { margin: 24px 0; padding: clamp(22px, 4vw, 34px); background: #fffaf0; border: 1px solid rgba(185,138,71,.32); border-radius: 18px; box-shadow: 0 12px 35px rgba(61,48,74,.07); }
.re-bank-transfer-box h2 { margin-top: 0; color: var(--re-green); }
.re-payment-reference { display: inline-block; margin: 8px 0 14px; padding: 10px 16px; border-radius: 10px; background: #fff; border: 1px dashed rgba(61,48,74,.35); font-size: clamp(20px, 3vw, 28px); letter-spacing: .04em; color: var(--re-green); }


/* Rising Embers launch flow — scoped to avoid leaking into other templates. */
.re-order-saved-kicker {
  display:inline-flex; align-items:center; gap:5px; padding:7px 12px; margin:0 0 14px;
  border-radius:999px; background:#f0ebf3; color:#3d304a;
  font-size:11px; line-height:1.3; font-weight:800; text-transform:uppercase; letter-spacing:.09em;
}

/* Ecosoap wraps the entire thank-you action in .text-theme, which otherwise
   makes every line red. This is a theme-specific correction, not a sitewide override. */
body.woocommerce-order-received .woocommerce .woo-pay-perfect.text-theme,
body.woocommerce-order-received .woocommerce .woo-pay-perfect.text-theme p,
body.woocommerce-order-received .woocommerce .woo-pay-perfect.text-theme li,
body.woocommerce-order-received .woocommerce .woo-pay-perfect.text-theme h2,
body.woocommerce-order-received .woocommerce .woo-pay-perfect.text-theme h3 {
  color:#3d304a !important;
}
body.woocommerce-order-received .woocommerce .woo-pay-perfect.text-theme a.re-button-primary {
  color:#fff !important;
}
body.woocommerce-order-received .woocommerce .woo-pay-perfect.text-theme {
  font-size:15px; line-height:1.65;
}
body.woocommerce-order-received .woocommerce .woo-pay-perfect.text-theme > :is(section,div) { max-width:900px; margin-left:auto; margin-right:auto; }

/* Order saved summary: attractive at desktop, compact on mobile. */
.woocommerce .woo-pay-perfect .re-order-saved {
  margin:26px auto 20px; padding:clamp(24px,4vw,42px);
  border-radius:22px; border:1px solid #e1d9c8; text-align:center;
  background:linear-gradient(145deg,#fffdf7 0%,#f9f6ec 100%);
  box-shadow:0 12px 36px rgba(61,48,74,.055);
}
.woocommerce .woo-pay-perfect .re-order-saved h2,
.woocommerce .woo-pay-perfect .re-payment-upload-cta h2 {
  margin:0 0 12px !important; color:#3d304a !important;
  font-size:clamp(23px,2.7vw,32px); font-weight:750; line-height:1.25;
}
.woocommerce .woo-pay-perfect .re-order-saved .re-order-saved-lead {
  max-width:640px; margin:0 auto 18px; line-height:1.7; color:#665a6e !important;
}
.woocommerce .woo-pay-perfect .re-reference-card {
  display:flex; flex-direction:column; justify-content:center; align-items:center; gap:8px;
  max-width:610px; margin:22px auto; padding:20px; background:#fff;
  border:1px dashed #b8a9c1; border-radius:14px;
}
.woocommerce .woo-pay-perfect .re-reference-card span {
  color:#6b6173; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.11em;
}
.woocommerce .woo-pay-perfect .re-reference-card strong {
  color:#3d304a; font-size:clamp(28px,5vw,42px); font-weight:800; letter-spacing:.055em;
  line-height:1.25;
}
.woocommerce .woo-pay-perfect .re-order-saved .re-order-pending {
  max-width:720px; margin:0 auto; color:#665a6e !important; line-height:1.65;
}
.woocommerce .woo-pay-perfect .re-order-saved .re-order-pending strong { color:#3d304a !important; }

/* Native WooCommerce Direct Bank Transfer details. Preserve core BACS behavior. */
.woocommerce .woo-pay-perfect .woocommerce-bacs-bank-details {
  max-width:900px; margin:0 auto 20px; padding:clamp(23px,3.5vw,35px);
  background:#fff; border:1px solid #e5dfea; border-radius:20px;
  box-shadow:0 10px 28px rgba(61,48,74,.045); text-align:center;
}
.woocommerce .woo-pay-perfect .woocommerce-bacs-bank-details .wc-bacs-bank-details-heading {
  color:#3d304a !important; font-size:clamp(22px,2.4vw,29px);
  font-weight:750; line-height:1.3; margin:0 0 16px;
}
.woocommerce .woo-pay-perfect .woocommerce-bacs-bank-details .wc-bacs-bank-details-account-name {
  margin:0 0 18px; color:#3d304a !important; font-size:19px; font-weight:750;
}
.woocommerce .woo-pay-perfect .woocommerce-bacs-bank-details ul.wc-bacs-bank-details,
.woocommerce .woo-pay-perfect ul.order_details.bacs_details {
  display:flex; flex-wrap:wrap; justify-content:center; gap:12px;
  border:0; margin:0 !important; padding:0; list-style:none;
}
.woocommerce .woo-pay-perfect .woocommerce-bacs-bank-details ul li,
.woocommerce .woo-pay-perfect ul.order_details.bacs_details li {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  min-width:min(205px,100%); gap:7px; padding:15px 19px; margin:0 !important;
  background:#f7f4f8; border:1px solid #e5dfea !important; border-radius:12px;
  color:#746b7b !important; font-size:11px; line-height:1.5; font-weight:700;
  letter-spacing:.04em; text-transform:uppercase;
}
.woocommerce .woo-pay-perfect ul.order_details.bacs_details li strong,
.woocommerce .woo-pay-perfect .woocommerce-bacs-bank-details ul li strong {
  color:#3d304a !important; font-size:19px; font-weight:750; letter-spacing:0;
  text-transform:none; white-space:normal; overflow-wrap:anywhere;
}

.woocommerce .woo-pay-perfect .re-payment-upload-cta {
  max-width:900px; margin:20px auto 28px; padding:clamp(23px,4vw,38px);
  border-radius:20px; background:#f6f2e8; border:1px solid #e6dfd1;
  text-align:center; box-shadow:none;
}
.woocommerce .woo-pay-perfect .re-payment-upload-cta p {
  max-width:660px; margin:0 auto 11px; line-height:1.7; color:#665a6e !important;
}
.woocommerce .woo-pay-perfect .re-payment-upload-cta .re-upload-optional {
  margin:14px auto 18px; color:#3d304a !important;
}
.woocommerce .woo-pay-perfect .re-payment-upload-cta .re-button {
  margin:2px auto 18px; padding:13px 28px;
}
.woocommerce .woo-pay-perfect .re-payment-upload-cta .re-upload-phone-note {
  margin-top:0; font-size:13px; color:#746b7b !important;
}
.woocommerce .woo-pay-perfect .re-payment-upload-cta .re-on-hold-note {
  max-width:650px; margin:16px auto 0; padding:14px 0 0;
  border-top:1px solid #e0ddcf; font-size:13px; color:#746b7b !important;
}
.re-upload-success { margin:16px 0; padding:15px 17px; border-radius:12px; background:#f0ebf3; border:1px solid #d8cddd; color:#3d304a; font-weight:700; }

/* The upload form is now the content of a normal WordPress Page: the real theme
   header/footer and page wrappers are provided by Ecosoap's page.php. */
body.re-payment-upload-context #goal-header,
body.re-payment-upload-context #goal-header-mobile {
  background-color:#3d304a !important;
}
body.re-payment-upload-context #goal-main-content { position:relative; }
body.re-payment-upload-context #main-container { margin-top:0; margin-bottom:0; }
body.re-payment-upload-context #main-container #main-content,
body.re-payment-upload-context #main-container .site-main { width:100%; }
.re-payment-upload-page {
  width:100%; padding:clamp(22px,5vw,60px) 0 clamp(44px,6vw,78px);
  background:transparent; color:#3d304a; text-align:left;
}
.re-payment-upload-shell {
  max-width:680px; margin:0 auto; padding:clamp(24px,5vw,44px);
  border:1px solid #e5dfea; border-radius:24px; background:#fff;
  box-shadow:0 18px 55px rgba(61,48,74,.08);
  overflow:hidden;
}
.re-payment-upload-shell h1 {
  margin:0 0 14px !important; font-size:clamp(27px,4vw,37px);
  font-weight:750; line-height:1.23; color:#3d304a !important;
}
.re-payment-upload-shell p { color:#746b7b; line-height:1.75; }
.re-payment-upload-shell .re-upload-lead {
  margin:0 0 22px; font-size:16px; line-height:1.8; color:#746b7b;
}
.re-payment-upload-shell strong { color:#3d304a; }
.re-upload-success-icon {
  display:grid; place-items:center; width:58px; height:58px; margin:2px 0 18px;
  border-radius:50%; background:#f0ebf3; color:#3d304a; font-size:30px; font-weight:800;
}
.re-upload-next-step { margin:22px 0; padding:20px 22px; border-radius:14px; background:#f5f0f7; border:1px solid #e0d6e5; }
.re-upload-next-step strong { color:#3d304a; }
.re-upload-next-step p { margin:6px 0 0; color:#665a6e; }
.re-upload-actions { display:flex; flex-wrap:wrap; align-items:center; gap:15px; margin-top:24px; }
.re-upload-replace-link { color:#3d304a !important; font-weight:700; text-decoration:underline !important; text-underline-offset:3px; }
.re-payment-upload-form {
  display:grid; gap:15px; margin:20px 0; padding:clamp(16px,3vw,25px);
  border:1px solid #e5dfea; border-radius:16px; background:#faf8f1;
}
.re-payment-upload-form label { display:grid; gap:5px; color:#3d304a; font-size:15px; }
.re-payment-upload-form label strong { color:#3d304a; }
.re-payment-upload-form label span { color:#746b7b; font-size:13px; font-weight:500; }
.re-payment-upload-form input[type=file] {
  display:block; width:100%; max-width:100%; padding:14px;
  border:1px dashed #b8a9c1; border-radius:10px;
  background:#fff; color:#3d304a; font-size:13px;
}
.re-payment-upload-form .re-button { justify-self:start; border:0; font-family:inherit; line-height:1.4; }
.re-payment-upload-shell .re-upload-security-note { margin:12px 0 0; font-size:13px; color:#746b7b; }
.re-payment-upload-shell .re-form-message { margin:0 0 18px; }
.re-payment-upload-shell .re-error { color:#8b2929; }
.re-payment-upload-shell .re-success { color:#3d304a; }

@media(max-width:767px) {
  .woocommerce .woo-pay-perfect .re-order-saved,
  .woocommerce .woo-pay-perfect .re-payment-upload-cta,
  .woocommerce .woo-pay-perfect .woocommerce-bacs-bank-details { padding:22px 17px; border-radius:16px; }
  .woocommerce .woo-pay-perfect ul.order_details.bacs_details { flex-direction:column; gap:9px; }
  .woocommerce .woo-pay-perfect ul.order_details.bacs_details li { min-width:0; width:100%; }
  .re-payment-upload-shell { padding:25px 20px; border-radius:18px; }
  .re-upload-actions .re-button { width:100%; }
  .re-payment-upload-form .re-button { width:100%; justify-self:stretch; }
}

/* Visual fail-safe only. For performance, deactivate unused gateway extensions. */
#wc-stripe-payment-request-wrapper,
#wc-stripe-express-checkout-element,
.wc-stripe-express-checkout-element,
.wcpay-express-checkout-wrapper,
.wcpay-express-checkout-button-container,
.woocommerce-payments-express-checkout-button,
.wc-block-components-express-payment,
.ppc-button-wrapper { display:none !important; }


/* v1.3.2 — client-requested order confirmation refinements. */
body.re-bacs-order-received .woocommerce .woo-pay-perfect .re-reference-card {
  padding:12px 20px; margin:18px auto; min-height:95px;
}
/* Account name remains saved in WooCommerce and is still included in bank transfer emails. */
body.re-bacs-order-received .woocommerce .woo-pay-perfect .wc-bacs-bank-details-account-name { display:none !important; }
/* Ecosoap prints this after the entire thank-you page. Replace it with the blog/module below. */
body.re-bacs-order-received .woocommerce .refund-shop { display:none !important; }
body.re-bacs-order-received .woocommerce .woo-pay-perfect .re-post-order-content {
  max-width:900px; margin:26px auto 30px; padding:clamp(22px,4vw,40px);
  text-align:center; background:#fffaf0; color:#3d304a; border:1px solid #e6dfd1; border-radius:22px;
}
body.re-bacs-order-received .woocommerce .woo-pay-perfect .re-post-order-elementor {
  padding:0; background:transparent; border:0;
}
body.re-bacs-order-received .woocommerce .woo-pay-perfect .re-post-order-blog h2 {
  color:#3d304a !important; font-size:clamp(25px,3.2vw,35px); margin:8px 0 10px;
}
.re-post-order-kicker { color:#c36551; font-size:11px; font-weight:800; letter-spacing:.13em; }
.re-post-order-blog > p { max-width:590px; margin:0 auto 22px; }
.re-post-order-posts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; text-align:left; margin:20px 0; }
.re-post-order-post { display:block; overflow:hidden; border-radius:14px; background:#fff; text-decoration:none !important; border:1px solid #e8e0d3; }
.re-post-order-post img { display:block; width:100%; aspect-ratio:1.6/1; object-fit:cover; }
.re-post-order-post span { display:block; padding:16px; font-weight:700; font-size:15px; color:#3d304a; }
.re-post-order-blog-button { color:#fff !important; background:#ef5b60; border-color:#ef5b60; margin-top:16px; }
.re-post-order-blog-button:hover { color:#fff !important; background:#d94c53; }

/* Confirmation overlay on the CHECKOUT page. This is not the thank-you page. */
.re-bank-modal[hidden] { display:none !important; }
.re-bank-modal { position:fixed; inset:0; z-index:999999; display:flex; align-items:center; justify-content:center; overflow-y:auto;
  padding:24px; background:rgba(29,23,34,.60); backdrop-filter:blur(5px); }
.re-bank-modal-dialog { width:min(100%,480px); max-height:calc(100vh - 48px); overflow-y:auto; outline:none;
  padding:clamp(26px,5vw,42px); background:#fffaf1; color:#3d304a; border-radius:23px; border:1px solid #e3dacd;
  text-align:center; box-shadow:0 25px 80px rgba(0,0,0,.23); }
.re-bank-modal-icon { font-size:37px; line-height:1; margin:0 auto 17px; }
.re-bank-modal-dialog h2 { color:#3d304a !important; margin:0 0 17px; font-size:clamp(25px,3vw,32px); line-height:1.2; }
.re-bank-modal-dialog p { margin:0 0 15px; line-height:1.65; font-size:15px; color:#665a6e; }
.re-bank-modal-note { padding:12px 13px; margin:17px 0 22px !important; background:#f0eadf; border-radius:12px; font-weight:600; }
.re-bank-modal-accept { display:block; width:100%; min-height:52px; padding:13px 18px; margin:0; border:0; border-radius:100px;
  color:#fff !important; background:#3d304a !important; font-size:14px; font-weight:750; cursor:pointer; }
.re-bank-modal-accept:hover, .re-bank-modal-accept:focus { background:#30253b !important; }
.re-bank-modal-back { display:block; width:100%; margin:12px 0 0; padding:8px; background:none !important; border:0;
  color:#3d304a !important; text-decoration:underline; font-size:13px; font-weight:700; cursor:pointer; }
@media (max-width:767px) {
  .re-post-order-posts { grid-template-columns:1fr; }
  .re-bank-modal { padding:12px; }
  .re-bank-modal-dialog { max-height:calc(100vh - 24px); }
}


/* v1.5.1 — Hide Ecosoap's cart / checkout / completed 01–02–03 progress bar
   on the Rising Embers bank-transfer order-saved confirmation screen only.
   The browser still shows the real WooCommerce order information below. */
body.re-bacs-order-received .goal-checkout-header,
body.re-bacs-order-received .goal-checkout-step {
  display: none !important;
}


/* v1.5.4 — Correct WooCommerce BACS list selector and force all 3 cards into
   one aligned row on desktop. The actual WooCommerce ul has BOTH wc-bacs-bank-details
   and order_details/bacs_details classes. Its previous flex/min-width caused wrapping. */
body.re-bacs-order-received .woocommerce .woo-pay-perfect .woocommerce-bacs-bank-details ul.wc-bacs-bank-details,
body.re-bacs-order-received .woocommerce .woo-pay-perfect ul.order_details.bacs_details {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  justify-content: normal !important;
  float: none !important;
  list-style: none !important;
  box-sizing: border-box;
}
body.re-bacs-order-received .woocommerce .woo-pay-perfect .woocommerce-bacs-bank-details ul.wc-bacs-bank-details > li,
body.re-bacs-order-received .woocommerce .woo-pay-perfect ul.order_details.bacs_details > li {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  float: none !important;
  margin: 0 !important;
  padding: 15px 8px !important;
  box-sizing: border-box;
  min-height: 74px;
}
body.re-bacs-order-received .woocommerce .woo-pay-perfect .woocommerce-bacs-bank-details ul.wc-bacs-bank-details > li strong,
body.re-bacs-order-received .woocommerce .woo-pay-perfect ul.order_details.bacs_details > li strong {
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: normal;
  font-size: clamp(14px, 1.65vw, 19px);
}
/* Stack neatly on phones, with no side overflow. */
@media screen and (max-width: 767px) {
  body.re-bacs-order-received .woocommerce .woo-pay-perfect .woocommerce-bacs-bank-details ul.wc-bacs-bank-details,
  body.re-bacs-order-received .woocommerce .woo-pay-perfect ul.order_details.bacs_details {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }
}

/* v1.5.5: WooCommerce clearfix ::before / ::after become phantom GRID ITEMS
 * in the bank details list, pushing Account Name & Number to the right and
 * wrapping BSB onto the next line. Suppress ONLY these decorative pseudo-items.
 * Preserve the WooCommerce 3-column desktop / 1-column mobile grid above. */
body.re-bacs-order-received .woocommerce .woo-pay-perfect ul.order_details.bacs_details::before,
body.re-bacs-order-received .woocommerce .woo-pay-perfect ul.order_details.bacs_details::after,
body.re-bacs-order-received .woocommerce .woo-pay-perfect ul.wc-bacs-bank-details::before,
body.re-bacs-order-received .woocommerce .woo-pay-perfect ul.wc-bacs-bank-details::after {
  content: none !important;
  display: none !important;
}
