/* Live Product Options Pro Frontend Styles */

.lpop-customize-section {
    margin: 20px 0;
    padding: 15px 0;
    border-top: 1px solid #e1e1e1;
}

.lpop-customize-button {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 2px 4px rgba(0,115,170,0.3);
}

.lpop-customize-button:hover {
    background: #005177;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,115,170,0.4);
    color: #fff;
}

.lpop-customize-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.3);
}

.lpop-customize-button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.lpop-customize-button .lpop-loading {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #fff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: lpop-spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes lpop-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Customization notice */
.lpop-customization-notice {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 12px;
    margin: 15px 0;
    font-size: 14px;
    color: #495057;
}

.lpop-customization-notice .lpop-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 8px;
    vertical-align: middle;
}

/* Cart item customization display */
.lpop-cart-customization {
    background: #f9f9f9;
    border: 1px solid #e1e1e1;
    border-radius: 4px;
    padding: 10px;
    margin: 10px 0;
    font-size: 13px;
}

.lpop-cart-customization-title {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}

.lpop-cart-customization-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.lpop-cart-customization-label {
    font-weight: 500;
    color: #666;
}

.lpop-cart-customization-value {
    color: #333;
}

.lpop-cart-additional-price {
    color: #0073aa;
    font-weight: 600;
}

/* Cart Display Styles */
.lpop-customization-badge {
    background: #0073aa;
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: bold;
    margin-left: 8px;
    vertical-align: middle;
}

.lpop-preview-link {
    color: #0073aa;
    text-decoration: none;
    font-size: 12px;
    margin-left: 8px;
    padding: 2px 6px;
    border: 1px solid #0073aa;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.lpop-preview-link:hover {
    background: #0073aa;
    color: white;
    text-decoration: none;
}

.lpop-file-preview-link {
    color: #0073aa;
    text-decoration: none;
    font-size: 11px;
    margin-left: 5px;
    padding: 1px 4px;
    border: 1px solid #0073aa;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.lpop-file-preview-link:hover {
    background: #0073aa;
    color: white;
    text-decoration: none;
}

.lpop-color-preview {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #000;
    border: 1px solid #ddd;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 5px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.lpop-file-url-link {
    color: #28a745;
    text-decoration: none;
    font-size: 11px;
    margin-left: 5px;
    padding: 1px 4px;
    border: 1px solid #28a745;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.lpop-file-url-link:hover {
    background: #28a745;
    color: white;
    text-decoration: none;
}

.lpop-design-preview-link {
    color: #17a2b8;
    text-decoration: none;
    font-size: 12px;
    margin-left: 8px;
    padding: 2px 6px;
    border: 1px solid #17a2b8;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.lpop-design-preview-link:hover {
    background: #17a2b8;
    color: white;
    text-decoration: none;
}

/* Enhanced cart item customization details */
.woocommerce-cart-item__data .lpop-customization-details {
    margin-top: 10px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #0073aa;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.woocommerce-cart-item__data .lpop-customization-details h4 {
    margin: 0 0 15px 0;
    color: #0073aa;
    font-size: 16px;
    font-weight: 600;
}

.woocommerce-cart-item__data .lpop-customization-details dt {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.woocommerce-cart-item__data .lpop-customization-details dd {
    margin-bottom: 10px;
    color: #555;
    line-height: 1.4;
}

.lpop-field-detail {
    margin-bottom: 12px;
    padding: 8px;
    background: white;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.lpop-field-detail strong {
    color: #495057;
    font-weight: 600;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .lpop-customize-button {
        width: 100%;
        padding: 15px;
        font-size: 18px;
    }
    
    .lpop-cart-customization-item {
        flex-direction: column;
        margin-bottom: 10px;
    }
    
    .lpop-cart-customization-label {
        margin-bottom: 3px;
    }

    /* Responsive cart display */
    .lpop-customization-badge {
        display: block;
        margin: 5px 0 0 0;
        text-align: center;
    }
    
    .lpop-preview-link {
        display: block;
        margin: 5px 0 0 0;
        text-align: center;
    }
}

/* Color Picker Styles */
.lpop-color-picker-wrapper {
    border: 1px solid #e1e1e1;
    padding: 15px;
    border-radius: 4px;
}

.lpop-predefined-colors-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 10px;
    margin-bottom: 15px;
}

.lpop-color-swatch {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.lpop-color-swatch:hover {
    transform: scale(1.1);
    border-color: #0073aa;
}

.lpop-color-swatch.selected {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px #0073aa;
}

.lpop-selected-color-display {
    display: flex;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e1e1e1;
}

.lpop-selected-color-label {
    font-weight: 600;
    margin-right: 10px;
}

.lpop-selected-color-preview {
    width: 24px;
    height: 24px;
    border-radius: 4px;
    margin-right: 10px;
    border: 1px solid #ccc;
}

.lpop-selected-color-value {
    font-family: monospace;
}
