

/* 1. Main Flex Container */
.buynow-modern-image-container {
    display: flex;
    gap: 14px;
    background: transparent;
    padding: 10px 0;
    align-items: stretch;
    max-width: 700px;
    margin: 0 auto;
}

/* 2. Sidebar Actions */
.buynow-image-sidebar {
    display: flex;
    flex-direction: column;
    gap: 14px;
    /*flex: 0 0 220px;*/
}

.buynow-image-action-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #fff;
    border: 1px solid var(--bn-border);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
    margin: 0;
    height: 75px;
    box-sizing: border-box;
}

.buynow-image-action-card:hover {
    background: var(--bn-bg-hover);
    border-color: #d0d5d8;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.action-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f0f2f5;
    border-radius: 6px;
}

.ai-icon img { height: 22px; width: auto; }

.action-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.action-text strong { font-size: 14px; color: var(--bn-text-main); display: block; }
.action-text span { font-size: 11px; color: var(--bn-text-muted); margin-top: 2px; }

/* 3. The Drop Area (Empty State) */
.buynow-image-main-preview {
    flex: 1;
    position: relative;
    border: 1px dashed #eef0f2; /* Default border */
    border-radius: 12px;
    background: #fafafa;
    display: flex;
    justify-content: center;
    align-items: center;
    /*min-height: 270px;*/
    transition: all 0.3s ease;
}

.buynow-image-preview-display {
    max-width: 90%;
    max-height: 300px; /* Placeholder size */
    border-radius: 12px;
    object-fit: contain;
    transition: all 0.3s ease;
}

/* 4. The Center-Bottom Label */
.buynow-image-drop-label-fixed {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 5;
    font-size: 13px;
    font-weight: 600;
    color: var(--bn-text-muted);
    background: rgba(255, 255, 255, 0.85);
    padding: 6px 16px;
    border-radius: 20px;
    pointer-events: none;
    border: 1px solid rgba(0,0,0,0.05);
    white-space: nowrap;
}

.buynow-modern-image-container.has-image .buynow-image-main-preview {
    background: #ffffff !important; /* Force white background */
    border: none !important;       /* Remove dashed border */
    overflow: visible;             /* Let shadows show through */
}

.buynow-modern-image-container.has-image .buynow-image-preview-display {
    max-width: 95%;           /* Requirement: max 95% width */
    max-height: 350px;        /* Requirement: max 350px height */
    border: 1px solid #eef0f2;
    border-radius: 16px;       /* The rounded frame */
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 4px;
}

.buynow-modern-image-container.has-image .buynow-image-drop-label-fixed {
    display: none; /* Hide drop text */
}

/* 6. Drag & Drop Hover States */
.buynow-image-main-preview.buynow-image-dragover {
    border: 2px solid var(--bn-accent) !important;
    background: #f0f7ff !important;
}

/* 7. Mobile View */
@media (max-width: 768px) {
    .buynow-modern-image-container {
        flex-direction: column;
    }
    .buynow-image-sidebar {
        flex: none;
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        width: 100%;
    }
}
