/* Główny kontener slidera */
.bloobkit-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    margin: 0 auto;
    box-sizing: border-box;
    z-index: 1;
}

/* Dla promocji - ograniczona szerokość do wyśrodkowania */
.bloobkit-slider[data-items="1"] {
    max-width: 1200px;
    margin: 0 auto;
}

/* Kontener slajdów */
.bloobkit-slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    box-sizing: border-box;
}

/* Wrapper slajdów */
.bloobkit-slider-wrapper {
    display: flex;
    transition: transform 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

/* Pojedynczy slajd */
.bloobkit-slide {
    flex-shrink: 0;
    padding: 15px;
    box-sizing: border-box;
    height: auto;
    display: flex;
}

/* Szerokości slajdów są teraz ustawiane dynamicznie przez JavaScript */

/* Facebook post styling */
.bloobkit-slide.facebook-post {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    flex-direction: column;
    /* Usuń width: 100% - niech flexbox ustawia szerokość na podstawie data-items */
    max-width: none;
    overflow: hidden;
    height: auto;
    min-height: 200px;
    box-sizing: border-box;
}

.post-header {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.post-header .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    flex-shrink: 0;
}

.post-content {
    padding: 10px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: visible;
}

.post-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
}

/* Kontener na zdjęcie */
.post-image-container {
    position: relative;
    width: 100%;
    margin: 10px 0;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
    max-height: 500px;
}

.post-image {
    display: block;
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    object-position: center;
}

.post-footer {
    padding: 10px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    background: #fff;
    font-size: 12px;
    color: #666;
}

/* Gallery styling */
.bloobkit-slide.gallery-slide img {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.slide-caption {
    margin-top: 10px;
    text-align: center;
    font-style: italic;
}

/* Navigation arrows */
.bloobkit-slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bloobkit-slider-arrow.prev {
    left: 10px;
}

.bloobkit-slider-arrow.next {
    right: 10px;
}

/* Ukryj strzałki gdy nie ma klasy has-arrows */
.bloobkit-slider:not(.has-arrows) .bloobkit-slider-arrow {
    display: none !important;
}



/* Navigation dots */
.bloobkit-slider-dots {
    position: absolute !important;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 9999 !important; /* Najwyższy z-index */
    pointer-events: auto !important; /* Zapewnij możliwość kliknięcia */
}

/* Base dot styles - override with CSS variables from settings */
.bloobkit-slider-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--dots-color, rgba(255,255,255,0.8));
    border: 2px solid rgba(0,0,0,0.3);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.bloobkit-slider-dot.active {
    background: var(--dots-active-color, #007cba);
    border-color: var(--dots-color, #fff);
    transform: scale(1.2);
}

/* Circles style (default) */
.dots-style-circles .bloobkit-slider-dot {
    border-radius: 50%;
    width: 12px;
    height: 12px;
}

/* Lines style */
.dots-style-lines .bloobkit-slider-dot {
    border-radius: 2px;
    width: 20px;
    height: 4px;
}

.dots-style-lines .bloobkit-slider-dot.active {
    width: 25px;
    transform: scale(1);
}

/* Squares style */
.dots-style-squares .bloobkit-slider-dot {
    border-radius: 2px;
    width: 10px;
    height: 10px;
}

.dots-style-squares .bloobkit-slider-dot.active {
    width: 12px;
    height: 12px;
    transform: scale(1);
}

/* Diamonds style */
.dots-style-diamonds .bloobkit-slider-dot {
    border-radius: 0;
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
}

.dots-style-diamonds .bloobkit-slider-dot.active {
    width: 12px;
    height: 12px;
    transform: rotate(45deg) scale(1.1);
}

/* Responsive design */
@media (max-width: 768px) {
    
    .bloobkit-slider-arrow {
        width: 35px;
        height: 35px;
        font-size: 14px;
        background: rgba(255,255,255,0.95);
        box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    }
    
    .bloobkit-slider-arrow.prev {
        left: 5px;
    }
    
    .bloobkit-slider-arrow.next {
        right: 5px;
    }

    .bloobkit-slider-dots {
        bottom: 15px !important;
        gap: 8px !important;
        z-index: 9999 !important;
        pointer-events: auto !important;
    }
    
    .bloobkit-slider-dot {
        width: 10px !important;
        height: 10px !important;
        background: var(--dots-color, rgba(255,255,255,0.9)) !important;
        box-shadow: 0 2px 4px rgba(0,0,0,0.5) !important;
        border: 2px solid rgba(0,0,0,0.3) !important;
    }
    
    .bloobkit-slider-dot.active {
        background: var(--dots-active-color, #007cba) !important;
        border-color: var(--dots-color, #fff) !important;
        transform: scale(1.2) !important;
    }

    .post-content {
        padding: 8px;
    }

    .post-header {
        padding: 8px;
    }

    .post-footer {
        padding: 8px;
    }

    .post-image-container {
        margin: 8px 0;
        max-height: 400px;
    }
    
    .post-image {
        max-height: 400px;
    }
    
    .facebook-post {
        min-height: 150px;
    }
}

/* Style dla postów Facebook */
.facebook-post {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    height: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
}

.author-info {
    flex: 1;
}

.author-info h3 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}

.timestamp {
    font-size: 12px;
    color: #666;
}

.post-content p {
    margin: 0 0 12px 0;
    font-size: 14px;
}

.post-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.post-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border-top: 1px solid #eee;
    font-size: 14px;
    color: #666;
}

/* Animacje */
@keyframes slideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-100%);
    }
}

/* Style dla galerii */
.gallery-slide {
    position: relative;
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 14px;
}

.facebook-post-link {
    text-decoration: none;
    color: inherit;
    display: block;
    height: 100%;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.facebook-post-link:hover {
    background-color: #f8f9fa;
}

.post-text {
    position: relative;
    margin: 0;
    font-size: 14px;
    line-height: 1.4;
    color: #1c1e21;
}

.post-text-truncated {
    color: #65676b;
}

.read-more-btn {
    display: inline-block;
    background: none;
    border: none;
    padding: 0;
    margin-left: 5px;
    color: #65676b;
    font-weight: 600;
    cursor: pointer;
    font-size: 14px;
}

.read-more-btn:hover {
    text-decoration: underline;
}

.post-images-container {
    display: grid;
    gap: 4px;
    margin: 8px 0;
    border-radius: 8px;
    overflow: hidden;
}

.single-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f2f5;
}

.single-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.main-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f2f5;
    margin-bottom: 4px;
}

.main-post-image {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.thumbnails-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
    gap: 4px;
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.2s ease;
}

.thumbnail-wrapper:hover .thumbnail-image {
    opacity: 0.8;
}

.more-photos-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    border-radius: 6px;
}

@media (max-width: 768px) {
    .main-image-wrapper {
        margin-bottom: 2px;
    }
    
    .main-post-image {
        height: 200px;
    }
    
    .single-image-wrapper {
        margin-bottom: 4px;
    }
    
    .single-image-wrapper img {
        border-radius: 4px;
    }
    
    .thumbnail-wrapper {
        height: 50px;
    }
    
    .more-photos-overlay {
        font-size: 12px;
    }
}

.post-image-wrapper {
    margin: 8px 0;
}

.post-image-wrapper.additional-image {
    margin-top: 4px;
}

.post-image-wrapper img {
    border-radius: 8px;
}

.post-image-wrapper:hover img {
    opacity: 0.95;
}

/* PROMOCJE */
.promotion-slide {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 1;
    margin: 10px auto;
    box-sizing: border-box;
}

/* Desktop - minimalna szerokość tylko na większych ekranach */
@media (min-width: 1200px) {
    .promotion-slide {
        min-width: 1200px;
        min-height: 400px; /* min-height tylko na desktop */
    }
}

/* Container dla promocji aby centrować */
.bloobkit-slider[data-items="1"] .promotion-slide {
    margin: 50px auto 10px auto;
    max-width: 100%;
}

.promotion-element {
    position: absolute;
    opacity: 0;
    transform: translateX(-100%);
    transition: all 0.5s ease;
}

.promotion-element.animated {
    opacity: 1;
    transform: translateX(0);
}

.promotion-element.element-text {
    white-space: nowrap;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

.promotion-element.element-button {
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: none;
    outline: none;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.promotion-element.element-button:hover {
    transform: scale(1.05);
}

.promotion-element.element-image {
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.promotion-element.element-image img {
    display: none;
}

/* Animacje promocji */
@keyframes promotionFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes promotionSlideInLeft {
    from { opacity: 0; transform: translateX(-100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes promotionSlideInRight {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes promotionSlideInUp {
    from { opacity: 0; transform: translateY(100%); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes promotionSlideInDown {
    from { opacity: 0; transform: translateY(-100%); }
    to { opacity: 1; transform: translateY(0); }
}

/* Google Fonts na frontendzie */
.promotion-element[style*="'Open Sans'"] { font-family: 'Open Sans', sans-serif !important; }
.promotion-element[style*="'Roboto'"] { font-family: 'Roboto', sans-serif !important; }
.promotion-element[style*="'Lato'"] { font-family: 'Lato', sans-serif !important; }
.promotion-element[style*="'Montserrat'"] { font-family: 'Montserrat', sans-serif !important; }
.promotion-element[style*="'Poppins'"] { font-family: 'Poppins', sans-serif !important; }
.promotion-element[style*="'Source Sans Pro'"] { font-family: 'Source Sans Pro', sans-serif !important; }
.promotion-element[style*="'Nunito'"] { font-family: 'Nunito', sans-serif !important; }
.promotion-element[style*="'Inter'"] { font-family: 'Inter', sans-serif !important; }
.promotion-element[style*="'Playfair Display'"] { font-family: 'Playfair Display', serif !important; }
.promotion-element[style*="'Merriweather'"] { font-family: 'Merriweather', serif !important; }
.promotion-element[style*="'Dancing Script'"] { font-family: 'Dancing Script', cursive !important; }
.promotion-element[style*="'Pacifico'"] { font-family: 'Pacifico', cursive !important; }
.promotion-element[style*="'Fredoka One'"] { font-family: 'Fredoka One', cursive !important; }
.promotion-element[style*="'Bebas Neue'"] { font-family: 'Bebas Neue', cursive !important; }
.promotion-element[style*="'Oswald'"] { font-family: 'Oswald', sans-serif !important; }
.promotion-element[style*="'Comfortaa'"] { font-family: 'Comfortaa', cursive !important; }
.promotion-element[style*="'PT Sans'"] { font-family: 'PT Sans', sans-serif !important; }
.promotion-element[style*="'Fira Sans'"] { font-family: 'Fira Sans', sans-serif !important; }
.promotion-element[style*="'Ubuntu'"] { font-family: 'Ubuntu', sans-serif !important; }
.promotion-element[style*="'Work Sans'"] { font-family: 'Work Sans', sans-serif !important; }

/* Modal treści promocji na frontendzie */
.promotion-content-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.promotion-content-modal.show {
    opacity: 1;
}

.promotion-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.promotion-modal-dialog {
    position: relative;
    max-width: 600px;
    margin: 50px auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    max-height: calc(100vh - 100px);
    overflow-y: auto;
}

.promotion-content-modal.show .promotion-modal-dialog {
    transform: translateY(0);
}

.promotion-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px 8px 0 0;
}

.promotion-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.promotion-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    color: #666;
    transition: color 0.2s ease;
}

.promotion-modal-close:hover {
    color: #000;
}

.promotion-modal-body {
    padding: 25px;
    line-height: 1.6;
}

.promotion-modal-body h1,
.promotion-modal-body h2,
.promotion-modal-body h3,
.promotion-modal-body h4,
.promotion-modal-body h5,
.promotion-modal-body h6 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #333;
}

.promotion-modal-body p {
    margin-bottom: 15px;
    color: #555;
}

.promotion-modal-body img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
}

.promotion-modal-body ul,
.promotion-modal-body ol {
    margin-bottom: 15px;
    padding-left: 25px;
}

.promotion-modal-body blockquote {
    border-left: 4px solid #0073aa;
    padding-left: 15px;
    margin: 15px 0;
    color: #666;
    font-style: italic;
}

.promotion-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #eee;
    background: #f8f9fa;
    text-align: right;
    border-radius: 0 0 8px 8px;
}

.promotion-modal-close-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s ease;
}

.promotion-modal-close-btn:hover {
    background: #005a87;
}

/* Responsywność modala */
@media (max-width: 768px) {
    .promotion-modal-dialog {
        margin: 20px;
        max-width: none;
        max-height: calc(100vh - 40px);
    }
    
    .promotion-modal-header,
    .promotion-modal-body,
    .promotion-modal-footer {
        padding: 15px 20px;
    }
    
    .promotion-modal-header h3 {
        font-size: 18px;
    }
}

@keyframes promotionBounceInRight {
    0% { opacity: 0; transform: translateX(100%); }
    60% { opacity: 1; transform: translateX(-25%); }
    75% { transform: translateX(10%); }
    90% { transform: translateX(-5%); }
    100% { opacity: 1; transform: translateX(0); }
}

@keyframes promotionJello {
    0%, 100% { transform: translateX(0px); }
    10% { transform: skewX(-12.5deg) skewY(-12.5deg); }
    20% { transform: skewX(6.25deg) skewY(6.25deg); }
    30% { transform: skewX(-3.125deg) skewY(-3.125deg); }
    40% { transform: skewX(1.5625deg) skewY(1.5625deg); }
    50% { transform: skewX(-0.78125deg) skewY(-0.78125deg); }
    60% { transform: skewX(0.390625deg) skewY(0.390625deg); }
    70% { transform: skewX(-0.1953125deg) skewY(-0.1953125deg); }
}

@keyframes promotionBounceIn {
    0% { opacity: 0; transform: scale3d(0.3, 0.3, 0.3); }
    20% { transform: scale3d(1.1, 1.1, 1.1); }
    40% { transform: scale3d(0.9, 0.9, 0.9); }
    60% { opacity: 1; transform: scale3d(1.03, 1.03, 1.03); }
    80% { transform: scale3d(0.97, 0.97, 0.97); }
    100% { opacity: 1; transform: scale3d(1, 1, 1); }
}

@keyframes promotionZoomIn {
    from { opacity: 0; transform: scale(0); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes promotionZoomOut {
    from { opacity: 0; transform: scale(2); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes promotionBounceInDown {
    0%, 60%, 75%, 90%, 100% {
        transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    0% { opacity: 0; transform: translate3d(0, -3000px, 0); }
    60% { opacity: 1; transform: translate3d(0, 25px, 0); }
    75% { transform: translate3d(0, -10px, 0); }
    90% { transform: translate3d(0, 5px, 0); }
    100% { transform: none; }
}

@keyframes promotionBounceInLeft {
    0%, 60%, 75%, 90%, 100% {
        transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    0% { opacity: 0; transform: translate3d(-3000px, 0, 0); }
    60% { opacity: 1; transform: translate3d(25px, 0, 0); }
    75% { transform: translate3d(-10px, 0, 0); }
    90% { transform: translate3d(5px, 0, 0); }
    100% { transform: none; }
}

@keyframes promotionBounceInRight {
    0%, 60%, 75%, 90%, 100% {
        transition-timing-function: cubic-bezier(0.215, 0.610, 0.355, 1.000);
    }
    0% { opacity: 0; transform: translate3d(3000px, 0, 0); }
    60% { opacity: 1; transform: translate3d(-25px, 0, 0); }
    75% { transform: translate3d(10px, 0, 0); }
    90% { transform: translate3d(-5px, 0, 0); }
    100% { transform: none; }
}

@keyframes promotionRotateIn {
    0% { transform-origin: center; transform: rotate3d(0, 0, 1, -200deg); opacity: 0; }
    100% { transform-origin: center; transform: none; opacity: 1; }
}

@keyframes promotionFlipInX {
    0% { transform: perspective(400px) rotate3d(1, 0, 0, 90deg); opacity: 0; }
    40% { transform: perspective(400px) rotate3d(1, 0, 0, -20deg); }
    60% { transform: perspective(400px) rotate3d(1, 0, 0, 10deg); opacity: 1; }
    80% { transform: perspective(400px) rotate3d(1, 0, 0, -5deg); }
    100% { transform: perspective(400px); opacity: 1; }
}

@keyframes promotionFlipInY {
    0% { transform: perspective(400px) rotate3d(0, 1, 0, 90deg); opacity: 0; }
    40% { transform: perspective(400px) rotate3d(0, 1, 0, -20deg); }
    60% { transform: perspective(400px) rotate3d(0, 1, 0, 10deg); opacity: 1; }
    80% { transform: perspective(400px) rotate3d(0, 1, 0, -5deg); }
    100% { transform: perspective(400px); opacity: 1; }
}

@keyframes promotionLightSpeedIn {
    0% { transform: translate3d(100%, 0, 0) skewX(-30deg); opacity: 0; }
    60% { transform: skewX(20deg); opacity: 1; }
    80% { transform: skewX(-5deg); opacity: 1; }
    100% { transform: none; opacity: 1; }
}

@keyframes promotionRollIn {
    0% { opacity: 0; transform: translate3d(-100%, 0, 0) rotate3d(0, 0, 1, -120deg); }
    100% { opacity: 1; transform: none; }
}

@keyframes promotionPulse {
    0% { transform: scale3d(1, 1, 1); }
    50% { transform: scale3d(1.05, 1.05, 1.05); }
    100% { transform: scale3d(1, 1, 1); }
}

@keyframes promotionShake {
    0%, 100% { transform: translate3d(0, 0, 0); }
    10%, 30%, 50%, 70%, 90% { transform: translate3d(-10px, 0, 0); }
    20%, 40%, 60%, 80% { transform: translate3d(10px, 0, 0); }
}

@keyframes promotionSwing {
    20% { transform: rotate3d(0, 0, 1, 15deg); }
    40% { transform: rotate3d(0, 0, 1, -10deg); }
    60% { transform: rotate3d(0, 0, 1, 5deg); }
    80% { transform: rotate3d(0, 0, 1, -5deg); }
    100% { transform: rotate3d(0, 0, 1, 0deg); }
}

@keyframes promotionTada {
    0% { transform: scale3d(1, 1, 1); }
    10%, 20% { transform: scale3d(.9, .9, .9) rotate3d(0, 0, 1, -3deg); }
    30%, 50%, 70%, 90% { transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg); }
    40%, 60%, 80% { transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg); }
    100% { transform: scale3d(1, 1, 1); }
}

@keyframes promotionWobble {
    0% { transform: none; }
    15% { transform: translate3d(-25%, 0, 0) rotate3d(0, 0, 1, -5deg); }
    30% { transform: translate3d(20%, 0, 0) rotate3d(0, 0, 1, 3deg); }
    45% { transform: translate3d(-15%, 0, 0) rotate3d(0, 0, 1, -3deg); }
    60% { transform: translate3d(10%, 0, 0) rotate3d(0, 0, 1, 2deg); }
    75% { transform: translate3d(-5%, 0, 0) rotate3d(0, 0, 1, -1deg); }
    100% { transform: none; }
}

@keyframes promotionHeartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

.promotion-element[data-animation*="fadeIn"] {
    animation-name: promotionFadeIn;
}

.promotion-element[data-animation*="slideIn"] {
    animation-name: promotionSlideInLeft;
}

.promotion-element[data-animation*="zoomIn"] {
    animation-name: promotionZoomIn;
    animation-duration: 0.8s;
    animation-fill-mode: both;
}

/* RESPONSIVE dla promocji - czyste wysokości bez skalowania */

/* Średnie-duże ekrany (1200px - 1400px) */
@media (max-width: 1400px) and (min-width: 1201px) {
    .promotion-slide {
        height: 450px;
    }
}

/* Średnie ekrany (992px - 1200px) */
@media (max-width: 1200px) and (min-width: 993px) {
    .promotion-slide {
        height: 400px;
    }
}

/* Małe ekrany/tablety poziomo (768px - 992px) */
@media (max-width: 992px) and (min-width: 769px) {
    .promotion-slide {
        height: 350px;
    }
}

/* Tablety pionowo/małe laptopy (576px - 768px) */
@media (max-width: 768px) and (min-width: 577px) {
    .promotion-slide {
        width: 100%;
        max-width: 100vw;
        height: 350px;
        margin: 20px auto;
        overflow: hidden;
        background-size: 100% 350px; /* Tło tylko na wysokość kontenera */
    }
}

/* Małe telefony (320px - 576px) */
@media (max-width: 576px) {
    .promotion-slide {
        width: 100%;
        max-width: 100vw;
        height: 250px;
        margin: 10px auto;
        overflow: hidden;
        background-size: 100% 250px; /* Tło tylko na wysokość kontenera */
    }
}

/* Bardzo małe telefony (poniżej 320px) */
@media (max-width: 319px) {
    .promotion-slide {
        width: 100%;
        max-width: 100vw;
        height: 200px;
        margin: 10px auto;
        overflow: hidden;
        background-size: 100% 200px; /* Tło tylko na wysokość kontenera */
    }
}

/* Dodatkowe styles responsywne dla elementów promocji */
.promotion-element.mobile-responsive {
    max-width: calc(100% - 20px) !important;
    word-wrap: break-word !important;
    overflow-wrap: break-word !important;
}

.promotion-element.mobile-responsive.element-text {
    white-space: normal !important;
    text-align: center !important;
    line-height: 1.3 !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.8) !important;
    font-weight: bold !important;
}

.promotion-element.mobile-responsive.element-button {
    min-height: 44px !important;
    white-space: normal !important;
    line-height: 1.3 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3) !important;
    border: 2px solid rgba(255,255,255,0.3) !important;
    font-weight: bold !important;
}

/* Elementy z linkami mają cursor pointer */
.promotion-element[data-element-link] {
    cursor: pointer !important;
}

.promotion-element[data-element-link]:hover {
    opacity: 0.9;
}

/* Slajdy promocji z linkami mają cursor pointer gdy nie są nad elementem z linkiem */
.promotion-slide[data-promotion-link] {
    cursor: pointer;
}

.promotion-slide[data-promotion-link]:hover {
    opacity: 0.95;
} 