/**
 * SCDEV Product Composer Styles
 * 
 * @package SCDEV_Composer
 * @version 1.0.0
 */

/* ==========================================================================
   Product Composer Specific Styles
   ========================================================================== */

.scdev-product-composer {
    max-width: 900px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* Price Input */
.price-input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.currency-symbol {
    position: absolute;
    left: 12px;
    font-weight: 600;
    color: #666;
}

.product-price-input {
    padding-left: 28px !important;
}

/* Product Gallery */
.product-gallery {
    position: relative;
}

.btn-add-image {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-add-image:hover {
    background: #135e96;
}

.btn-add-image .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.gallery-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.gallery-image {
    position: relative;
    aspect-ratio: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.gallery-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-gallery-image {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 28px;
    height: 28px;
    padding: 0;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s;
}

.remove-gallery-image:hover {
    background: #d63638;
    border-color: #d63638;
}

.remove-gallery-image:hover .dashicons {
    color: #fff;
}

.remove-gallery-image .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    color: #d63638;
}

/* Digital File Upload */
.file-upload-container {
    position: relative;
}

.btn-upload-file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.btn-upload-file:hover {
    background: #135e96;
}

.btn-upload-file .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
}

.file-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 15px;
    padding: 12px 15px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.file-name {
    font-size: 14px;
    color: #1e1e1e;
}

.btn-remove-file {
    width: 28px;
    height: 28px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-remove-file:hover .dashicons {
    color: #d63638;
}

.btn-remove-file .dashicons {
    width: 20px;
    height: 20px;
    font-size: 20px;
    color: #666;
}

/* Product Type Specific */
.digital-only {
    display: none;
}

/* Notice */
.notice {
    padding: 12px 15px;
    margin: 15px 0;
    border-left: 4px solid #72aee6;
    background: #f0f6fc;
}

.notice-warning {
    border-left-color: #dba617;
    background: #fcf9e8;

/* No duplicate CSS rules found in this file (first 200 lines). */
}

.notice p {
    margin: 0;
    font-size: 14px;
    color: #1e1e1e;
}

/* Responsive */
@media (max-width: 768px) {
    .scdev-product-composer {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .gallery-preview {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
        gap: 10px;
    }
}
