/* FoodUp Ordering v0.2.34 — established FoodUp Thank You design */

body.fuo-order-confirmation-page{
  background:#f4f4f5!important;
}

body.fuo-order-confirmation-page .entry-title,
body.fuo-order-confirmation-page .page-title,
body.fuo-order-confirmation-page h1.entry-title,
body.fuo-order-confirmation-page .woocommerce-order-received .woocommerce-notice{
  display:none!important;
}

body.fuo-order-confirmation-page .site-main,
body.fuo-order-confirmation-page main,
body.fuo-order-confirmation-page .entry-content{
  max-width:none!important;
}

.fuo-thankyou{
  --fu-primary:#8B38CB;
  --fu-primary-light:#f5effc;
  --fu-success:#16a34a;
  --fu-text:#18181b;
  --fu-muted:#71717a;
  --fu-border:#d9d9df;

  width:100%;
  max-width:800px;
  margin:20px auto;
  padding:20px;
  color:var(--fu-text);
  font-family:'Inter',Arial,sans-serif;
  -webkit-font-smoothing:antialiased;
}

.fuo-thankyou *{
  box-sizing:border-box;
}

.fuo-thankyou__card{
  overflow:hidden;
  background:#fff;
  border-radius:28px;
}

/* ---------- Hero ---------- */
.fuo-thankyou__hero{
  padding:24px 24px 46px;
  text-align:center;
  color:#fff;
  background:
    radial-gradient(circle at top left,rgba(255,255,255,.18),transparent 40%),
    linear-gradient(
      135deg,
      var(--fu-primary-btn) 0%,
      color-mix(in srgb,var(--fu-primary-btn) 88%,#000) 45%,
      color-mix(in srgb,var(--fu-primary-btn) 72%,#000) 100%
    );
}

.fuo-thankyou__check{
  display:flex;
  align-items:center;
  justify-content:center;
  width:52px;
  height:52px;
  margin:0 auto 14px;
  border-radius:999px;
  background:#fff;
  color:var(--fu-primary);
  font-size:34px;
  box-shadow:0 10px 28px rgba(0,0,0,.13);
}

.fuo-thankyou__hero h1{
  margin:0!important;
  color:#fff!important;
  line-height:1.15!important;
  font-weight:700!important;
  letter-spacing:-.035em!important;
}

.fuo-thankyou__hero p{
  margin:8px 0 0!important;
  color:#fff!important;
  font-size:14px;
  opacity:.94;
}

.fuo-thankyou__order-number{
  margin-top:12px;
  font-size:14px;
  font-weight:600;
}

/* ---------- Main body / logo overlap ---------- */
.fuo-thankyou__body{
  position:relative;
  z-index:2;
  margin-top:-24px;
  padding:0 28px 28px;
}

.fuo-thankyou__logo-card{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:98px;
  margin-bottom:15px;
  padding:16px;
  border-radius:22px;
  background:#fff;
  box-shadow:0 10px 34px rgba(0,0,0,.08);
}

.fuo-thankyou__logo-card img{
  display:block;
  width:auto;
  max-width:190px;
  height:auto;
  max-height:72px;
  object-fit:contain;
}

/* ---------- Two info cards ---------- */
.fuo-thankyou__info-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-bottom:16px;
}

.fuo-thankyou__info-card{
  min-height:108px;
  padding:18px;
  border:1px solid var(--fu-border);
  border-radius:18px;
  background:#fff;
}

.fuo-thankyou__label{
  display:block;
  margin-bottom:8px;
  color:#999;
  font-size:10px;
  font-weight:700;
  letter-spacing:.9px;
  text-transform:uppercase;
}

.fuo-thankyou__info-card strong{
  display:block;
  color:#111;
  font-size:16px;
  line-height:1.35;
  font-weight:700;
}

.fuo-thankyou__info-card strong.is-cash{
  color:#e54837;
}

.fuo-thankyou__info-card strong.is-paid{
  color:var(--fu-success);
}

.fuo-thankyou__info-card small{
  display:block;
  margin-top:5px;
  color:#777;
  font-size:12px;
  line-height:1.45;
}

.fuo-thankyou__info-card small .ti,
.fuo-thankyou__info-card strong .ti{
  margin-right:3px;
  vertical-align:-1px;
}

/* ---------- Order summary ---------- */
.fuo-thankyou__items-card{
  margin-bottom:14px;
  padding:20px;
  border:1px solid var(--fu-border);
  border-radius:20px;
  background:#fff;
}

.fuo-thankyou__items-card h2{
  margin:0 0 14px!important;
  color:#111!important;
  font-weight:700!important;
  letter-spacing:-.02em!important;
}

.fuo-thankyou__item{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:10px 0;
  border-top:1px solid #ececef;
}

.fuo-thankyou__item-copy{
  min-width:0;
}

.fuo-thankyou__item-copy strong{
  display:block;
  color:#111;
  font-size:13px;
  font-weight:700;
  line-height:1.4;
}

.fuo-thankyou__item-copy small{
  display:block;
  margin-top:3px;
  padding-left:10px;
  color:#888;
  font-size:11px;
  line-height:1.45;
}

.fuo-thankyou__item-copy small .ti{
  margin-right:3px;
  vertical-align:-1px;
}

.fuo-thankyou__item-price{
  flex:0 0 auto;
  color:#111;
  font-size:13px;
  font-weight:700;
  white-space:nowrap;
}

.fuo-thankyou__summary-rows{
  padding-top:7px;
}

.fuo-thankyou__summary-rows>div{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:4px 0;
  color:#777;
  font-size:11px;
}

.fuo-thankyou__summary-rows strong{
  color:#555;
  font-weight:700;
}

.fuo-thankyou__total{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:13px;
  padding-top:14px;
  border-top:1px dashed #d7d7dc;
}

.fuo-thankyou__total span{
  font-size:14px;
  font-weight:700;
}

.fuo-thankyou__total strong{
  color:var(--fu-primary);
  font-size:17px;
  font-weight:800;
}

/* ---------- Alerts ---------- */
.fuo-thankyou__alert,
.fuo-thankyou__note{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
  padding:14px;
  border:1px solid var(--fu-border);
  border-radius:17px;
  background:#fff;
}

.fuo-thankyou__alert-icon{
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 40px;
  width:40px;
  height:40px;
  border-radius:12px;
  background:#fff8e7;
  color:#a66b00;
  font-size:20px;
}

.fuo-thankyou__alert--green .fuo-thankyou__alert-icon{
  background:#ecfdf3;
  color:#16803d;
}

.fuo-thankyou__alert strong,
.fuo-thankyou__note strong{
  display:block;
  margin-bottom:2px;
  color:#111;
  font-size:13px;
  font-weight:700;
}

.fuo-thankyou__alert span,
.fuo-thankyou__note span{
  display:block;
  color:#666;
  font-size:12px;
  line-height:1.45;
}

.fuo-thankyou__note{
  display:block;
  background:#fffdf6;
}

/* ---------- Table: order another round ---------- */
.fuo-thankyou__continue{
  padding:4px 24px 22px;
}

.fuo-thankyou__continue a{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  min-height:48px;
  border-radius:12px;
  background:var(--fu-primary-btn);
  color:#fff!important;
  text-decoration:none!important;
  font-size:14px;
  font-weight:700;
}

.fuo-thankyou__continue a:hover{
  filter:brightness(1.05);
}

/* ---------- Contact ---------- */
.fuo-thankyou__contact{
  padding:22px 24px 24px;
  border-top:1px solid var(--fu-border);
  text-align:center;
}

.fuo-thankyou__contact h3{
  margin:0 0 12px!important;
  color:#111!important;
  font-size:14px!important;
  font-weight:700!important;
}

.fuo-thankyou__contact-actions{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  flex-wrap:wrap;
}

.fuo-thankyou__contact-actions a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height:34px;
  padding:0 13px;
  border-radius:999px;
  background:var(--fu-primary-light);
  color:var(--fu-primary)!important;
  text-decoration:none!important;
  font-size:11px;
  font-weight:650;
}

.fuo-thankyou__contact-actions a:hover{
  filter:brightness(.98);
}

/* ---------- Footer ---------- */
.fuo-thankyou__footer{
  padding:18px 20px;
  border-top:1px solid #f0edf5;
  background:#faf8fd;
  text-align:center;
}

.fuo-thankyou__footer a{
  display:block;
  color:var(--fu-primary)!important;
  text-decoration:none!important;
  font-size:13px;
  font-weight:700;
}

.fuo-thankyou__footer span{
  display:block;
  margin-top:3px;
  color:#9d8db8;
  font-size:10px;
}

/* ---------- Invalid order ---------- */
.fuo-thankyou--invalid{
  min-height:420px;
  display:grid;
  place-items:center;
}

.fuo-thankyou__invalid-card{
  width:min(100%,440px);
  padding:28px;
  border:1px solid var(--fu-border);
  border-radius:18px;
  background:#fff;
  text-align:center;
}

.fuo-thankyou__invalid-card>.ti{
  color:var(--fu-primary);
  font-size:34px;
}

.fuo-thankyou__invalid-card h1{
  margin:12px 0 6px!important;
  font-size:20px!important;
}

.fuo-thankyou__invalid-card p{
  color:var(--fu-muted);
  font-size:12px;
}

.fuo-thankyou__invalid-card a{
  display:inline-flex;
  margin-top:10px;
  padding:9px 13px;
  border-radius:8px;
  background:var(--fu-primary);
  color:#fff!important;
  text-decoration:none!important;
  font-size:11px;
  font-weight:700;
}

/* ---------- Responsive ---------- */
@media(max-width:768px){
  .fuo-thankyou{
    max-width:none;
    margin:0;
    padding:6px 6px 90px;
  }

  .fuo-thankyou__card{
    border-radius:20px;
  }

  .fuo-thankyou__hero{
    padding:28px 20px 44px;
  }

  .fuo-thankyou__hero h1{
    font-size:24px!important;
  }

  .fuo-thankyou__body{
    padding:0 14px 18px;
  }

  .fuo-thankyou__info-grid{
    grid-template-columns:1fr;
  }

  .fuo-thankyou__logo-card{
    min-height:88px;
  }
}

@media(max-width:480px){
  .fuo-thankyou__check{
    width:44px;
    height:44px;
    font-size:28px;
  }

  .fuo-thankyou__hero p,
  .fuo-thankyou__order-number{
    font-size:12px;
  }

  .fuo-thankyou__items-card{
    padding:16px;
  }

  .fuo-thankyou__contact{
    padding-left:14px;
    padding-right:14px;
  }
}


/* =========================================================
   FoodUp Ordering v0.4.37 — ORDER CONFIRMATION SOFT POLISH
   Visual-only. Confirmation/order logic unchanged.
   ========================================================= */

.fuo-thankyou{
  max-width:760px!important;
  margin:28px auto!important;
  padding:16px!important;
}

.fuo-thankyou__card{
  border:1px solid #e3e6ea!important;
  border-radius:22px!important;
  box-shadow:0 8px 28px rgba(16,24,40,.07)!important;
}

.fuo-thankyou__hero{
  padding:24px 24px 42px!important;
}

.fuo-thankyou__check{
  width:48px!important;
  height:48px!important;
  margin-bottom:12px!important;
  font-size:30px!important;
}

.fuo-thankyou__hero h1{
  font-size:25px!important;
}

.fuo-thankyou__hero p,
.fuo-thankyou__order-number{
  font-size:12.5px!important;
}

.fuo-thankyou__body{
  margin-top:-22px!important;
  padding:0 24px 24px!important;
}

.fuo-thankyou__logo-card{
  min-height:88px!important;
  margin-bottom:13px!important;
  padding:14px!important;
  border-radius:16px!important;
  box-shadow:0 7px 22px rgba(16,24,40,.07)!important;
}

.fuo-thankyou__logo-card img{
  max-width:170px!important;
  max-height:62px!important;
}

.fuo-thankyou__info-grid{
  gap:10px!important;
  margin-bottom:12px!important;
}

.fuo-thankyou__info-card{
  min-height:94px!important;
  padding:15px!important;
  border-color:#e2e6ea!important;
  border-radius:14px!important;
}

.fuo-thankyou__label{
  margin-bottom:6px!important;
  color:#8a929a!important;
  font-size:9px!important;
}

.fuo-thankyou__info-card strong{
  font-size:14px!important;
}

.fuo-thankyou__info-card small{
  margin-top:4px!important;
  color:#777f87!important;
  font-size:10.5px!important;
}

.fuo-thankyou__items-card{
  margin-bottom:12px!important;
  padding:16px!important;
  border-color:#e2e6ea!important;
  border-radius:15px!important;
}

.fuo-thankyou__items-card h2{
  margin-bottom:10px!important;
  font-size:16px!important;
}

.fuo-thankyou__item{
  gap:10px!important;
  padding:8px 0!important;
  border-top-color:#edf0f2!important;
}

.fuo-thankyou__item-copy strong{
  font-size:12px!important;
}

.fuo-thankyou__item-copy small{
  margin-top:2px!important;
  font-size:10px!important;
}

@media(max-width:620px){
  .fuo-thankyou{
  }
  .fuo-thankyou__card{
    border-radius:18px!important;
  }
  .fuo-thankyou__body{
  }
  .fuo-thankyou__info-grid{
  }
}


/* v0.4.87 — lightweight live status for QR/table confirmations only */
.fuo-table-confirmation-live {
    margin: 14px 0;
    padding: 18px;
    border: 1px solid #e5e1eb;
    border-radius: 18px;
    background: #fff;
}
.fuo-table-confirmation-live__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}
.fuo-table-confirmation-live__head > div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.fuo-table-confirmation-live__head span {
    color: #8c8395;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.fuo-table-confirmation-live__head strong {
    color: #1d1722;
    font-size: 20px;
    line-height: 1.15;
}
.fuo-table-confirmation-live__head > i {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: color-mix(in srgb, var(--fu-primary) 10%, white);
    color: var(--fu-primary);
    font-size: 18px;
}
.fuo-table-confirmation-live__steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
.fuo-table-confirmation-live__steps > div {
    min-width: 0;
    padding: 10px 5px;
    border: 1px solid #ece8ef;
    border-radius: 12px;
    background: #faf9fb;
    color: #9a929f;
    text-align: center;
    transition: .2s ease;
}
.fuo-table-confirmation-live__steps i {
    display: block;
    margin-bottom: 5px;
    font-size: 18px;
}
.fuo-table-confirmation-live__steps span {
    display: block;
    overflow: hidden;
    font-size: 10px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.fuo-table-confirmation-live__steps > div.is-done {
    border-color: color-mix(in srgb, var(--fu-primary) 25%, white);
    background: color-mix(in srgb, var(--fu-primary) 7%, white);
    color: var(--fu-primary);
}
.fuo-table-confirmation-live__steps > div.is-current {
    border-color: var(--fu-primary);
    box-shadow: 0 0 0 1px var(--fu-primary) inset;
}
.fuo-table-confirmation-live.is-rejected {
    border-color: #f1c8c8;
    background: #fffafa;
}
.fuo-table-confirmation-live.is-rejected .fuo-table-confirmation-live__head strong,
.fuo-table-confirmation-live.is-rejected .fuo-table-confirmation-live__head > i {
    color: #c63f3f;
}
.fuo-table-confirmation-live__updated {
    display: block;
    margin-top: 11px;
    color: #9b939f;
    font-size: 11px;
    text-align: center;
}
@media (max-width: 560px) {
    .fuo-table-confirmation-live {
        padding: 15px 12px;
    }
    .fuo-table-confirmation-live__steps {
        grid-template-columns: repeat(3, 1fr);
        gap: 5px;
    }
    .fuo-table-confirmation-live__steps > div {
        padding: 9px 2px;
    }
    .fuo-table-confirmation-live__steps span {
        font-size: 11px;
    }
}


/* v0.5.03 — online-payment confirmation state */
.fuo-thankyou.is-payment-pending .fuo-thankyou__check i {
  animation:fuo-payment-spin 1s linear infinite;
}
.fuo-thankyou.is-payment-pending .fuo-thankyou__info-card strong.is-paid {
  color:#b26a00;
}
.fuo-thankyou__alert--pending {
  border-color:#f0d7a0!important;
  background:#fffaf0!important;
}
.fuo-thankyou__alert--pending .fuo-thankyou__alert-icon {
  color:#b26a00!important;
  background:#fff1cc!important;
}
.fuo-thankyou.is-payment-failed .fuo-thankyou__check {
  color:#c63f3f;
}
.fuo-thankyou.is-payment-failed .fuo-thankyou__info-card strong.is-paid {
  color:#c63f3f;
}
.fuo-thankyou__alert--error {
  border-color:#f1c8c8!important;
  background:#fffafa!important;
}
.fuo-thankyou__alert--error .fuo-thankyou__alert-icon {
  color:#c63f3f!important;
  background:#fdecec!important;
}
@keyframes fuo-payment-spin {
  to { transform:rotate(360deg); }
}


/* =========================================================
   FoodUp Ordering v0.5.24 — compact mobile confirmation
   Visual-only: tighter spacing + side-by-side method/payment.
   ========================================================= */
.fuo-thankyou__logo-card{
  text-decoration:none!important;
  color:inherit!important;
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s ease;
}
.fuo-thankyou__logo-card:hover,
.fuo-thankyou__logo-card:focus-visible{
  transform:translateY(-1px);
  box-shadow:0 9px 24px rgba(16,24,40,.09)!important;
}
.fuo-thankyou__logo-card:focus-visible{
  outline:2px solid color-mix(in srgb,var(--fu-primary) 55%,white);
  outline-offset:2px;
}

@media(max-width:620px){
  .fuo-thankyou{
    margin:8px auto!important;
    padding:6px 6px 72px!important;
  }

  .fuo-thankyou__hero{
    padding:22px 16px 38px!important;
  }

  .fuo-thankyou__check{
    margin-bottom:9px!important;
  }

  .fuo-thankyou__hero p{
    margin-top:6px!important;
  }

  .fuo-thankyou__order-number{
    margin-top:8px!important;
  }

  .fuo-thankyou__body{
    margin-top:-20px!important;
    padding:0 12px 12px!important;
  }

  .fuo-thankyou__logo-card{
    min-height:76px!important;
    margin-bottom:10px!important;
    padding:10px 12px!important;
    border-radius:15px!important;
  }

  .fuo-thankyou__logo-card img{
    max-width:150px!important;
    max-height:54px!important;
  }

  .fuo-thankyou__info-grid{
    grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
    gap:8px!important;
    margin-bottom:10px!important;
  }

  .fuo-thankyou__info-card{
    min-width:0;
    min-height:82px!important;
    padding:12px!important;
    border-radius:13px!important;
  }

  .fuo-thankyou__label{
    margin-bottom:5px!important;
    font-size:11px!important;
    letter-spacing:.75px!important;
  }

  .fuo-thankyou__info-card strong{
    overflow-wrap:anywhere;
    font-size:13px!important;
    line-height:1.3!important;
  }

  .fuo-thankyou__info-card small{
    margin-top:3px!important;
    overflow-wrap:anywhere;
    font-size:12px!important;
    line-height:1.35!important;
  }

  .fuo-thankyou__items-card{
    margin-bottom:10px!important;
    padding:14px!important;
    border-radius:14px!important;
  }

  .fuo-thankyou__items-card h2{
    margin-bottom:8px!important;
  }

  .fuo-thankyou__item{
    padding:7px 0!important;
  }

  .fuo-thankyou__total{
    margin-top:10px!important;
    padding-top:11px!important;
  }

  .fuo-thankyou__alert,
  .fuo-thankyou__note{
    gap:10px!important;
    margin-bottom:10px!important;
    padding:12px!important;
    border-radius:14px!important;
  }

  .fuo-thankyou__alert-icon{
    flex-basis:36px!important;
    width:36px!important;
    height:36px!important;
    border-radius:11px!important;
    font-size:18px!important;
  }

  .fuo-thankyou__contact{
    padding:18px 14px!important;
  }

  .fuo-thankyou__contact h3{
    margin-bottom:9px!important;
  }

  .fuo-thankyou__footer{
    padding:14px 16px!important;
  }

  .fuo-thankyou__footer span{
    font-size:12px;
  }
}

@media(max-width:350px){
  .fuo-thankyou__info-card{
    padding:10px!important;
  }
  .fuo-thankyou__info-card strong{
    font-size:12px!important;
  }
  .fuo-thankyou__info-card small{
    font-size:12px!important;
  }
}

@media(prefers-reduced-motion:reduce){
  .fuo-thankyou__logo-card{
    transition:none!important;
  }
}


/* FoodUp Ordering v0.5.36 — presentation-only confirmation polish */
.fuo-thankyou :where(a,button) > .ti{
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  line-height:1!important;
  vertical-align:middle;
}
.fuo-thankyou :where(a,button):focus-visible{
  outline:2px solid color-mix(in srgb,var(--fu-primary,#8B38CB) 32%,transparent);
  outline-offset:2px;
}
.fuo-thankyou__card,
.fuo-thankyou__logo-card,
.fuo-thankyou__info-card,
.fuo-thankyou__items-card{
  background-clip:padding-box;
}

/* ===== DeliverEat — button colours (v0.5.166) ===== */
body.fuo-order-confirmation-page.fuo-theme-delivereat{
  --fuo-de-btn:#ff6422;
  --fuo-de-btn-hover:#C95100;
}

body.fuo-order-confirmation-page.fuo-theme-delivereat .fuo-thankyou__continue a,
body.fuo-order-confirmation-page.fuo-theme-delivereat .fuo-thankyou__invalid-card a{
  background:var(--fuo-de-btn);
}
body.fuo-order-confirmation-page.fuo-theme-delivereat .fuo-thankyou__continue a:hover,
body.fuo-order-confirmation-page.fuo-theme-delivereat .fuo-thankyou__continue a:focus-visible,
body.fuo-order-confirmation-page.fuo-theme-delivereat .fuo-thankyou__invalid-card a:hover,
body.fuo-order-confirmation-page.fuo-theme-delivereat .fuo-thankyou__invalid-card a:focus-visible{
  background:var(--fuo-de-btn-hover);
  filter:none;
}

/* ===== Phone text minimum (v0.5.168) =====
   On phones, add-on choices under ordered items follow the 12px minimum for
   running text, and the table live-status labels the 11px label minimum.
   Desktop is unchanged. */
@media(max-width:768px){
  .fuo-thankyou__item-copy small{
    font-size:12px!important; /* needed: beats the global 10px rule of the same priority */
  }
  .fuo-table-confirmation-live__steps span{
    font-size:11px;
  }
}
