/* ═══════════════════════════════════════════════════════════════
   AVP Order — Thank You Page  (complete redesign)
═══════════════════════════════════════════════════════════════ */

:root {
  --avp-primary:   #4F46E5;
  --avp-secondary: #111827;
  --avp-bg:        #F1F5F9;
  --avp-card:      #ffffff;
  --avp-text:      #1E293B;
  --avp-muted:     #64748B;
  --avp-border:    #E2E8F0;
  --avp-radius:    18px;
}

/* ── Page wrapper ─────────────────────────────────────────────── */
.avpwcot-page {
  background: var(--avp-bg);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: 100vh;
  font-family: inherit;
  color: var(--avp-text);
  padding-bottom: 60px;
}


.avpwcot-page,
.entry-content .avpwcot-page,
.site-main .avpwcot-page,
.woocommerce .avpwcot-page {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
.entry-content .avpwcot-page *,
.site-main .avpwcot-page *,
.woocommerce .avpwcot-page * {
  box-sizing: border-box;
}
.avpwcot-page img {
  max-width: 100%;
  height: auto;
}

/* ── NOT FOUND ────────────────────────────────────────────────── */
.avpwcot-not-found {
  max-width: 480px; margin: 80px auto; text-align: center;
  background: var(--avp-card); padding: 48px 32px; border-radius: var(--avp-radius);
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
}
.avpwcot-nf-icon { font-size: 56px; margin-bottom: 16px; }
.avpwcot-not-found h2 { margin: 0 0 10px; font-size: 22px; }
.avpwcot-not-found p  { color: var(--avp-muted); margin: 0; }
.avpwcot-not-found a  { display:inline-block;margin-top:18px;padding:11px 26px;background:var(--avp-primary,#4F46E5);color:#fff;border-radius:10px;text-decoration:none;font-weight:700;font-size:14px;transition:opacity .2s; }
.avpwcot-not-found a:hover { opacity:.88; }

/* ── HERO ─────────────────────────────────────────────────────── */
.avpwcot-hero {
  background: linear-gradient(135deg, var(--avp-primary) 0%, color-mix(in srgb, var(--avp-primary) 70%, #000) 100%);
  padding: 64px 24px 80px;
  position: relative;
  overflow: hidden;
}
.avpwcot-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(255,255,255,.12) 0%, transparent 60%);
  pointer-events: none;
}
.avpwcot-hero::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0; height: 48px;
  background: var(--avp-bg);
  clip-path: ellipse(60% 100% at 50% 100%);
}
.avpwcot-hero__inner {
  max-width: 680px; margin: 0 auto;
  text-align: center; position: relative; z-index: 1;
}
.avpwcot-hero__logo {
  max-height: 56px; max-width: 180px;
  object-fit: contain; margin-bottom: 24px;
  filter: brightness(0) invert(1);
}
.avpwcot-checkmark {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  animation: avp-pop .5s cubic-bezier(.34,1.56,.64,1);
}
.avpwcot-checkmark svg { width: 100%; height: 100%; }

@keyframes avp-pop {
  from { transform: scale(0) rotate(-15deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg);   opacity: 1; }
}

.avpwcot-hero__title {
  font-size: clamp(26px, 5vw, 40px);
  font-weight: 800;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.2;
}
.avpwcot-hero__sub {
  font-size: 16px;
  color: rgba(255,255,255,.8);
  margin: 0 0 28px;
}
.avpwcot-order-badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  backdrop-filter: blur(8px);
  padding: 10px 22px;
  border-radius: 999px;
  color: #fff;
  font-size: 14px;
  margin-bottom: 14px;
}
.avpwcot-order-badge strong {
  font-size: 17px; font-weight: 800;
  font-family: 'Courier New', monospace;
  letter-spacing: .04em;
}
.avpwcot-status-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 18px; border-radius: 999px;
  font-size: 13px; font-weight: 700;
}
.avpwcot-dot {
  width: 8px; height: 8px; border-radius: 50%;
  flex-shrink: 0;
  animation: avp-pulse 2s infinite;
}
@keyframes avp-pulse {
  0%,100% { box-shadow: 0 0 0 0 currentColor; }
  50%      { box-shadow: 0 0 0 5px transparent; }
}

/* ── CONTENT ──────────────────────────────────────────────────── */
.avpwcot-content {
  max-width: 1100px;
  margin: -12px auto 0;
  padding: 0 20px;
  position: relative; z-index: 2;
}

/* ── ACTION BUTTONS ───────────────────────────────────────────── */
.avpwcot-actions {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 28px;
  padding: 20px 24px;
  background: var(--avp-card);
  border-radius: var(--avp-radius);
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
}

.avpwcot-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px;
  border-radius: 12px;
  font-size: 14px; font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  border: 2px solid transparent;
  transition: all .18s ease;
  white-space: nowrap;
}
.avpwcot-btn svg { flex-shrink: 0; }
.avpwcot-btn--primary {
  background: var(--avp-primary); color: #fff !important;
  box-shadow: 0 4px 14px color-mix(in srgb, var(--avp-primary) 40%, transparent);
}
.avpwcot-btn--primary:hover { opacity: .88; transform: translateY(-1px); }
.avpwcot-btn--outline {
  background: transparent; color: var(--avp-primary) !important;
  border-color: var(--avp-primary);
}
.avpwcot-btn--outline:hover {
  background: var(--avp-primary);
  color: #fff !important;
}
.avpwcot-btn--ghost {
  background: var(--avp-bg); color: var(--avp-secondary) !important;
  border-color: var(--avp-border);
}
.avpwcot-btn--ghost:hover { background: var(--avp-border); }
.avpwcot-btn--full { width: 100%; justify-content: center; }

/* ── GRID ─────────────────────────────────────────────────────── */
.avpwcot-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

/* ── CARD ─────────────────────────────────────────────────────── */
.avpwcot-card {
  background: var(--avp-card);
  border-radius: var(--avp-radius);
  padding: 24px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  border: 1px solid var(--avp-border);
}
.avpwcot-card--wide { margin-bottom: 20px; }
.avpwcot-card__head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 20px; padding-bottom: 16px;
  border-bottom: 1px solid var(--avp-border);
}
.avpwcot-card__icon-wrap {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.avpwcot-card__head h3 {
  margin: 0; font-size: 16px; font-weight: 700;
  color: var(--avp-secondary);
}

/* ── INFO ROWS ────────────────────────────────────────────────── */
.avpwcot-info-rows { display: grid; gap: 8px; }
.avpwcot-info-row {
  display: flex; justify-content: space-between; align-items: center;
  gap: 12px; padding: 12px 16px;
  background: var(--avp-bg);
  border-radius: 12px;
  font-size: 14px;
}
.avpwcot-info-row span:first-child { color: var(--avp-muted); }
.avpwcot-info-row strong, .avpwcot-info-row span:last-child {
  font-weight: 600; text-align: end;
}
.avpwcot-mono { font-family: 'Courier New', monospace; letter-spacing: .03em; }
.avpwcot-status-inline {
  display: inline-flex; align-items: center;
  padding: 3px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
}

/* ── BARCODE CARD ─────────────────────────────────────────────── */
.avpwcot-card--barcode { display: flex; flex-direction: column; }
.avpwcot-barcode-area { text-align: center; }
.avpwcot-barcode-svg {
  background: #fff;
  border: 1px solid var(--avp-border);
  border-radius: 14px;
  padding: 16px 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.avpwcot-barcode-svg svg { display: block; width: 100%; }
.avpwcot-barcode-val {
  font-family: 'Courier New', monospace;
  font-size: 15px; font-weight: 800;
  letter-spacing: .08em;
  color: var(--avp-secondary);
  margin-bottom: 8px;
}
.avpwcot-barcode-type {
  display: inline-block;
  padding: 3px 10px; border-radius: 6px;
  background: var(--avp-bg); color: var(--avp-muted);
  font-size: 11px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
}

/* ── TABLE ────────────────────────────────────────────────────── */
.avpwcot-table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--avp-border); }
.avpwcot-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
}
.avpwcot-table thead tr {
  background: var(--avp-secondary); color: #fff;
}
.avpwcot-table th {
  padding: 13px 16px; text-align: start;
  font-size: 12px; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase;
}
.avpwcot-table tbody tr { border-bottom: 1px solid var(--avp-border); transition: background .15s; }
.avpwcot-table tbody tr:last-child { border: none; }
.avpwcot-table tbody tr:hover { background: var(--avp-bg); }
.avpwcot-table td { padding: 14px 16px; }
.avpwcot-td-name { font-weight: 600; }
.avpwcot-td-total { font-weight: 700; color: var(--avp-primary); }
.avpwcot-qty {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 8px;
  background: var(--avp-bg); font-weight: 700; font-size: 13px;
}

/* ── TOTALS ───────────────────────────────────────────────────── */
.avpwcot-totals {
  margin-top: 20px; border-top: 1px solid var(--avp-border);
  padding-top: 16px; display: grid; gap: 8px;
}
.avpwcot-trow {
  display: flex; justify-content: space-between;
  gap: 16px; padding: 10px 16px; border-radius: 10px;
  font-size: 14px;
}
.avpwcot-trow--grand {
  background: linear-gradient(135deg, color-mix(in srgb, var(--avp-primary) 8%, transparent), color-mix(in srgb, var(--avp-primary) 14%, transparent));
  border: 1px solid color-mix(in srgb, var(--avp-primary) 25%, transparent);
  font-size: 16px; font-weight: 800;
  color: var(--avp-primary);
}

/* ── FOOTER TEXT ──────────────────────────────────────────────── */
.avpwcot-footer-txt {
  text-align: center; color: var(--avp-muted);
  font-size: 13px; padding: 20px 0 0;
}

/* ── RESPONSIVE ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .avpwcot-hero { padding: 48px 20px 64px; }
  .avpwcot-grid { grid-template-columns: 1fr; }
  .avpwcot-actions { padding: 16px; }
  .avpwcot-btn { font-size: 13px; padding: 10px 16px; }
}
@media (max-width: 480px) {
  .avpwcot-hero__title { font-size: 22px; }
  .avpwcot-actions { flex-direction: column; }
  .avpwcot-btn { justify-content: center; }
}

/* ── PRINT ────────────────────────────────────────────────────── */
@media print {
  .avpwcot-actions { display: none !important; }
  .avpwcot-hero { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .avpwcot-page { padding-bottom: 0; }
}
