/* Premium order-received / thank you */

body.tmo-thankyou-ux {
  background:
    radial-gradient(ellipse 70% 45% at 15% -5%, rgba(79, 143, 130, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(15, 39, 68, 0.05), transparent 50%),
    #f4f7f9;
}

body.tmo-thankyou-ux #ht-ctc-chat,
body.tmo-thankyou-ux .ht-ctc {
  display: none !important;
}

body.tmo-thankyou-ux .tmo-section--flush,
body.tmo-thankyou-ux .tmo-main > .tmo-section {
  padding: 0 !important;
  margin: 0 !important;
  max-width: none;
}

body.tmo-thankyou-ux .woocommerce {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* Hide leftover page-builder debris if any escapes */
body.tmo-thankyou-ux .tmo-main > .tmo-section > article > :not(.woocommerce):not(.woocommerce-notices-wrapper) {
  display: none !important;
}

.tmo-thankyou {
  --tmo-ty-pad: 1.25rem;
  width: min(920px, calc(100% - 2rem));
  margin: 1.5rem auto 3rem;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  animation: tmo-ty-in .45s ease both;
}

@keyframes tmo-ty-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

body.tmo-thankyou-ux h1,
body.tmo-thankyou-ux h2,
body.tmo-thankyou-ux .tmo-thankyou__title,
body.tmo-thankyou-ux .tmo-thankyou__panel-title {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif !important;
  text-transform: none !important;
  letter-spacing: -.02em !important;
}

.tmo-thankyou__hero {
  text-align: center;
  margin-bottom: 1.25rem;
  padding: 1.5rem 1.25rem 1.25rem;
  background: rgba(255, 255, 255, .72);
  border: 1px solid #d7e0ea;
}

.tmo-thankyou__hero--failed {
  border-color: #e8b4b4;
  background: #fff7f7;
}

.tmo-thankyou__eyebrow {
  margin: 0 0 .35rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #4f8f82;
}

.tmo-thankyou__title {
  margin: 0 0 .55rem !important;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem) !important;
  font-weight: 700 !important;
  color: #0f2744 !important;
  line-height: 1.2 !important;
}

.tmo-thankyou__lead {
  margin: 0 auto;
  max-width: 38rem;
  color: #5b6b7c;
  font-size: .98rem;
  line-height: 1.5;
}

.tmo-thankyou__meta {
  list-style: none;
  margin: 0 0 1rem;
  padding: .85rem 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .75rem;
  background: #0f2744;
  color: #fff;
}

.tmo-thankyou__meta li {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  padding: 0 .5rem;
  border-right: 1px solid rgba(255, 255, 255, .12);
}
.tmo-thankyou__meta li:last-child { border-right: 0; }

.tmo-thankyou__meta span {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .7;
}

.tmo-thankyou__meta strong {
  font-size: .92rem;
  font-weight: 700;
  color: #fff;
}

.tmo-thankyou__pay-note {
  margin: 0 0 1rem;
  padding: .75rem 1rem;
  background: #eef6f3;
  border-left: 3px solid #4f8f82;
  color: #0f2744;
  font-size: .9rem;
  font-weight: 500;
}
.tmo-thankyou__pay-note p { margin: 0; }

.tmo-thankyou__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, .85fr);
  gap: 1rem;
  align-items: start;
}

.tmo-thankyou__panel {
  background: #fff;
  border: 1px solid #d7e0ea;
  padding: 1rem 1.05rem 1.1rem;
  margin-bottom: 1rem;
}

.tmo-thankyou__panel-title {
  margin: 0 0 .85rem !important;
  font-size: .95rem !important;
  font-weight: 700 !important;
  color: #0f2744 !important;
}

.tmo-thankyou__lines {
  list-style: none;
  margin: 0;
  padding: 0;
}

.tmo-thankyou__line {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: .75rem;
  align-items: center;
  padding: .7rem 0;
  border-bottom: 1px solid #e6edf4;
}
.tmo-thankyou__line:last-child { border-bottom: 0; }

.tmo-thankyou__line-media img,
.tmo-thankyou__line-placeholder {
  width: 56px !important;
  height: 56px !important;
  object-fit: cover;
  display: block;
  background: #eef3f6;
}

.tmo-thankyou__line-name {
  margin: 0 0 .25rem;
  font-size: .9rem;
  font-weight: 600;
  color: #0f2744;
  line-height: 1.3;
}

.tmo-thankyou__line-qty {
  display: inline-flex;
  padding: .12rem .45rem;
  background: #eef3f6;
  font-size: .75rem;
  font-weight: 700;
  color: #0f2744;
}

.tmo-thankyou__line-meta {
  margin-top: .25rem;
  font-size: .75rem;
  color: #5b6b7c;
}
.tmo-thankyou__line-meta p { margin: 0; }

.tmo-thankyou__line-total {
  font-size: .9rem;
  font-weight: 700;
  color: #0f2744;
  white-space: nowrap;
}

.tmo-thankyou__totals {
  width: 100%;
  margin: .75rem 0 0;
  border-top: 1px solid #e6edf4;
  border-collapse: collapse;
}
.tmo-thankyou__totals th,
.tmo-thankyou__totals td {
  padding: .45rem 0;
  font-size: .88rem;
  border: 0;
  background: transparent;
}
.tmo-thankyou__totals th {
  text-align: left;
  font-weight: 500;
  color: #5b6b7c;
}
.tmo-thankyou__totals td {
  text-align: right;
  font-weight: 600;
  color: #0f2744;
}
.tmo-thankyou__totals-grand th,
.tmo-thankyou__totals-grand td {
  padding-top: .7rem;
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #0f2744 !important;
}

.tmo-thankyou__address {
  font-style: normal;
  font-size: .88rem;
  line-height: 1.55;
  color: #0f2744;
}
.tmo-thankyou__contact {
  margin: .4rem 0 0;
  font-size: .84rem;
  color: #5b6b7c;
}

.tmo-thankyou__steps {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: #5b6b7c;
  font-size: .88rem;
  line-height: 1.55;
}
.tmo-thankyou__steps li { margin-bottom: .35rem; }

.tmo-thankyou__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
}

.tmo-thankyou .tmo-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.55rem;
  padding: 0 1.1rem;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none !important;
  border: 0;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.tmo-thankyou .tmo-btn--mint {
  background: #4f8f82;
  color: #0f2744;
}
.tmo-thankyou .tmo-btn--mint:hover {
  background: #3f7a6f;
  color: #fff;
  transform: translateY(-1px);
}
.tmo-thankyou .tmo-btn--ghost {
  background: transparent;
  color: #0f2744;
  border: 1px solid #d7e0ea;
}
.tmo-thankyou .tmo-btn--ghost:hover {
  border-color: #0f2744;
}

/* Hide default WC leftover tables if a plugin re-adds them */
body.tmo-thankyou-ux .woocommerce-order-details,
body.tmo-thankyou-ux .woocommerce-customer-details,
body.tmo-thankyou-ux .woocommerce-order-overview:not(.tmo-thankyou__meta) {
  display: none !important;
}

@media (max-width: 800px) {
  .tmo-thankyou__meta {
    grid-template-columns: 1fr 1fr;
  }
  .tmo-thankyou__meta li {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, .1);
    padding: .35rem 0;
  }
  .tmo-thankyou__meta li:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, .1);
    padding-right: .5rem;
  }
  .tmo-thankyou__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .tmo-thankyou__meta {
    grid-template-columns: 1fr;
  }
  .tmo-thankyou__meta li {
    border: 0;
    padding: .35rem 0;
  }
  .tmo-thankyou__line {
    grid-template-columns: 48px minmax(0, 1fr);
  }
  .tmo-thankyou__line-total {
    grid-column: 2;
  }
}
