/* ============ Page-specific styles: order-success.html ============ */

body { background:#F4F5F7; }

/* confetti canvas */
#confettiCanvas { position:fixed; top:0; left:0; width:100%; height:100%; pointer-events:none; z-index:999; }

/* main */
.os-page { padding:40px 0 72px; }
.os-wrap { max-width:680px; margin:0 auto; }

/* success hero */
.os-hero {
  background:#fff; border:1px solid var(--border); border-radius:18px;
  padding:48px 40px 40px; text-align:center; margin-bottom:20px;
  position:relative; overflow:hidden;
}
.os-hero::before { content:''; position:absolute; inset:0; background:radial-gradient(circle at 50% -20px,rgba(255,106,0,.06) 0%,transparent 60%); pointer-events:none; }
.os-check-ring {
  width:80px; height:80px; border-radius:50%;
  background:linear-gradient(135deg,#16a34a,#22c55e);
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 20px; box-shadow:0 8px 32px rgba(22,163,74,.3);
  animation:popIn .5s cubic-bezier(.34,1.56,.64,1) both;
}
@keyframes popIn { from{transform:scale(0);opacity:0;} to{transform:scale(1);opacity:1;} }
.os-check-ring svg { animation:checkDraw .4s ease .3s both; }
@keyframes checkDraw { from{stroke-dashoffset:30;} to{stroke-dashoffset:0;} }
.os-hero-tag { font-size:.7rem; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--accent); margin-bottom:10px; }
.os-hero h1 { font-family:var(--font-heading); font-size:1.8rem; font-weight:800; color:var(--heading); margin-bottom:8px; }
.os-hero-sub { font-size:.88rem; color:var(--body); line-height:1.7; max-width:400px; margin:0 auto 24px; }

/* order id badge */
.os-order-id { display:inline-flex; align-items:center; gap:8px; background:#F4F5F7; border:1px solid var(--border); border-radius:8px; padding:10px 18px; font-family:var(--font-heading); font-size:.95rem; font-weight:700; color:var(--heading); margin-bottom:24px; }
.os-order-id span { font-family:var(--font-body); font-size:.72rem; font-weight:600; color:var(--body); }
.os-copy-btn { font-size:.68rem; font-weight:700; color:var(--accent); background:#FEF0E8; border:none; padding:3px 9px; border-radius:5px; cursor:pointer; transition:.2s; }
.os-copy-btn:hover { background:var(--accent); color:#fff; }

/* delivery timeline pill */
.os-eta { display:flex; align-items:center; justify-content:center; gap:16px; background:#F0FDF4; border:1px solid #bbf7d0; border-radius:12px; padding:14px 20px; margin-bottom:0; }
.os-eta-ico { width:40px; height:40px; border-radius:50%; background:#16a34a; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.os-eta-text strong { display:block; font-family:var(--font-heading); font-size:.9rem; color:var(--heading); }
.os-eta-text span { font-size:.75rem; color:var(--body); }

/* info grid */
.os-info-grid { display:grid; grid-template-columns:1fr 1fr; gap:14px; margin-bottom:16px; }
.os-info-card { background:#fff; border:1px solid var(--border); border-radius:13px; overflow:hidden; }
.os-ic-hd { padding:12px 18px; border-bottom:1px solid var(--border); font-family:var(--font-heading); font-size:.84rem; font-weight:700; color:var(--heading); display:flex; align-items:center; gap:7px; }
.os-ic-hd svg { color:var(--accent); }
.os-ic-body { padding:14px 18px; font-size:.8rem; color:var(--body); line-height:1.65; }
.os-ic-body strong { color:var(--heading); display:block; margin-bottom:2px; }

/* order items */
.os-items-card { background:#fff; border:1px solid var(--border); border-radius:13px; overflow:hidden; margin-bottom:16px; }
.os-items-hd { padding:14px 20px; border-bottom:1px solid var(--border); font-family:var(--font-heading); font-size:.88rem; font-weight:700; color:var(--heading); display:flex; align-items:center; justify-content:space-between; }
.os-item { display:flex; align-items:center; gap:13px; padding:14px 20px; border-bottom:1px solid var(--border); }
.os-item:last-child { border-bottom:none; }
.os-item-img { width:56px; height:56px; border-radius:9px; object-fit:cover; background:#f0f0f0; flex-shrink:0; }
.os-item-name { font-family:var(--font-heading); font-size:.84rem; font-weight:600; color:var(--heading); margin-bottom:2px; }
.os-item-var { font-size:.7rem; color:var(--body); }
.os-item-price { margin-left:auto; text-align:right; flex-shrink:0; }
.os-item-amt { font-family:var(--font-heading); font-weight:700; color:var(--accent); font-size:.9rem; }
.os-item-qty { font-size:.68rem; color:var(--body); margin-top:2px; }

/* price summary */
.os-price-card { background:#fff; border:1px solid var(--border); border-radius:13px; overflow:hidden; margin-bottom:16px; }
.os-pc-body { padding:16px 20px; }
.os-pr { display:flex; justify-content:space-between; font-size:.82rem; margin-bottom:9px; }
.os-pr .l { color:var(--body); }
.os-pr .v { font-weight:600; color:var(--heading); }
.os-pr.save .v { color:#16a34a; }
.os-pr.total { font-size:.95rem; padding-top:11px; border-top:1px solid var(--border); margin-top:2px; }
.os-pr.total .l { font-family:var(--font-heading); font-weight:700; color:var(--heading); }
.os-pr.total .v { font-family:var(--font-heading); font-weight:800; color:var(--accent); font-size:1rem; }

/* action buttons */
.os-actions { display:flex; gap:12px; margin-bottom:24px; flex-wrap:wrap; }
.os-btn-primary { flex:1; padding:13px 18px; background:var(--accent); color:#fff; border:none; border-radius:10px; font-family:var(--font-body); font-size:.875rem; font-weight:700; cursor:pointer; transition:all .3s; display:flex; align-items:center; justify-content:center; gap:7px; box-shadow:0 4px 16px rgba(255,106,0,.25); min-width:140px; }
.os-btn-primary:hover { background:var(--accent-hover); transform:translateY(-1px); }
.os-btn-outline { flex:1; padding:13px 18px; background:#fff; color:var(--heading); border:1.5px solid var(--border); border-radius:10px; font-family:var(--font-body); font-size:.875rem; font-weight:600; cursor:pointer; transition:.2s; display:flex; align-items:center; justify-content:center; gap:7px; min-width:140px; }
.os-btn-outline:hover { border-color:var(--heading); }

/* email sent note */
.os-email-note { background:#EFF6FF; border:1px solid #BFDBFE; border-radius:10px; padding:13px 16px; display:flex; gap:10px; align-items:flex-start; margin-bottom:20px; }
.os-email-note svg { flex-shrink:0; color:#2563EB; margin-top:1px; }
.os-email-note-text { font-size:.78rem; color:#1E40AF; line-height:1.6; }

/* ratings prompt */
.os-rate-card { background:linear-gradient(135deg,#111 0%,#1c1c1c 100%); border-radius:13px; padding:22px 24px; display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.os-rate-title { font-family:var(--font-heading); font-size:.95rem; font-weight:700; color:#fff; margin-bottom:4px; }
.os-rate-sub { font-size:.75rem; color:rgba(255,255,255,.5); }
.os-rate-stars { display:flex; gap:4px; margin-left:auto; }
.os-rate-star { width:32px; height:32px; border-radius:50%; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; cursor:pointer; transition:.2s; font-size:1rem; }
.os-rate-star:hover { background:rgba(255,186,0,.2); transform:scale(1.1); }
.os-rate-star.active { background:rgba(255,186,0,.2); }

/* recommended */
.os-reco { margin-top:32px; }
.os-reco-title { font-family:var(--font-heading); font-size:1rem; font-weight:700; color:var(--heading); margin-bottom:16px; }
.os-reco-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; }

/* responsive */
@media(max-width:680px) { .os-hero { padding:36px 22px 30px; } .os-info-grid { grid-template-columns:1fr; } .os-actions { flex-direction:column; } .os-reco-grid { grid-template-columns:1fr 1fr; } .os-rate-stars { margin-left:0; } }
@media(max-width:400px) { .os-reco-grid { grid-template-columns:1fr 1fr; gap:10px; } }
