/* Pomoc panelu (2026-09-26) - wszystko na zmiennych motywu panelu (--p-*), wiec dziala w jasnym i ciemnym. */

.pm-search { position: relative; margin-bottom: 18px; max-width: 760px; }
.pm-search input {
    width: 100%; padding: 12px 14px; border-radius: 10px; font-size: 14px;
    background: var(--p-surface); color: var(--p-text); border: 1px solid var(--p-border);
}
.pm-search input:focus { outline: 2px solid var(--p-accent); outline-offset: 1px; }
.pm-hits {
    position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); max-height: 60vh; overflow-y: auto;
    background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}
.pm-hits[hidden] { display: none; }
.pm-hit { display: block; padding: 11px 14px; text-decoration: none; color: var(--p-text); border-bottom: 1px solid var(--p-border); }
.pm-hit:last-child { border-bottom: none; }
.pm-hit:hover, .pm-hit:focus { background: var(--p-surface-alt); }
.pm-hit strong { display: block; font-size: 13px; margin-bottom: 3px; }
.pm-hit span { display: block; font-size: 12px; color: var(--p-muted); line-height: 1.5; }

.pm-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; align-items: start; }
.pm-nav {
    position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto;
    background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 14px; padding: 10px;
}
.pm-nav-title {
    display: block; padding: 8px 10px; border-radius: 8px; font-size: 13px; font-weight: 700;
    color: var(--p-text); text-decoration: none;
}
.pm-nav-title:hover { background: var(--p-surface-alt); }
.pm-nav-title.is-active, .pm-nav-secs a.is-active {
    background: linear-gradient(90deg, rgba(28, 181, 224, 0.18), rgba(162, 89, 255, 0.18));
}
.pm-nav-secs { display: flex; flex-direction: column; margin: 2px 0 8px 10px; border-left: 1px solid var(--p-border); }
.pm-nav-secs a {
    padding: 6px 10px; font-size: 12px; color: var(--p-muted); text-decoration: none; border-radius: 0 8px 8px 0; line-height: 1.35;
}
.pm-nav-secs a:hover { color: var(--p-text); }

.pm-doc { min-width: 0; max-width: 920px; }
.pm-doc-head h2 { font-size: 20px; margin: 0 0 8px; text-wrap: balance; }
.pm-doc-head p { margin: 0 0 14px; color: var(--p-muted); line-height: 1.6; max-width: 70ch; }
.pm-toc { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.pm-toc a {
    font-size: 12px; padding: 5px 10px; border-radius: 20px; text-decoration: none;
    color: var(--p-text); background: var(--p-surface-alt); border: 1px solid var(--p-border);
}
.pm-toc a:hover { border-color: var(--p-accent); }

.pm-section { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--p-border); scroll-margin-top: 12px; }
.pm-section h3 { font-size: 17px; margin: 0 0 12px; text-wrap: balance; }
.pm-p { line-height: 1.65; margin: 0 0 12px; max-width: 72ch; }
.pm-list { margin: 0 0 14px; padding-left: 20px; line-height: 1.6; max-width: 72ch; }
.pm-list li { margin-bottom: 4px; }

.pm-steps { background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 12px; padding: 14px 16px; margin: 0 0 14px; }
.pm-steps-title { font-weight: 800; font-size: 13px; margin-bottom: 8px; }
.pm-steps ol { margin: 0; padding: 0; list-style: none; counter-reset: pmstep; }
.pm-steps li { counter-increment: pmstep; position: relative; padding: 4px 0 8px 34px; line-height: 1.55; }
.pm-steps li::before {
    content: counter(pmstep); position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%;
    display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, var(--p-blue), var(--p-accent));
}

.pm-callout { display: flex; gap: 10px; border-radius: 12px; padding: 12px 14px; margin: 0 0 14px; line-height: 1.55; font-size: 13px; }
.pm-callout strong { flex: 0 0 auto; }
.pm-note { background: rgba(28, 181, 224, 0.1); border: 1px solid rgba(28, 181, 224, 0.35); }
.pm-note strong { color: var(--p-blue); }
.pm-warn { background: rgba(255, 176, 32, 0.1); border: 1px solid rgba(255, 176, 32, 0.45); }
.pm-warn strong { color: var(--p-amber); }

.pm-fields { margin: 0 0 16px; display: grid; gap: 10px; }
.pm-fields-title { font-weight: 800; font-size: 13px; color: var(--p-muted); text-transform: uppercase; letter-spacing: 0.03em; }
.pm-field { background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 12px; padding: 12px 16px; }
.pm-field-name { font-weight: 800; font-size: 14px; margin-bottom: 6px; }
.pm-field dl { margin: 0; }
.pm-field-row { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 10px; padding: 5px 0; border-top: 1px dashed var(--p-border); font-size: 13px; line-height: 1.55; }
.pm-field-row:first-child { border-top: none; }
.pm-field-row dt { color: var(--p-muted); font-weight: 700; font-size: 12px; }
.pm-field-row dd { margin: 0; }
.pm-field-row ul { margin: 0; padding-left: 18px; }

.pm-faq details { background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 10px; margin-bottom: 8px; }
.pm-faq summary { cursor: pointer; padding: 11px 14px; font-weight: 700; font-size: 13px; }
.pm-faq details > div { padding: 0 14px 12px; line-height: 1.6; font-size: 13px; }

/* ---- makiety ---- */
.pm-mark {
    display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; margin-left: 6px;
    font-size: 11px; font-weight: 800; color: #fff; vertical-align: middle; flex: 0 0 auto;
    background: var(--p-accent); box-shadow: 0 0 0 3px rgba(162, 89, 255, 0.25);
}
.pm-mock { margin: 4px 0 18px; border: 1px solid var(--p-border); border-radius: 14px; overflow: hidden; background: var(--p-bg); }
.pm-mock-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--p-surface-alt); border-bottom: 1px solid var(--p-border); }
.pm-mock-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--p-border); }
.pm-mock-bar em { font-style: normal; font-size: 12px; color: var(--p-muted); margin-left: 6px; }
.pm-mock-body { padding: 14px; }
.pm-mock-toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; justify-content: flex-end; }
.pm-mock-toolbar .btn { cursor: default; display: inline-flex; align-items: center; }
.pm-table-scroll { overflow-x: auto; background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 10px; }
.pm-table-scroll th, .pm-table-scroll td { padding: 9px 12px; white-space: nowrap; }
.pm-table-scroll th { white-space: nowrap; }
.pm-table-scroll tr:last-child td { border-bottom: none; }
.pm-mock-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 12px; border-bottom: 1px solid var(--p-border); }
.pm-mock-tabs span { padding: 7px 12px; font-size: 12px; font-weight: 700; color: var(--p-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.pm-mock-tabs span.is-active { color: var(--p-text); border-bottom-color: var(--p-accent); }
.pm-form { display: grid; gap: 10px; max-width: 560px; background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 10px; padding: 14px; }
.pm-form-row label { display: flex; align-items: center; font-size: 12px; font-weight: 700; color: var(--p-muted); margin-bottom: 5px; }
.pm-form-row.is-inline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.pm-form-row.is-inline label { margin: 0; }
.pm-ctl { min-height: 36px; padding: 8px 10px; border-radius: 8px; font-size: 13px; background: var(--p-surface-alt); border: 1px solid var(--p-border); color: var(--p-text); overflow-wrap: anywhere; }
.pm-ctl-select { position: relative; padding-right: 28px; }
.pm-ctl-select::after { content: ''; position: absolute; right: 12px; top: 50%; width: 7px; height: 7px; border-right: 2px solid var(--p-muted); border-bottom: 2px solid var(--p-muted); transform: translateY(-70%) rotate(45deg); }
.pm-ctl-area { min-height: 70px; }
.pm-ctl-ro { background: transparent; border-style: dashed; color: var(--p-muted); }
.pm-toggle { width: 38px; height: 22px; border-radius: 20px; background: var(--p-border); position: relative; flex: 0 0 auto; }
.pm-toggle::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.pm-toggle.is-on { background: var(--p-green); }
.pm-toggle.is-on::after { left: 19px; }
.pm-check { width: 18px; height: 18px; border-radius: 5px; border: 2px solid var(--p-muted); flex: 0 0 auto; position: relative; }
.pm-check.is-on { background: var(--p-accent); border-color: var(--p-accent); }
.pm-check.is-on::after { content: ''; position: absolute; left: 4px; top: 0; width: 5px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.pm-form-btn { display: flex; align-items: center; }
.pm-btn-accent { background: linear-gradient(135deg, var(--p-blue), var(--p-accent)); color: #fff; border: none; cursor: default; }
.pm-legend { list-style: none; margin: 0; padding: 12px 14px; display: grid; gap: 7px; border-top: 1px solid var(--p-border); background: var(--p-surface); }
.pm-legend li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.5; }
.pm-legend .pm-mark { margin: 0; }

/* karta sklepu - neutralny szkic, kolor akcentu mowi, ktory to sklep */
.pm-card { --shop: var(--p-accent); max-width: 300px; background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 12px; overflow: hidden; }
.pm-card-mimeble { --shop: #8a6f4d; }
.pm-card-jsp { --shop: #2f9e75; }
.pm-card-mikup { --shop: var(--p-blue); }
.pm-card-allegro { --shop: #ff5a00; }
.pm-card-sprzedajemy { --shop: #0a7cd6; }
.pm-card-shop { font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; padding: 7px 12px; color: #fff; background: var(--shop); }
.pm-card-img { height: 110px; background: repeating-linear-gradient(135deg, var(--p-surface-alt) 0 12px, var(--p-bg) 12px 24px); border-bottom: 1px solid var(--p-border); }
.pm-card-lines { padding: 12px; display: grid; gap: 7px; }
.pm-card-lines > div { display: flex; align-items: center; flex-wrap: wrap; font-size: 13px; }
.pm-card-title { font-weight: 800; font-size: 14px !important; }
.pm-card-price { font-weight: 800; font-size: 18px !important; color: var(--shop); }
.pm-card-oldprice { color: var(--p-muted); text-decoration: line-through; }
.pm-card-muted { color: var(--p-muted); font-size: 12px !important; }
.pm-card-badge { align-self: start; justify-self: start; padding: 3px 9px; border-radius: 20px; font-size: 11px !important; font-weight: 700; background: color-mix(in srgb, var(--shop) 16%, transparent); color: var(--shop); }
.pm-card-button { justify-content: center; padding: 9px; border-radius: 8px; font-weight: 800; color: #fff; background: var(--shop); }

/* schemat przeplywu */
.pm-flow { margin: 4px 0 18px; }
.pm-flow figcaption { font-size: 12px; font-weight: 800; color: var(--p-muted); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 8px; }
.pm-flow-steps { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; row-gap: 10px; }
.pm-flow-step { flex: 1 1 150px; min-width: 150px; background: var(--p-surface); border: 1px solid var(--p-border); border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.5; }
.pm-flow-where { display: inline-block; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 20px; margin-bottom: 6px; color: #fff; background: linear-gradient(135deg, var(--p-blue), var(--p-accent)); }
.pm-flow-arrow { flex: 0 0 28px; align-self: center; height: 2px; background: var(--p-border); position: relative; }
.pm-flow-arrow::after { content: ''; position: absolute; right: 0; top: -4px; border: 5px solid transparent; border-left: 7px solid var(--p-muted); border-right: none; }

.pm-overview { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.pm-overview-card { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-radius: 12px; text-decoration: none; color: var(--p-text); background: var(--p-surface); border: 1px solid var(--p-border); }
.pm-overview-card:hover, .pm-overview-card:focus { border-color: var(--p-accent); }
.pm-overview-card span { font-size: 12px; color: var(--p-muted); line-height: 1.5; }
.pm-overview-card em { font-style: normal; font-size: 11px; color: var(--p-muted); margin-top: auto; }

.pm-help-link { font-size: 13px !important; }

@media (max-width: 900px) {
    .pm-layout { grid-template-columns: 1fr; }
    .pm-nav { position: static; max-height: 260px; }
}
@media (max-width: 560px) {
    .pm-field-row { grid-template-columns: 1fr; gap: 2px; }
    .pm-flow-steps { flex-direction: column; row-gap: 0; }
    .pm-flow-step { flex: 0 0 auto; min-width: 0; }
    .pm-flow-arrow { flex: 0 0 18px; align-self: flex-start; height: 18px; width: 2px; margin-left: 22px; }
    .pm-flow-arrow::after { top: auto; bottom: -2px; right: -4px; border: 5px solid transparent; border-top: 7px solid var(--p-muted); border-bottom: none; }
}
