/* Adwell Smart Animation Switcher - Responsive container with lazy loading transitions */

.adwell-smart-animation-wrapper {
    display: flex;
    width: 100%;
    position: relative;
}

/* Alignment options */
.adwell-smart-animation-wrapper.align-left {
    justify-content: flex-start;
}

.adwell-smart-animation-wrapper.align-center {
    justify-content: center;
}

.adwell-smart-animation-wrapper.align-right {
    justify-content: flex-end;
}

.adwell-smart-animation-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 100%;
    isolation: isolate;
}

.adwell-smart-animation-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    transform: translateZ(0);
    will-change: opacity;
    backface-visibility: hidden;
    transition: opacity 0.4s ease-in-out;
}

.adwell-smart-animation-img.adwell-animation-layer {
    position: absolute;
    top: 0;
    left: 0;
}

.adwell-smart-animation-img:not(.adwell-loaded) {
    opacity: 1;
}

.adwell-smart-animation-img.adwell-loaded {
    opacity: 1;
}

.adwell-debug-overlay {
    position: absolute;
    top: 0;
    left: 0;
    padding: 4px 8px;
    background: rgba(255, 0, 0, 0.8);
    color: #fff;
    font-size: 11px;
    font-family: monospace;
    font-weight: bold;
    z-index: 9999;
    pointer-events: none;
    border-radius: 0 0 4px 0;
}

.adwell-debug .adwell-debug-overlay {
    display: block;
}

.elementor-element-edit-mode .adwell-smart-animation-container {
    min-height: 50px;
    background: #f5f5f5;
}

.elementor-element-edit-mode .adwell-smart-animation-container:before {
    content: "Adwell Smart Animation";
    display: block;
    padding: 10px;
    text-align: center;
    color: #888;
    font-size: 12px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    white-space: nowrap;
    pointer-events: none;
}

.elementor-element-edit-mode .adwell-smart-animation-img {
    position: relative;
    z-index: 1;
}

@media print {
    .adwell-smart-animation-container {
        page-break-inside: avoid;
    }
    .adwell-debug-overlay {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .adwell-smart-animation-img {
        transition: none;
    }
}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .adwell-smart-animation-img {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}
