.ags-mockup-icon {
    position: absolute;
    bottom: 8px;
    left: 48px;
    width: 32px;
    height: 32px;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    cursor: pointer;
    z-index: 15;
    opacity: 0;
    transition: opacity 0.3s ease, background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.dnd-image-wrapper:hover .ags-mockup-icon {
    opacity: 1;
}

/* FPD/Designer Modu için ikon stili */
.ags-mockup-icon.fpd-mode {
    position: absolute;
    top: auto;
    right: auto;
    bottom: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    opacity: 1;
    background-color: #ffffff;
    border: 1px solid #ccc;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 50%;
}

.ags-mockup-icon.fpd-mode svg {
    fill: #444;
    width: 20px;
    height: 20px;
}

.ags-mockup-icon.fpd-mode:hover {
    background-color: #f0f0f0;
    transform: scale(1.05);
}

.ags-mockup-icon:hover {
    background-color: #0073aa;
}

.ags-mockup-icon svg {
    width: 18px;
    height: 18px;
    fill: white;
}

/* --- Lightbox Genel --- */
.ags-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.95);
    z-index: 2147483647 !important;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
    padding: 20px;
    box-sizing: border-box;
}

.ags-lightbox-container {
    background: #fff;
    padding: 25px;
    border-radius: 8px;
    position: relative;
    max-width: 1200px;
    width: 100%;
    cursor: default;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    transition: opacity 0.25s ease-in-out;
}

.ags-lightbox-overlay.is-initializing .ags-lightbox-container {
    visibility: hidden;
    opacity: 0;
}

.ags-lightbox-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 30px;
    color: #888;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 10;
}

/* Genel Yükleyici */
.ags-global-loader {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1000000;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    width: 250px;
}

.ags-lightbox-overlay.is-initializing .ags-global-loader {
    display: flex;
}

/* Lightbox İçerik */
.ags-lightbox-header {
    text-align: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    flex-shrink: 0;
}

.ags-lightbox-header h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
}

.ags-lightbox-header p {
    margin: 0;
    font-size: 16px;
    color: #666;
}

.ags-mockup-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
    overflow-y: auto;
    padding: 5px;
    min-height: 0;
    flex-grow: 1;
}

.ags-mockup-item {
    text-align: center;
    border: 1px solid #f0f0f0;
    border-radius: 4px;
    padding: 10px;
    background-color: #f9f9f9;
}

.ags-mockup-watermark {
    margin-bottom: 10px;
}

.ags-mockup-watermark p {
    font-weight: bold;
    margin: 0;
    font-size: 16px;
}

/* Canvas Yapısı */
.ags-mockup-image-container {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 4px;
    overflow: hidden;
    background-color: #e9e9e9;
}

.ags-mockup-canvas-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    touch-action: pan-y pinch-zoom;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.ags-mockup-image-container:not(.is-loading) .ags-mockup-canvas-wrapper {
    opacity: 1;
}

.ags-mockup-image-container[data-rendered="true"] .ags-mockup-canvas-wrapper {
    opacity: 1;
}

.ags-mockup-canvas-wrapper canvas {
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
}

/* Mockup Yükleyici */
.ags-mockup-loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(20, 20, 25, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    text-align: center;
    color: #fff;
    border-radius: 4px;
}

.ags-mockup-image-container.is-loading .ags-mockup-loader {
    display: flex;
}

.ags-ai-loader {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 18px;
    position: relative;
}

.ags-ai-loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
    background-size: 200% 100%;
    animation: ags-shimmer 1.2s linear infinite;
}

.ags-mockup-loader p,
.ags-global-loader p {
    margin: 0;
    font-size: 15px;
    font-weight: 500;
    animation: ags-pulse-text 2s ease-in-out infinite;
}

@keyframes ags-shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@keyframes ags-pulse-text {

    0%,
    100% {
        opacity: 0.8;
    }

    50% {
        opacity: 1;
    }
}

/* Renk Seçici Düzeni */
.ags-color-selectors-wrapper {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
    margin-top: auto;
    flex-shrink: 0;
}

.ags-color-selector {
    flex: 1;
    min-width: 0;
}

.ags-color-selector p {
    text-align: center;
    margin: 0 0 10px 0;
    font-weight: 500;
    font-size: 16px;
}

.ags-color-controls {
    display: flex;
    justify-content: center;
}

.ags-color-swatches {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ags-color-swatch {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid #ddd;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ags-color-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px #0073aa;
}

.ags-custom-color {
    position: relative;
    width: 34px;
    height: 34px;
    cursor: pointer;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: conic-gradient(red, yellow, lime, aqua, blue, magenta, red);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ags-custom-color:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px #0073aa;
}

.ags-custom-color input[type="color"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Tasarım Seçici Stilleri */
.ags-design-selector {
    flex: 1;
    min-width: 0;
}

.ags-design-selector p {
    text-align: center;
    margin: 0 0 10px 0;
    font-weight: 500;
    font-size: 16px;
}

.ags-design-controls {
    display: flex;
    justify-content: center;
}

.ags-design-swatches {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.ags-design-swatch {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid #ddd;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background-color: #f0f0f0;
}

.ags-design-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 2px #aaa;
}

.ags-design-swatch.active {
    box-shadow: 0 0 0 3px #0073aa;
}

.ags-design-swatch img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 992px) {
    .ags-mockup-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .ags-mockup-icon {
        opacity: 1;
    }

    .ags-lightbox-container {
        padding: 15px;
    }

    .ags-lightbox-header h2 {
        font-size: 20px;
    }

    .ags-lightbox-header p {
        font-size: 14px;
    }

    .ags-color-selectors-wrapper {
        flex-direction: column;
        gap: 5px;
    }

    .ags-color-selector p,
    .ags-design-selector p {
        font-size: 10px;
        margin-bottom: 3px;
    }

    .ags-color-swatches,
    .ags-design-swatches {
        gap: 8px;
    }

    .ags-color-swatch {
        width: 24px;
        height: 24px;
    }

    .ags-custom-color {
        width: 28px;
        height: 28px;
    }

    .ags-design-swatch {
        width: 32px;
        height: 32px;
    }
}

/* 2D Mockup */
.ags-mockup-bg-2d,
.ags-user-design-2d {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ags-user-design-2d {
    box-sizing: border-box;
}

/* Carousel */
.ags-carousel-wrapper {
    position: relative;
    padding: 5px 40px;
    margin-bottom: 25px;
    flex-grow: 1;
    min-height: 0;
}

.ags-mockup-carousel {
    display: block;
    width: 100%;
}

.ags-mockup-carousel .slick-slide {
    padding: 0 10px;
    box-sizing: border-box;
}

.ags-carousel-wrapper .slick-prev,
.ags-carousel-wrapper .slick-next {
    position: absolute;
    top: 50% !important;
    bottom: auto !important;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    z-index: 20;
    transition: background-color 0.2s ease;
    outline: none;
}

.ags-carousel-wrapper .slick-prev:hover,
.ags-carousel-wrapper .slick-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.ags-carousel-wrapper .slick-prev {
    left: -5px;
}

.ags-carousel-wrapper .slick-next {
    right: -5px;
}

.ags-carousel-wrapper .slick-prev:before,
.ags-carousel-wrapper .slick-next:before {
    font-size: 20px;
    color: white;
    opacity: 1;
}

.ags-mockup-carousel .slick-dots {
    bottom: -30px;
}

.ags-mockup-carousel .slick-dots li button:before {
    font-size: 12px;
    color: #888;
}

.ags-mockup-carousel .slick-dots li.slick-active button:before {
    color: #0073aa;
}

@media (max-width: 768px) {
    .ags-carousel-wrapper {
        padding: 5px 30px;
    }

    .ags-carousel-wrapper .slick-prev {
        left: 0;
    }

    .ags-carousel-wrapper .slick-next {
        right: 0;
    }

    .ags-carousel-wrapper .slick-prev,
    .ags-carousel-wrapper .slick-next {
        width: 30px;
        height: 30px;
    }

    .ags-mockup-watermark p {
        font-size: 11px;
    }

    .ags-mockup-carousel .slick-dots {
        bottom: -60px;
    }
}

/* FPD Toolbar Fix */
fpd-element-toolbar.fpd-smart {
    z-index: 1000000 !important;
}