/**
 * Modern UI for TH Address Checkout
 * Styles for Typeahead dropdowns to make them look beautiful and modern.
 */

/* Container for the specific input fields to add relative positioning if needed */
.th-address-checkout-container {
    position: relative;
}

/* 
   Typeahead Dropdown Container 
   - Glassmorphism effect
   - Floating shadow
   - Rounded corners
*/
.tt-menu {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05) !important;
    padding: 8px 0 !important;
    margin-top: 8px !important;
    max-height: 300px;
    overflow-y: auto;
    min-width: 100%;
    z-index: 9999 !important;
    width: 100%;
    left: 0 !important; /* Ensure it aligns with input */
}

/* 
   Dropdown Items (Suggestions)
   - Clean readable font
   - Good padding
*/
.tt-suggestion {
    padding: 10px 16px !important;
    font-size: 14px;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
    line-height: 1.5;
}

.tt-suggestion:last-child {
    border-bottom: none;
}

/* 
   Hover/Active State
   - Soft primary color background
   - Text darkening
*/
.tt-suggestion:hover,
.tt-suggestion.tt-cursor {
    background-color: #f0f7ff !important; /* Light Blue Hover */
    color: #0066cc !important; /* Primary Blue Text */
    padding-left: 20px !important; /* Slight movement effect */
}

/* Highlighted match text */
.tt-highlight {
    color: #0066cc;
    font-weight: 600;
}

/* Scrollbar Styling for Webkit */
.tt-menu::-webkit-scrollbar {
    width: 8px;
}

.tt-menu::-webkit-scrollbar-track {
    background: transparent;
}

.tt-menu::-webkit-scrollbar-thumb {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.tt-menu::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0, 0, 0, 0.2);
}

/* Input Field Enhancements (Optional, to match the theme) */
.woocommerce-input-wrapper input[type="text"].tt-input,
.woocommerce-input-wrapper input[type="text"]:focus {
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.woocommerce-input-wrapper input[type="text"]:focus {
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.1); /* Soft Blue Ring */
    border-color: #0066cc;
}