/**
 * Plik CSS dla widgetu FeedWeaver "Mała Zajawka"
 * WERSJA ARCHITEKTURALNA v9 - Usunięcie ujemnych marginesów, aby naprawić obcinanie krawędzi.
 * Lokalizacja: /assets/css/small-teaser-widget.css
 */

/* --- Wrapper i Kontener --- */
.elementor-widget-feedweaver-small-teaser-widget .fw-small-teaser-wrapper {
    position: relative;
    /* Wrapper jest naszym głównym "obcinaczem" */
    overflow: hidden; 
    padding: 10px 0; /* Padding góra/dół dla cieni */
    /* ZMIANA: Dodajemy padding boczny, aby strzałki nie przyklejały się do krawędzi */
    padding-left: 10px;
    padding-right: 10px;
}

.elementor-widget-feedweaver-small-teaser-widget .elementor-swiper {
    opacity: 0;
    transition: opacity 0.4s ease 0.1s;
    /* ZMIANA: Kontener Swipera ma być widoczny wewnątrz wrappera */
    overflow: visible; 
    margin: 0; /* ZMIANA: Usunięto ujemne marginesy */
    padding: 5px 0; /* Minimalny padding góra/dół dla cienia */
    /* ZMIANA: Usunięto ujemne marginesy boczne */
    /* margin-left: calc(var(--swiper-slides-gap, 20px) / -2); */
    /* margin-right: calc(var(--swiper-slides-gap, 20px) / -2); */
}

.elementor-widget-feedweaver-small-teaser-widget .elementor-swiper.swiper-initialized {
    opacity: 1;
}

/* --- FIX DLA EDYTORA --- */
.elementor-editor-active .elementor-widget-feedweaver-small-teaser-widget .swiper-wrapper {
    display: flex !important; flex-wrap: nowrap !important; width: auto !important; opacity: 1 !important; align-items: stretch !important;
    /* ZMIANA: Usunięto padding boczny, aby pasował do logiki bez ujemnych marginesów */
    /* padding-left: calc(var(--swiper-slides-gap, 20px) / 2); */
    /* padding-right: calc(var(--swiper-slides-gap, 20px) / 2); */
    box-sizing: border-box;
}
.elementor-editor-active .elementor-widget-feedweaver-small-teaser-widget .swiper-slide {
    height: auto !important; display: flex !important; align-items: stretch !important; flex-shrink: 0 !important;
    width: var(--fw-editor-slide-width, 25%) !important;
    margin-right: var(--swiper-slides-gap, 20px) !important;
    box-sizing: border-box;
}
.elementor-editor-active .elementor-widget-feedweaver-small-teaser-widget .swiper-slide:last-child { margin-right: 0 !important; }


/* --- Układ Swipera --- */
.elementor-widget-feedweaver-small-teaser-widget .swiper-wrapper {
    display: flex;
    align-items: stretch; /* Kluczowe dla równych wysokości kart */
    box-sizing: content-box;
    /* ZMIANA: Usunięto padding boczny kompensujący ujemne marginesy */
    /* padding-left: calc(var(--swiper-slides-gap, 20px) / 2); */
    /* padding-right: calc(var(--swiper-slides-gap, 20px) / 2); */
}
.elementor-widget-feedweaver-small-teaser-widget .swiper-slide {
    height: auto; 
    display: flex; 
    flex-direction: column; 
    flex-shrink: 0;
    position: relative; 
    box-sizing: border-box; 
    overflow: visible;
    padding-top: 5px; 
    padding-bottom: 5px; /* Dla cienia */
}

/* --- Karta Produktu (BEZ ZMIAN - Fix dla wyrównania ceny jest poprawny) --- 
*/
.fw-small-teaser-card {
    display: flex;
    flex-direction: column;
    height: 100%; 
    width: 100%;
    transition: box-shadow 0.3s, border-color 0.3s, background-color 0.3s;
    overflow: hidden; 
}
.fw-card-image-link { 
    display: block; text-decoration: none; position: relative; 
    background-color: #f5f5f5; overflow: hidden;
    flex-shrink: 0;
}
.fw-card-image { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; display: block; }
.fw-card-image-placeholder { width: 100%; aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; background-color: #f0f0f0; color: #ccc; border-radius: inherit; }
.fw-card-image-placeholder::before { font-family: 'eicons'; content: '\\e912'; font-size: 40px; }
.fw-card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1; 
}
.fw-card-title {
    margin: 0;
    line-height: 1.3;
}
.fw-card-title a { text-decoration: none; transition: color 0.3s; color: #333; }
.fw-title-line-clamp-yes .fw-card-title a { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; text-overflow: ellipsis; -webkit-line-clamp: var(--fw-title-line-clamp, 2); }
.fw-card-price-wrapper {
    margin-top: auto;
    display: flex; flex-flow: row wrap; 
    gap: 5px 10px; 
    align-items: baseline; min-height: 1.2em;
    padding-top: 10px;
}
.fw-card-price-promo { font-size: 1.1em; font-weight: 700; color: #d32f2f; }
.fw-card-price-regular { font-size: 1em; font-weight: 600; color: #333; }
.fw-card-price-old { text-decoration: line-through; opacity: 0.7; font-size: 0.9em; font-weight: 400; }
.fw-card-button {
    text-align: center; text-decoration: none;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    padding: 10px 15px; border-radius: 5px; background: #0073e6; color: #fff !important; font-weight: 600;
    display: block; width: 100%; box-sizing: border-box;
    flex-shrink: 0; 
    margin-top: 10px;
}
.fw-card-button:hover { /* ... */ }
.elementor-editor-active .elementor-widget-feedweaver-small-teaser-widget .fw-card-price-wrapper {
    margin-top: auto !important;
}

/* --- Nawigacja i Komunikaty (BEZ ZMIAN) --- 
*/
.elementor-widget-feedweaver-small-teaser-widget .elementor-swiper-button { position: absolute; transform: translateY(-50%); z-index: 10; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background-color 0.3s, color 0.3s, opacity 0.3s, box-shadow 0.3s; }
.elementor-widget-feedweaver-small-teaser-widget .elementor-swiper-button:hover { /* ... */ }
.elementor-widget-feedweaver-small-teaser-widget .elementor-swiper-button.swiper-button-disabled { opacity: 0.35; cursor: default; pointer-events: none; }
.elementor-widget-feedweaver-small-teaser-widget .elementor-swiper-button i,
.elementor-widget-feedweaver-small-teaser-widget .elementor-swiper-button svg { line-height: 1; display: inline-block; font-size: 1em; width: 1em; height: 1em; }
.elementor-widget-feedweaver-small-teaser-widget .elementor-swiper-button::after { display: none !important; content: none !important; }
.elementor-widget-feedweaver-small-teaser-widget .swiper-pagination { position: relative; bottom: auto; text-align: center; width: 100%; }
.elementor-widget-feedweaver-small-teaser-widget .swiper-pagination-bullet { cursor: pointer; transition: background-color 0.3s, opacity 0.3s, transform 0.3s; opacity: 0.7; width: 8px; height: 8px; display: inline-block; border-radius: 50%; margin: 0 4px; }
.elementor-widget-feedweaver-small-teaser-widget .swiper-pagination-bullet:hover { transform: scale(1.2); opacity: 1; }
.elementor-widget-feedweaver-small-teaser-widget .swiper-pagination-bullet-active { opacity: 1; transform: scale(1.1); }
.elementor-widget-feedweaver-small-teaser-widget .fw-editor-alert { padding: 15px; margin: 10px; border: 1px dashed; text-align: center; }
.fw-editor-alert--warning { background-color: #fff8e1; border-color: #ffc107; color: #856404; }
.fw-editor-alert--danger { background-color: #ffebee; border-color: #f44336; color: #c62828; }