/* AKS WooCommerce Checkout Styles */

/* Autosuggest container styles */
.aks-suggestions-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #8c8f94;
    border-top: none;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    z-index: 999999;
    max-height: 280px;
    overflow-y: auto;
    min-height: 40px;
    height: auto;
}

.aks-suggestions-container::-webkit-scrollbar {
    width: 8px;
}

.aks-suggestions-container::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.aks-suggestions-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.aks-suggestions-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Suggestions list */
.aks-suggestions {
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Suggestion items */
.aks-suggestion-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    margin: 0;
    list-style: none;
    display: block;
    height: auto;
    min-height: 0;
    line-height: 1.5;
    font-size: 14px;
    color: #2c3338;
    background: #fff;
    white-space: normal;
    word-break: break-word;
}

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

.aks-suggestion-item:hover,
.aks-suggestion-item.selected {
    background-color: #007cba;
    color: #fff;
}

/* Ensure input fields have proper z-index context */
.wc-block-components-text-input {
    position: relative;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .aks-suggestions-container {
        max-height: 150px !important;
    }
    
    .aks-suggestion-item {
        padding: 12px 15px !important;
    }
}
