
/* Custom Google Places Autocomplete UI */
/* Elevate parent containers to win stacking context wars against dashboard animations */
.searchBox,
.searchBoxInnerWrap {
    position: relative;
    z-index: 500 !important; /* Safe elevator above normal page content, below sticky headers */
}

.address_details {
    position: relative;
    z-index: 999 !important; /* Maximize localized stacking depth */
}

.custom-pac-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    min-width: 320px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    margin-top: 8px;
    z-index: 99999 !important;
    display: none;
    overflow-y: auto;
    max-height: 400px;
    border: 1px solid #eee;
}

.pac-item-custom {
    padding: 12px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.pac-item-custom:hover {
    background: #f8f9ff;
}

.pac-item-custom:last-child {
    border-bottom: none;
}

.pac-icon-custom {
    width: 36px;
    height: 36px;
    background: #eee;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
    color: #555;
}

.pac-icon-custom i {
    font-size: 16px;
}

.pac-content-custom {
    flex-grow: 1;
    overflow: hidden;
    text-align: left !important; /* Explicitly force left alignment */
}

.pac-text-main {
    display: block !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    color: #333 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    white-space: normal !important; /* Allow text to wrap */
    word-break: break-word !important;
    text-align: left !important;
}

.pac-text-secondary {
    display: block !important;
    font-size: 13px !important;
    color: #777 !important;
    background: none !important;
    border: none !important;
    padding: 0 !important;
    margin: 2px 0 0 0 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    white-space: normal !important; /* Allow text to wrap */
    word-break: break-word !important;
    text-align: left !important;
}

.pac-action-item {
    background: #f9f9f9;
    font-weight: 500;
}

.pac-action-item .pac-icon-custom {
    background: #000;
    color: #fff;
}

.clear-search-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #999;
    display: none;
    z-index: 5;
    font-size: 18px;
}

.clear-search-btn:hover {
    color: #333;
}

/* Adjustments for the input field to make room for clear button */
.search_input, .search_input1 {
    padding-right: 40px !important;
}

/* Restore pointer events for disabled class so feedback JS logic can capture the click */
.submitBtn.disabled,
.btn.disabled.domestic_btn_error0,
.btn.disabled.domestic_btn_error1,
.btn.disabled.international_btn_error1 {
    pointer-events: auto !important;
    cursor: not-allowed !important;
}
