/*
Theme Name:   Hello Elementor Child — Larger Than Life USA
Theme URI:    https://largerthanlifeusa.org
Description:  Child theme for Hello Elementor. Contains the custom WooCommerce
              order-received (thank you) template for FooEvents ticketed events.
Author:       WebtrixPro
Author URI:   https://webtrixpro.com
Template:     hello-elementor
Version:      1.0.0
Text Domain:  hello-elementor-child
*/

/* ==========================================================================
   ORDER RECEIVED — Larger Than Life USA
   Colours resolve to Elementor Global Colors with hex fallbacks, so the page
   still renders correctly if the Elementor kit isn't loaded on this template.
   ========================================================================== */

.ltl-order-received {
  --ltl-blue:      var(--e-global-color-primary,  #1b7fc4);
  --ltl-orange:    var(--e-global-color-accent,   #f89d35);
  --ltl-text:      var(--e-global-color-text,     #333333);
  --ltl-muted:     #6b7280;
  --ltl-hairline:  #e3e6ea;
  --ltl-surface:   #f7f9fb;
  --ltl-success:   #1a8754;

  --ltl-radius:    14px;
  --ltl-radius-sm: 9px;

  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px 64px;
  box-sizing: border-box;
  color: var(--ltl-text);
  font-family: inherit;
}

.ltl-order-received *,
.ltl-order-received *::before,
.ltl-order-received *::after { box-sizing: border-box; }


/* --- Page title from the theme is redundant; our hero replaces it -------- */
body.woocommerce-order-received .page-header .entry-title { display: none; }


/* ==========================================================================
   HERO
   ========================================================================== */

.ltl-hero {
  text-align: center;
  padding: 44px 24px 36px;
  margin-bottom: 30px;
  background: linear-gradient(160deg, var(--ltl-surface) 0%, #ffffff 100%);
  border: 1px solid var(--ltl-hairline);
  border-radius: var(--ltl-radius);
}

.ltl-hero__check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ltl-success) 12%, white);
}

.ltl-hero__check svg { width: 28px; height: 28px; stroke: var(--ltl-success); }

.ltl-hero__title {
  margin: 0 0 12px;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ltl-blue);
}

.ltl-hero__lede {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ltl-muted);
}

.ltl-hero__impact {
  display: inline-block;
  margin-top: 18px;
  padding: 10px 20px;
  background: color-mix(in srgb, var(--ltl-orange) 12%, white);
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #9a5c05;
}


/* ==========================================================================
   ORDER SUMMARY STRIP
   ========================================================================== */

.ltl-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1px;
  margin: 0 0 34px;
  padding: 0;
  list-style: none;
  background: var(--ltl-hairline);
  border: 1px solid var(--ltl-hairline);
  border-radius: var(--ltl-radius-sm);
  overflow: hidden;
}

.ltl-summary li {
  margin: 0;
  padding: 16px 18px;
  background: #fff;
  list-style: none;
}

.ltl-summary__label {
  display: block;
  margin-bottom: 5px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ltl-muted);
}

.ltl-summary__value {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}


/* ==========================================================================
   SECTION HEADINGS
   ========================================================================== */

.ltl-section-title {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ltl-hairline);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ltl-text);
}


/* ==========================================================================
   EVENT CARD
   ========================================================================== */

.ltl-event {
  margin-bottom: 34px;
  background: #fff;
  border: 1px solid var(--ltl-hairline);
  border-radius: var(--ltl-radius);
  overflow: hidden;
}

.ltl-event__banner {
  display: block;
  width: 100%;
  height: auto;
  max-height: 260px;
  object-fit: cover;
}

.ltl-event__head {
  padding: 22px 26px 18px;
  background: var(--ltl-blue);
  color: #fff;
}

.ltl-event__name {
  margin: 0;
  font-size: 1.375rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
}

.ltl-event__body { padding: 24px 26px 26px; }

.ltl-event__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px 28px;
}

.ltl-detail { display: flex; gap: 13px; align-items: flex-start; }

.ltl-detail__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--ltl-blue) 10%, white);
}

.ltl-detail__icon svg { width: 18px; height: 18px; stroke: var(--ltl-blue); }

.ltl-detail__label {
  display: block;
  margin-bottom: 3px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ltl-muted);
}

.ltl-detail__value {
  display: block;
  font-size: 0.9688rem;
  font-weight: 600;
  line-height: 1.5;
}

.ltl-detail__value a { color: var(--ltl-blue); text-decoration: none; }
.ltl-detail__value a:hover { text-decoration: underline; }

.ltl-detail__sub {
  display: block;
  margin-top: 2px;
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--ltl-muted);
}

/* Date not yet published */
.ltl-detail--tba .ltl-detail__value { color: var(--ltl-muted); font-weight: 500; font-style: italic; }


/* --- Actions ------------------------------------------------------------ */

.ltl-event__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--ltl-hairline);
}

.ltl-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--ltl-radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none !important;
  cursor: pointer;
  transition: filter .18s ease, transform .12s ease, background .18s ease, color .18s ease;
}

.ltl-btn svg { width: 17px; height: 17px; }

.ltl-btn--primary { background: var(--ltl-orange); color: #fff !important; }
.ltl-btn--primary:hover { filter: brightness(.93); transform: translateY(-1px); }

.ltl-btn--ghost {
  background: #fff;
  color: var(--ltl-blue) !important;
  border-color: var(--ltl-hairline);
}
.ltl-btn--ghost:hover { border-color: var(--ltl-blue); background: color-mix(in srgb, var(--ltl-blue) 5%, white); }

.ltl-btn:focus-visible { outline: 3px solid color-mix(in srgb, var(--ltl-blue) 35%, transparent); outline-offset: 3px; }


/* ==========================================================================
   NEXT STEPS
   ========================================================================== */

.ltl-steps {
  margin-bottom: 34px;
  padding: 24px 26px;
  background: var(--ltl-surface);
  border: 1px solid var(--ltl-hairline);
  border-radius: var(--ltl-radius);
}

.ltl-steps__title {
  margin: 0 0 16px;
  font-size: 1.0625rem;
  font-weight: 700;
}

.ltl-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: ltlstep; }

.ltl-steps li {
  position: relative;
  margin: 0 0 13px;
  padding-left: 38px;
  font-size: 0.9688rem;
  line-height: 1.6;
  list-style: none;
  counter-increment: ltlstep;
}

.ltl-steps li:last-child { margin-bottom: 0; }

.ltl-steps li::before {
  content: counter(ltlstep);
  position: absolute;
  left: 0;
  top: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--ltl-blue);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.ltl-steps strong { font-weight: 700; }


/* ==========================================================================
   FOOEVENTS TICKET TABLE — restyled, markup untouched
   ========================================================================== */

.ltl-order-received #fooevents-thankyou-tickets .woocommerce-order-details__title { display: none; }

.ltl-order-received .fooevents-thankyou-tickets-table {
  width: 100%;
  margin: 0 0 34px;
  border: 0;
  border-collapse: separate;
  border-spacing: 0 14px;
}

.ltl-order-received .fooevents-thankyou-tickets-table tbody,
.ltl-order-received .fooevents-thankyou-tickets-table tr,
.ltl-order-received .fooevents-thankyou-tickets-table td { border: 0 !important; }

.ltl-order-received tr.fooevents-thankyou-ticket {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 22px;
  padding: 22px 24px;
  background: #fff;
  border: 1.5px dashed var(--ltl-blue) !important;
  border-radius: var(--ltl-radius);
  box-shadow: 0 2px 10px rgb(0 0 0 / .04);
}

.ltl-order-received td.fooevents-thankyou-ticket-barcode {
  flex: 0 0 auto;
  padding: 0 !important;
}

.ltl-order-received td.fooevents-thankyou-ticket-barcode img {
  display: block;
  width: 128px;
  height: 128px;
  padding: 7px;
  background: #fff;
  border: 1px solid var(--ltl-hairline);
  border-radius: 8px;
}

.ltl-order-received td.fooevents-thankyou-ticket-event-details,
.ltl-order-received td.fooevents-thankyou-ticket-attendee {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0 !important;
}

.ltl-order-received .fooevents-thankyou-ticket-event-details > div > strong {
  display: block;
  margin-bottom: 9px;
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ltl-blue);
}

.ltl-order-received .fooevents-thankyou-ticket ul.wc-item-meta {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ltl-order-received .fooevents-thankyou-ticket ul.wc-item-meta li {
  margin: 0 0 5px;
  padding: 0;
  font-size: 0.9063rem;
  line-height: 1.5;
  list-style: none;
}

.ltl-order-received .fooevents-thankyou-ticket ul.wc-item-meta li:last-child { margin-bottom: 0; }

.ltl-order-received .fooevents-thankyou-ticket ul.wc-item-meta strong {
  font-weight: 600;
  color: var(--ltl-muted);
}

.ltl-order-received .fooevents-thankyou-ticket a { color: var(--ltl-blue); }


/* ==========================================================================
   ORDER DETAILS TABLE
   ========================================================================== */

.ltl-order-received .woocommerce-order-details { margin-bottom: 34px; }

.ltl-order-received .woocommerce-order-details__title,
.ltl-order-received .woocommerce-column__title {
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ltl-hairline);
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.ltl-order-received table.order_details {
  width: 100%;
  margin: 0;
  border: 1px solid var(--ltl-hairline);
  border-radius: var(--ltl-radius-sm);
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
}

.ltl-order-received table.order_details th,
.ltl-order-received table.order_details td {
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid var(--ltl-hairline);
  font-size: 0.9375rem;
  text-align: left;
  vertical-align: middle;
}

.ltl-order-received table.order_details thead th {
  background: var(--ltl-surface);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ltl-muted);
}

.ltl-order-received table.order_details td.product-total,
.ltl-order-received table.order_details th + td { text-align: right; }

.ltl-order-received table.order_details tfoot th { font-weight: 600; }

.ltl-order-received table.order_details tfoot tr:last-child th,
.ltl-order-received table.order_details tfoot tr:last-child td { border-bottom: 0; }

.ltl-order-received table.order_details a { color: var(--ltl-blue); text-decoration: none; font-weight: 600; }
.ltl-order-received table.order_details a:hover { text-decoration: underline; }


/* ==========================================================================
   CONTACT + TAX
   ========================================================================== */

.ltl-help {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 30px;
}

.ltl-help__card {
  padding: 22px 24px;
  background: #fff;
  border: 1px solid var(--ltl-hairline);
  border-radius: var(--ltl-radius);
}

.ltl-help__card h3 {
  margin: 0 0 9px;
  font-size: 1rem;
  font-weight: 700;
}

.ltl-help__card p { margin: 0 0 5px; font-size: 0.9375rem; line-height: 1.6; color: var(--ltl-muted); }
.ltl-help__card a { color: var(--ltl-blue); font-weight: 600; text-decoration: none; }
.ltl-help__card a:hover { text-decoration: underline; }

.ltl-tax {
  padding: 18px 22px;
  margin-bottom: 30px;
  background: var(--ltl-surface);
  border-left: 4px solid var(--ltl-orange);
  border-radius: var(--ltl-radius-sm);
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--ltl-muted);
}

.ltl-tax strong { color: var(--ltl-text); }


/* ==========================================================================
   BILLING — demoted
   ========================================================================== */

.ltl-order-received .woocommerce-customer-details { margin: 0; }

.ltl-order-received .woocommerce-customer-details .woocommerce-column__title {
  font-size: 0.9375rem;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--ltl-hairline);
  color: var(--ltl-muted);
}

.ltl-order-received .woocommerce-customer-details address {
  padding: 16px 18px;
  background: var(--ltl-surface);
  border: 1px solid var(--ltl-hairline);
  border-radius: var(--ltl-radius-sm);
  font-size: 0.875rem;
  font-style: normal;
  line-height: 1.65;
  color: var(--ltl-muted);
}


/* ==========================================================================
   FAILED / FALLBACK
   ========================================================================== */

.ltl-failed {
  padding: 26px;
  margin-bottom: 26px;
  background: #fdf2f2;
  border: 1px solid #f5c2c2;
  border-left: 4px solid #dc3232;
  border-radius: var(--ltl-radius-sm);
}

.ltl-failed p { margin: 0 0 16px; color: #8a2020; }
.ltl-failed .ltl-actions { display: flex; flex-wrap: wrap; gap: 10px; }


/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 767px) {
  .ltl-order-received { padding: 0 16px 48px; }

  .ltl-hero { padding: 32px 20px 28px; }

  .ltl-summary { grid-template-columns: 1fr 1fr; }

  .ltl-event__head, .ltl-event__body { padding-inline: 18px; }

  .ltl-steps { padding: 20px 18px; }

  .ltl-order-received tr.fooevents-thankyou-ticket {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 18px;
  }

  .ltl-order-received td.fooevents-thankyou-ticket-barcode { align-self: center; }

  .ltl-btn { flex: 1 1 100%; justify-content: center; }

  .ltl-order-received table.order_details th,
  .ltl-order-received table.order_details td { padding: 12px 14px; font-size: 0.875rem; }
}

@media (max-width: 479px) {
  .ltl-summary { grid-template-columns: 1fr; }
}


/* ==========================================================================
   PRINT
   ========================================================================== */

@media print {
  .ltl-order-received { max-width: 100%; padding: 0; }
  .ltl-event__actions,
  .ltl-help,
  .ltl-steps,
  .site-header,
  .site-footer { display: none !important; }
  .ltl-order-received tr.fooevents-thankyou-ticket { break-inside: avoid; box-shadow: none; }
}


/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .ltl-order-received * { transition-duration: .01ms !important; transform: none !important; }
}




/* ==========================================================================
   FIX PASS 01
   ========================================================================== */

/* --- Brand orange: the accent global slot is green in this kit ---------- */
.ltl-order-received {
  --ltl-orange: #f89d35;
}

/* --- Billing address to the very bottom -------------------------------- */
.ltl-order-received {
  display: flex;
  flex-direction: column;
}
.ltl-order-received > .woocommerce-customer-details { order: 99; margin-top: 8px; }

/* --- Ticket card: kill the grey cell fills ----------------------------- */
.ltl-order-received .fooevents-thankyou-tickets-table td,
.ltl-order-received .fooevents-thankyou-tickets-table tr,
.ltl-order-received .fooevents-thankyou-ticket ul.wc-item-meta,
.ltl-order-received .fooevents-thankyou-ticket ul.wc-item-meta li {
  background: transparent !important;
  background-color: transparent !important;
}

.ltl-order-received tr.fooevents-thankyou-ticket {
  padding: 26px 28px;
  gap: 28px;
}

/* QR cell was reserving width it wasn't using */
.ltl-order-received td.fooevents-thankyou-ticket-barcode {
  width: auto !important;
  min-width: 0 !important;
}

.ltl-order-received td.fooevents-thankyou-ticket-event-details {
  flex: 1 1 240px;
  padding-right: 20px !important;
  border-right: 1px solid var(--ltl-hairline);
}

.ltl-order-received td.fooevents-thankyou-ticket-attendee {
  flex: 1 1 200px;
}

/* --- Email no longer breaks mid-word ----------------------------------- */
.ltl-summary__value {
  word-break: normal;
  overflow-wrap: anywhere;
  hyphens: none;
}

/* --- Help cards sit tighter to the tax notice -------------------------- */
.ltl-help { margin-bottom: 22px; }

@media (max-width: 767px) {
  .ltl-order-received td.fooevents-thankyou-ticket-event-details {
    border-right: 0;
    padding-right: 0 !important;
    border-bottom: 1px solid var(--ltl-hairline);
    padding-bottom: 14px !important;
  }
}
