.wt-outer-wrapper {
    position: relative;
    width: 100%;
    margin: 20px 0;
    overflow: hidden;
}

/* Wymuszenie płynnego dotyku i braku przewijania w pionie dla iOS Safari */
.wt-scroll-area {
    width: 100%;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; /* Kluczowe dla akceleracji na iPhone */
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
}
.wt-scroll-area:active { cursor: grabbing; scroll-behavior: auto !important; }
.wt-scroll-area::-webkit-scrollbar { display: none; }

/* Sztywne wymuszenie układu poziomego dla silnika Safari WebKit */
.wt-track {
    position: relative;
    display: -webkit-box !important;
    display: -ms-flexbox !important;
    display: flex !important;
    -webkit-box-orient: horizontal !important;
    -webkit-box-direction: normal !important;
    -ms-flex-direction: row !important;
    flex-direction: row !important; /* Blokada pionowego układu */
    user-select: none;
    -webkit-user-select: none;
    min-width: calc(var(--item-width, 240px) * var(--total-items));
    height: var(--track-height, 550px);
}

.wt-svg-line {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; z-index: 1; pointer-events: none;
}

.wt-outer-wrapper.has-anim .wt-path {
    stroke-dasharray: 10000; stroke-dashoffset: 10000; transition: stroke-dashoffset 2s cubic-bezier(0.25, 1, 0.5, 1);
}
.wt-outer-wrapper.wt-animated .wt-path { stroke-dashoffset: 0; }

/* KULOODPORNA ANIMACJA (Z FALLBACKIEM) */
.wt-outer-wrapper.has-anim .wt-item { 
    opacity: 0; 
    transform: translateY(20px); 
    transition: opacity 0.6s ease, transform 0.6s ease; 
    animation: wt-force-show 0.1s forwards 1.5s; /* Po 1.5 sekundy pojawi się samo, nawet jak zawiedzie JS! */
}
.wt-outer-wrapper.wt-animated .wt-item { 
    opacity: 1; 
    transform: translateY(0); 
    animation: none; /* Jeśli JS zadziała, wyłączamy awaryjne pojawianie */
}
@keyframes wt-force-show {
    to { opacity: 1; transform: translateY(0); }
}

.elementor-editor-active .wt-outer-wrapper .wt-item,
.elementor-editor-preview .wt-outer-wrapper .wt-item { opacity: 1 !important; transform: none !important; animation: none !important; }
.elementor-editor-active .wt-outer-wrapper .wt-path,
.elementor-editor-preview .wt-outer-wrapper .wt-path { stroke-dashoffset: 0 !important; }

/* Elementy Osi */
.wt-item {
    width: var(--item-width, 240px) !important;
    -webkit-box-flex: 0 !important;
    -ms-flex: 0 0 var(--item-width, 240px) !important;
    flex: 0 0 var(--item-width, 240px) !important;
    height: 100%;
    position: relative;
    z-index: 2;
}

.wt-element-top {
    position: absolute; bottom: 50%; left: 0; width: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
}
.wt-element-bottom {
    position: absolute; top: 50%; left: 0; width: 100%;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
}

.wt-content { width: 100%; padding: 0 15px; box-sizing: border-box; text-align: center; }

/* Pasek akcentu z wymiarami */
.wt-accent-bar { 
    width: 40px; 
    height: 4px; 
    margin: 0 auto 10px auto; 
    border-radius: 2px; 
}

.wt-title { font-weight: 700; margin: 0 0 8px 0; text-transform: uppercase; transition: color 0.3s; }
.wt-desc { line-height: 1.4; }
.wt-desc p { margin: 0 0 5px 0; }

.wt-circle {
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-weight: 700; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.wt-circle i, .wt-circle svg { font-size: 1.5em; width: 1em; height: 1em; }
.wt-item:hover .wt-circle { transform: scale(1.12); }
.wt-link { text-decoration: none; color: inherit; display: block; height: 100%; outline: none; }

/* Strzałki Nawigacji */
.wt-arrow {
    position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px;
    background: #ffffff; border: 1px solid #e0e0e0; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12); transition: all 0.3s ease;
}
.wt-arrow svg {
    width: 20px; 
    height: 20px; 
    display: block; 
    margin: auto; 
}
.wt-arrow:hover { background: #f8f8f8; transform: translateY(-50%) scale(1.1); }
.wt-arrow.disabled { opacity: 0; visibility: hidden; pointer-events: none; }
.wt-arrow-prev { left: 10px; }
.wt-arrow-next { right: 10px; }

@media (max-width: 768px) {
    .wt-arrow { width: 36px; height: 36px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
    .wt-arrow svg { width: 18px; height: 18px; }
    .wt-arrow-prev { left: 5px; }
    .wt-arrow-next { right: 5px; }
    .wt-scroll-area { padding-bottom: 20px; }
}