/**
 * Align Child Theme - FluentCart Receipt / Thank You Page Styles
 *
 * Pixel-perfect styling for FluentCart Thank You & Receipt page.
 * Strictly adheres to Palmetto style system: colors, typography, cards, buttons, and spacing.
 *
 * @package Align Child
 */

/* ==========================================================================
   1. MAIN CONTAINER & FIXED HEADER CLEARANCE
   ========================================================================== */
body.page-id-597,
body:has(.fct-thank-you-page) {
  background-color: var(--color-10, #FFFBF5) !important;
}

.fct-thank-you-page,
.fct-not-found-container {
  width: 100%;
  /* Expanded to 1140px so the two side-by-side cards have ample room for text without awkward wrapping */
  max-width: 1140px;
  margin: 0 auto;
  /* Lock exactly to the viewport (100dvh handles mobile URL bar) with a
     540px floor. overflow:hidden forbids in-page scroll — any residual
     overflow is compressed by the flex layout instead. */
  min-height: 540px;
  min-height: max(100dvh, 540px);
  height: max(100dvh, 540px);
  max-height: max(100dvh, 540px);
  overflow: hidden;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 88px;
  padding-bottom: 16px;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
  font-family: var(--font-primary-1, 'Barlow', sans-serif);
  color: var(--color-1, #080808);
}

body.admin-bar .fct-thank-you-page,
body.admin-bar .fct-not-found-container {
  padding-top: 120px;
  height: max(calc(100dvh - 32px), 540px);
  max-height: max(calc(100dvh - 32px), 540px);
}

@media (max-width: 991.98px) {
  .fct-thank-you-page,
  .fct-not-found-container {
    padding-top: 92px !important;
    padding-bottom: 32px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
    max-width: 100% !important;
    width: 100% !important;
    /* Mobile keeps natural height (single-column stack) and native scroll. */
    height: auto !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: max(100dvh, 540px) !important;
  }
  body.admin-bar .fct-thank-you-page,
  body.admin-bar .fct-not-found-container {
    padding-top: 124px !important;
    height: auto !important;
    max-height: none !important;
  }
}

@media (max-width: 782px) {
  .fct-thank-you-page,
  .fct-not-found-container {
    padding-top: 92px;
    padding-bottom: 24px;
  }
  body.admin-bar .fct-thank-you-page,
  body.admin-bar .fct-not-found-container {
    padding-top: 138px;
  }
}

/* Break out of WordPress entry-content constraint and FluentCart 620px limit */
body.page-id-597 .entry-content,
body.page-id-597 .wp-block-post-content,
body:has(.fct-thank-you-page) .entry-content,
body:has(.fct-thank-you-page) .wp-block-post-content {
  max-width: 100% !important;
  width: 100% !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

body.page-id-597 .entry-content > div,
body:has(.fct-thank-you-page) .entry-content > div {
  width: 100% !important;
  max-width: 100% !important;
}

/* Borderless & Seamless Container (No card border or background box) */
.fct-thank-you-page-inner {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  padding: 0 !important;
  box-shadow: none !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* Override FluentCart's hardcoded max-width: 620px */
.fct-thank-you-page-content,
.fct-thank-you-page-content.email-template-content {
  width: 100% !important;
  max-width: 1080px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   2. HEADER STATUS BANNER (THANK YOU HERO - Figma media_1788159745156.png)
   ========================================================================== */
.fct-thank-you-page-header {
  padding: 0 !important;
  text-align: center;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: none !important;
  background-color: transparent !important;
}

/* Dark Circular Status Icon with Shopping Bag & Heart */
.fct-thank-you-page-header-icon {
  width: 56px !important;
  height: 56px !important;
  border-radius: 50% !important;
  background-color: #1F1F1F !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  margin: 0 auto 6px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  position: relative;
}

.fct-thank-you-page-header-icon svg {
  display: none !important;
}

.fct-thank-you-page-header-icon::after {
  content: '';
  width: 30px;
  height: 30px;
  background-image: url("data:image/svg+xml,%3Csvg width='44' height='44' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6 2L3 6V20C3 21.1 3.9 22 5 22H19C20.1 22 21 21.1 21 20V6L18 2H6Z' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M3 6H21' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M16 10C16 12.21 14.21 14 12 14C9.79 14 8 12.21 8 10' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M15 13.5C14.3 12.8 13.2 12.8 12.5 13.5L12 14L11.5 13.5C10.8 12.8 9.7 12.8 9 13.5C8.3 14.2 8.3 15.3 9 16L12 19L15 16C15.7 15.3 15.7 14.2 15 13.5Z' fill='white' stroke='white' stroke-width='0.8' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  display: block;
}

/* Status Header Title: THANK YOU FOR YOUR PURCHASE! */
.fct-thank-you-page-header-title {
  font-family: var(--font-primary-1, 'Barlow', sans-serif) !important;
  font-size: 0 !important;
  line-height: 0 !important;
  margin: 0 !important;
  color: transparent !important;
}

.fct-thank-you-page-header-title::after {
  content: 'THANK YOU FOR YOUR PURCHASE!';
  display: block;
  font-family: var(--font-primary-1, 'Barlow', sans-serif);
  font-size: 22px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--color-1, #080808);
  margin-bottom: 2px;
}

@media (max-width: 576px) {
  .fct-thank-you-page-header-title::after {
    font-size: 20px !important;
  }
}

/* Custom Thank You Hero Details */
.fct-custom-thank-you-details {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 2px !important;
  width: 100% !important;
  max-width: 1080px !important;
}

.fct-order-number-text {
  font-family: var(--font-primary-1, 'Barlow', sans-serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-1, #080808);
  margin: 1px 0;
}

.fct-order-number-highlight {
  color: var(--color-7, #AD1A24) !important;
  font-weight: 700 !important;
}

.fct-order-email-note {
  font-family: var(--font-primary-1, 'Barlow', sans-serif);
  font-size: 12.5px;
  font-weight: 400;
  color: var(--color-4, #757575);
  margin: 0 0 10px 0;
}

.fct-order-actions-wrap {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 100% !important;
  margin-top: 8px !important;
  text-align: center !important;
}

.btn-back-to-home {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border: 1.5px solid var(--color-7, #AD1A24) !important;
  border-radius: 9999px !important;
  color: var(--color-7, #AD1A24) !important;
  font-family: var(--font-primary-1, 'Barlow', sans-serif) !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  height: 42px !important;
  padding: 0 36px !important;
  text-decoration: none !important;
  background-color: transparent !important;
  box-sizing: border-box !important;
  margin: 0 auto !important;
  transition: all 0.25s ease-in-out !important;
}

.btn-back-to-home span {
  display: inline-block !important;
  text-align: center !important;
  line-height: 1 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.btn-back-to-home:hover {
  background-color: var(--color-7, #AD1A24) !important;
  color: #FFFFFF !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(173, 26, 36, 0.3);
}

/* ==========================================================================
   3. BODY & RECEIPT SLIP (Hidden per Figma media_1788159639229.png)
   ========================================================================== */
.fct-thank-you-page-body,
.fct-thank-you-page-footer,
.fct_receipt_actions,
.fct_invoice_actions,
.no-print {
  display: none !important;
}

/* ==========================================================================
   4. OFFLINE PAYMENT INSTRUCTIONS (Wire Transfer & Check Payment)
   ========================================================================== */
.fct-offline-payment-instructions {
  max-width: 480px !important;
  width: 100% !important;
  margin: 12px auto 16px !important;
  padding: 16px 22px !important;
  background-color: #FFFFFF !important;
  border: 1px solid #EBE5D8 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
  text-align: left !important;
  box-sizing: border-box !important;
  font-family: var(--font-primary-1, 'Barlow', sans-serif) !important;
}

.fct-instructions-header {
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F0ECE4;
}

.fct-instructions-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.fct-instructions-title {
  font-family: var(--font-primary-1, 'Barlow', sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: var(--color-1, #080808) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.fct-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2.5px 8px;
  font-family: var(--font-primary-1, 'Barlow', sans-serif);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 9999px;
  background-color: #FEF3C7;
  color: #92400E;
  white-space: nowrap;
}

.fct-instructions-subtitle {
  font-family: var(--font-primary-1, 'Barlow', sans-serif) !important;
  font-size: 11.5px !important;
  color: var(--color-4, #757575) !important;
  margin: 4px 0 0 0 !important;
  line-height: 1.35 !important;
}

/* QR Code Section */
.fct-instructions-qr-wrap {
  text-align: center;
  margin: 12px auto;
  padding: 10px;
  max-width: 180px;
  background-color: #FAF8F5;
  border: 1px solid #EBE5D8;
  border-radius: 10px;
}

.fct-instructions-qr-img {
  max-width: 100%;
  max-height: 140px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

.fct-instructions-qr-caption {
  display: block;
  font-family: var(--font-primary-1, 'Barlow', sans-serif);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--color-4, #757575);
  margin-top: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Key-Value Details List — Clean 2-column grid with aligned text */
.fct-instructions-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
}

.fct-detail-row {
  display: grid !important;
  grid-template-columns: 140px minmax(0, 1fr) !important;
  column-gap: 14px !important;
  align-items: baseline !important;
  padding: 5px 0 !important;
  border-bottom: 1px dashed #EDE8DF !important;
}

.fct-detail-row:last-child {
  border-bottom: none;
}

.fct-detail-label {
  font-family: var(--font-primary-1, 'Barlow', sans-serif) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--color-4, #757575) !important;
  text-align: left !important;
  line-height: 1.4 !important;
  white-space: normal !important;
  word-break: break-word !important;
}

.fct-detail-val {
  font-family: var(--font-primary-1, 'Barlow', sans-serif) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--color-1, #080808) !important;
  text-align: left !important;
  line-height: 1.4 !important;
  word-break: break-word !important;
}

/* Badges for Account / Routing Number & Order Reference */
.fct-badge-code {
  display: inline-block;
  padding: 2px 8px;
  background-color: #F5EFE6;
  border: 1px solid #E5DCD0;
  border-radius: 4px;
  font-family: monospace, var(--font-primary-1, 'Barlow', sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-1, #080808);
  letter-spacing: 0.03em;
  white-space: nowrap !important;
}

.fct-badge-memo {
  display: inline-block;
  padding: 2px 8px;
  background-color: rgba(173, 26, 36, 0.08);
  border: 1px solid rgba(173, 26, 36, 0.22);
  border-radius: 4px;
  font-family: var(--font-primary-1, 'Barlow', sans-serif);
  font-size: 13px;
  font-weight: 700;
  color: var(--color-7, #AD1A24);
  letter-spacing: 0.03em;
  white-space: nowrap !important;
}

/* Callout Note */
.fct-instructions-note {
  margin-top: 10px;
  padding: 8px 12px;
  background-color: #FAF8F5;
  border-left: 3px solid var(--color-7, #AD1A24);
  border-radius: 0 6px 6px 0;
  font-family: var(--font-primary-1, 'Barlow', sans-serif);
  font-size: 11.5px;
  line-height: 1.45;
  color: #555555;
}

@media (max-width: 575.98px) {
  .fct-offline-payment-instructions {
    padding: 14px 16px !important;
    margin: 12px auto 16px !important;
  }
  .fct-instructions-title {
    white-space: normal !important;
  }
  .fct-detail-row {
    grid-template-columns: 1fr !important;
    row-gap: 2px !important;
    padding: 6px 0 !important;
  }
  .fct-detail-val {
    text-align: left !important;
  }
}

@media (max-height: 820px) {
  .fct-thank-you-page, .fct-not-found-container { padding-top: 96px !important; padding-bottom: 20px !important; }
  .fct-thank-you-page-header-icon { width: 56px !important; height: 56px !important; margin-bottom: 6px !important; }
  .fct-thank-you-page-header-icon::after { width: 30px !important; height: 30px !important; }
  .fct-thank-you-page-header-title::after { font-size: 22px !important; margin-bottom: 2px !important; }
  .fct-order-email-note { margin-bottom: 8px !important; font-size: 13px !important; }
  .fct-offline-payment-instructions { margin: 8px auto 12px !important; padding: 12px 18px !important; }
  .fct-instructions-header { margin-bottom: 6px !important; padding-bottom: 6px !important; }
  .fct-detail-row { padding: 3.5px 0 !important; }
  .fct-instructions-note { margin-top: 8px !important; padding: 6px 10px !important; }
  .btn-back-to-home { height: 38px !important; padding: 0 30px !important; }
}

/* ==========================================================================
   5. NOT FOUND STATE & PRINT
   ========================================================================== */
.fct-not-found-container { text-align: center; }
.fct-not-found-content { background-color: var(--color-6, #FFFFFF); border: 1.5px solid #EBE5D8; border-radius: 16px; padding: 64px 32px; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04); }
.fct-not-found-image { max-width: 140px; height: auto; margin: 0 auto 24px; display: block; }
.fct-not-found-title { font-family: var(--font-primary-1, 'Barlow', sans-serif); font-size: 28px; font-weight: 700; text-transform: uppercase; color: var(--color-1, #080808); margin: 0 0 12px; }
.fct-not-found-text { font-size: 16px; color: var(--color-4, #757575); max-width: 480px; margin: 0 auto 28px; line-height: 1.6; }
.fct-not-found-button { display: inline-flex; align-items: center; justify-content: center; padding: 14px 36px; background-color: var(--color-7, #AD1A24); color: #FFFFFF !important; border-radius: var(--radius-pill, 9999px); font-family: var(--font-primary-1, 'Barlow', sans-serif); font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; text-decoration: none !important; transition: all 0.2s ease-in-out; box-shadow: 0 4px 16px rgba(173, 26, 36, 0.25); }
.fct-not-found-button:hover { background-color: var(--color-8, #FE372C); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(173, 26, 36, 0.4); }

@media print {
  body { background-color: #FFFFFF !important; }
  .fct-thank-you-page { margin: 0 !important; padding: 0 !important; max-width: 100% !important; }
  .fct-thank-you-page-inner { border: none !important; box-shadow: none !important; }
  .no-print { display: none !important; }
}

/* ==========================================================================
   6. PAYMENT SUMMARY CARD — shown on the Thank You hero for every payment
   method so the customer always sees the total charged. Kit Builder deposit
   orders (`order.config.align_deposit`) split into Total / Deposit / Balance.
   ========================================================================== */
.fct-payment-summary-card {
  width: 100%;
  max-width: 460px;
  margin: 0 auto 12px;
  background-color: var(--color-6, #FFFFFF);
  border: 1.5px solid #EBE5D8;
  border-radius: 14px;
  padding: 14px 20px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  text-align: left;
  font-family: var(--font-primary-1, 'Barlow', sans-serif);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.fct-payment-summary-card.is-deposit {
  border-color: rgba(173, 26, 36, 0.15);
}

/* Header (title + status pill + subtitle) — mirrors the wire/check card so
   both look balanced side-by-side. */
.fct-payment-summary-card .fct-summary-header {
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #F0ECE4;
}

.fct-payment-summary-card .fct-summary-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fct-payment-summary-card .fct-summary-title {
  font-family: var(--font-primary-1, 'Barlow', sans-serif);
  font-size: 15px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--color-1, #080808);
  margin: 0;
}

.fct-payment-summary-card .fct-summary-status-pill {
  font-family: var(--font-primary-1, 'Barlow', sans-serif);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}

.fct-payment-summary-card .fct-summary-status-pill.is-paid {
  background-color: #E7F5EC;
  color: #1F7A3D;
}

.fct-payment-summary-card .fct-summary-status-pill.is-partial {
  background-color: #FFF3D6;
  color: #B26A00;
}

.fct-payment-summary-card .fct-summary-subtitle {
  font-family: var(--font-primary-1, 'Barlow', sans-serif);
  font-size: 12px;
  color: var(--color-4, #757575);
  margin: 6px 0 0;
  line-height: 1.4;
}

/* Body fills the middle space so the note anchors at the bottom (matches
   the wire card visual density when both are stretched). */
.fct-payment-summary-card .fct-summary-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
}

.fct-payment-summary-card .fct-summary-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px dashed #EBE5D8;
}

.fct-payment-summary-card .fct-summary-body .fct-summary-row:last-of-type {
  border-bottom: none;
}

.fct-payment-summary-card .fct-summary-label {
  font-size: 13.5px;
  color: var(--color-4, #757575);
  font-weight: 500;
}

.fct-payment-summary-card .fct-summary-value {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--color-1, #080808);
  white-space: nowrap;
}

.fct-payment-summary-card .fct-summary-row.is-paid .fct-summary-value {
  color: #1F7A3D;
}

.fct-payment-summary-card .fct-summary-row.is-highlight .fct-summary-label,
.fct-payment-summary-card .fct-summary-row.is-highlight .fct-summary-value {
  font-size: 16.5px;
  font-weight: 800;
  color: var(--color-7, #AD1A24);
}

.fct-payment-summary-card .fct-summary-note {
  font-size: 12px;
  line-height: 1.45;
  color: var(--color-4, #757575);
  margin: 8px 0 0;
  padding-top: 8px;
  border-top: 1px solid #EBE5D8;
}

.fct-payment-summary-card .fct-summary-note.fct-summary-note-alt {
  color: var(--color-4, #757575);
  font-style: italic;
}

@media (max-width: 576px) {
  .fct-payment-summary-card {
    padding: 12px 16px;
    max-width: 100%;
  }
  .fct-payment-summary-card .fct-summary-title { font-size: 14px; }
  .fct-payment-summary-card .fct-summary-label { font-size: 12.5px; }
  .fct-payment-summary-card .fct-summary-value { font-size: 14.5px; }
  .fct-payment-summary-card .fct-summary-row.is-highlight .fct-summary-label,
  .fct-payment-summary-card .fct-summary-row.is-highlight .fct-summary-value {
    font-size: 15.5px;
  }
}

/* ==========================================================================
   7. TWO-COLUMN BODY WRAPPER — puts Payment Summary (left) and gateway
   details card (right) side-by-side on desktop, stacks on tablet/mobile.
   ========================================================================== */
.fct-thank-you-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.fct-thank-you-body.is-two-col {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 28px !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 1080px !important;
  margin: 0 auto !important;
}

.fct-thank-you-body.is-two-col > .fct-payment-summary-card,
.fct-thank-you-body.is-two-col > .fct-offline-payment-instructions {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  height: 100%;
  align-self: stretch;
  box-sizing: border-box;
}

/* Symmetrical card styling inside 2-col grid */
.fct-thank-you-body.is-two-col > .fct-payment-summary-card,
.fct-thank-you-body.is-two-col > .fct-offline-payment-instructions {
  padding: 18px 24px !important;
  border: 1.5px solid #EBE5D8 !important;
  border-radius: 14px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04) !important;
}

.fct-thank-you-body.is-two-col .fct-instructions-header-main,
.fct-thank-you-body.is-two-col .fct-summary-header-main {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: nowrap !important;
}

.fct-thank-you-body.is-two-col .fct-instructions-header,
.fct-thank-you-body.is-two-col .fct-summary-header {
  margin-bottom: 10px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px solid #F0ECE4 !important;
}

.fct-thank-you-body.is-two-col .fct-instructions-title,
.fct-thank-you-body.is-two-col .fct-summary-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
  letter-spacing: 0.02em !important;
  line-height: 1.2 !important;
}

.fct-thank-you-body.is-two-col .fct-status-pill,
.fct-thank-you-body.is-two-col .fct-summary-status-pill {
  font-size: 10.5px !important;
  padding: 3.5px 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.fct-thank-you-body.is-two-col .fct-summary-status-pill.is-partial {
  background-color: #FEF3C7 !important;
  color: #92400E !important;
}

.fct-thank-you-body.is-two-col .fct-instructions-subtitle,
.fct-thank-you-body.is-two-col .fct-summary-subtitle {
  font-size: 13px !important;
  color: var(--color-4, #757575) !important;
  margin-top: 5px !important;
  line-height: 1.4 !important;
}

.fct-thank-you-body.is-two-col .fct-detail-row {
  display: grid !important;
  grid-template-columns: 175px minmax(0, 1fr) !important;
  column-gap: 16px !important;
  align-items: baseline !important;
  padding: 7px 0 !important;
  border-bottom: 1px dashed #EDE8DF !important;
}

.fct-thank-you-body.is-two-col .fct-detail-row:last-child {
  border-bottom: none !important;
}

.fct-thank-you-body.is-two-col .fct-detail-label {
  font-size: 13.5px !important;
  text-align: left !important;
  color: var(--color-4, #757575) !important;
  line-height: 1.4 !important;
}

.fct-thank-you-body.is-two-col .fct-detail-val {
  font-size: 14px !important;
  text-align: left !important;
  font-weight: 600 !important;
  color: var(--color-1, #080808) !important;
  line-height: 1.4 !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
}

.fct-thank-you-body.is-two-col .fct-detail-val.fct-total-val {
  font-size: 19px !important;
  font-weight: 800 !important;
  color: var(--color-7, #AD1A24) !important;
  line-height: 1.2 !important;
}

.fct-thank-you-body.is-two-col .fct-detail-val .fct-status-pill {
  font-size: 10px !important;
  padding: 2.5px 8px !important;
  vertical-align: middle !important;
}

.fct-thank-you-body.is-two-col .fct-instructions-note {
  margin-top: 12px !important;
  padding: 10px 14px !important;
  background-color: #FAF8F5 !important;
  border-left: 3px solid var(--color-7, #AD1A24) !important;
  border-radius: 0 6px 6px 0 !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
  color: #555555 !important;
  text-align: left !important;
}

@media (max-width: 991.98px) {
  .fct-thank-you-body.is-two-col {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .fct-thank-you-body.is-two-col > .fct-payment-summary-card,
  .fct-thank-you-body.is-two-col > .fct-offline-payment-instructions {
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 18px 20px !important;
    margin: 0 !important;
  }

  .fct-thank-you-body.is-two-col .fct-detail-row {
    grid-template-columns: 160px minmax(0, 1fr) !important;
    column-gap: 14px !important;
  }
}

@media (max-width: 575.98px) {
  .fct-custom-thank-you-details {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: 100% !important;
  }

  .fct-thank-you-body.is-two-col {
    gap: 14px !important;
    width: 100% !important;
  }

  .fct-thank-you-body.is-two-col > .fct-payment-summary-card,
  .fct-thank-you-body.is-two-col > .fct-offline-payment-instructions {
    padding: 14px 16px !important;
    border-radius: 12px !important;
    width: 100% !important;
  }

  .fct-thank-you-body.is-two-col .fct-instructions-header-main,
  .fct-thank-you-body.is-two-col .fct-summary-header-main {
    flex-wrap: wrap !important;
    gap: 6px !important;
    align-items: flex-start !important;
  }

  .fct-thank-you-body.is-two-col .fct-instructions-title,
  .fct-thank-you-body.is-two-col .fct-summary-title {
    font-size: 13.5px !important;
    white-space: normal !important;
    line-height: 1.3 !important;
  }

  .fct-thank-you-body.is-two-col .fct-status-pill,
  .fct-thank-you-body.is-two-col .fct-summary-status-pill {
    font-size: 9.5px !important;
    padding: 2.5px 7px !important;
  }

  .fct-thank-you-body.is-two-col .fct-instructions-subtitle,
  .fct-thank-you-body.is-two-col .fct-summary-subtitle {
    font-size: 11.5px !important;
  }

  .fct-thank-you-body.is-two-col .fct-detail-row {
    grid-template-columns: 140px minmax(0, 1fr) !important;
    column-gap: 10px !important;
    padding: 6px 0 !important;
  }

  .fct-thank-you-body.is-two-col .fct-detail-label {
    font-size: 12.5px !important;
    line-height: 1.35 !important;
  }

  .fct-thank-you-body.is-two-col .fct-detail-val {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }

  .fct-thank-you-body.is-two-col .fct-detail-val.fct-total-val {
    font-size: 17px !important;
  }

  .fct-thank-you-body.is-two-col .fct-instructions-note {
    font-size: 11.5px !important;
    padding: 8px 10px !important;
    margin-top: 10px !important;
  }
}
