/* Customer portal (templates/portal/*): app shell, navigation, components. Loaded after site.css on portal pages only. */
.pt {
  --pt-bg: #f4f5f7; --pt-surface: #ffffff; --pt-line: #e3e6eb; --pt-line-2: #d3d7de; --pt-text: #141821; --pt-muted: #5f6675; --pt-soft: #f7f8fa;
  --pt-acc: var(--accent, #c8102e); --pt-acc-fg: #ffffff;
  --pt-ok: #0f7a43; --pt-ok-bg: #e5f5ec; --pt-wait: #9a5b00; --pt-wait-bg: #fff3d9; --pt-bad: #b3131b; --pt-bad-bg: #fdecec; --pt-info: #1d4f91; --pt-info-bg: #e8f0fb;
  --pt-r: 12px; --pt-shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .07);
  --pt-top: 64px;
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--pt-bg); color: var(--pt-text);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  .pt {
    --pt-bg: #0e1116; --pt-surface: #161a21; --pt-line: #262b35; --pt-line-2: #343a46; --pt-text: #e9ecf1; --pt-muted: #9aa2b1; --pt-soft: #1c212a;
    --pt-ok: #4fd18b; --pt-ok-bg: rgba(79, 209, 139, .12); --pt-wait: #f2b54a; --pt-wait-bg: rgba(242, 181, 74, .12); --pt-bad: #ff8080; --pt-bad-bg: rgba(255, 128, 128, .12);
    --pt-info: #8ab4ff; --pt-info-bg: rgba(138, 180, 255, .12); --pt-shadow: none;
  }
}
:where(.pt) a { color: inherit; }
.pt h1, .pt h2, .pt h3 { font-family: inherit; color: var(--pt-text); }
.pt-i { width: 18px; height: 18px; flex: none; }
.pt-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pt-skip { position: absolute; left: -999px; top: 0; z-index: 100; padding: 8px 12px; background: var(--pt-acc); color: #fff; }
.pt-skip:focus { left: 8px; }
.pt-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .02em; }
.pt-break { overflow-wrap: anywhere; word-break: break-word; }
.pt-minw0 { min-width: 0; }
.pt-mt { margin-top: 14px !important; }
.pt-w100 { width: 100%; justify-content: center; }
.pt-nowrap { white-space: nowrap; }

/* ---- top bar ---- */
.pt-top { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px; height: var(--pt-top); padding: 0 20px; background: var(--pt-surface); border-bottom: 1px solid var(--pt-line); }
.pt-burger { display: none; place-items: center; width: 40px; height: 40px; border: 1px solid var(--pt-line); border-radius: 10px; background: var(--pt-surface); color: var(--pt-text); cursor: pointer; }
.pt-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.pt-brand img { display: block; height: 30px; width: auto; max-width: 200px; }
.pt-brand strong { font-size: 18px; }
.pt-brand-tag { padding: 3px 9px; border-radius: 999px; background: var(--pt-soft); border: 1px solid var(--pt-line); color: var(--pt-muted); font-size: 12px; font-weight: 700; white-space: nowrap; }
.pt-top-r { display: flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.pt-top-link { display: inline-flex; align-items: center; gap: 6px; padding: 8px 10px; border-radius: 8px; color: var(--pt-muted); text-decoration: none; font-size: 14px; font-weight: 600; }
.pt-top-link:hover { background: var(--pt-soft); color: var(--pt-text); }
.pt-user { position: relative; }
.pt-user summary { display: flex; align-items: center; gap: 8px; padding: 4px 8px 4px 4px; border: 1px solid var(--pt-line); border-radius: 999px; cursor: pointer; list-style: none; }
.pt-user summary::-webkit-details-marker { display: none; }
.pt-avatar { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--pt-acc); color: var(--pt-acc-fg); font-size: 13px; font-weight: 800; }
.pt-user-n { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 600; }
.pt-user-m { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 50; width: 260px; padding: 8px; background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: var(--pt-r); box-shadow: 0 12px 32px rgba(16, 24, 40, .16); }
.pt-user-who { display: grid; margin: 0 0 6px; padding: 8px 10px 10px; border-bottom: 1px solid var(--pt-line); font-size: 14px; }
.pt-user-who span { color: var(--pt-muted); font-size: 13px; overflow-wrap: anywhere; }
.pt-user-m a, .pt-user-m button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--pt-text); font: 600 14px/1.3 inherit; text-decoration: none; cursor: pointer; text-align: start; }
.pt-user-m a:hover, .pt-user-m button:hover { background: var(--pt-soft); }
.pt-user-m form { margin: 0; }

/* ---- shell ---- */
.pt-body { flex: 1; display: grid; grid-template-columns: 248px minmax(0, 1fr); background: linear-gradient(90deg, var(--pt-surface) 0 248px, var(--pt-line) 248px 249px, transparent 249px); }
[dir="rtl"] .pt-body { background: linear-gradient(270deg, var(--pt-surface) 0 248px, var(--pt-line) 248px 249px, transparent 249px); }
.pt-body-solo { display: block; background: none !important; }
.pt-side { position: sticky; top: var(--pt-top); align-self: start; display: flex; flex-direction: column; height: calc(100vh - var(--pt-top)); overflow-y: auto; padding: 18px 12px; background: var(--pt-surface); }
.pt-side nav { display: grid; gap: 2px; }
.pt-nav-h { margin: 16px 12px 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pt-muted); }
.pt-nav-h:first-child { margin-top: 0; }
.pt-nav-a { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 12px; border: 0; border-radius: 9px; background: none; color: var(--pt-muted); font: 600 14px/1.3 inherit; text-decoration: none; cursor: pointer; text-align: start; }
.pt-nav-a:hover { background: var(--pt-soft); color: var(--pt-text); }
.pt-nav-a.is-active { background: color-mix(in srgb, var(--pt-acc) 10%, transparent); color: var(--pt-acc); }
.pt-side-out { margin: auto 0 0; padding-top: 14px; border-top: 1px solid var(--pt-line); }
.pt-scrim { display: none; }
.pt-main { min-width: 0; padding: 28px 32px 56px; }
.pt-body-solo .pt-main { padding: 32px clamp(16px, 4vw, 48px) 56px; }
.pt-foot { border-top: 1px solid var(--pt-line); background: var(--pt-surface); }
.pt-foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; padding: 16px 32px; color: var(--pt-muted); font-size: 13px; }
.pt-foot p { margin: 0; }
.pt-foot nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.pt-foot a { color: var(--pt-muted); text-decoration: none; }
.pt-foot a:hover { color: var(--pt-text); text-decoration: underline; }
@media (max-width: 959px) {
  .pt-burger { display: grid; }
  .pt-body { display: block; background: none; }
  .pt-side { border-inline-end: 1px solid var(--pt-line); }
  .pt-side { position: fixed; top: var(--pt-top); bottom: 0; inset-inline-start: 0; z-index: 45; width: 272px; height: auto; transform: translateX(-105%); transition: transform .2s ease; box-shadow: 8px 0 32px rgba(16, 24, 40, .18); }
  [dir="rtl"] .pt-side { transform: translateX(105%); }
  .pt-menu-open .pt-side { transform: none; }
  .pt-menu-open .pt-scrim { display: block; position: fixed; inset: var(--pt-top) 0 0; z-index: 44; background: rgba(10, 12, 16, .45); }
  .pt-main { padding: 20px 16px 48px; }
  .pt-top { padding: 0 12px; gap: 10px; }
  .pt-top-link span, .pt-user-n, .pt-top-new span, .pt-brand-tag { display: none; }
  .pt-foot-in { padding: 14px 16px; }
}
@media (prefers-reduced-motion: reduce) { .pt-side { transition: none; } }

/* ---- page header, typography ---- */
.pt-page-h { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; margin: 0 0 22px; }
.pt-page-h > div:first-child { flex: 1 1 320px; }
.pt-h1 { margin: 0 0 4px; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.pt-h2 { margin: 0 0 4px; font-size: 18px; line-height: 1.3; font-weight: 800; }
.pt-h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.pt-sub { margin: 0; color: var(--pt-muted); }
.pt-k { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--pt-muted); }
.pt-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 8px; color: var(--pt-muted); font-size: 13px; }
.pt-crumbs a { color: var(--pt-muted); text-decoration: none; }
.pt-crumbs a:hover { color: var(--pt-text); text-decoration: underline; }
.pt-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 0; color: var(--pt-muted); font-size: 14px; }
.pt-page-act { display: flex; flex-wrap: wrap; gap: 8px; }
.pt-link { color: var(--pt-acc); font-weight: 700; font-size: 14px; text-decoration: none; }
.pt-link:hover { text-decoration: underline; }
.pt-fine { margin: 12px 0 0; color: var(--pt-muted); font-size: 13px; }
.pt-help { margin: 2px 0 6px; color: var(--pt-muted); font-size: 13px; }
.pt-x { color: var(--pt-acc); font-weight: 800; }

/* ---- buttons ---- */
.pt-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 8px 16px; border: 1px solid var(--pt-line-2); border-radius: 10px; background: var(--pt-surface); color: var(--pt-text); font: 700 14px/1.2 inherit; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, filter .15s; }
.pt-btn:hover { border-color: var(--pt-text); }
.pt-btn:focus-visible, .pt-nav-a:focus-visible, .pt-input:focus-visible { outline: 3px solid color-mix(in srgb, var(--pt-acc) 35%, transparent); outline-offset: 2px; }
.pt-btn-primary, .pt a.pt-btn-primary { background: var(--pt-acc); border-color: var(--pt-acc); color: var(--pt-acc-fg); }
.pt-btn-primary:hover { filter: brightness(.93); border-color: var(--pt-acc); }
.pt-btn-ghost { background: transparent; }
.pt-btn-sm { min-height: 32px; padding: 5px 11px; border-radius: 8px; font-size: 13px; }
.pt-btn .pt-i { width: 16px; height: 16px; }
.pt-copy { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 1px solid var(--pt-line); border-radius: 7px; background: var(--pt-surface); color: var(--pt-muted); cursor: pointer; font-size: 11px; }
.pt-copy .pt-i { width: 14px; height: 14px; }
.pt-copy:hover { color: var(--pt-text); border-color: var(--pt-line-2); }

/* ---- cards, layout ---- */
.pt-card { padding: 20px 22px; background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: var(--pt-r); box-shadow: var(--pt-shadow); }
.pt-card-flush { padding: 0; overflow: hidden; }
.pt-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.pt-card-h h2 { margin: 0; font-size: 16px; font-weight: 800; }
.pt-card-flush > .pt-card-h { margin: 0; padding: 16px 22px; border-bottom: 1px solid var(--pt-line); }
.pt-card-soft { background: var(--pt-soft); box-shadow: none; }
.pt-card-accent { border-color: color-mix(in srgb, var(--pt-acc) 55%, var(--pt-line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pt-acc) 8%, transparent); }
.pt-card-bad { border-color: color-mix(in srgb, var(--pt-bad) 45%, var(--pt-line)); background: var(--pt-bad-bg); }
.pt-cols { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1100px) { .pt-cols { grid-template-columns: minmax(0, 1fr) 340px; } }
.pt-cols-even { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)) !important; }
.pt-stack { display: grid; gap: 20px; align-content: start; min-width: 0; }
.pt-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }

/* ---- stats ---- */
.pt-stats { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); margin: 0 0 20px; }
.pt-stat { display: flex; align-items: center; gap: 14px; padding: 18px 20px; background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: var(--pt-r); box-shadow: var(--pt-shadow); }
.pt-stat p { display: grid; margin: 0; }
.pt-stat span { color: var(--pt-muted); font-size: 13px; font-weight: 600; }
.pt-stat strong { font-size: 24px; line-height: 1.2; font-weight: 800; }
.pt-stat-i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--pt-soft); color: var(--pt-text); }
.pt-tone-ok { background: var(--pt-ok-bg); color: var(--pt-ok); }
.pt-tone-wait { background: var(--pt-wait-bg); color: var(--pt-wait); }
.pt-tone-info { background: var(--pt-info-bg); color: var(--pt-info); }

/* ---- alerts, badges ---- */
.pt-alert { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 0 0 16px; padding: 12px 16px; border: 1px solid var(--pt-line); border-radius: 10px; background: var(--pt-surface); font-size: 14px; }
.pt-alert > span { flex: 1 1 260px; }
.pt-alert-ok { background: var(--pt-ok-bg); border-color: color-mix(in srgb, var(--pt-ok) 30%, transparent); }
.pt-alert-ok > .pt-i { color: var(--pt-ok); }
.pt-alert-wait { background: var(--pt-wait-bg); border-color: color-mix(in srgb, var(--pt-wait) 30%, transparent); }
.pt-alert-wait > .pt-i { color: var(--pt-wait); }
.pt-alert-bad { background: var(--pt-bad-bg); border-color: color-mix(in srgb, var(--pt-bad) 30%, transparent); }
.pt-alert-bad > .pt-i { color: var(--pt-bad); }
.pt-alert-info { background: var(--pt-info-bg); border-color: color-mix(in srgb, var(--pt-info) 30%, transparent); }
.pt-alert-info > .pt-i { color: var(--pt-info); }
.pt-badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--pt-soft); color: var(--pt-muted); font-size: 12px; font-weight: 800; white-space: nowrap; }
.pt-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pt-badge-ok { background: var(--pt-ok-bg); color: var(--pt-ok); }
.pt-badge-wait { background: var(--pt-wait-bg); color: var(--pt-wait); }
.pt-badge-bad { background: var(--pt-bad-bg); color: var(--pt-bad); }
.pt-badge-info { background: var(--pt-info-bg); color: var(--pt-info); }
.pt-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--pt-soft); color: var(--pt-muted); font-size: 12px; font-weight: 800; }

/* ---- order list (dashboard) ---- */
.pt-olist { list-style: none; margin: 0; padding: 0; }
.pt-olist li + li { border-top: 1px solid var(--pt-line); }
.pt-olist a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 14px 22px; text-decoration: none; }
.pt-olist a:hover { background: var(--pt-soft); }
.pt-olist-i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--pt-soft); color: var(--pt-muted); }
.pt-olist-main { display: grid; min-width: 0; }
.pt-olist-main strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; }
.pt-olist-main small { color: var(--pt-muted); font-size: 13px; }
.pt-olist-end { display: grid; justify-items: end; gap: 4px; }
.pt-amt { font-weight: 800; font-size: 14px; }
@media (max-width: 600px) { .pt-olist a { grid-template-columns: minmax(0, 1fr); } .pt-olist-i { display: none; } .pt-olist-end { justify-items: start; grid-auto-flow: column; justify-content: start; gap: 10px; } }

/* ---- quick actions ---- */
.pt-quick { display: grid; gap: 8px; }
.pt-quick-a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--pt-line); border-radius: 10px; text-decoration: none; transition: border-color .15s, background .15s; }
.pt-quick-a:hover { border-color: var(--pt-acc); background: color-mix(in srgb, var(--pt-acc) 4%, transparent); }
.pt-quick-a > span:nth-child(2) { display: grid; }
.pt-quick-a small { color: var(--pt-muted); font-size: 13px; }
.pt-quick-i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--pt-acc) 10%, transparent); color: var(--pt-acc); }
.pt-quick-go { color: var(--pt-muted); }
.pt-steps-mini { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
.pt-steps-mini li { counter-increment: s; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; }
.pt-steps-mini li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--pt-surface); border: 1px solid var(--pt-line-2); font-size: 12px; font-weight: 800; }

/* ---- empty state ---- */
.pt-empty { display: grid; justify-items: center; gap: 12px; padding: 40px 20px; text-align: center; }
.pt-empty p { display: grid; gap: 4px; margin: 0; }
.pt-empty span { color: var(--pt-muted); }
.pt-empty-i { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--pt-soft); color: var(--pt-muted); }

/* ---- tabs, tables ---- */
.pt-tabs { display: flex; gap: 4px; margin: 0 0 16px; overflow-x: auto; border-bottom: 1px solid var(--pt-line); }
.pt-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--pt-muted); font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.pt-tabs a:hover { color: var(--pt-text); }
.pt-tabs a.is-active { color: var(--pt-text); border-bottom-color: var(--pt-acc); }
.pt-table-wrap { overflow-x: auto; }
.pt-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.pt-table th { padding: 11px 16px; background: var(--pt-soft); color: var(--pt-muted); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; text-align: start; white-space: nowrap; border-bottom: 1px solid var(--pt-line); }
.pt-table td { padding: 14px 16px; border-bottom: 1px solid var(--pt-line); vertical-align: middle; }
.pt-table tbody tr:last-child td { border-bottom: 0; }
.pt-table tbody tr:hover td { background: var(--pt-soft); }
.pt-table a { color: var(--pt-text); font-weight: 700; }
.pt-num { text-align: end !important; white-space: nowrap; }
.pt-cell-t { display: block; max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-cell-s { display: block; color: var(--pt-muted); font-size: 12px; }
.pt-row-act { display: flex; justify-content: flex-end; gap: 6px; white-space: nowrap; }

/* ---- order detail ---- */
.pt-progress { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 22px; padding: 18px 20px; background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: var(--pt-r); box-shadow: var(--pt-shadow); }
.pt-progress li { position: relative; display: flex; align-items: center; gap: 12px; padding-inline-end: 14px; color: var(--pt-muted); }
.pt-progress li:not(:last-child)::after { content: ""; flex: 1; height: 2px; min-width: 16px; background: var(--pt-line); border-radius: 2px; }
.pt-progress li.is-done:not(:last-child)::after { background: var(--pt-ok); }
.pt-progress-dot { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--pt-soft); border: 1px solid var(--pt-line-2); color: var(--pt-muted); }
.pt-progress-dot .pt-i { width: 16px; height: 16px; }
.is-done .pt-progress-dot { background: var(--pt-ok); border-color: var(--pt-ok); color: #fff; }
.is-now .pt-progress-dot { background: var(--pt-surface); border: 2px solid var(--pt-acc); color: var(--pt-acc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pt-acc) 12%, transparent); }
.pt-progress-t { display: grid; line-height: 1.25; flex: none; }
.pt-progress-t strong { color: var(--pt-text); font-size: 14px; }
.pt-progress-t small { font-size: 12px; }
@media (max-width: 760px) { .pt-progress { grid-template-columns: 1fr 1fr; gap: 14px; } .pt-progress li::after { display: none; } }
.pt-pay { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 14px; margin: 0 0 16px; }
.pt-total { display: grid; justify-items: end; margin: 0; }
.pt-total span { color: var(--pt-muted); font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pt-total strong { font-size: 32px; line-height: 1.1; font-weight: 800; }
.pt-total-sm strong { font-size: 22px; }
.pt-pp { margin: 0 0 10px; }
.pt-secure { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--pt-muted); font-size: 13px; }
.pt-secure .pt-i { color: var(--pt-ok); }
.pt-wait { display: flex; gap: 16px; align-items: flex-start; }
.pt-spin { flex: none; width: 28px; height: 28px; margin-top: 2px; border: 3px solid var(--pt-line); border-top-color: var(--pt-acc); border-radius: 50%; animation: pt-spin 1s linear infinite; }
@keyframes pt-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .pt-spin { animation: none; } }
.pt-live { display: grid; gap: 20px; border-color: color-mix(in srgb, var(--pt-ok) 40%, var(--pt-line)); }
@media (min-width: 680px) { .pt-live:has(.pt-live-img) { grid-template-columns: 240px minmax(0, 1fr); } }
.pt-live-img img { display: block; width: 100%; height: 100%; max-height: 170px; object-fit: cover; border-radius: 10px; }
.pt-live-k { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; color: var(--pt-ok); font-size: 13px; font-weight: 800; }
.pt-live-t { margin: 0 0 6px; font-size: 20px; line-height: 1.3; }
.pt-live-t a { text-decoration: none; }
.pt-live-t a:hover { text-decoration: underline; }
.pt-urlbox { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 8px 8px 12px; border: 1px dashed var(--pt-line-2); border-radius: 10px; background: var(--pt-soft); }
.pt-urlbox .pt-mono { flex: 1 1 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.pt-facts { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.pt-facts div { display: grid; gap: 3px; padding: 12px 14px; border-radius: 10px; background: var(--pt-soft); }
.pt-facts span { color: var(--pt-muted); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.pt-facts strong { font-size: 15px; }
.pt-links { list-style: none; margin: 0; padding: 0; border: 1px solid var(--pt-line); border-radius: 10px; overflow: hidden; }
.pt-links li { display: grid; gap: 4px; padding: 12px 14px; }
.pt-links li + li { border-top: 1px solid var(--pt-line); }
@media (min-width: 760px) { .pt-links li { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; align-items: center; gap: 14px; } }
.pt-links-a { font-weight: 800; }
.pt-links-u { color: var(--pt-acc) !important; overflow-wrap: anywhere; font-size: 14px; }
.pt-links-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pt-note { margin: 12px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--pt-info-bg); color: var(--pt-info); font-size: 13px; }
.pt-timeline { list-style: none; margin: 0; padding: 0; }
.pt-timeline li { position: relative; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 14px; padding: 0 0 16px 26px; }
.pt-timeline li::before { content: ""; position: absolute; inset-inline-start: 6px; top: 16px; bottom: 0; width: 2px; background: var(--pt-line); }
.pt-timeline li:last-child { padding-bottom: 0; }
.pt-timeline li:last-child::before { display: none; }
.pt-tl-dot { position: absolute; inset-inline-start: 0; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--pt-surface); border: 3px solid var(--pt-line-2); }
.pt-tl-delivered .pt-tl-dot, .pt-tl-approved .pt-tl-dot, .pt-tl-paid .pt-tl-dot, .pt-tl-paid_manual .pt-tl-dot { border-color: var(--pt-ok); }
.pt-tl-t { font-weight: 700; font-size: 14px; }
.pt-timeline time { color: var(--pt-muted); font-size: 13px; }
.pt-sum-p { margin: 0 0 12px; font-size: 30px; line-height: 1.1; font-weight: 800; }
.pt-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 14px; }
.pt-dl dt { color: var(--pt-muted); }
.pt-dl dd { margin: 0; font-weight: 600; }
.pt-dl small { color: var(--pt-muted); font-weight: 400; }
.pt-mail { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--pt-acc); font-weight: 700; text-decoration: none; }
.pt-mail:hover { text-decoration: underline; }

/* ---- published articles ---- */
.pt-art { display: grid; padding: 0; overflow: hidden; }
.pt-art-img { display: block; aspect-ratio: 16 / 9; background: var(--pt-soft); }
.pt-art-img img, .pt-art-img picture { display: block; width: 100%; height: 100%; object-fit: cover; }
.pt-art-ph { display: grid; place-items: center; height: 100%; color: var(--pt-muted); }
.pt-art-b { padding: 16px 18px 18px; }
.pt-art-t { margin: 0 0 6px; font-size: 17px; line-height: 1.35; }
.pt-art-t a { text-decoration: none; }
.pt-art-t a:hover { text-decoration: underline; }
.pt-art-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

/* ---- receipt ---- */
.pt-receipt { max-width: 860px; padding: 32px; }
.pt-rc-h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--pt-line); }
.pt-rc-site { margin: 0 0 4px; font-size: 22px; font-weight: 800; }
.pt-rc-title { margin: 0 0 6px; font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--pt-acc); }
.pt-rc-meta p { margin: 2px 0; font-size: 14px; }
.pt-rc-meta span { color: var(--pt-muted); }
.pt-rc-parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; padding: 20px 0; }
.pt-rc-parties p { margin: 0; }
.pt-rc-table { margin: 4px 0 18px; border: 1px solid var(--pt-line); border-radius: 10px; overflow: hidden; }
.pt-rc-table tfoot td { padding: 14px 16px; background: var(--pt-soft); font-weight: 800; }
.pt-rc-paid { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px; border: 2px solid var(--pt-ok); border-radius: 8px; color: var(--pt-ok); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }

/* ---- forms ---- */
.pt-form { display: grid; gap: 8px; }
.pt-form .pt-btn { margin-top: 8px; justify-self: start; }
.pt-form .pt-w100 { justify-self: stretch; }
.pt-label { font-size: 13px; font-weight: 700; }
.pt-input { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--pt-line-2); border-radius: 10px; background: var(--pt-surface); color: var(--pt-text); font: 15px/1.4 inherit; }
.pt-input:disabled { background: var(--pt-soft); color: var(--pt-muted); }
.pt-input:focus { border-color: var(--pt-acc); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--pt-acc) 18%, transparent); }
.pt-faq details { border-top: 1px solid var(--pt-line); }
.pt-faq details:first-child { border-top: 0; }
.pt-faq summary { padding: 14px 0; font-weight: 700; cursor: pointer; }
.pt-faq p { margin: 0 0 14px; color: var(--pt-muted); }

/* ---- sign-in ---- */
.pt-auth { display: grid; gap: 28px; align-items: center; min-height: calc(100vh - var(--pt-top) - 140px); }
@media (min-width: 900px) { .pt-auth { grid-template-columns: minmax(0, 1fr) minmax(360px, 440px); gap: 48px; } }
.pt-auth-one { grid-template-columns: minmax(0, 440px) !important; justify-content: center; }
.pt-auth-brand { padding: 8px 0; }
.pt-auth-h { margin: 0 0 18px; font-size: clamp(26px, 3.4vw, 40px); line-height: 1.15; font-weight: 800; letter-spacing: -.02em; }
.pt-auth-list { list-style: none; display: grid; gap: 12px; margin: 0; padding: 0; font-size: 16px; }
.pt-auth-list li { display: flex; align-items: center; gap: 10px; }
.pt-auth-list .pt-i { padding: 3px; border-radius: 50%; background: var(--pt-ok-bg); color: var(--pt-ok); }
.pt-auth-card { padding: 28px; }
.pt-auth-card .pt-sub { margin-bottom: 16px; }
.pt-auth-alt { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--pt-line); }
.pt-auth-alt summary { color: var(--pt-acc); font-weight: 700; font-size: 14px; cursor: pointer; }
.pt-auth-alt .pt-form { margin-top: 12px; }
.pt-auth-new { margin: 18px 0 0; color: var(--pt-muted); font-size: 14px; }
.pt-auth-new a { color: var(--pt-acc); font-weight: 700; }

/* ---- the order form inside the portal ---- */
.pt .wz-in-portal { padding: 0; }
.pt .wz-in-portal .wz-layout { gap: 20px; }
.pt .wz-in-portal .wz { padding: 22px 24px; background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: var(--pt-r); box-shadow: var(--pt-shadow); }
.pt .wz-in-portal .wz-card { background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: var(--pt-r); box-shadow: var(--pt-shadow); }
.pt .wz-in-portal .wz-pack { border-radius: 10px; }

/* ---- the customer's listings (templates/portal/listings.php, listing-edit.php) ---- */
.pt-llist { list-style: none; margin: 0; padding: 0; }
.pt-lrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px 18px; border-top: 1px solid var(--pt-line); }
.pt-lrow:first-child { border-top: 0; }
.pt-lrow-main { display: flex; align-items: center; gap: 12px; flex: 1 1 320px; min-width: 0; color: inherit; text-decoration: none; }
.pt-lrow-main .pt-olist-main { min-width: 0; }
.pt-lrow-main strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-lrow-end { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
@media (max-width: 640px) { .pt-lrow-end { width: 100%; margin-inline-start: 0; justify-content: flex-end; } }
.pt-menu { position: relative; }
.pt-menu > summary { list-style: none; cursor: pointer; }
.pt-menu > summary::-webkit-details-marker { display: none; }
.pt-menu-m { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 50; min-width: 240px; padding: 8px; background: var(--pt-surface); border: 1px solid var(--pt-line); border-radius: var(--pt-r); box-shadow: 0 12px 32px rgba(16, 24, 40, .16); }
.pt-menu-m a { display: block; padding: 9px 10px; border-radius: 8px; color: var(--pt-text); font: 600 14px/1.3 inherit; text-decoration: none; }
.pt-menu-m a:hover { background: var(--pt-soft); }
.pt-quick-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.pt-alert-pw { margin-bottom: 20px; }
.pt-alert-pw .pt-btn { margin-inline-start: auto; }
.pt-btn-danger { color: var(--pt-bad); border-color: var(--pt-bad-bg); }
.pt-btn-danger:hover { background: var(--pt-bad-bg); }
.pt-edit-note { margin: -6px 0 14px; }
.pt .wz-edit { padding: 0; }
.pt .wz-edit .wz-step { margin: 0 0 16px; padding: 16px 18px; border: 1px solid var(--pt-line); border-radius: 10px; background: var(--pt-soft); }
.pt .wz-edit .wz-step-title { font-family: inherit; font-size: 15px; font-weight: 800; margin-bottom: 12px; }
.pt .wz-edit .wz-label, .pt .wz-edit .wz-check span { font-size: 13px; font-weight: 700; }
.pt .wz-edit input:not([type=checkbox]):not([type=file]), .pt .wz-edit select, .pt .wz-edit textarea { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid var(--pt-line-2); border-radius: 10px; background: var(--pt-surface); color: var(--pt-text); font: 15px/1.4 inherit; }
.pt .wz-edit .wz-prefix input { padding-inline-start: 36px; }
.pt-edit-img { margin: 6px 0 10px; }
.pt-edit-img img { display: block; max-width: 260px; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--pt-line); }
.pt-edit-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 6px; }
.pt-auth-list-in { margin: 0 0 18px; font-size: 15px; }

/* ---- print (receipts) ---- */
@media print {
  .pt { background: #fff; }
  .pt-top, .pt-side, .pt-foot, .pt-noprint, .pt-scrim { display: none !important; }
  .pt-body { display: block; background: none; }
  .pt-side { border-inline-end: 1px solid var(--pt-line); }
  .pt-main { padding: 0; }
  .pt-card { box-shadow: none; border-color: #ccc; }
  .pt-receipt { max-width: none; }
}

/* Cloudflare Turnstile security check on visitor forms */
.ts-box{margin:14px 0 6px;min-height:65px}
.ts-error{color:#b42318;font-size:.9rem;margin:4px 0 0}
