/* ==========================================================================
   WP Helper Lite — WooCommerce Thank You Page
   mb-hp-thankyou.css
   Standalone template: plugin owns the full page — no theme CSS loaded.
   ========================================================================== */

/* Standalone page reset — normalise browser defaults without a theme */
*, *::before, *::after { box-sizing: border-box; }
html,
body.woocommerce-order-received {
  overflow-x: hidden;
}
body.woocommerce-order-received {
  margin: 0;
  padding: 0;
  background: var(--whp-bg, #f1f5f9);
  font-family: var(--whp-font, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
  -webkit-font-smoothing: antialiased;
}

:root {
  --whp-accent:  #3b82f6;
  --whp-accent2: #f3f0ff;
  --whp-bg:      #f1f5f9;
}

/* --------------------------------------------------------------------------
   Base wrapper
   -------------------------------------------------------------------------- */
.whp-ty {
  max-width: 700px;
  margin: 0 auto;
  padding: 20px 16px;
  font-family: var(--whp-font, inherit);
  background: var(--whp-bg, #ffffff);
}

/* ==========================================================================
   BANNER — base
   ========================================================================== */
.whp-ty__banner {
  margin-bottom: 20px;
}

.whp-ty__banner-check {
  animation: whpTyCheck 0.4s ease both;
}

.whp-ty__banner-title {
  margin: 0 0 4px;
}

.whp-ty__banner-meta {
  font-size: 13px;
  color: #64748b;
}

/* ==========================================================================
   CLASSIC — minimal, clean, border-only cards, no gradient
   ========================================================================== */

/* Classic banner: horizontal row, light bg, thin border */
.whp-ty--classic .whp-ty__banner {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: var(--whp-radius, 8px);
  padding: 18px 20px;
}

.whp-ty--classic .whp-ty__banner-check {
  flex-shrink: 0;
}

.whp-ty--classic .whp-ty__banner-title {
  font-size: 17px;
  font-weight: 700;
  color: #111827;
  text-align: left;
}

.whp-ty--classic .whp-ty__banner-meta {
  font-size: 12.5px;
  color: #6b7280;
  text-align: left;
}

/* Classic cards: border only, no shadow */
.whp-ty--classic .whp-ty__card {
  background: #fff;
  border-radius: var(--whp-radius, 8px);
  border: 1px solid #e5e7eb;
  box-shadow: none;
  margin-bottom: var(--whp-gap, 12px);
  overflow: hidden;
}

.whp-ty--classic .whp-ty__card-header {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fafafa;
}

.whp-ty--classic .whp-ty__card-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whp-ty--classic .whp-ty__card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: #111827;
}

.whp-ty--classic .whp-ty__card-body {
  padding: var(--whp-pad, 16px);
}

/* Classic buttons: outlined accent */
/* Classic body actions — column, full-width, outlined (matches Premium) */
.whp-ty--classic .whp-ty__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
  margin-bottom: 0;
}
.whp-ty--classic .whp-ty__actions .whp-ty__btn,
.whp-ty--classic .whp-ty__actions a.whp-ty__btn {
  width: 100%;
  justify-content: center;
  min-height: 48px;
  font-size: 13.5px;
  font-weight: 700;
  background: color-mix(in srgb, var(--whp-accent) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--whp-accent) 20%, #e2e8f0);
  color: var(--whp-accent);
  border-radius: var(--whp-radius, 12px);
  box-shadow: none;
}
.whp-ty--classic .whp-ty__actions .whp-ty__btn:hover,
.whp-ty--classic .whp-ty__actions a.whp-ty__btn:hover {
  background: color-mix(in srgb, var(--whp-accent) 15%, #fff);
}

.whp-ty--classic .whp-ty__btn--primary {
  background: var(--whp-accent);
  color: #fff;
  border-radius: var(--whp-radius, 6px);
  box-shadow: none;
}

.whp-ty--classic .whp-ty__btn--outline {
  border-color: var(--whp-accent);
  color: var(--whp-accent);
  border-radius: var(--whp-radius, 6px);
}

.whp-ty--classic .whp-ty__btn--ghost {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  color: #374151;
  border-radius: var(--whp-radius, 6px);
}

/* Classic trust badges → premium pill style */
.whp-ty--classic .whp-ty__trust-item {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: unset;
  background: color-mix(in srgb, var(--whp-accent) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--whp-accent) 20%, #e2e8f0);
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
}
.whp-ty--classic .whp-ty__trust-icon {
  width: 28px;
  height: 28px;
  background: color-mix(in srgb, var(--whp-accent) 15%, #fff);
  border: none;
  flex-shrink: 0;
}
.whp-ty--classic .whp-ty__trust-item > span {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

/* ==========================================================================
   MODERN — gradient banner, large radius, accent2 section headers, airy
   ========================================================================== */

/* Modern banner: bold gradient, centered, large */
.whp-ty--modern .whp-ty__banner {
  background: linear-gradient(
    135deg,
    var(--whp-accent) 0%,
    color-mix(in srgb, var(--whp-accent) 70%, #000) 100%
  );
  padding: 36px 28px;
  text-align: center;
  color: #fff;
  border-radius: var(--whp-radius, 16px);
  box-shadow: 0 12px 32px color-mix(in srgb, var(--whp-accent) 30%, transparent);
}

.whp-ty--modern .whp-ty__banner-check {
  margin-bottom: 14px;
}
/* SVG: vòng ngoài dùng --whp-accent2 bán trong suốt, vòng trong solid, dấu tích dùng --whp-accent */
.whp-ty--modern .whp-ty__banner-check circle:first-child {
  fill: color-mix(in srgb, var(--whp-accent2, #fff) 22%, transparent);
}
.whp-ty--modern .whp-ty__banner-check circle:nth-child(2) {
  fill: var(--whp-accent2, #fff);
}
.whp-ty--modern .whp-ty__banner-check polyline {
  stroke: var(--whp-accent, #4f46e5);
}

.whp-ty--modern .whp-ty__banner-title,
.whp-ty--modern .whp-ty__banner-meta {
  color: #fff;
}

.whp-ty--modern .whp-ty__banner-title {
  font-size: 22px;
  font-weight: 800;
}

.whp-ty--modern .whp-ty__banner-meta {
  opacity: 0.88;
  font-size: 13px;
}

/* Modern cards: elevated shadow, large radius */
.whp-ty--modern .whp-ty__card {
  background: #fff;
  border-radius: var(--whp-radius, 16px);
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.09);
  margin-bottom: var(--whp-gap, 18px);
  overflow: hidden;
}

/* Modern card header: accent2 tinted background */
.whp-ty--modern .whp-ty__card-header {
  padding: 14px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--whp-accent2, #f3f0ff);
}

.whp-ty--modern .whp-ty__card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--whp-accent) 20%, #e2e8f0);
  display: flex;
  align-items: center;
  justify-content: center;
}

.whp-ty--modern .whp-ty__card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
}

.whp-ty--modern .whp-ty__card-body {
  padding: var(--whp-pad, 24px);
}

/* Modern payment rows */
.whp-ty--modern .whp-ty__payment-row {
  background: #f8fafc;
  border-radius: 10px;
  margin-bottom: 8px;
  gap: 10px;
}

/* Modern buttons: pill shape, shadow */
/* Modern body actions — column, full-width, outlined (matches Premium) */
.whp-ty--modern .whp-ty__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
  margin-bottom: 0;
}
.whp-ty--modern .whp-ty__actions .whp-ty__btn,
.whp-ty--modern .whp-ty__actions a.whp-ty__btn {
  width: 100%;
  justify-content: center;
  min-height: 48px;
  font-size: 13.5px;
  font-weight: 700;
  background: color-mix(in srgb, var(--whp-accent) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--whp-accent) 20%, #e2e8f0);
  color: var(--whp-accent);
  border-radius: var(--whp-radius, 12px);
  box-shadow: none;
}
.whp-ty--modern .whp-ty__actions .whp-ty__btn:hover,
.whp-ty--modern .whp-ty__actions a.whp-ty__btn:hover {
  background: color-mix(in srgb, var(--whp-accent) 15%, #fff);
}

.whp-ty--modern .whp-ty__btn--primary {
  background: var(--whp-accent);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--whp-accent) 35%, transparent);
}

.whp-ty--modern .whp-ty__btn--outline {
  border-color: var(--whp-accent);
  color: var(--whp-accent);
  border-radius: 999px;
}

.whp-ty--modern .whp-ty__btn--ghost {
  background: #f1f5f9;
  border: none;
  border-radius: 999px;
}

/* Modern trust badges → premium pill style */
.whp-ty--modern .whp-ty__trust {
  gap: 10px;
  padding: 16px 0;
}
.whp-ty--modern .whp-ty__trust-item {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: unset;
  background: color-mix(in srgb, var(--whp-accent) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--whp-accent) 20%, #e2e8f0);
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
}
.whp-ty--modern .whp-ty__trust-icon {
  width: 28px;
  height: 28px;
  background: color-mix(in srgb, var(--whp-accent) 15%, #fff);
  border: none;
  flex-shrink: 0;
}
.whp-ty--modern .whp-ty__trust-item > span {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

/* ==========================================================================
   PREMIUM — hero dark gradient + decoration circles, luxury shadow,
             pill trust badges, prominent QR, accent border details
   ========================================================================== */

/* Premium banner: dark rich gradient, decorative circles, large hero */
.whp-ty--premium .whp-ty__banner {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--whp-accent) 85%, #000) 0%,
    var(--whp-accent) 45%,
    color-mix(in srgb, var(--whp-accent) 60%, #1e293b) 100%
  );
  padding: 40px 28px 44px;
  text-align: center;
  color: #fff;
  border-radius: var(--whp-radius, 16px);
  min-height: 190px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 16px 40px color-mix(in srgb, var(--whp-accent) 35%, rgba(0,0,0,.25)),
    0 0 0 1px color-mix(in srgb, var(--whp-accent) 50%, transparent);
}

/* Decorative circles on banner */
.whp-ty--premium .whp-ty__banner::before {
  content: '';
  position: absolute;
  top: -25px; right: -25px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.09);
  pointer-events: none;
  box-shadow:
    50px 50px 0 25px rgba(255,255,255,0.05),
    100px 100px 0 50px rgba(255,255,255,0.03);
}

.whp-ty--premium .whp-ty__banner::after {
  content: '';
  position: absolute;
  bottom: -18px; left: -18px;
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
  box-shadow: 35px -35px 0 18px rgba(255,255,255,0.04);
}

.whp-ty--premium .whp-ty__banner-check {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: 2.5px solid rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
}

.whp-ty--premium .whp-ty__banner-title,
.whp-ty--premium .whp-ty__banner-meta {
  color: #fff;
  position: relative;
  z-index: 1;
}

.whp-ty--premium .whp-ty__banner-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.4px;
  margin: 0 0 6px;
}

.whp-ty--premium .whp-ty__banner-meta {
  font-size: 13px;
  opacity: 0.82;
}

/* Premium cards: deep luxury shadow + accent left border */
.whp-ty--premium .whp-ty__card {
  background: #fff;
  border-radius: var(--whp-radius, 14px);
  box-shadow:
    0 8px 30px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(0, 0, 0, 0.04);
  margin-bottom: var(--whp-gap, 18px);
  overflow: hidden;
}

/* Premium card header: accent left border + icon */
.whp-ty--premium .whp-ty__card-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid var(--whp-accent);
}

.whp-ty--premium .whp-ty__card-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--whp-accent) 12%, #fff);
  display: flex;
  align-items: center;
  justify-content: center;
}

.whp-ty--premium .whp-ty__card-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.whp-ty--premium .whp-ty__card-body {
  padding: var(--whp-pad, 24px);
}

/* Premium QR section: large, accent2 tinted background */
.whp-ty--premium .whp-ty__payment-qr {
  background: var(--whp-accent2, #f3f0ff);
  border-radius: 12px;
  padding: 20px;
  border-top: none;
  margin-top: 12px;
}

.whp-ty--premium .whp-ty__payment-qr img {
  max-width: 240px;
  border-radius: 14px;
  border: 2px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

/* Premium payment amount: larger */
.whp-ty--premium .whp-ty__payment-transfer .whp-ty__payment-value {
  font-size: 18px;
  font-weight: 800;
  color: #d97706;
}

/* Premium trust badges: pill, rich */
.whp-ty--premium .whp-ty__trust {
  gap: 10px;
  flex-wrap: wrap;
  padding: 16px 0;
}

.whp-ty--premium .whp-ty__trust-item {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-width: unset;
  background: color-mix(in srgb, var(--whp-accent) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--whp-accent) 20%, #e2e8f0);
  border-radius: 999px;
  padding: 6px 14px 6px 8px;
}

.whp-ty--premium .whp-ty__trust-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--whp-accent) 15%, #fff);
  border: none;
  flex-shrink: 0;
}

.whp-ty--premium .whp-ty__trust-item > span {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
}

/* Premium buttons: gradient primary, thick border outline */
.whp-ty--premium .whp-ty__btn--primary {
  background: linear-gradient(
    90deg,
    var(--whp-accent),
    color-mix(in srgb, var(--whp-accent) 78%, #000)
  );
  color: #fff;
  border-radius: var(--whp-radius, 12px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--whp-accent) 38%, transparent);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.2px;
  padding: 12px 24px;
}

.whp-ty--premium .whp-ty__btn--outline {
  border: 2px solid var(--whp-accent);
  color: var(--whp-accent);
  font-weight: 700;
  border-radius: var(--whp-radius, 12px);
  padding: 12px 24px;
}

.whp-ty--premium .whp-ty__btn--ghost {
  background: color-mix(in srgb, var(--whp-accent) 8%, #fff);
  color: #374151;
  border: 1px solid color-mix(in srgb, var(--whp-accent) 20%, #e2e8f0);
  border-radius: var(--whp-radius, 12px);
  padding: 12px 24px;
}

/* Premium actions: 2×2 grid */
.whp-ty--premium .whp-ty__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
}

.whp-ty--premium .whp-ty__actions .whp-ty__btn {
  justify-content: center;
  min-height: 48px;
  font-size: 13.5px;
  font-weight: 700;
  background: color-mix(in srgb, var(--whp-accent) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--whp-accent) 20%, #e2e8f0);
  color: var(--whp-accent);
}
.whp-ty--premium .whp-ty__actions .whp-ty__btn:hover {
  background: color-mix(in srgb, var(--whp-accent) 15%, #fff);
}

/* Premium countdown: large display */
.whp-ty--premium .whp-ty__countdown-display {
  font-size: 44px;
}

/* Premium transfer button: full-width, gradient, shimmer on hover */
.whp-ty--premium #whp-ty-transfer-btn {
  width: 100%;
  max-width: 100%;
  padding: 16px 24px;
  font-size: 15px;
  font-weight: 800;
  border-radius: var(--whp-radius, 12px);
  background: linear-gradient(
    90deg,
    var(--whp-accent) 0%,
    color-mix(in srgb, var(--whp-accent) 78%, #000) 100%
  );
  box-shadow: 0 8px 24px color-mix(in srgb, var(--whp-accent) 38%, transparent);
  transition: transform 0.2s, box-shadow 0.2s;
}

.whp-ty--premium #whp-ty-transfer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--whp-accent) 45%, transparent);
}

/* ==========================================================================
   SHARED COMPONENTS (used by all layouts unless overridden above)
   ========================================================================== */
.whp-ty__card {
  background: #fff;
  border-radius: var(--whp-radius, 14px);
  box-shadow: var(--whp-shadow, 0 4px 16px rgba(15,23,42,.08));
  margin-bottom: var(--whp-gap, 18px);
  overflow: hidden;
}

.whp-ty__card-header {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  gap: 12px;
}

.whp-ty__card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.whp-ty__card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
}

.whp-ty__card-desc {
  font-size: 12.5px;
  color: #64748b;
  margin: 2px 0 0;
}

.whp-ty__card-body {
  padding: var(--whp-pad, 20px);
}

/* ==========================================================================
   TIMELINE / STEPS — Horizontal stepper (default for all layouts)
   ========================================================================== */
.whp-ty__steps-h {
  display: flex;
  align-items: flex-start;
  padding: 16px 0 8px;
}

.whp-ty__sh-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

/* connecting line between steps */
.whp-ty__sh-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 17px;
  left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 2px;
  background: #e2e8f0;
}

.whp-ty__sh-step.is-done:not(:last-child)::after {
  background: var(--whp-accent);
}

.whp-ty__sh-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2.5px solid #e2e8f0;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #d1d5db;
}

.whp-ty__sh-step.is-done .whp-ty__sh-dot {
  background: var(--whp-accent);
  border-color: var(--whp-accent);
  color: transparent;
}

/* checkmark */
.whp-ty__sh-step.is-done .whp-ty__sh-dot::after {
  content: '';
  display: block;
  width: 12px;
  height: 7px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
  position: absolute;
}

/* pulsing ring on current step */
.whp-ty__sh-step.is-current .whp-ty__sh-dot {
  border-color: var(--whp-accent);
  color: var(--whp-accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--whp-accent) 15%, transparent);
}

.whp-ty__sh-label {
  font-size: 10.5px;
  font-weight: 600;
  color: #9ca3af;
  text-align: center;
  margin-top: 8px;
  line-height: 1.35;
  padding: 0 4px;
}

.whp-ty__sh-step.is-done .whp-ty__sh-label {
  color: var(--whp-accent);
}

.whp-ty__sh-step.is-current .whp-ty__sh-label {
  color: #374151;
  font-weight: 700;
}

/* --- legacy vertical (kept for backward compat) --- */
.whp-ty__timeline { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; }
.whp-ty__step { display:flex; align-items:flex-start; gap:12px; position:relative; padding-bottom:16px; }
.whp-ty__step::before { content:''; position:absolute; left:13px; top:28px; bottom:0; width:2px; background:#e2e8f0; }
.whp-ty__step:last-child::before { display:none; }
.whp-ty__step-dot { width:28px; height:28px; border-radius:50%; border:2px solid #e2e8f0; background:#fff; flex-shrink:0; }
.whp-ty__step--done .whp-ty__step-dot { background:var(--whp-accent); border-color:var(--whp-accent); }
.whp-ty__step--done::before { background:var(--whp-accent); }
.whp-ty__step--current .whp-ty__step-dot { border-color:var(--whp-accent); animation:whpTyPulse 2s infinite; }
.whp-ty__step-label { font-size:14px; font-weight:500; color:#374151; padding-top:4px; }
.whp-ty__step--pending .whp-ty__step-label { color:#9ca3af; }

/* Transfer amount highlight */
.whp-ty__amount-highlight {
  background: color-mix(in srgb, var(--whp-accent) 6%, #fff);
  border: 2px solid color-mix(in srgb, var(--whp-accent) 22%, transparent);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.whp-ty__amount-highlight .whp-ty__amount-lbl {
  font-size: 12.5px;
  color: #64748b;
  font-weight: 600;
}

.whp-ty__amount-highlight .whp-ty__amount-val {
  font-size: 22px;
  font-weight: 900;
  color: var(--whp-accent);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   PAYMENT INFO
   ========================================================================== */
.whp-ty__payment-row {
  display: flex;
  align-items: center;
  padding: 10px 14px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 8px;
  gap: 8px;
}

.whp-ty__payment-label {
  font-size: 12.5px;
  color: #9ca3af;
  flex: 0 0 auto;
  white-space: nowrap;
  padding-right: 8px;
}

.whp-ty__payment-value {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  text-align: right;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}

.whp-ty__payment-transfer {
  background: #fffbeb;
  border: 1px dashed #f59e0b;
}

.whp-ty__payment-transfer .whp-ty__payment-value {
  color: #d97706;
  font-size: 18px;
  font-weight: 800;
}

.whp-ty__payment-qr {
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid #f3f4f6;
  margin-top: 8px;
}

.whp-ty__payment-qr img {
  max-width: 200px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  display: block;
  margin: 0 auto 8px;
}

/* Copy button — icon-only compact */
.whp-ty-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 8px;
  background: color-mix(in srgb, var(--whp-accent) 10%, #fff);
  border: 1.5px solid color-mix(in srgb, var(--whp-accent) 22%, transparent);
  color: var(--whp-accent);
  cursor: pointer;
  transition: all 0.18s;
  flex-shrink: 0;
  line-height: 1;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.whp-ty-copy-btn:hover {
  background: color-mix(in srgb, var(--whp-accent) 18%, #fff);
  border-color: color-mix(in srgb, var(--whp-accent) 40%, transparent);
  color: var(--whp-accent);
}

.whp-ty-copy-btn.whp-ty__copy-btn--done {
  background: #dcfce7;
  color: #16a34a;
  border-color: #bbf7d0;
  font-size: 11px;
  padding: 0 6px;
  width: auto;
}

/* Amount highlight copy button */
.whp-ty__amount-highlight .whp-ty-copy-btn {
  width: 26px;
  height: 26px;
  background: rgba(255,255,255,.7);
  border-color: color-mix(in srgb, var(--whp-accent) 25%, transparent);
  color: var(--whp-accent);
}

/* ==========================================================================
   COUNTDOWN
   ========================================================================== */
.whp-ty__countdown {
  text-align: center;
  padding: 16px;
}

.whp-ty__countdown-label {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 8px;
}

.whp-ty__countdown-display {
  font-size: 32px;
  font-weight: 800;
  color: var(--whp-accent);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

.whp-ty__countdown--warning .whp-ty__countdown-display {
  color: #f97316;
}

#whp-ty-expired-msg {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px 16px;
  color: #dc2626;
  font-size: 14px;
  text-align: center;
}

/* ==========================================================================
   ACTION BUTTONS
   ========================================================================== */
.whp-ty__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
  justify-content: center;
}

.whp-ty__btn {
  padding: 10px 20px;
  border-radius: var(--whp-radius, 10px);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  text-transform: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  line-height: 1.4;
  margin: 0;
}

.whp-ty__btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.whp-ty__btn--primary {
  background: var(--whp-accent);
  color: #fff;
}

.whp-ty__btn--primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.whp-ty__btn--outline {
  background: #fff;
  color: var(--whp-accent);
  border: 1.5px solid var(--whp-accent);
}

.whp-ty__btn--ghost {
  background: #f1f5f9;
  color: #374151;
}

/* ==========================================================================
   TRUST BADGES (base)
   ========================================================================== */
.whp-ty__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  padding: 16px 0;
}

.whp-ty__trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #6b7280;
  text-align: center;
  min-width: 80px;
}

.whp-ty__trust-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   TRANSFER SECTION
   ========================================================================== */
.whp-ty__transfer-section {
  border-top: 1px solid #f1f5f9;
  padding-top: 18px;
  margin-top: 8px;
  text-align: center;
}

#whp-ty-transfer-btn {
  width: 100%;
  max-width: 100%;
  padding: 16px 24px;
  background: linear-gradient(90deg, var(--whp-accent) 0%, color-mix(in srgb, var(--whp-accent) 78%, #000) 100%);
  color: #fff;
  border: none;
  border-radius: var(--whp-radius, 12px);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--whp-accent) 38%, transparent);
  transition: all 0.2s;
}

#whp-ty-transfer-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px color-mix(in srgb, var(--whp-accent) 45%, transparent);
}

#whp-ty-transfer-btn.whp-ty__transfer-btn--loading {
  opacity: 0.6;
  pointer-events: none;
}

#whp-ty-transfer-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 14px 18px;
  color: #16a34a;
  font-weight: 600;
  font-size: 14px;
  text-align: center;
  margin-top: 12px;
}

/* ==========================================================================
   SUPPORT MODAL
   ========================================================================== */
.whp-ty__modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
  box-sizing: border-box;
}

.whp-ty__modal.whp-ty__modal--open {
  display: flex;
}

.whp-ty__modal-box {
  position: relative;
  background: #fff;
  border-radius: 16px;
  max-width: 440px;
  width: 100%;
  padding: 28px 24px;
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
}

.whp-ty__modal-hd {
  margin-bottom: 14px;
}

.whp-ty__modal-close {
  position: absolute !important;
  top: 16px !important;
  right: 16px !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  border-radius: 50% !important;
  border: none !important;
  background: #f1f5f9 !important;
  cursor: pointer;
  font-size: 18px;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #64748b !important;
}

.whp-ty__modal-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 6px;
}

.whp-ty__modal input,
.whp-ty__modal textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: var(--whp-radius, 8px);
  padding: 9px 12px;
  font-size: 14px;
  margin-bottom: 12px;
  box-sizing: border-box;
  font-family: inherit;
}

.whp-ty__modal input:focus,
.whp-ty__modal textarea:focus {
  border-color: var(--whp-accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

/* ==========================================================================
   CONTACT CHANNEL LINKS (in support modal)
   ========================================================================== */
.whp-ty__contact-chs { display: flex; flex-direction: column; gap: 10px; }

.whp-ty__contact-ch {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: #0f172a;
  transition: border-color .15s, background .15s, box-shadow .15s;
  cursor: pointer;
}
.whp-ty__contact-ch:hover {
  border-color: var(--whp-accent, #6d28d9);
  background: color-mix(in srgb, var(--whp-accent, #6d28d9) 5%, #fff);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--whp-accent, #6d28d9) 15%, transparent);
}
.whp-ty__contact-ch-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.whp-ty__contact-ch-info { flex: 1; min-width: 0; }
.whp-ty__contact-ch-name { display: block; font-size: 14px; font-weight: 700; color: #0f172a; }
.whp-ty__contact-ch-val  { display: block; font-size: 12px; color: #64748b; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whp-ty__contact-ch-arrow { flex-shrink: 0; color: #94a3b8; transition: color .15s, transform .15s; }
.whp-ty__contact-ch:hover .whp-ty__contact-ch-arrow { color: var(--whp-accent, #6d28d9); transform: translateX(2px); }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes whpTyCheck {
  from { transform: scale(0.5); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

@keyframes whpTyPulse {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.12); }
}

/* ==========================================================================
   SHARED BODY ELEMENTS — used across all three layouts
   ========================================================================== */

/* Order status badge */
.whp-ty__status-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--whp-accent);
  background: color-mix(in srgb, var(--whp-accent) 10%, #fff);
  border: 1.5px solid color-mix(in srgb, var(--whp-accent) 25%, transparent);
  border-radius: 20px;
  padding: 5px 16px;
}

/* Thin horizontal rule between order rows and badge */
.whp-ty__section-divider {
  height: 1px;
  background: #f1f5f9;
  margin: 10px 0;
}

/* Countdown clock digits */
.whp-ty__countdown-clock {
  font-size: 28px;
  font-weight: 900;
  color: var(--whp-accent);
  letter-spacing: 3px;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin: 4px 0;
}
.whp-ty__countdown-sublabel {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 500;
  margin-top: 2px;
  text-align: center;
}
.whp-ty__countdown--warning .whp-ty__countdown-clock { color: #ef4444; }

/* Countdown standalone (outside a card) default styling */
.whp-ty__countdown {
  background: color-mix(in srgb, var(--whp-accent) 6%, #fff);
  border: 1.5px solid color-mix(in srgb, var(--whp-accent) 18%, transparent);
  border-radius: 14px;
  padding: 16px 20px;
  text-align: center;
  margin-bottom: 14px;
}
.whp-ty__countdown-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

/* Trust badge pills */
.whp-ty__trust-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  margin-bottom: 16px;
  padding: 4px 0;
}
.whp-ty__trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  background: color-mix(in srgb, var(--whp-accent) 8%, #fff);
  border: 1px solid color-mix(in srgb, var(--whp-accent) 20%, #e2e8f0);
  border-radius: 20px;
  padding: 5px 12px 5px 9px;
}
.whp-ty__trust-pill .whp-ty__trust-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background: none;
  border: none;
  border-radius: 0;
  color: var(--whp-accent, #6d28d9);
}

/* Subtle email note below action buttons */
.whp-ty__email-note {
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  margin: 2px 0 14px;
  padding-top: 10px;
}

/* ==========================================================================
   RESPONSIVE — max-width: 600px
   ========================================================================== */
@media (max-width: 600px) {
  .whp-ty {
    padding: 10px 12px;
  }

  .whp-ty--classic .whp-ty__banner {
    flex-direction: column;
    text-align: center;
  }

  .whp-ty__actions {
    flex-direction: column;
  }

  .whp-ty--premium .whp-ty__actions {
    grid-template-columns: 1fr;
  }

  .whp-ty__btn {
    width: 100%;
    justify-content: center;
  }

  .whp-ty__payment-row {
    flex-wrap: wrap;
  }

  .whp-ty__payment-label {
    min-width: unset;
    width: 100%;
  }

  .whp-ty__trust {
    gap: 10px;
  }

  .whp-ty__trust-item {
    min-width: 60px;
  }

  .whp-ty--premium .whp-ty__banner {
    min-height: 160px;
    padding: 30px 20px;
  }

  .whp-ty--premium .whp-ty__banner-title {
    font-size: 20px;
  }
}

/* ==========================================================================
   THEME ISOLATION — plugin uses template_include so no theme HTML is loaded.
   These rules are kept as a safety net in case of fallback / plugin conflicts.
   ========================================================================== */
.woocommerce-order-received .site-header,
.woocommerce-order-received header.header,
.woocommerce-order-received #header { display: none !important; }

.woocommerce-order-received .sidebar,
.woocommerce-order-received .widget-area,
.woocommerce-order-received aside { display: none !important; }

.woocommerce-order-received footer,
.woocommerce-order-received #footer,
.woocommerce-order-received .site-footer { display: none !important; }

/* ==========================================================================
   PRINT INVOICE — screen: hidden; print: full invoice only
   ========================================================================== */
.whp-ty__print-invoice { display: none; }

@media print {
  body, html { background: #fff !important; }

  /* Kill ALL non-invoice elements: toasts, FAB chat, popups, admin bar, etc. */
  body > *:not(.whp-thankyou-wrap) { display: none !important; }

  /* Hide entire layout, show only the invoice section */
  .whp-ty > *                       { display: none !important; }
  .whp-ty > .whp-ty__print-invoice  { display: block !important; }

  @page { margin: 1.5cm; size: A4 portrait; }

  /* Invoice layout — use page font (Inter/Be Vietnam Pro) for correct Vietnamese rendering */
  .whp-ty__invoice-inner {
    max-width: 680px; margin: 0 auto;
    font-family: inherit; font-size: 13px; color: #1a1a1a;
  }
  .whp-ty__invoice-hdr {
    display: flex; justify-content: space-between; align-items: flex-start;
    border-bottom: 2px solid #0f172a; padding-bottom: 16px; margin-bottom: 24px;
  }
  .whp-ty__invoice-store { font-size: 12px; color: #64748b; margin-bottom: 4px; }
  .whp-ty__invoice-h1   { font-size: 24px; font-weight: 700; color: #0f172a; margin: 0; }
  .whp-ty__invoice-num  { font-size: 18px; font-weight: 700; text-align: right; }
  .whp-ty__invoice-date { font-size: 12px; color: #64748b; text-align: right; margin-top: 2px; }

  .whp-ty__invoice-info {
    display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 24px;
  }
  .whp-ty__invoice-lbl {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    color: #94a3b8; letter-spacing: .5px; margin-bottom: 6px;
  }
  .whp-ty__invoice-val { font-size: 13px; line-height: 1.7; }

  .whp-ty__invoice-tbl { width: 100%; border-collapse: collapse; margin-bottom: 20px; }
  .whp-ty__invoice-th  {
    padding: 10px 12px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; color: #64748b;
    background: #f8fafc; border-bottom: 1.5px solid #e2e8f0;
    -webkit-print-color-adjust: exact; print-color-adjust: exact;
  }
  .whp-ty__invoice-td  { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; }
  .whp-ty__invoice-sku { font-size: 11px; color: #94a3b8; margin-top: 2px; }

  .whp-ty__invoice-totals { display: flex; flex-direction: column; align-items: flex-end; margin-bottom: 32px; }
  .whp-ty__invoice-trow {
    display: flex; justify-content: space-between; gap: 40px;
    min-width: 260px; padding: 6px 0; font-size: 13px; color: #64748b;
  }
  .whp-ty__invoice-trow--grand {
    padding: 10px 0; font-size: 15px; font-weight: 700; color: #0f172a;
    border-top: 2px solid #0f172a; margin-top: 6px;
  }
  .whp-ty__invoice-foot {
    border-top: 1px solid #e2e8f0; padding-top: 16px;
    font-size: 11px; color: #94a3b8; text-align: center;
  }
}
