/*
Theme Name: Flatsome Child
Description: This is a child theme for Flatsome Theme
Author: UX Themes
Template: flatsome
Version: 3.0
*/

/*************** ADD CUSTOM CSS HERE.   ***************/

/* Custom Product Options Container */
.custom-product-options {
    margin: 25px 0;
    padding: 20px;
    background: #fdfdfd;
    border: 1px solid #e1e1e1;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

/* Step Headers */
.custom-step {
    margin-bottom: 30px;
    border-bottom: 1px dashed #eee;
    padding-bottom: 25px;
}

.custom-step:last-child {
    margin-bottom: 0;
    border-bottom: none;
    padding-bottom: 0;
}

.custom-step-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.custom-step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    background: #344b9f;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    border-radius: 50%;
}

.custom-step-name {
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #222;
}

/* Selector Cards Grid */
.custom-selector-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.custom-selector-card {
    flex: 1;
    min-width: 140px;
    position: relative;
    border: 2px solid #e1e1e1;
    border-radius: 8px;
    padding: 14px 10px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    background: #fff;
    user-select: none;
    box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}

.custom-selector-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-selector-card:hover {
    border-color: #344b9f;
    background: #fbfdff;
}

/* Selected state using native CSS :has selector */
.custom-selector-card:has(input[type="radio"]:checked) {
    border-color: #344b9f;
    background: #f4f6fc;
    box-shadow: 0 3px 10px rgba(52, 75, 159, 0.15);
}

.card-title {
    font-weight: 700;
    font-size: 13px;
    color: #222;
    display: block;
    margin-bottom: 3px;
}

.card-desc {
    font-size: 11px;
    color: #666;
    display: block;
    line-height: 1.3;
}

.card-price {
    font-weight: 700;
    font-size: 13px;
    color: #344b9f;
    display: block;
    margin-top: 5px;
}

/* Selected indicator checkmark */
.custom-selector-card:has(input[type="radio"]:checked)::after {
    content: '✓';
    position: absolute;
    top: 5px;
    right: 8px;
    color: #344b9f;
    font-size: 11px;
    font-weight: bold;
}

/* Drag & Drop File Upload Zone */
.custom-upload-zone {
    border: 2px dashed #cccccc;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.custom-upload-zone:hover, .custom-upload-zone.dragover {
    border-color: #344b9f;
    background: #f4f7fc;
}

.upload-icon {
    font-size: 36px;
    color: #344b9f;
    margin-bottom: 10px;
    display: block;
}

.upload-text {
    font-size: 13px;
    color: #444;
    display: block;
    margin-bottom: 5px;
}

.upload-hint {
    font-size: 11px;
    color: #888;
    display: block;
}

.custom-file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

/* Upload Preview */
.upload-preview-container {
    display: none;
    margin-top: 15px;
    padding: 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    align-items: center;
    gap: 12px;
}

.upload-preview-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.upload-preview-details {
    flex: 1;
    text-align: left;
}

.upload-preview-name {
    font-weight: 700;
    font-size: 12px;
    color: #333;
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.upload-preview-size {
    font-size: 10px;
    color: #666;
}

.upload-remove-btn {
    color: #ff3b30;
    font-size: 18px;
    cursor: pointer;
    font-weight: bold;
    padding: 5px;
}

/* Live Price Summary Widget */
.live-price-summary-widget {
    background: #f7f9fc;
    border: 1px solid #dbe1e8;
    border-radius: 10px;
    padding: 15px;
    margin: 25px 0;
}

.live-price-title {
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    color: #222;
    border-bottom: 1px solid #dbe1e8;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.live-price-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #555;
    margin-bottom: 6px;
}

.live-price-row.total-price {
    font-weight: 700;
    font-size: 15px;
    color: #222;
    border-top: 1px dashed #dbe1e8;
    padding-top: 8px;
    margin-top: 8px;
}

.live-price-row.payment-today {
    font-weight: 800;
    font-size: 16px;
    color: #344b9f;
    background: #eef2fa;
    padding: 10px;
    border-radius: 6px;
    margin-top: 8px;
    border: 1px solid #cedcf2;
}

.live-price-row.payment-later {
    font-size: 12px;
    color: #777;
    padding: 0 10px;
    margin-top: 4px;
}

/* Checkout Optimizations */
.checkout-trust-badges {
    margin-top: 20px;
    padding: 15px;
    background: #fdfdfd;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-align: center;
}

.checkout-trust-title {
    font-weight: 700;
    font-size: 12px;
    text-transform: uppercase;
    color: #718096;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.checkout-trust-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.checkout-trust-icon {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    color: #4a5568;
    font-weight: 600;
}

.checkout-trust-icon i {
    color: #344b9f;
    font-size: 14px;
}

/* Cart Item Thumbnail Preview */
.cart-item-uploaded-preview {
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-uploaded-preview img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.cart-item-uploaded-preview span {
    font-size: 11px;
    color: #555;
}

@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/
    .custom-selector-cards {
        flex-direction: column;
        gap: 10px;
    }
    .custom-selector-card {
        min-width: 100%;
        text-align: left;
        padding: 12px 18px;
    }
    .custom-selector-card:has(input[type="radio"]:checked)::after {
        top: 50%;
        right: 18px;
        transform: translateY(-50%);
        font-size: 14px;
    }
}