/**
 * BS Order Image Attachments - Checkout Styles
 */

.bsoia-checkout-upload-section {
    margin: 20px 0 30px;
    padding: 20px;
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.bsoia-checkout-upload-section h3 {
    margin: 0 0 15px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #2271b1;
    font-size: 20px;
    color: #333;
}

.bsoia-upload-notice {
    margin-bottom: 20px;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 3px;
}

.bsoia-upload-notice p {
    margin: 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
}

.bsoia-product-upload-group {
    margin-bottom: 25px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.bsoia-product-title {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.bsoia-required-count {
    color: #666;
    font-weight: normal;
    font-size: 14px;
}

.bsoia-upload-area {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.bsoia-upload-slot {
    position: relative;
}

.bsoia-upload-dropzone {
    position: relative;
    min-height: 200px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background: #fafafa;
    transition: all 0.3s ease;
}

.bsoia-upload-dropzone:hover {
    border-color: #2271b1;
    background: #f0f0f0;
}

.bsoia-upload-dropzone.bsoia-dragover {
    border-color: #2271b1;
    background: #e8f4f8;
    border-style: solid;
}

.bsoia-uploaded .bsoia-upload-dropzone {
    border-color: #46b450;
    background: #f0f8f1;
}

.bsoia-file-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.bsoia-dropzone-content {
    padding: 20px;
    text-align: center;
    cursor: pointer;
}

.bsoia-upload-icon {
    display: block;
    font-size: 48px;
    margin-bottom: 10px;
}

.bsoia-upload-text {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.bsoia-upload-hint {
    display: block;
    font-size: 12px;
    color: #666;
}

.bsoia-upload-progress {
    padding: 20px;
    text-align: center;
}

.bsoia-progress-bar {
    width: 100%;
    height: 20px;
    background: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}

.bsoia-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1 0%, #0073aa 100%);
    transition: width 0.3s ease;
    border-radius: 10px;
}

.bsoia-progress-text {
    display: block;
    font-size: 14px;
    color: #666;
}

.bsoia-upload-preview {
    padding: 10px;
    text-align: center;
}

.bsoia-preview-image {
    max-width: 100%;
    max-height: 150px;
    border-radius: 4px;
    margin-bottom: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.bsoia-filename {
    display: block;
    font-size: 12px;
    color: #666;
    word-break: break-word;
    margin-bottom: 10px;
}

.bsoia-remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
    padding: 0;
}

.bsoia-remove-image:hover {
    background: #c82333;
}

.bsoia-upload-error {
    padding: 15px;
    text-align: center;
    color: #721c24;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    font-size: 13px;
}

.bsoia-upload-summary {
    margin-top: 20px;
    padding: 15px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
}

.bsoia-upload-summary strong {
    color: #2271b1;
    font-size: 18px;
}

/* Responsive */
@media (max-width: 768px) {
    .bsoia-upload-area {
        grid-template-columns: 1fr;
    }
}
