/* src/components/TickerSearch/TickerSearch.css */

.searchbar {
    display: flex;
    align-self: center;
    justify-self: center;
}

.search-container,
[ticker-search-container] { /* Consolidate these selectors if they target the same element */
    position: relative; /* Keep this */
    display: flex;
    width: 35%; /* Adjust as needed */
    flex-wrap: wrap;
    border: none;
    background: white;
    z-index: 1000;
}
  
.search-input {
    width: auto; /* Adjust as needed */
    box-sizing: border-box;
}

/* Specific styling for the ticker search input */
input[type="text"] {
    width: 100%;
    height: 50px;
    padding: 8px 50px 8px 16px;
    border-radius: 8px;
    border: none;
    margin-top: 8px;
    box-sizing: border-box;
    background-color: rgb(241, 243, 244)
}
  
.search-icon {
    position: absolute;
    top: 20%;
    right: 10px;
    transform: translateY(-50%);
    color: #777;
}
  
.results-container {
    display:none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: white;
    z-index: 3000; /* Ensure this is above other content */
    display: none; /* Controlled by JS */
    flex-wrap: wrap;
    box-shadow: rgba(0, 0, 0, 0.14) 0px 8px 10px 1px, rgba(0, 0, 0, 0.12) 0px 3px 14px 2px, rgba(0, 0, 0, 0.2) 0px 5px 5px -3px
}

.results-container.shown {
    display: block; /* or flex */
}
  
.results-container div {
    cursor: pointer;
    line-height: 1.4; 
}
.search-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    line-height: 1.4;
    border-bottom: 1px solid rgb(218, 220, 224);
    padding: 8px 20px;
}

.price-display {
    display: flex;
    align-items: center;
}

.result-price {
    font-family: "Google Sans", "Roboto", Arial, sans-serif;
    line-height: 1.25rem;
    font-size: .875rem;
    letter-spacing: .0178571429em;
    font-weight: 500;
    margin-right: 24px;
    color: rgb(32, 33, 36);
}

.result-pct {
    font-family: "Google Sans", "Roboto", Arial, sans-serif;
    line-height: 1.5rem;
    font-size: 1rem;
    letter-spacing: .00625em;
    font-weight: 500;
    padding: 0 8px;
    border-radius: 8px;
    width: min-content;
    min-width: 40px;
}
  
.results-container div:hover,
.search-result:hover { /* Consolidate these */
    background-color: rgb(241, 243, 244);
}

.search-result-details {
    margin: 0;
    padding: 0;
    border:none;
}
.query-name {
    font-family: "Google Sans", "Roboto", Arial, sans-serif;
    line-height: 1.25rem;
    font-size: .875rem;
    letter-spacing: .0178571429em;
    color: rgb(60, 64, 67);
    font-weight: 400;
    margin: 0;
    padding: 0;
    border:none;
}

.ticker-symbol {
    font-family: "Roboto", Arial, sans-serif;
    line-height: 1rem;
    font-size: .6875rem;
    letter-spacing: .0727272727em;
    font-weight: 500;
    text-transform: uppercase;
    color: rgb(60, 64, 67);
}

.exchange {
    font-family: "Roboto", Arial, sans-serif;
    line-height: 1rem;
    font-size: .6875rem;
    letter-spacing: .0727272727em;
    font-weight: 500;
    text-transform: uppercase;
    color: rgb(95, 99, 104);
}

#searching {
    position: absolute; /* Absolute positioning relative to container */
    top: 35px; /* Adjust as needed */
    right: 0px; /* Adjust as needed */
    width: 50px;
    height: 47px;
    text-align: center;
    line-height: 47px;
    color:black;
    border-radius: 16px;
    cursor: pointer;
}