h1, h2, h3 {
    color: #333;
}

/* --- Modern Minimal Search Form --- */
.alx-shopper-form {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    box-shadow: 0 4px 32px rgba(33,150,243,0.10), 0 1.5px 8px rgba(0,0,0,0.03);
    padding: 22px 18px 14px 18px;
    margin-bottom: 32px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    align-items: flex-end;
    border: 1.5px solid #e3eaf7;
    transition: box-shadow 0.2s, border 0.2s;
}

.alx-shopper-form .alx-shopper-dropdown,
.alx-shopper-form .alx-shopper-field {
    flex: 1 1 160px;
    min-width: 120px;
    margin-bottom: 6px;
    display: flex;
    flex-direction: column;
    gap: 0;
    background: rgba(255,255,255,0.18);
    border-radius: 10px;
    padding: 8px 10px 15px 10px;
    box-shadow: 0 1px 6px rgba(33,150,243,0.03);
    border: 1px solid #e3eaf7;
    transition: box-shadow 0.18s, border 0.18s;
}

.alx-shopper-form label {
    font-size: 1em;
    color: #1a237e;
    font-weight: 600;
    margin-bottom: 1px;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 4px rgba(255,255,255,0.18);
}

.alx-shopper-form select,
.alx-shopper-form input[type="text"],
.alx-shopper-form input[type="email"] {
    padding: 10px 12px;
    border: 1.5px solid #d0e6f7;
    border-radius: 7px;
    background: rgba(255,255,255,0.85);
    font-size: 1.05em;
    color: #222330;
    transition: border-color 0.18s, box-shadow 0.18s;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 0;
    box-shadow: 0 1px 4px rgba(31,38,135,0.04);
}

.alx-shopper-form select:focus,
.alx-shopper-form input[type="text"]:focus,
.alx-shopper-form input[type="email"]:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 2px rgba(33,150,243,0.13);
    background: #fff;
}

.alx-shopper-form button,
.alx-shopper-search-btn {
    background: linear-gradient(90deg, #2196f3 0%, #003366 100%);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 9px;
    font-size: 1.08em;
    font-weight: 700;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 14px rgba(33,150,243,0.10);
    transition: background 0.18s, color 0.18s, box-shadow 0.18s;
    cursor: pointer;
    margin-top: 0;
    margin-bottom: 0;
    display: inline-block;
}

.alx-shopper-form button:hover,
.alx-shopper-search-btn:hover {
    background: linear-gradient(90deg, #003366 0%, #2196f3 100%);
    color: #fff;
    box-shadow: 0 6px 24px rgba(33,150,243,0.16);
}

.alx-shopper-form .alx-shopper-message {
    margin-top: 10px;
    font-size: 1em;
    color: #c00;
    font-weight: 500;
    text-align: left;
}

.product-image {
    max-width: 100% !important;
    height: auto !important;
    border-radius: 4px !important;
}

.analytics-data {
    margin-top: 20px !important;
    padding: 10px !important;
    background-color: #e7f3fe !important;
    border-left: 6px solid #2196F3 !important;
}

.alx-shopper-error {
    color: #c00 !important;
    font-weight: bold !important;
    margin: 20px 0 !important;
    text-align: center !important;
}

/* Pure CSS spinner */
.alx-shopper-spinner {
    display: none;
    position: fixed !important;
    z-index: 9999 !important;
    left: 50% !important;
    top: 50% !important;
    width: 48px !important;
    height: 48px !important;
    transform: translate(-50%, -50%) !important;
}
.alx-shopper-spinner:after {
    content: " ";
    display: block;
    width: 40px;
    height: 40px;
    margin: 4px;
    border-radius: 50%;
    border: 4px solid #006699;
    border-color: #006699 transparent #003366 transparent;
    animation: alx-spinner 1.2s linear infinite;
}
@keyframes alx-spinner {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* --- Quick View Modal Overlay --- */
#alx-quick-view-modal {
    display: none;
    position: fixed;
    z-index: 2147483647 !important; /* max for most browsers */
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(255, 255, 255, 0.806);
    
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    
}

/* --- Modal Box --- */
.alx-quick-view-content {
    /* Remove z-index here */
    background: rgba(255,255,255,0.18);
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.18);
    border-radius: 18px;
    max-width: 420px;
    width: 92%;
    height: 100vh;
    overflow-y: auto;
    margin: 60px auto;
    padding: 28px 18px 18px 18px;
    position: relative;
    text-align: center;
    border: 1.5px solid rgba(255,255,255,0.35);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    animation: alxModalIn 0.22s cubic-bezier(.4,2,.6,1) 1;
    overflow: hidden;
}

/* Make text and price stand out on dark */
.alx-quick-view-body h2 {
    color: #f7f7fc;
    text-shadow: 0 2px 8px rgba(255,255,255,0.18);
}
.alx-quick-view-body .alx-shopper-price {
    color: #dfe9f0;
    text-shadow: 0 2px 8px rgba(255,255,255,0.18);
}

/* --- Close Button --- */
.alx-quick-view-close {
    position: absolute;
    top: 14px; right: 18px;
    font-size: 30px;
    background: rgba(255,255,255,0.5);
    border: none;
    color: #444;
    cursor: pointer;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    line-height: 38px;
    text-align: center;
    transition: background 0.18s, color 0.18s;
    box-shadow: 0 2px 8px rgba(31,38,135,0.08);
}
.alx-quick-view-close:hover {
    background: #e74c3c;
    color: #fff;
}

/* --- Modal Content --- */

.alx-quick-view-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    min-height: 220px;
    justify-content: flex-start;
    padding-bottom: 12px;
}

.alx-quick-view-body h2 {
    font-size: 1.5em;
    margin-bottom: 18px;
	margin-top: 20px;
    color: #222330;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(46, 48, 73, 0.08);
}
.alx-quick-view-body img {
    max-width: 100%;
    width: 80vw;
    height: auto;
    border-radius: 12px;
    margin-bottom: 10px;
    box-shadow: 0 2px 18px rgba(31,38,135,0.10);
    background: none !important;
}

.alx-shopper-actions {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    margin-top: 18px;
    flex-wrap: wrap;
    flex-shrink: 0;
    margin-top: auto;
    padding: 16px 0 0 0;
    background: #00000000; /* or match your modal background */
    text-align: center;
    z-index: 2;
}

/* Email results form styling */
.alx-email-results-form {
    display: flex;
    flex-direction: column;
    align-items: stretch;   /* or flex-start */
    gap: 2px;
    background: #f7fafd;
    border: 1px solid #d0e6f7;
    border-radius: 16px;
    padding: 14px 18px;
    margin-bottom: 8px !important;
    box-shadow: 0 1px 4px rgba(33,150,243,0.06);
    font-size: 1em;
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
}

.alx-email-results-form label {
    margin: 0;
    font-weight: 600;
    color: #1976d2;
}

.alx-email-results-input {
    padding: 7px 12px;
    border: 1px solid #b3c7d6;
    border-radius: 4px;
    font-size: 1em;
    min-width: 220px;
    transition: border-color 0.2s;
}

.alx-email-results-input:focus {
    border-color: #2196f3;
    outline: none;
}

.alx-email-results-form button[type="submit"] {
    background: #2196f3;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 7px 18px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;              /* Button fills the form width */
    box-sizing: border-box;
    margin-top: 0;
}

.alx-email-results-form button[type="submit"]:hover {
    background: #1769aa;
}

.alx-email-results-status {
    min-width: 80px;
    font-size: 0.98em;
    color: #388e3c;
    font-weight: 500;
}

.alx-email-input-row {
    display: flex;
    flex-direction: column;   /* Stack vertically */
    align-items: stretch;
    gap: 10px;
    width: 100%;
}

.alx-shopper-results .alx-email-results-form {
    width: 100%;
    max-width: 420px;
    box-sizing: border-box;
}

.alx-shopper-results .alx-email-results-form input[type="email"] {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #c3d0e0;
    margin-bottom: 8px;
}

@media (max-width: 600px) {
    .alx-shopper-form {
        flex-direction: column;
        gap: 6px 0;
        padding: 8px 2vw 8px 2vw;
        align-items: stretch;
    }
    .alx-shopper-form .alx-shopper-dropdown,
    .alx-shopper-form .alx-shopper-field {
        Flex: none !important;
        width: 100% !important;
        min-width: 0;
        padding: 4px 5px 20px 5px;
        border-radius: 7px;
        margin-bottom: 6px;
    }
    .alx-shopper-form label {
        margin-bottom: 0;
        font-size: 0.97em;
    }
    .alx-shopper-form select,
    .alx-shopper-form input[type="text"],
    .alx-shopper-form input[type="email"] {
        padding: 7px 8px;
        font-size: 0.97em;
        border-radius: 6px;
    }
    .alx-shopper-form button,
    .alx-shopper-search-btn {
        width: 100%;
        margin-top: 4px;
        padding: 10px 0;
        font-size: 1em;
        border-radius: 7px;
    }
}

@media (max-width: 800px) {
    .alx-shopper-form {
        flex-direction: column;
 
        padding: 12px 6px 12px 6px;
    }
    .alx-shopper-form .alx-shopper-dropdown,
    .alx-shopper-form .alx-shopper-field {
        Flex: none !important;
        width: 100% !important;
    }
}

@media (max-width: 900px) {
    .alx-shopper-form {
        flex-direction: column;
        padding: 8px 8px 8px 8px;
    }
    .alx-shopper-form .alx-shopper-field {
        width: 100%;
        min-width: 0;
         Flex: none !important;
        width: 100% !important;
    }
    .alx-shopper-form .alx-shopper-dropdown,
    .alx-shopper-form .alx-shopper-field {
        Flex: none !important;
        width: 100% !important;
    }
}

@media (max-width: 400px) {
    .alx-quick-view-content {
        height: 90vh;
        padding: 14px 4px 10px 4px;
    }
    .alx-quick-view-body {
       
        padding-bottom: 6px;
    }
    .alx-shopper-actions {
        flex-direction: column;
        gap: 8px;
        margin-top: 12px;
    }
}

.alx-shopper-results.flash {
    animation: alxFlash 1s;
}
@keyframes alxFlash {
    0% { box-shadow: 0 0 0 0 #2196f3; }
    50% { box-shadow: 0 0 16px 4px #2196f3; }
    100% { box-shadow: 0 0 0 0 #2196f3; }
}

.alx-quick-view-modal-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    max-height: 95vh; /* or 100% if you want full screen */
    padding-bottom: 6px;
}

.alx-quick-view-modal-content {
    flex: 1 1 auto;
    overflow-y: auto;
    min-height: 0;
}