/**
 * BlessGive Donation System - Custom Checkout & Thank You Stylesheet
 * 1:1 match with superthankss.com single-column checkout design
 *
 * @package BlessGive
 */

:root {
  --sky-top: #dbeafe;
  --sky-mid: #e8f1fb;
  --sky-low: #f6f9ff;
  --card: #ffffff;
  --ink: #2b3a52;
  --ink-soft: #5c6b84;
  --gold: #f6ead2;
  --gold-border: #e8d5a8;
  --halo: #8ea8e8;
  --halo-deep: #5f7dd1;
  --line: #dde6f4;
  --ok: #3f9d6b;
  --radius: 14px;
}

/* =====================================================================
   UNIVERSAL SKY BACKGROUND & FULL-BLEED BREAKOUT
   ===================================================================== */
html,
body,
html.blessgive-has-sky-bg,
body.blessgive-has-sky-bg,
html:has(.blessgive-checkout-wrapper),
body:has(.blessgive-checkout-wrapper) {
  background: linear-gradient(180deg, #dbeafe 0%, #e8f1fb 45%, #f6f9ff 100%) !important;
  background-attachment: fixed !important;
  min-height: 100vh !important;
  margin: 0 !important;
  overflow-x: hidden !important;
}

/* Make all theme, Gutenberg & Elementor parent containers transparent */
body:has(.blessgive-checkout-wrapper) #page,
body:has(.blessgive-checkout-wrapper) #content,
body:has(.blessgive-checkout-wrapper) .site,
body:has(.blessgive-checkout-wrapper) .site-content,
body:has(.blessgive-checkout-wrapper) .site-main,
body:has(.blessgive-checkout-wrapper) .content-area,
body:has(.blessgive-checkout-wrapper) .entry-content,
body:has(.blessgive-checkout-wrapper) .post-content,
body:has(.blessgive-checkout-wrapper) .ast-container,
body:has(.blessgive-checkout-wrapper) .elementor,
body:has(.blessgive-checkout-wrapper) .elementor-section,
body:has(.blessgive-checkout-wrapper) .elementor-section-boxed,
body:has(.blessgive-checkout-wrapper) .elementor-container,
body:has(.blessgive-checkout-wrapper) .elementor-column,
body:has(.blessgive-checkout-wrapper) .elementor-widget-wrap,
body:has(.blessgive-checkout-wrapper) .wp-site-blocks,
body:has(.blessgive-checkout-wrapper) article,
body:has(.blessgive-checkout-wrapper) main,
body.blessgive-has-sky-bg #page,
body.blessgive-has-sky-bg #content,
body.blessgive-has-sky-bg .site,
body.blessgive-has-sky-bg .site-content,
body.blessgive-has-sky-bg .site-main,
body.blessgive-has-sky-bg .content-area,
body.blessgive-has-sky-bg .entry-content,
body.blessgive-has-sky-bg .post-content,
body.blessgive-has-sky-bg .ast-container,
body.blessgive-has-sky-bg .elementor,
body.blessgive-has-sky-bg .elementor-section,
body.blessgive-has-sky-bg .elementor-section-boxed,
body.blessgive-has-sky-bg .elementor-container,
body.blessgive-has-sky-bg .elementor-column,
body.blessgive-has-sky-bg .elementor-widget-wrap,
body.blessgive-has-sky-bg .wp-site-blocks,
body.blessgive-has-sky-bg article,
body.blessgive-has-sky-bg main {
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  border: none !important;
}

/* Full-bleed breakout: forces the wrapper to stretch 100vw edge-to-edge across any theme container */
.blessgive-checkout-wrapper {
  position: relative !important;
  width: 100vw !important;
  max-width: 100vw !important;
  left: 50% !important;
  right: 50% !important;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  min-height: 100vh !important;
  background: linear-gradient(180deg, var(--sky-top, #dbeafe) 0%, var(--sky-mid, #e8f1fb) 45%, var(--sky-low, #f6f9ff) 100%) !important;
  background-attachment: fixed !important;
  font-family: 'Nunito Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink, #2b3a52);
  overflow-x: hidden !important;
  box-sizing: border-box !important;
  padding: 30px 0 80px !important;
}

.blessgive-checkout-wrapper .clouds {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  pointer-events: none !important;
  z-index: 0 !important;
}

.blessgive-checkout-wrapper .cloud {
  position: absolute;
  background: rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  filter: blur(22px);
  animation: bg-drift linear infinite;
}

.blessgive-checkout-wrapper .cloud:nth-child(1) { width: 340px; height: 90px; top: 8%; left: -20%; animation-duration: 80s; }
.blessgive-checkout-wrapper .cloud:nth-child(2) { width: 260px; height: 70px; top: 30%; left: -30%; animation-duration: 110s; animation-delay: -40s; }
.blessgive-checkout-wrapper .cloud:nth-child(3) { width: 420px; height: 110px; top: 62%; left: -25%; animation-duration: 95s; animation-delay: -70s; }
.blessgive-checkout-wrapper .cloud:nth-child(4) { width: 300px; height: 80px; top: 82%; left: -15%; animation-duration: 120s; animation-delay: -20s; }

@keyframes bg-drift {
  from { transform: translateX(0); }
  to { transform: translateX(160vw); }
}

@media (prefers-reduced-motion: reduce) {
  .blessgive-checkout-wrapper .cloud {
    animation: none;
    left: 10%;
  }
}

/* =====================================================================
   CONTAINER & PANEL (Single centered card layout)
   ===================================================================== */
.blessgive-checkout-wrapper .wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 48px 20px 80px;
  position: relative;
  z-index: 1;
}

.blessgive-checkout-wrapper .panel,
.blessgive-checkout-wrapper .wc-panel {
  background: var(--card);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(95, 125, 209, 0.18);
  padding: 48px 40px;
  margin-bottom: 36px;
}

@media (max-width: 560px) {
  .blessgive-checkout-wrapper .panel,
  .blessgive-checkout-wrapper .wc-panel {
    padding: 34px 20px;
    border-radius: 18px;
  }
}

/* Back Link */
.blessgive-checkout-wrapper .back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink-soft);
  font-weight: 800;
  font-size: 14px;
  margin-bottom: 22px;
  padding: 4px 0;
  text-decoration: none;
  transition: color 0.15s;
}

.blessgive-checkout-wrapper .back:hover {
  color: var(--halo-deep);
}

/* Page Title */
.blessgive-checkout-wrapper .wc-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 700;
  font-size: clamp(30px, 5vw, 38px);
  color: var(--ink);
  margin: 0 0 18px;
  text-align: left;
  letter-spacing: 0.3px;
  line-height: 1.15;
}

/* Top Notice Bar */
.blessgive-checkout-wrapper .wc-notice {
  border-top: 3px solid var(--halo-deep);
  background: #f4f7fd;
  padding: 14px 18px;
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 28px;
  border-radius: 0 0 6px 6px;
  line-height: 1.5;
  text-align: left;
}

/* Section Headings */
.blessgive-checkout-wrapper .wc-heading {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  line-height: 1.25;
}

/* =====================================================================
   BILLING FIELDS
   ===================================================================== */
.blessgive-checkout-wrapper .wc-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.blessgive-checkout-wrapper .wc-field {
  flex: 1 1 100%;
}

.blessgive-checkout-wrapper .wc-field.half {
  flex: 1 1 calc(50% - 7px);
}

@media (max-width: 480px) {
  .blessgive-checkout-wrapper .wc-field.half {
    flex: 1 1 100%;
  }
}

.blessgive-checkout-wrapper .wc-field label {
  display: block;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 6px;
  text-align: left;
}

.blessgive-checkout-wrapper .wc-req {
  color: #c0392b;
  text-decoration: none;
  border: none;
  font-weight: 700;
}

.blessgive-checkout-wrapper .wc-optional {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 12.5px;
}

.blessgive-checkout-wrapper .wc-field input[type="text"],
.blessgive-checkout-wrapper .wc-field input[type="email"],
.blessgive-checkout-wrapper .wc-field input[type="tel"] {
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: left !important;
  padding: 12px 14px !important;
  font-size: 15px !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  color: var(--ink) !important;
  font-family: inherit !important;
  line-height: 1.4 !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color 0.18s, box-shadow 0.18s !important;
}

.blessgive-checkout-wrapper .wc-field input:focus {
  outline: none !important;
  border-color: var(--halo) !important;
  box-shadow: 0 0 0 3px rgba(142, 168, 232, 0.15) !important;
}

/* =====================================================================
   ORDER SUMMARY TABLE
   ===================================================================== */
.blessgive-checkout-wrapper .wc-table {
  width: 100% !important;
  border-collapse: collapse !important;
  margin-bottom: 32px !important;
  font-size: 14.5px !important;
  background: transparent !important;
  border: none !important;
}

.blessgive-checkout-wrapper .wc-table th,
.blessgive-checkout-wrapper .wc-table td {
  border: 1px solid var(--line) !important;
  padding: 12px 14px !important;
  text-align: left !important;
  background: #ffffff;
  color: var(--ink);
  vertical-align: middle !important;
}

.blessgive-checkout-wrapper .wc-table thead th {
  background: #f4f7fd !important;
  font-weight: 800 !important;
  color: var(--ink) !important;
}

.blessgive-checkout-wrapper .ta-r {
  text-align: right !important;
  white-space: nowrap !important;
}

.blessgive-checkout-wrapper .wc-bonus td,
.blessgive-checkout-wrapper tr.wc-bonus td {
  color: #a9812f !important;
  font-weight: 700 !important;
}

.blessgive-checkout-wrapper .wc-msg {
  font-style: italic !important;
  color: var(--ink-soft) !important;
  font-size: 13.5px !important;
  background: #fbfdff !important;
  line-height: 1.45 !important;
}

.blessgive-checkout-wrapper .wc-total th {
  background: #ffffff !important;
  font-weight: 800 !important;
  color: var(--ink) !important;
  font-size: 15px !important;
}

.blessgive-checkout-wrapper .wc-total td {
  background: #ffffff !important;
  font-family: 'Cormorant Garamond', Georgia, serif !important;
  font-weight: 700 !important;
  font-size: 24px !important;
  color: var(--halo-deep) !important;
  text-align: right !important;
}

/* =====================================================================
   PAYMENT BOX & WOOCOMMERCE GATEWAYS
   ===================================================================== */
.blessgive-checkout-wrapper .wc-payment {
  background: #f4f7fd !important;
  border: 1px solid var(--line) !important;
  border-radius: 12px !important;
  padding: 22px !important;
  margin-bottom: 28px !important;
}

/* WooCommerce #payment Reset */
.blessgive-checkout-wrapper .woocommerce-checkout #payment {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.blessgive-checkout-wrapper .woocommerce-checkout #payment table,
.blessgive-checkout-wrapper .woocommerce-checkout #payment tr,
.blessgive-checkout-wrapper .woocommerce-checkout #payment td,
.blessgive-checkout-wrapper .woocommerce-checkout #payment th {
  border: none !important;
  background: transparent !important;
}

.blessgive-checkout-wrapper .woocommerce-checkout #payment ul.payment_methods {
  list-style: none !important;
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
}

.blessgive-checkout-wrapper .woocommerce-checkout #payment ul.payment_methods li {
  border-bottom: 1px solid var(--line) !important;
  padding: 14px 4px !important;
  margin: 0 !important;
  background: transparent !important;
}

.blessgive-checkout-wrapper .woocommerce-checkout #payment ul.payment_methods li:last-child {
  border-bottom: none !important;
}

.blessgive-checkout-wrapper .woocommerce-checkout #payment ul.payment_methods li > label {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  color: var(--ink) !important;
  margin: 0 !important;
}

.blessgive-checkout-wrapper .woocommerce-checkout #payment ul.payment_methods li input[type="radio"] {
  width: 18px !important;
  height: 18px !important;
  accent-color: var(--halo-deep) !important;
  cursor: pointer !important;
  margin: 0 !important;
}

.blessgive-checkout-wrapper .woocommerce-checkout #payment ul.payment_methods li div.payment_box {
  margin: 12px 0 4px 28px !important;
  padding: 0 !important;
  font-size: 13.5px !important;
  color: var(--ink-soft) !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  line-height: 1.55 !important;
}

.blessgive-checkout-wrapper .woocommerce-checkout #payment ul.payment_methods li div.payment_box::before {
  display: none !important;
}

.blessgive-checkout-wrapper .woocommerce-checkout #payment ul.payment_methods li div.payment_box p {
  margin: 0 0 12px !important;
  color: var(--ink-soft) !important;
  font-size: 13.5px !important;
}

/* PayPal Smart Buttons / Payment Container */
.blessgive-checkout-wrapper .woocommerce-checkout #payment div.payment_box #paypal-button-container,
.blessgive-checkout-wrapper .woocommerce-checkout #payment div.payment_box .ppc-button-wrapper {
  margin-top: 10px !important;
}

/* Place Order & Privacy Policy */
.blessgive-checkout-wrapper .woocommerce-checkout #payment .place-order {
  border-top: 1px solid var(--line) !important;
  padding-top: 18px !important;
  margin-top: 16px !important;
  background: transparent !important;
  margin-bottom: 0 !important;
}

.blessgive-checkout-wrapper .woocommerce-checkout #payment .woocommerce-privacy-policy-text {
  font-size: 12.5px !important;
  color: var(--ink-soft) !important;
  margin: 0 0 18px !important;
  line-height: 1.55 !important;
}

.blessgive-checkout-wrapper .woocommerce-checkout #payment .woocommerce-privacy-policy-text p {
  margin: 0 0 8px !important;
  font-size: 12.5px !important;
  color: var(--ink-soft) !important;
}

.blessgive-checkout-wrapper .woocommerce-checkout #payment #place_order,
.blessgive-checkout-wrapper .wc-place {
  width: 100% !important;
  padding: 17px !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  background: var(--halo-deep) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-family: inherit !important;
  font-weight: 800 !important;
  font-size: 16px !important;
  letter-spacing: .3px !important;
  box-shadow: 0 8px 20px rgba(95, 125, 209, 0.3) !important;
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s !important;
}

.blessgive-checkout-wrapper .woocommerce-checkout #payment #place_order:hover,
.blessgive-checkout-wrapper .wc-place:hover {
  background: #4c69c2 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 26px rgba(95, 125, 209, 0.4) !important;
  color: #ffffff !important;
}

/* =====================================================================
   TRUST & SECURITY BADGES SECTION
   ===================================================================== */
.blessgive-checkout-wrapper .trust {
  border-top: 1px solid var(--line);
  margin-top: 28px;
  padding-top: 24px;
  text-align: center;
}

.blessgive-checkout-wrapper .trust-title {
  font-weight: 800;
  font-size: 14px;
  color: var(--ink);
  margin-bottom: 12px;
}

.blessgive-checkout-wrapper .badges {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.blessgive-checkout-wrapper .badge {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink-soft);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blessgive-checkout-wrapper .badge b {
  color: var(--ok);
}

/* =====================================================================
   EMPTY CHECKOUT PANEL
   ===================================================================== */
.blessgive-checkout-wrapper .blessgive-empty-checkout {
  text-align: center;
  max-width: 540px;
  margin: 40px auto;
}

.blessgive-checkout-wrapper .blessgive-btn-primary {
  display: inline-block;
  background: var(--halo-deep);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
  padding: 15px 36px;
  border-radius: var(--radius);
  box-shadow: 0 8px 22px rgba(95, 125, 209, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.blessgive-checkout-wrapper .blessgive-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(95, 125, 209, 0.45);
}

/* =====================================================================
   THANK YOU / PAYMENT SUCCESS SECTION
   ===================================================================== */
.blessgive-thankyou-panel {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}

.blessgive-success-icon {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, #4fb885, #3f9d6b);
  color: #ffffff;
  display: grid;
  place-items: center;
  font-size: 40px;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(63, 157, 107, 0.35);
}

.blessgive-receipt-box {
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 28px 0;
  text-align: left;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: 14.5px;
  gap: 16px;
}

.receipt-row + .receipt-row {
  border-top: 1px dashed var(--line);
}

.receipt-label {
  color: var(--ink-soft);
  font-weight: 700;
}

.receipt-val {
  font-weight: 800;
  color: var(--ink);
  text-align: right;
}

.receipt-val.highlight {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 22px;
  color: var(--halo-deep);
}

/* Gift Box (eBook Delivery) */
.blessgive-gift-box {
  border: 1.5px solid var(--gold-border);
  background: linear-gradient(135deg, #fefbf3, #ffffff);
  border-radius: var(--radius);
  padding: 30px 24px;
  margin: 28px 0;
  text-align: center;
  box-shadow: 0 8px 24px rgba(232, 213, 168, 0.3);
}

.blessgive-gift-box .blessgive-gift-cover {
  width: 120px;
  height: auto;
  margin: 0 auto 16px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(95, 125, 209, 0.28);
  display: block;
}

.blessgive-gift-box .blessgive-gift-tag {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: none;
  color: #a9812f;
  margin-bottom: 6px;
}

.blessgive-gift-box .blessgive-gift-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--halo-deep);
  margin: 0 0 8px;
}

.blessgive-gift-box .blessgive-gift-desc {
  max-width: 440px;
  margin: 0 auto 20px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.blessgive-gift-dl {
  display: inline-block;
  background: var(--halo-deep);
  color: #ffffff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 15.5px;
  padding: 15px 36px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(95, 125, 209, 0.35);
  transition: transform 0.15s, box-shadow 0.15s;
}

.blessgive-gift-dl:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(95, 125, 209, 0.45);
  color: #ffffff !important;
}

.blessgive-gift-note {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 14px;
}

.blessgive-success-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

.blessgive-btn-ghost {
  padding: 14px 28px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  font-family: inherit;
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
  transition: all 0.15s;
}

.blessgive-btn-ghost:hover {
  border-color: var(--halo);
  background: #f7faff;
  color: var(--halo-deep);
}
