/* ShortPRO Web – procesní mapa TikTok Shopu (includes/tts-map.php). Plátno 1240 × 1110 zmenšené JS na šířku obsahu. */

.spw-map { --map-ink: #2f2b6b; --map-violet: #5c57cb; --map-pink: #d662a8; --map-line: #b9b6e8; margin: 36px 0 0; }
.spw-map * { box-sizing: border-box; }
.spw-map p, .spw-map ul, .spw-map ol { margin: 0; padding: 0; }
.spw-map__board { position: relative; overflow: hidden; border: 1px solid #e6e4f8; border-radius: 26px; background-color: #f8f7fe; background-image: radial-gradient(#d9d6f5 1.2px, transparent 1.2px); background-size: 22px 22px; }
.spw-map__canvas { position: relative; width: 1240px; height: 1110px; transform-origin: 0 0; }
.spw-map__lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.spw-map__lines path { fill: none; stroke: var(--map-line); stroke-width: 2.5; transition: stroke .2s, opacity .2s; }
.spw-map__lines path.is-loop { stroke-dasharray: 7 7; }
.spw-map__lines marker path { fill: var(--map-line); stroke: none; }
.spw-map.is-focus .spw-map__lines path:not(.is-hot) { opacity: .25; }
.spw-map__lines path.is-hot { stroke: var(--map-violet); }

.spw-map__labels { position: absolute; inset: 0; pointer-events: none; }
.spw-map-label { position: absolute; z-index: 2; transform: translate(-50%, -50%); max-width: 104px; padding: 4px 9px; border: 1px solid #e0ddf7; border-radius: 10px; background: #fff; color: #5d5a85; font-size: 12px; font-weight: 600; line-height: 1.3; text-align: center; transition: opacity .2s, color .2s, border-color .2s; }
.spw-map-label--v { max-width: 260px; white-space: nowrap; }
.spw-map-label--h { transform: translate(-50%, calc(-100% - 8px)); }
.spw-map-label--loop { writing-mode: vertical-rl; transform: translate(-50%, -50%) rotate(180deg); max-width: none; white-space: nowrap; padding: 9px 4px; }
.spw-map.is-focus .spw-map-label:not(.is-hot) { opacity: .3; }
.spw-map-label.is-hot { color: var(--map-violet); border-color: var(--map-violet); }

.spw-map__frames { list-style: none; }
.spw-map-frame { position: absolute; z-index: 3; width: 300px; height: 270px; list-style: none; transition: opacity .2s; }
.spw-map.is-focus .spw-map-frame:not(.is-hot) { opacity: .45; }
.spw-map-frame__name { position: absolute; left: 4px; bottom: calc(100% + 6px); color: #77749a; font-size: 13px; font-weight: 600; white-space: nowrap; }
.spw-map-frame__name span { color: var(--map-violet); }
.spw-map-frame__box { display: flex; flex-direction: column; height: 100%; padding: 14px; border: 1.5px solid #e0ddf7; border-radius: 18px; background: #fff; box-shadow: 0 10px 30px rgba(92, 87, 203, .1); transition: border-color .2s, box-shadow .2s; }
.spw-map-frame.is-hot .spw-map-frame__box { border-color: var(--map-violet); box-shadow: 0 14px 36px rgba(92, 87, 203, .22); }
.spw-map-frame__mock { flex: 1; min-height: 0; overflow: hidden; }
.spw-map-frame__text { margin-top: 10px !important; color: var(--map-ink); font-size: 13.5px; line-height: 1.4; }
.spw-map-frame__next { display: none; }

/* Společné prvky ukázek */
.spw-map-cap { margin-bottom: 8px !important; color: #77749a; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.spw-map img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 6px; }
.spw-map-checks { display: grid; gap: 6px; list-style: none; }
.spw-map-checks li { position: relative; padding-left: 20px; color: var(--map-ink); font-size: 12.5px; line-height: 1.3; list-style: none; }
.spw-map-checks li::before { content: "✓"; position: absolute; left: 0; color: var(--map-violet); font-weight: 700; }

/* 01 Strategie, 09 Vyhodnocení – řádky s pruhy */
.spw-map-plan__row,
.spw-map-report__row { display: grid; grid-template-columns: 104px 1fr; align-items: center; gap: 10px; margin-top: 9px; color: var(--map-ink); font-size: 12.5px; }
.spw-map-plan__row i,
.spw-map-report__row i { position: relative; height: 9px; border-radius: 9px; background: #efeefb; }
.spw-map-plan__row i::after,
.spw-map-report__row i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: 9px; background: linear-gradient(90deg, #8783e0, var(--map-violet)); }
.spw-map-report__row i::after { background: linear-gradient(90deg, #fea2d9, var(--map-pink)); }

/* 02 Seller Center */
.spw-map-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.spw-map-kpis div { padding: 8px; border-radius: 10px; background: #f6f5fd; }
.spw-map-kpis span { display: block; color: #77749a; font-size: 11px; font-weight: 600; }
.spw-map-spark { display: block; width: 100%; height: 30px; margin-top: 4px; }
.spw-map-spark polyline { fill: none; stroke: var(--map-violet); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.spw-map-rows { display: grid; gap: 5px; margin-top: 8px; }
.spw-map-rows p { display: flex; align-items: center; gap: 8px; color: var(--map-ink); font-size: 12px; }
.spw-map-rows b { width: 18px; height: 18px; border-radius: 5px; background: linear-gradient(135deg, #eeedfb, #d9d6f5); }
.spw-map-rows em { margin-left: auto; padding: 1px 7px; border-radius: 99px; background: #e7f6ee; color: #23864f; font-size: 10.5px; font-style: normal; font-weight: 600; }
.spw-map-rows p:last-child em { background: #fff4e0; color: #a86b00; }

/* 03 Profil */
.spw-map-profile__head { display: flex; align-items: center; gap: 10px; }
.spw-map-profile__av { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--map-violet), var(--map-pink)); color: #fff; font-size: 12px; font-weight: 700; }
.spw-map-profile__head p { color: var(--map-ink); font-size: 12.5px; line-height: 1.3; }
.spw-map-profile__head p span { color: #77749a; font-size: 11px; }
.spw-map-profile__tabs { display: flex; gap: 14px; margin: 8px 0 6px; border-bottom: 1px solid #ecebf8; font-size: 11.5px; color: #77749a; }
.spw-map-profile__tabs span { padding-bottom: 4px; }
.spw-map-profile__tabs .is-on { border-bottom: 2px solid var(--map-ink); color: var(--map-ink); font-weight: 700; }
.spw-map-profile__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 3px; height: 62px; }
.spw-map-profile__grid img { border-radius: 3px; }

/* 04 UGC, 06 LIVE – telefon s videem */
.spw-map-media { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 14px; height: 100%; }
.spw-map-phone { position: relative; height: 150px; overflow: hidden; border: 4px solid #23214a; border-radius: 16px; background: #23214a; }
.spw-map-phone video { display: block; width: 100%; height: 100%; object-fit: cover; }
.spw-map-live { position: absolute; left: 5px; top: 5px; padding: 1px 6px; border-radius: 4px; background: #fe2c55; color: #fff; font-size: 9px; font-weight: 700; }

/* 05 Affiliate tvůrci */
.spw-map-creators { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; height: 100%; }
.spw-map-creator { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.spw-map-creator__av { display: grid; place-items: center; width: 34px; height: 34px; border: 2px solid #fff; border-radius: 50%; background: var(--c); color: #fff; font-size: 11px; font-weight: 700; box-shadow: 0 4px 10px rgba(47, 43, 107, .15); }
.spw-map-creator img { height: 92px; border-radius: 8px; }
.spw-map-creator em { padding: 2px 7px; border-radius: 99px; background: #fff0f8; color: var(--map-pink); font-size: 10.5px; font-style: normal; font-weight: 700; white-space: nowrap; }

/* 07 Reklama */
.spw-map-ads { display: grid; grid-template-columns: 84px 1fr; gap: 12px; height: 100%; }
.spw-map-ads__vid { position: relative; height: 140px; }
.spw-map-ads__vid em { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); padding: 3px 9px; border-radius: 99px; background: var(--map-pink); color: #fff; font-size: 11px; font-style: normal; font-weight: 700; }
.spw-map-bars { display: flex; align-items: flex-end; gap: 6px; height: 74px; padding-bottom: 2px; border-bottom: 1px solid #ecebf8; }
.spw-map-bars i { flex: 1; height: var(--p); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, #8783e0, var(--map-violet)); }
.spw-map-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px !important; }
.spw-map-tags span { padding: 2px 8px; border-radius: 99px; background: #f1f0fc; color: var(--map-violet); font-size: 10.5px; font-weight: 700; }

/* 08 Objednávky */
.spw-map-order__card { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 10px; padding: 8px; border: 1px solid #ecebf8; border-radius: 12px; }
.spw-map-order__card img { height: 52px; }
.spw-map-order__card p { color: var(--map-ink); font-size: 12px; line-height: 1.4; }
.spw-map-order__card p span { color: #f5a623; font-size: 11px; }
.spw-map-order__btn { padding: 6px 10px; border-radius: 8px; background: #fe2c55; color: #fff; font-size: 11.5px; font-weight: 700; }
.spw-map-order__note { margin-top: 7px !important; padding: 6px 10px; border-radius: 10px; background: #e7f6ee; color: #23864f; font-size: 12px; font-weight: 600; }

.spw-map__note { margin-top: 12px !important; color: #77749a; font-size: 13px; line-height: 1.5; text-align: center; }

/* Mobil a tablet na výšku: svislý sled kroků */
@media (max-width: 899px) {
	.spw-map__board { overflow: visible; border: 0; background: none; border-radius: 0; }
	.spw-map__canvas { width: auto; height: auto; transform: none !important; }
	.spw-map__lines,
	.spw-map__labels { display: none; }
	.spw-map__frames { display: flex; flex-direction: column; }
	.spw-map-frame { position: relative; left: auto !important; top: auto !important; width: 100%; max-width: 440px; height: auto; margin: 0 auto; padding-top: 24px; }
	.spw-map-frame--strategie { order: 1; } .spw-map-frame--obchod { order: 2; } .spw-map-frame--profil { order: 3; }
	.spw-map-frame--ugc { order: 4; } .spw-map-frame--affiliate { order: 5; } .spw-map-frame--live { order: 6; }
	.spw-map-frame--reklama { order: 7; } .spw-map-frame--objednavky { order: 8; } .spw-map-frame--vyhodnoceni { order: 9; }
	.spw-map-frame__name { position: static; margin-bottom: 6px !important; }
	.spw-map-frame__box { height: auto; }
	.spw-map-frame__mock { flex: none; height: auto; }
	.spw-map-media { height: auto; }
	.spw-map-creators { height: auto; }
	.spw-map-frame__next { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 8px 0 0 !important; color: #77749a; font-size: 13px; font-weight: 600; text-align: center; }
	.spw-map-frame__next::before { content: ""; width: 14px; height: 30px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 30'%3E%3Cpath d='M7 0v22' stroke='%23b9b6e8' stroke-width='2.5'/%3E%3Cpath d='M1 21l6 8 6-8z' fill='%23b9b6e8'/%3E%3C/svg%3E") no-repeat center / contain; }
	.spw-map-frame--vyhodnoceni .spw-map-frame__next::before { content: "↻"; width: auto; height: auto; background: none; color: #8783e0; font-size: 22px; line-height: 1; }
	.spw-map.is-focus .spw-map-frame:not(.is-hot) { opacity: 1; }
	.spw-map-frame.is-hot .spw-map-frame__box { border-color: #e0ddf7; box-shadow: 0 10px 30px rgba(92, 87, 203, .1); }
}

/* Na širších obrazovkách mapa přesahuje úzký sloupec textu (průvodce), aby nebyla moc malá */
@media (min-width: 900px) {
	.spw-map { width: min(1240px, calc(100vw - 64px)); margin-left: calc(50% - min(620px, 50vw - 32px)); } /* bez transform – jinak vzniká vodorovný posuvník */
}
.spw-map .spw-map__note { font-size: 13px !important; line-height: 1.5 !important; }
