/*
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.   ***************/
/* Modal base styles */
.ai-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background: rgba(0, 0, 0, 0.7); /* dark overlay */
    backdrop-filter: blur(6px);
}

.ai-modal-content {
    background: linear-gradient(145deg, #1e1e1e, #292929);
    border: 1px solid #00f0ff;
    margin: 5% auto;
    padding: 30px;
    border-radius: 12px;
    width: 850px;
    color: #e0e0e0;
    position: relative;
    box-shadow: 0 0 20px #00f0ff88;
    animation: modalFadeIn 0.4s ease;
}

@keyframes modalFadeIn {
    from {opacity: 0; transform: scale(0.9);}
    to {opacity: 1; transform: scale(1);}
}

/* Close button */
.ai-modal-close {
    color: #00f0ff;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s;
}
.ai-modal-close:hover {
    color: #ff007c;
}

/* Open button */
.ai-btn {
    background: linear-gradient(90deg, #00f0ff, #ff00c8);
    color: #fff;
    font-weight: bold;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}
.ai-btn:hover {
    background: linear-gradient(90deg, #ff00c8, #00f0ff);
}

/* Grid for images */
.ai-grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 images per row */
    gap: 20px;
}
.ai-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #00f0ff88;
    transition: transform 0.3s;
    cursor: pointer;
}
.ai-grid img:hover {
    transform: scale(1.05);
}

/* Form styles */
.ai-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.ai-form input, .ai-form select {
    padding: 12px 15px;
    background: #1a1a1a;
    border: 1px solid #00f0ff66;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 16px;
    outline: none;
    transition: border 0.3s;
}

.ai-form input::placeholder {
    color: #888;
}

.ai-form input:focus, .ai-form select:focus {
    border-color: #ff00c8;
}



@media only screen and (max-width: 48em) {
/*************** ADD MOBILE ONLY CSS HERE  ***************/


}

.custom-order-item-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.custom-order-thumb {
    width: 60px;
    height: auto;
    border: 1px solid #eee;
    border-radius: 4px;
    object-fit: contain;
}

@media (max-width: 600px) {
    .custom-order-thumb {
        width: 48px;
    }

    .custom-order-name {
        display: block;
        width: 100%;
        margin-top: 4px;
    }
}