body.woocommerce-order-received {
  --rc-black:#090909; --rc-ink:#161616; --rc-muted:#70716d; --rc-line:#deded8; --rc-lime:#d6ff36;
  background:#f4f4f1;
}

/* Universal fallback for custom theme/plugin thank-you pages. */
body.cfty-custom-order-page {
  --rc-black:#090909; --rc-ink:#161616; --rc-muted:#70716d; --rc-line:#deded8; --rc-lime:#d6ff36;
  background:#f4f4f1 !important;
}
body.cfty-custom-order-page #secondary,
body.cfty-custom-order-page .sidebar,
body.cfty-custom-order-page .widget-area,
body.cfty-custom-order-page aside { display:none !important; }
body.cfty-custom-order-page #primary,
body.cfty-custom-order-page .content-area,
body.cfty-custom-order-page .site-main,
body.cfty-custom-order-page main { width:100% !important; max-width:none !important; float:none !important; }
.cfty-fallback-root {
  width:min(1180px,calc(100% - 32px)) !important; max-width:1180px !important;
  margin:36px auto 90px !important; padding:0 !important;
}
.cfty-fallback-root > .risen-confirmation { margin-bottom:18px; }
.cfty-original-heading,
.cfty-custom-order-page .entry-header,
.cfty-custom-order-page .post-date,
.cfty-custom-order-page .entry-date { display:none !important; }
.cfty-fallback-root .woocommerce-order-details,
.cfty-fallback-root .woocommerce-customer-details,
.cfty-fallback-root .customer-information,
.cfty-fallback-root [class*="customer-info"],
.cfty-fallback-root [class*="order-detail"] {
  margin:18px 0 0 !important; padding:clamp(24px,4vw,42px) !important;
  background:#fff !important; border:1px solid var(--rc-line) !important; box-shadow:none !important;
}
.cfty-fallback-root h2,
.cfty-fallback-root h3 { color:var(--rc-ink); }
.cfty-fallback-root table { width:100%; border-collapse:collapse; }
.cfty-fallback-root table th,
.cfty-fallback-root table td { padding:15px 10px !important; border-bottom:1px solid var(--rc-line) !important; }
.woocommerce-order-received .entry-title,
.woocommerce-order-received .page-title,
.woocommerce-order-received .woocommerce-thankyou-order-received { display:none !important; }
.woocommerce-order-received .site-main,
.woocommerce-order-received main,
.woocommerce-order-received .entry-content { max-width:none !important; }
.woocommerce-order-received .woocommerce {
  width:min(1180px,calc(100% - 32px)); margin:36px auto 90px; color:var(--rc-ink);
  font-family:Inter,Arial,Helvetica,sans-serif;
}
.risen-confirmation {
  position:relative; overflow:hidden; padding:42px clamp(24px,6vw,78px) 50px;
  background:#fff; border:1px solid var(--rc-line);
}
.risen-confirmation:before {
  content:""; position:absolute; top:0; left:0; right:0; height:5px; background:var(--rc-black);
}
.risen-confirmation__brand { display:flex; align-items:center; gap:12px; margin-bottom:52px; }
.risen-confirmation__brand img {
  width:42px !important; min-width:42px !important; height:42px !important;
  object-fit:contain !important; filter:invert(1); margin:0 !important;
}
.risen-confirmation__brand span { font-size:28px; font-weight:900; letter-spacing:-.055em; }
.cantara-flex-confirmation__brand { gap:13px; }
.cantara-flex-confirmation__mark {
  display:grid; place-items:center; width:44px; height:44px; margin:0; border-radius:50%;
  background:#090909; color:#fff; font-size:13px; font-weight:900; letter-spacing:-.04em;
}
.cantara-flex-confirmation__brand span { letter-spacing:-.045em; }
.risen-confirmation__status-icon {
  display:grid; place-items:center; width:68px; height:68px; margin-bottom:25px;
  border-radius:50%; background:var(--rc-black); color:#fff;
}
.risen-confirmation__status-icon svg { width:33px; height:33px; }
.risen-confirmation svg { fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.risen-confirmation__eyebrow { margin:0 0 11px; font-size:10px; font-weight:900; letter-spacing:.2em; }
.risen-confirmation h1 {
  margin:0 !important; color:var(--rc-ink) !important; font-size:clamp(52px,7vw,92px) !important;
  font-weight:560 !important; line-height:.95 !important; letter-spacing:-.065em !important;
}
.risen-confirmation__lead { max-width:660px; margin:22px 0 30px; color:var(--rc-muted); font-size:17px; line-height:1.65; }
.risen-confirmation__reference {
  display:flex; align-items:center; flex-wrap:wrap; gap:9px 12px; width:max-content; max-width:100%;
  padding:13px 17px; background:#f4f4f0; font-size:12px;
}
.risen-confirmation__reference span { color:var(--rc-muted); }
.risen-confirmation__reference strong { font-size:13px; }
.risen-confirmation__reference i { width:1px; height:18px; margin:0 7px; background:var(--rc-line); }
.risen-confirmation__timeline {
  position:relative; display:grid; grid-template-columns:repeat(4,1fr); margin-top:52px; padding-top:5px;
}
.risen-confirmation__timeline:before {
  content:""; position:absolute; top:25px; left:25px; right:25px; height:1px; background:var(--rc-line);
}
.risen-confirmation__timeline > div { position:relative; z-index:1; display:flex; flex-direction:column; align-items:flex-start; padding-right:18px; }
.risen-confirmation__timeline b {
  display:grid; place-items:center; width:42px; height:42px; margin-bottom:15px;
  border:1px solid var(--rc-line); border-radius:50%; background:#fff; color:#878883;
}
.risen-confirmation__timeline b svg { width:20px; height:20px; }
.risen-confirmation__timeline .is-active b { border-color:var(--rc-black); background:var(--rc-black); color:#fff; }
.risen-confirmation__timeline span { display:flex; flex-direction:column; }
.risen-confirmation__timeline strong { font-size:12px; }
.risen-confirmation__timeline small { max-width:190px; color:var(--rc-muted); font-size:10px; line-height:1.45; }
.risen-confirmation__note {
  display:flex; align-items:flex-start; gap:14px; margin-top:45px; padding:18px 20px;
  border-left:4px solid var(--rc-lime); background:var(--rc-black); color:#fff;
}
.risen-confirmation__note > svg { flex:0 0 25px; width:25px; height:25px; }
.risen-confirmation__note p { display:flex; flex-direction:column; gap:3px; margin:0; }
.risen-confirmation__note strong { font-size:12px; }
.risen-confirmation__note span { color:#c1c1bd; font-size:11px; }

/* Native WooCommerce information, reorganised as clean Risen cards. */
.woocommerce-order-received .woocommerce-order-overview {
  display:grid !important; grid-template-columns:repeat(4,1fr); gap:0; margin:18px 0 0 !important;
  padding:0 !important; background:#fff; border:1px solid var(--rc-line); list-style:none !important;
}
.woocommerce-order-received .woocommerce-order-overview li {
  min-width:0; margin:0 !important; padding:21px 23px !important; border:0 !important;
  border-right:1px solid var(--rc-line) !important; color:var(--rc-muted); font-size:9px !important;
  letter-spacing:.1em; text-transform:uppercase;
}
.woocommerce-order-received .woocommerce-order-overview li:last-child { border-right:0 !important; }
.woocommerce-order-received .woocommerce-order-overview strong {
  display:block; overflow-wrap:anywhere; margin-top:7px; color:var(--rc-ink); font-size:13px !important;
  letter-spacing:0; text-transform:none;
}
.woocommerce-order-received .woocommerce-order-details,
.woocommerce-order-received .woocommerce-customer-details {
  margin:18px 0 0 !important; padding:clamp(24px,4vw,42px) !important;
  background:#fff; border:1px solid var(--rc-line);
}
.woocommerce-order-received .woocommerce-order-details__title,
.woocommerce-order-received .woocommerce-column__title,
.woocommerce-order-received .woocommerce-customer-details h2 {
  margin:0 0 24px !important; color:var(--rc-ink) !important; font-size:25px !important;
  font-weight:650 !important; letter-spacing:-.035em !important;
}
.woocommerce-order-received table.shop_table { width:100%; border:0 !important; border-collapse:collapse !important; }
.woocommerce-order-received table.shop_table th,
.woocommerce-order-received table.shop_table td { padding:16px 10px !important; border:0 !important; border-bottom:1px solid var(--rc-line) !important; }
.woocommerce-order-received table.shop_table th { color:var(--rc-muted); font-size:10px; letter-spacing:.08em; text-transform:uppercase; }
.woocommerce-order-received table.shop_table td { color:var(--rc-ink); font-size:13px; }
.woocommerce-order-received table.shop_table tfoot tr:last-child th,
.woocommerce-order-received table.shop_table tfoot tr:last-child td { color:var(--rc-ink); font-size:17px; font-weight:850; }
.woocommerce-order-received .woocommerce-columns--addresses { display:grid; grid-template-columns:1fr 1fr; gap:18px; margin-top:18px; }
.woocommerce-order-received .woocommerce-column { width:100% !important; max-width:none !important; float:none !important; margin:0 !important; padding:30px !important; background:#fff; border:1px solid var(--rc-line); }
.woocommerce-order-received .woocommerce-column address { padding:0 !important; border:0 !important; color:var(--rc-muted); font-size:13px; line-height:1.8; }
.woocommerce-order-received .woocommerce-customer-details { padding:0 !important; border:0 !important; background:transparent; }

/* WooCommerce Order Confirmation blocks (block themes / Checkout block). */
.woocommerce-order-received .wp-block-woocommerce-order-confirmation-summary,
.woocommerce-order-received .wp-block-woocommerce-order-confirmation-totals-wrapper,
.woocommerce-order-received .wp-block-woocommerce-order-confirmation-billing-wrapper,
.woocommerce-order-received .wp-block-woocommerce-order-confirmation-shipping-wrapper,
.woocommerce-order-received .wp-block-woocommerce-order-confirmation-additional-fields-wrapper,
.woocommerce-order-received .wp-block-woocommerce-order-confirmation-downloads-wrapper {
  width:min(1180px,calc(100% - 32px)); margin:18px auto 0 !important;
  padding:clamp(24px,4vw,42px) !important; background:#fff; border:1px solid var(--rc-line);
}
.woocommerce-order-received .wp-block-woocommerce-order-confirmation-status .risen-confirmation,
.woocommerce-order-received > .wp-site-blocks .risen-confirmation {
  width:min(1180px,calc(100% - 32px)); margin:36px auto 0;
}
.woocommerce-order-received [class*="wp-block-woocommerce-order-confirmation-"] h2 {
  margin:0 0 24px !important; color:var(--rc-ink) !important; font-size:25px !important;
  font-weight:650 !important; letter-spacing:-.035em !important;
}
.woocommerce-order-received .wp-block-woocommerce-order-confirmation-summary ul {
  display:grid; grid-template-columns:repeat(4,1fr); margin:0 !important; padding:0 !important; list-style:none !important;
}
.woocommerce-order-received .wp-block-woocommerce-order-confirmation-summary li {
  min-width:0; padding:16px 20px; border-right:1px solid var(--rc-line);
}
.woocommerce-order-received .wp-block-woocommerce-order-confirmation-summary li:last-child { border-right:0; }
.woocommerce-order-received [class*="wp-block-woocommerce-order-confirmation-"] table {
  width:100%; border-collapse:collapse;
}
.woocommerce-order-received [class*="wp-block-woocommerce-order-confirmation-"] th,
.woocommerce-order-received [class*="wp-block-woocommerce-order-confirmation-"] td {
  padding:15px 10px !important; border:0 !important; border-bottom:1px solid var(--rc-line) !important;
}

@media (max-width:767px) {
  .woocommerce-order-received .woocommerce { width:calc(100% - 20px); margin:10px auto 55px; }
  .risen-confirmation { padding:29px 19px 35px; }
  .risen-confirmation__brand { margin-bottom:38px; }
  .risen-confirmation__brand img { width:36px !important; min-width:36px !important; height:36px !important; }
  .risen-confirmation__brand span { font-size:24px; }
  .cantara-flex-confirmation__mark { width:38px; height:38px; font-size:11px; }
  .risen-confirmation__status-icon { width:58px; height:58px; }
  .risen-confirmation h1 { font-size:52px !important; }
  .risen-confirmation__lead { font-size:14px; }
  .risen-confirmation__reference { width:100%; }
  .risen-confirmation__timeline { grid-template-columns:1fr; gap:0; margin-top:35px; padding:0; }
  .risen-confirmation__timeline:before { top:20px; bottom:20px; left:19px; right:auto; width:1px; height:auto; }
  .risen-confirmation__timeline > div { display:grid; grid-template-columns:42px 1fr; column-gap:13px; align-items:center; padding:0 0 20px; }
  .risen-confirmation__timeline b { grid-row:1; margin:0; }
  .risen-confirmation__timeline span { grid-column:2; }
  .risen-confirmation__timeline small { max-width:none; }
  .woocommerce-order-received .woocommerce-order-overview { grid-template-columns:1fr 1fr; }
  .woocommerce-order-received .woocommerce-order-overview li { border-right:1px solid var(--rc-line) !important; border-bottom:1px solid var(--rc-line) !important; padding:17px !important; }
  .woocommerce-order-received .woocommerce-order-overview li:nth-child(2n) { border-right:0 !important; }
  .woocommerce-order-received .woocommerce-order-overview li:nth-last-child(-n+2) { border-bottom:0 !important; }
  .woocommerce-order-received .woocommerce-order-details { overflow-x:auto; padding:20px 14px !important; }
  .woocommerce-order-received .woocommerce-columns--addresses { grid-template-columns:1fr; gap:10px; }
  .woocommerce-order-received .woocommerce-column { padding:22px !important; }
  .woocommerce-order-received .wp-block-woocommerce-order-confirmation-summary,
  .woocommerce-order-received .wp-block-woocommerce-order-confirmation-totals-wrapper,
  .woocommerce-order-received .wp-block-woocommerce-order-confirmation-billing-wrapper,
  .woocommerce-order-received .wp-block-woocommerce-order-confirmation-shipping-wrapper,
  .woocommerce-order-received .wp-block-woocommerce-order-confirmation-additional-fields-wrapper,
  .woocommerce-order-received .wp-block-woocommerce-order-confirmation-downloads-wrapper {
    width:calc(100% - 20px); padding:20px 14px !important;
  }
  .woocommerce-order-received .wp-block-woocommerce-order-confirmation-summary ul { grid-template-columns:1fr 1fr; }
  .woocommerce-order-received .wp-block-woocommerce-order-confirmation-summary li { border-bottom:1px solid var(--rc-line); }
  .cfty-fallback-root { width:calc(100% - 20px) !important; margin:10px auto 55px !important; }
}
