/*
 * Modern Takeaway — Thank You Page
 * Standalone stylesheet. Does not depend on checkout.css.
 */

.ctc-thank-you-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 32px 16px 90px;
    box-sizing: border-box;
    font-family: Montserrat, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #0f172a;
}

.ctc-thank-you-page *,
.ctc-thank-you-page *::before,
.ctc-thank-you-page *::after {
    box-sizing: border-box;
}

.ctc-thank-you-card {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 34px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.09);
}

/* Header */

.ctc-thank-you-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #16a34a;
    font-size: 32px;
    font-weight: 900;
}

.ctc-thank-you-card > h1 {
    margin: 0;
    text-align: center;
    color: #0f172a;
    font-size: 30px;
    line-height: 1.2;
    font-weight: 800;
}

.ctc-thank-you-lead {
    margin: 8px 0 24px;
    text-align: center;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

/* Order number */

.ctc-order-number {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 17px 19px;
    margin-bottom: 22px;
    border: 1px solid #fecaca;
    border-radius: 14px;
    background: #fff7f7;
}

.ctc-order-number span {
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.ctc-order-number strong {
    color: #ef4444;
    font-size: 17px;
    font-weight: 800;
}

/* Sections */

.ctc-thank-section {
    padding: 22px 0;
    border-top: 1px solid #e2e8f0;
}

.ctc-thank-section h2 {
    margin: 0 0 14px;
    color: #0f172a;
    font-size: 17px;
    line-height: 1.3;
    font-weight: 800;
}

.ctc-thank-section p {
    margin: 0;
    color: #475569;
    font-size: 12px;
    line-height: 1.65;
}

.ctc-thank-section small {
    display: block;
    margin-top: 7px;
    color: #64748b;
    font-size: 10px;
    line-height: 1.5;
}

/* Order details */

.ctc-thank-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ctc-thank-grid > div {
    padding: 14px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
}

.ctc-thank-grid span {
    display: block;
    margin-bottom: 5px;
    color: #64748b;
    font-size: 10px;
    font-weight: 600;
}

.ctc-thank-grid strong {
    display: block;
    color: #0f172a;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 800;
}

/* Customer */

.ctc-thank-contact {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.ctc-thank-contact strong,
.ctc-thank-contact span {
    display: block;
    min-width: 0;
    padding: 13px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    overflow-wrap: anywhere;
}

.ctc-thank-contact strong {
    color: #0f172a;
    font-size: 12px;
    font-weight: 800;
}

.ctc-thank-contact span {
    color: #64748b;
    font-size: 11px;
}

/* Products */

.ctc-thank-items {
    display: flex;
    flex-direction: column;
}

.ctc-thank-item {
    display: grid;
    grid-template-columns: 60px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    min-height: 78px;
    padding: 10px 0;
    border-bottom: 1px solid #f1f5f9;
}

.ctc-thank-item:last-child {
    border-bottom: 0;
}

.ctc-thank-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border: 1px solid #e2e8f0;
    border-radius: 11px;
    background: #f8fafc;
}

.ctc-thank-item > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ctc-thank-item strong {
    color: #0f172a;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 800;
}

.ctc-thank-item small {
    margin: 0;
    color: #64748b;
    font-size: 9px;
    line-height: 1.45;
}

.ctc-thank-item > b {
    color: #16a34a;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

/* Alerts */

.ctc-thank-alert {
    margin-top: 16px;
    padding: 16px !important;
    border: 1px solid #fed7aa !important;
    border-left: 4px solid #f59e0b !important;
    border-radius: 12px !important;
    background: #fffbeb !important;
}

.ctc-thank-alert h2 {
    color: #92400e !important;
    font-size: 14px !important;
}

.ctc-thank-alert p {
    color: #78350f !important;
}

/* Bill */

.ctc-thank-lines {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 15px 17px;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}

.ctc-thank-lines > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 7px 0;
    color: #64748b;
    font-size: 11px;
}

.ctc-thank-lines > div strong {
    color: #0f172a;
    font-size: 11px;
    font-weight: 800;
}

.ctc-thank-lines .ctc-thank-grand {
    margin-top: 8px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
}

.ctc-thank-lines .ctc-thank-grand strong {
    color: #ef4444;
    font-size: 24px;
}

/* Buttons */

.ctc-thank-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
}

.ctc-thank-actions a {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 13px 18px;
    border-radius: 12px;
    text-decoration: none !important;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 800;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.ctc-thank-actions .ctc-primary-btn {
    width: min(100%, 410px);
    background: #ff4d4d;
    color: #ffffff !important;
    box-shadow: 0 5px 16px rgba(255, 77, 77, .25);
}

.ctc-thank-actions .ctc-primary-btn:hover {
    background: #e63f3f;
    color: #ffffff !important;
    transform: translateY(-2px);
}


/* Error */

.ctc-thank-you-error {
    max-width: 700px;
    margin: 50px auto;
    padding: 32px;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 35px rgba(15, 23, 42, .08);
    text-align: center;
}

.ctc-thank-you-error h1 {
    margin: 0 0 8px;
    color: #0f172a;
    font-size: 22px;
    font-weight: 800;
}

.ctc-thank-you-error p {
    color: #64748b;
    font-size: 12px;
}

/* Mobile */

@media (max-width: 768px) {
    .ctc-thank-you-page {
        padding: 18px 10px 70px;
    }

    .ctc-thank-you-card {
        padding: 22px 16px;
        border-radius: 17px;
    }

    .ctc-thank-you-card > h1 {
        font-size: 25px;
    }

    .ctc-thank-grid,
    .ctc-thank-contact,
    .ctc-thank-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .ctc-thank-you-page {
        padding-left: 6px;
        padding-right: 6px;
    }

    .ctc-thank-you-card {
        padding: 20px 14px;
    }

    .ctc-order-number {
        align-items: flex-start;
        flex-direction: column;
        gap: 5px;
    }

    .ctc-thank-item {
        grid-template-columns: 50px minmax(0, 1fr) auto;
        gap: 9px;
    }

    .ctc-thank-item img {
        width: 50px;
        height: 50px;
    }

    .ctc-thank-item strong {
        font-size: 11px;
    }

    .ctc-thank-item > b {
        font-size: 10px;
    }
}

.ctc-thank-tracking-cta{margin:20px 0;text-align:center}
.ctc-thank-tracking-cta a{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:0 22px;border-radius:10px;background:#ff4d4d;color:#fff!important;text-decoration:none!important;font-family:"Montserrat",Arial,sans-serif;font-size:11px;font-weight:800;letter-spacing:.04em}


/* =========================================================
   Live Restaurant Confirmation Modal
   ========================================================= */
.ctc-live-order-confirmation{
  position:fixed;
  inset:0;
  z-index:999999;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
  opacity:0;
  pointer-events:none;
  transition:opacity .22s ease;
  font-family:inherit;
}
.ctc-live-order-confirmation[hidden]{display:none!important}
.ctc-live-order-confirmation.is-visible{opacity:1;pointer-events:auto}
.ctc-live-confirmation-backdrop{
  position:absolute;
  inset:0;
  background:rgba(15,23,42,.62);
  backdrop-filter:blur(4px);
}
.ctc-live-confirmation-card{
  position:relative;
  z-index:2;
  width:min(520px,100%);
  max-height:calc(100vh - 36px);
  overflow:auto;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:24px;
  box-shadow:0 28px 80px rgba(15,23,42,.28);
  padding:30px 28px 26px;
  text-align:center;
  transform:translateY(18px) scale(.97);
  transition:transform .24s ease;
}
.ctc-live-order-confirmation.is-visible .ctc-live-confirmation-card{transform:none}
.ctc-live-confirmation-close{
  position:absolute;
  top:12px;
  right:14px;
  width:38px;
  height:38px;
  border:0;
  border-radius:50%;
  background:#f8fafc;
  color:#475569;
  font-size:27px;
  line-height:1;
  cursor:pointer;
}
.ctc-live-confirmation-close:hover{background:#eef2f7;color:#0f172a}
.ctc-live-confirmation-kicker{
  margin-top:12px;
  color:#64748b;
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
}
.ctc-live-confirmation-card h2{
  margin:6px 0 8px;
  color:#0f172a;
  font-size:27px;
  line-height:1.2;
}
.ctc-live-confirmation-card p{
  margin:0 auto;
  max-width:410px;
  color:#475569;
  font-size:15px;
  line-height:1.65;
}
.ctc-live-confirmation-status{
  margin:20px auto 0;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  padding:11px 14px;
  border-radius:12px;
  background:#fff7ed;
  color:#9a3412;
  font-size:13px;
}
.ctc-live-confirmation-pulse{
  width:9px;
  height:9px;
  border-radius:50%;
  background:#f97316;
  box-shadow:0 0 0 0 rgba(249,115,22,.45);
  animation:ctcConfirmationPulse 1.65s infinite;
}
.ctc-live-order-confirmation.is-accepted .ctc-live-confirmation-status{
  background:#ecfdf5;
  color:#047857;
}
.ctc-live-order-confirmation.is-accepted .ctc-live-confirmation-pulse{
  background:#10b981;
  animation:none;
  box-shadow:none;
}
.ctc-live-order-confirmation.is-rejected .ctc-live-confirmation-status{
  background:#fff1f2;
  color:#be123c;
}
.ctc-live-order-confirmation.is-rejected .ctc-live-confirmation-pulse{
  background:#f43f5e;
  animation:none;
  box-shadow:none;
}
.ctc-live-confirmation-actions{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px;
  margin-top:20px;
}
.ctc-live-confirmation-btn{
  appearance:none;
  border:1px solid #cbd5e1;
  border-radius:11px;
  padding:11px 17px;
  font-size:13px;
  font-weight:800;
  text-decoration:none!important;
  cursor:pointer;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease;
}
.ctc-live-confirmation-btn:hover{transform:translateY(-1px)}
.ctc-live-confirmation-btn-primary{
  background:#2563eb;
  border-color:#2563eb;
  color:#fff!important;
  box-shadow:0 8px 22px rgba(37,99,235,.2);
}
.ctc-live-order-confirmation.is-accepted .ctc-live-confirmation-btn-primary{
  background:#059669;
  border-color:#059669;
  box-shadow:0 8px 22px rgba(5,150,105,.2);
}
.ctc-live-order-confirmation.is-rejected .ctc-live-confirmation-btn-primary{
  background:#e11d48;
  border-color:#e11d48;
  box-shadow:0 8px 22px rgba(225,29,72,.18);
}
.ctc-live-confirmation-btn-secondary{
  background:#fff;
  color:#334155!important;
}
.ctc-live-confirmation-btn-push{
  background:#fff7ed;
  border-color:#fdba74;
  color:#9a3412!important;
}
.ctc-live-confirmation-btn-push.is-enabled{
  background:#ecfdf5;
  border-color:#6ee7b7;
  color:#047857!important;
}
.ctc-live-confirmation-btn-push.is-error{
  background:#fff1f2;
  border-color:#fda4af;
  color:#be123c!important;
}
.ctc-live-confirmation-btn-push.is-busy{
  opacity:.72;
  cursor:wait;
}
.ctc-live-confirmation-btn-push:hover,
.ctc-live-confirmation-btn-push:focus-visible{
  background:#ffedd5;
  border-color:#fb923c;
  color:#9a3412!important;
}
.ctc-live-confirmation-btn-push.is-enabled:hover,
.ctc-live-confirmation-btn-push.is-enabled:focus-visible{
  background:#d1fae5;
  border-color:#34d399;
  color:#065f46!important;
}
.ctc-live-confirmation-btn-push.is-error:hover,
.ctc-live-confirmation-btn-push.is-error:focus-visible{
  background:#ffe4e6;
  border-color:#fb7185;
  color:#9f1239!important;
}
.ctc-live-confirmation-btn-secondary:hover,
.ctc-live-confirmation-btn-secondary:focus-visible{
  background:#f8fafc;
  border-color:#cbd5e1;
  color:#0f172a!important;
}

.ctc-live-confirmation-note{
  display:block;
  margin-top:15px;
  color:#94a3b8;
  font-size:11px;
  line-height:1.5;
}

/* Chef tossing an egg in a frying pan */
.ctc-chef-animation{
  position:relative;
  width:210px;
  height:145px;
  margin:0 auto 4px;
}
.ctc-chef-character{
  position:absolute;
  left:23px;
  bottom:8px;
  font-size:74px;
  line-height:1;
  transform-origin:50% 90%;
  animation:ctcChefBob 1.55s ease-in-out infinite;
  filter:drop-shadow(0 7px 7px rgba(15,23,42,.12));
}
.ctc-chef-arm{
  position:absolute;
  left:88px;
  bottom:36px;
  width:56px;
  height:15px;
  border-radius:999px;
  background:#f4b183;
  transform:rotate(-9deg);
  transform-origin:left center;
  animation:ctcChefArm 1.55s ease-in-out infinite;
}
.ctc-frying-pan{
  position:absolute;
  right:0;
  bottom:29px;
  width:82px;
  height:34px;
  transform-origin:20% 60%;
  animation:ctcPanToss 1.55s cubic-bezier(.45,.02,.36,1) infinite;
}
.ctc-pan-bowl{
  position:absolute;
  left:0;
  top:5px;
  width:58px;
  height:27px;
  background:#1f2937;
  border-radius:8px 8px 28px 28px;
  box-shadow:inset 0 4px 0 #475569,0 5px 8px rgba(15,23,42,.18);
}
.ctc-pan-handle{
  position:absolute;
  left:-36px;
  top:12px;
  width:42px;
  height:8px;
  border-radius:999px;
  background:#111827;
  transform:rotate(5deg);
  transform-origin:right center;
}
.ctc-tossed-egg{
  position:absolute;
  left:128px;
  top:53px;
  width:38px;
  height:29px;
  animation:ctcEggToss 1.55s cubic-bezier(.22,.61,.36,1) infinite;
}
.ctc-egg-white{
  position:absolute;
  inset:0;
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:51% 49% 58% 42% / 48% 58% 42% 52%;
  box-shadow:0 4px 8px rgba(15,23,42,.12);
}
.ctc-egg-yolk{
  position:absolute;
  left:12px;
  top:7px;
  width:15px;
  height:15px;
  border-radius:50%;
  background:#fbbf24;
  box-shadow:inset -2px -2px 0 rgba(217,119,6,.18);
}
.ctc-cooking-spark{
  position:absolute;
  color:#f59e0b;
  font-size:14px;
  opacity:.2;
  animation:ctcSpark 1.55s ease-in-out infinite;
}
.ctc-cooking-spark-one{right:17px;top:41px}
.ctc-cooking-spark-two{right:47px;top:19px;animation-delay:.32s}
.ctc-live-order-confirmation.is-accepted .ctc-chef-animation{
  animation:ctcChefCelebrate .5s ease-in-out 2;
}
.ctc-live-order-confirmation.is-rejected .ctc-chef-animation{
  filter:grayscale(.45);
}
.ctc-live-order-confirmation.is-rejected .ctc-chef-character,
.ctc-live-order-confirmation.is-rejected .ctc-chef-arm,
.ctc-live-order-confirmation.is-rejected .ctc-frying-pan,
.ctc-live-order-confirmation.is-rejected .ctc-tossed-egg,
.ctc-live-order-confirmation.is-rejected .ctc-cooking-spark{
  animation-play-state:paused;
}

@keyframes ctcConfirmationPulse{
  0%{box-shadow:0 0 0 0 rgba(249,115,22,.45)}
  70%{box-shadow:0 0 0 9px rgba(249,115,22,0)}
  100%{box-shadow:0 0 0 0 rgba(249,115,22,0)}
}
@keyframes ctcChefBob{
  0%,100%{transform:translateY(0) rotate(-1deg)}
  50%{transform:translateY(-3px) rotate(2deg)}
}
@keyframes ctcChefArm{
  0%,100%{transform:rotate(-9deg)}
  42%{transform:rotate(-22deg)}
  63%{transform:rotate(-2deg)}
}
@keyframes ctcPanToss{
  0%,100%{transform:translate(0,0) rotate(-3deg)}
  39%{transform:translate(-2px,-4px) rotate(-15deg)}
  57%{transform:translate(3px,1px) rotate(7deg)}
}
@keyframes ctcEggToss{
  0%,100%{transform:translate(0,31px) rotate(0deg) scale(.96)}
  42%{transform:translate(-9px,-38px) rotate(155deg) scale(1.03)}
  58%{transform:translate(4px,-49px) rotate(235deg) scale(1)}
  82%{transform:translate(8px,12px) rotate(345deg) scale(.98)}
}
@keyframes ctcSpark{
  0%,100%{opacity:.12;transform:scale(.65) rotate(0)}
  50%{opacity:1;transform:scale(1.25) rotate(45deg)}
}
@keyframes ctcChefCelebrate{
  0%,100%{transform:scale(1)}
  50%{transform:scale(1.05)}
}

@media (max-width:600px){
  .ctc-live-order-confirmation{padding:14px}
  .ctc-live-confirmation-card{padding:26px 18px 22px;border-radius:20px}
  .ctc-live-confirmation-card h2{font-size:23px}
  .ctc-chef-animation{transform:scale(.88);margin-top:-8px;margin-bottom:-5px}
  .ctc-live-confirmation-actions{flex-direction:column}
  .ctc-live-confirmation-btn{width:100%;box-sizing:border-box}
}
@media (prefers-reduced-motion:reduce){
  .ctc-live-order-confirmation,
  .ctc-live-confirmation-card,
  .ctc-live-confirmation-btn,
  .ctc-live-confirmation-pulse,
  .ctc-chef-animation *,
  .ctc-chef-animation{
    animation:none!important;
    transition:none!important;
  }
}

/* =========================================================
   Menushell live confirmation button hover/focus hardening
   ========================================================= */
.ctc-live-order-confirmation .ctc-live-confirmation-btn{
  transition:
    transform .16s ease,
    box-shadow .16s ease,
    background-color .16s ease,
    border-color .16s ease,
    color .16s ease;
}

.ctc-live-order-confirmation .ctc-live-confirmation-btn-primary:hover,
.ctc-live-order-confirmation .ctc-live-confirmation-btn-primary:focus-visible{
  background:#1d4ed8!important;
  border-color:#1d4ed8!important;
  color:#fff!important;
  box-shadow:0 10px 25px rgba(37,99,235,.28);
  transform:translateY(-1px);
}

.ctc-live-order-confirmation .ctc-live-confirmation-btn-push:hover,
.ctc-live-order-confirmation .ctc-live-confirmation-btn-push:focus-visible{
  background:#e11d48!important;
  border-color:#e11d48!important;
  color:#fff!important;
  box-shadow:0 10px 24px rgba(225,29,72,.22);
  transform:translateY(-1px);
}

.ctc-live-order-confirmation .ctc-live-confirmation-btn-push:hover *,
.ctc-live-order-confirmation .ctc-live-confirmation-btn-push:focus-visible *{
  color:#fff!important;
}

.ctc-live-order-confirmation .ctc-live-confirmation-btn-secondary:hover,
.ctc-live-order-confirmation .ctc-live-confirmation-btn-secondary:focus-visible{
  background:#fff1f2!important;
  border-color:#e11d48!important;
  color:#be123c!important;
  box-shadow:0 8px 20px rgba(225,29,72,.12);
  transform:translateY(-1px);
}

.ctc-live-order-confirmation .ctc-live-confirmation-btn-secondary:hover *,
.ctc-live-order-confirmation .ctc-live-confirmation-btn-secondary:focus-visible *{
  color:#be123c!important;
}

.ctc-live-order-confirmation .ctc-live-confirmation-btn:focus-visible{
  outline:3px solid rgba(37,99,235,.18);
  outline-offset:2px;
}

