/**
 * Swift Commerce Pro - Frontend Styles
 */

/* Conditional Logic Hidden Fields */
.swift-commerce-hidden {
    display: none !important;
}

/* File Upload Field */
.form-row input[type="file"] {
    padding: 10px;
    border: 2px dashed #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.form-row input[type="file"]:hover {
    border-color: #0073aa;
}

.form-row input[type="file"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.form-row .field-description {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

/* Datepicker & Timepicker */
.swift-commerce-datepicker,
.swift-commerce-timepicker {
    cursor: pointer;
}

/* Multiselect */
.swift-commerce-multiselect {
    min-height: 100px;
}

/* Checkbox Group */
.swift-commerce-checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px 0;
}

.swift-commerce-checkbox-group .checkbox-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.swift-commerce-checkbox-group .checkbox-option input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
}

/* Heading Field */
.swift-commerce-heading-field {
    width: 100%;
    margin: 20px 0 10px;
    padding: 0;
}

.swift-commerce-heading-field .swift-commerce-heading {
    margin: 0;
    padding: 0;
    font-weight: 600;
    color: #333;
}

/* Paragraph Field */
.swift-commerce-paragraph-field {
    width: 100%;
    margin: 10px 0;
}

.swift-commerce-paragraph-field .swift-commerce-paragraph {
    margin: 0;
    padding: 10px 15px;
    background: #f5f5f5;
    border-left: 3px solid #0073aa;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

/* Product Bundles */
.swift-commerce-bundle-items {
    margin: 20px 0;
    padding: 0;
    list-style: none;
}

.swift-commerce-bundle-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    margin-bottom: 10px;
    background: #fff;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    transition: box-shadow 0.3s ease;
}

.swift-commerce-bundle-item:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.swift-commerce-bundle-item-image {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
}

.swift-commerce-bundle-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 4px;
}

.swift-commerce-bundle-item-details {
    flex: 1;
}

.swift-commerce-bundle-item-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.swift-commerce-bundle-item-price {
    color: #666;
    font-size: 14px;
}

.swift-commerce-bundle-item-quantity {
    display: flex;
    align-items: center;
    gap: 5px;
}

.swift-commerce-bundle-item-quantity input {
    width: 60px;
    text-align: center;
}

.swift-commerce-bundle-total {
    margin-top: 20px;
    padding: 15px;
    background: #f5f5f5;
    border-radius: 6px;
    text-align: right;
}

.swift-commerce-bundle-total-label {
    font-size: 14px;
    color: #666;
}

.swift-commerce-bundle-total-price {
    font-size: 24px;
    font-weight: 700;
    color: #333;
}

.swift-commerce-bundle-savings {
    color: #46b450;
    font-size: 14px;
    margin-top: 5px;
}


/* Currency Switcher Pro */
.swift-commerce-currency-geo-detected {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
}

.swift-commerce-currency-auto-rate {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #999;
}

.swift-commerce-currency-auto-rate .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .swift-commerce-bundle-item {
        flex-wrap: wrap;
    }
    
    .swift-commerce-bundle-item-image {
        width: 50px;
        height: 50px;
    }
}

