﻿body {
}
.product-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border: 1px solid #eee;
    padding: 10px;
    background-color: #fff;
}

.config-section {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

    .config-section h3 {
        margin-bottom: 15px;
        color: #333;
        font-weight: 600;
    }

.form-row {
    margin-bottom: 15px;
}

.preview-box {
    border: 1px solid #ddd;
    padding: 15px;
    background-color: #f9f9f9;
    margin-top: 20px;
}

.price-summary {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.price-summary h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: #333;
    font-weight: 600;
}

.price-summary table {
    margin-bottom: 10px;
}

.price-summary .table td {
    border-top: 1px solid #ddd;
    padding: 8px;
}

.price-summary .table tr:last-child td {
    font-weight: bold;
    font-size: 1.1em;
    border-top: 2px solid #ddd;
}

.color-swatch {
    width: 30px;
    height: 30px;
    display: inline-block;
    margin-right: 5px;
    border: 1px solid #ddd;
    cursor: pointer;
}

    .color-swatch.selected {
        border: 2px solid #000;
    }

.text-preview {
    padding: 15px;
    border: 1px dashed #ccc;
    margin-top: 10px;
    min-height: 80px;
    font-family: Arial;
    background-color: #fff;
}

.action-buttons {
    margin-top: 30px;
}

    .action-buttons .btn {
        margin-right: 10px;
        padding: 10px 20px;
        font-weight: 600;
    }

.info-box {
    background-color: #e8f4f8;
    border-left: 4px solid #5bc0de;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 4px;
}

    .info-box h4 {
        margin-top: 0;
        margin-bottom: 10px;
        color: #31708f;
    }

.alert-warning {
    background-color: #fff8e1;
    border-left: 4px solid #ffc107;
    color: #8a6d3b;
}

.requirement-note {
    font-style: italic;
    color: #666;
    margin-top: 5px;
    font-size: 0.9em;
}
/* Custom styles for radio buttons */
.color-options label {
    margin-right: 15px;
    display: inline-block;
    vertical-align: middle;
}
/* Tooltip styles */
.tooltip-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-color: #6c757d;
    color: white;
    border-radius: 50%;
    text-align: center;
    line-height: 16px;
    font-size: 12px;
    cursor: help;
    margin-left: 5px;
}

.validation-error {
    color: #dc3545;
    font-size: 0.9em;
    margin-top: 5px;
}

.quantity-input-group {
    display: flex;
    align-items: center;
}

    .quantity-input-group select {
        flex: 0 0 auto;
        width: auto;
        margin-right: 10px;
    }

    .quantity-input-group input {
        flex: 1 1 auto;
    }

.quantity-warning {
    color: #dc3545;
    margin-top: 10px;
    display: none;
}

.shipping-calculation {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #dee2e6;
}
.color-dropdown-container {
    position: relative;
}

.color-dropdown-selected {
    display: flex;
    align-items: center;
    cursor: pointer;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
    background-color: #fff;
}

    .color-dropdown-selected:hover {
        border-color: #adb5bd;
    }

.color-swatch {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    display: inline-block;
    margin-right: 8px;
    border: 1px solid rgba(0,0,0,0.2);
}

.color-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    width: 100%;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 0.25rem;
    max-height: 300px;
    overflow-y: auto;
}

    .color-dropdown-menu.show {
        display: block;
    }

.color-dropdown-item {
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

    .color-dropdown-item:hover {
        color: #16181b;
        text-decoration: none;
        background-color: #f8f9fa;
    }

    .color-dropdown-item.active {
        color: #fff;
        text-decoration: none;
        background-color: #0d6efd;
    }

.color-dropdown-toggle {
    margin-left: auto;
}

/* Hidden original select for form submission */
.color-select-hidden {
    position: absolute;
    left: -9999px;
}

/* If using color attribute data from the API */
.color-swatch[data-custom-color=true] {
    background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0), linear-gradient(45deg, #f0f0f0 25%, transparent 25%, transparent 75%, #f0f0f0 75%, #f0f0f0);
    background-size: 10px 10px;
    background-position: 0 0, 5px 5px;
}
/* Dropzone Custom Styling */
.dropzone {
    border: 2px dashed #0087F7;
    border-radius: 4px;
    background-color: #f8f9fa;
    min-height: 150px;
    padding: 20px;
    transition: all 0.3s ease;
    cursor: pointer !important;
}

    .dropzone:hover {
        background-color: #e9ecef;
    }

    .dropzone.dz-drag-hover {
        border-color: #28a745;
        background-color: rgba(40, 167, 69, 0.1);
        cursor: copy !important;
    }

    .dropzone .dz-message {
        text-align: center;
        margin: 2em 0;
    }

    .dropzone .dz-preview {
        position: relative;
        display: inline-block;
        vertical-align: top;
        margin: 16px;
        min-height: 100px;
    }

        .dropzone .dz-preview .dz-image {
            border-radius: 4px;
            overflow: hidden;
            width: 120px;
            height: 120px;
            position: relative;
            display: block;
            z-index: 10;
        }

        .dropzone .dz-preview .dz-success-mark,
        .dropzone .dz-preview .dz-error-mark {
            pointer-events: none;
            opacity: 0;
            z-index: 500;
            position: absolute;
            display: block;
            top: 50%;
            left: 50%;
            margin-left: -27px;
            margin-top: -27px;
            transition: opacity 0.3s ease;
        }

            .dropzone .dz-preview .dz-success-mark svg,
            .dropzone .dz-preview .dz-error-mark svg {
                display: block;
                width: 54px;
                height: 54px;
            }

        .dropzone .dz-preview .dz-success-mark {
            color: #28a745;
        }

        .dropzone .dz-preview .dz-error-mark {
            color: #dc3545;
        }

        .dropzone .dz-preview.dz-success .dz-success-mark {
            opacity: 1;
        }

        .dropzone .dz-preview.dz-error .dz-error-mark {
            opacity: 1;
        }

        .dropzone .dz-preview .dz-progress {
            opacity: 1;
            z-index: 1000;
            pointer-events: none;
            position: absolute;
            height: 16px;
            left: 50%;
            top: 50%;
            margin-top: -8px;
            width: 80px;
            margin-left: -40px;
            background: rgba(255, 255, 255, 0.9);
            border-radius: 8px;
            overflow: hidden;
        }

            .dropzone .dz-preview .dz-progress .dz-upload {
                background: #28a745;
                display: block;
                position: relative;
                height: 100%;
                width: 0;
                transition: width 300ms ease-in-out;
            }

        .dropzone .dz-preview.dz-success .dz-progress {
            display: none;
        }

        .dropzone .dz-preview.dz-error .dz-progress .dz-upload {
            background: #dc3545;
        }

        .dropzone .dz-preview .dz-remove {
            font-size: 14px;
            text-align: center;
            display: block;
            cursor: pointer;
            border: none;
            margin-top: 4px;
            color: #007bff;
            text-decoration: underline;
        }

            .dropzone .dz-preview .dz-remove:hover {
                text-decoration: underline;
                color: #0056b3;
            }

        .dropzone .dz-preview .dz-error-message {
            pointer-events: none;
            z-index: 1000;
            position: absolute;
            display: block;
            display: none;
            bottom: -10px;
            left: -10px;
            right: -10px;
            background: #dc3545;
            padding: 8px 10px;
            color: white;
            border-radius: 4px;
            font-size: 13px;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .dropzone .dz-preview.dz-error:hover .dz-error-message {
            opacity: 1;
            display: block;
        }

    /* Fix for icon not changing on drag */
    .dropzone * {
        pointer-events: none;
    }

.dropzone {
    pointer-events: all;
}
/* Quote suggestion styling */
.quote-suggestion {
    border-radius: 8px;
}

    .quote-suggestion .alert {
        margin-bottom: 0;
        border: 1px solid #b6d7ff;
        background-color: #f8f9ff;
    }

    .quote-suggestion .btn {
        white-space: nowrap;
        min-width: 120px;
    }

@media (max-width: 768px) {
    .quote-suggestion .d-flex {
        flex-direction: column;
        text-align: center;
    }

    .quote-suggestion .btn {
        margin-top: 10px;
        width: 100%;
    }
}}