.display_none {
    display: none;
}

#calculator_main {
    overflow-y: auto;
    max-height: calc(100% - 64px);
}

.card_wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, var(--input-card-width));
    gap: var(--input-card-gap);
    justify-content: center;
}

.tradeup_card {
    box-sizing: border-box;
    background-color: var(--background-color);
    min-height: 200px;
    height: fit-content;
    width: var(--input-card-width);
    border-radius: 14px;
    padding: 8px 9px;
}

#calculator_nav {
    display: flex;
}

.calculator_mode {
    margin-right: 16px;
}

.calculator_mode:hover {
    cursor: pointer;
    color: white;
}



.market_hash_name {
    color: var(--text-1-color);
    margin: 5px 0 0 0;
    font-size: 11px;
    font-weight: 500;
}
.market_hash_name.output {
    margin: 0;
}

.tradeup_weapon_image_container {
    display: flex;
    justify-content: center;
    background: linear-gradient(
        180deg,
        transparent 10%,
        color-mix(in srgb, var(--rarity-color, #9345FF) 12%, transparent) 100%
    );
}

.tradeup_weapon_image {
    box-sizing: border-box;
    width: 77%;
    height: auto;
    padding: 4px 0;
}

.input_actions {
    display: flex;
    justify-content: right;
    gap: 4px;
}

.input_action_btn {
    user-select: none;
}
.input_action_btn:hover {
    cursor: pointer;
}

.pin_btn {
    margin-right: auto;
}

.delete_btn {
    margin-left: 2px;
}

.rarity_stripe {
    width: 100%;
    height: 2px;
    border-bottom-left-radius: 2px;
    border-bottom-right-radius: 2px;
    background-color: var(--rarity-color, #9345FF);
    margin-top: 0px;
}


.input_container {
    margin-top: 10px;
}

.input_upper {
    display: flex;
}

.input_title, .input_info_value {
    margin: 0;
    font-size: 9px;
}

.input_title {
    color: #A3A3A3B3;
    font-weight: 600;
    margin-top: auto;
}

.input_info_value {
    color: #A3A3A380;
    margin-left: auto;
    font-weight: 400;
}

.input_input {
    all: unset;
    box-sizing: border-box;
    color: var(--text-2-color);
    border: 1px solid var(--border-color);
    width: 100%;
    height: 27px;
    border-radius: 6px;
    font-size: 12px;
    padding: 0 18px 0 9px;
    margin-top: 3px;
}

.input_input::-webkit-outer-spin-button,
.input_input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.input_input[type="number"] { -moz-appearance: textfield; }


.input_input.listing {
    width: calc(100% - 27px - 6px);
}
.price_inputs_wrapper {
    display: flex;
    position: relative;
}

.currency_symbol {
    color: #A3A3A380;
    position: absolute;
    font-size: 12px;
    right: 9px;
    top: 3px;
    bottom: 0;
    display: flex;
    align-items: center;
}
.currency_symbol.listing {
    right: calc(9px + 27px + 6px);
}

.listing_link {
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    margin: 3px 0 0 auto;
    height: 27px;
    width: 27px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
}
.listing_link:hover {
    cursor: pointer;
}



.float_bar_container {
    margin-top: 6px;
    position: relative;
}
.float_bar_container svg {
  display: block;
  border-radius: 2px;
}
.float_bar_container.output {
    margin-top: 4px;
    margin-bottom: 6px;
}

.float_bar_pointer {
    position: absolute;
    top: -2px;
    left: calc(var(--wear) * 100% - 2px);
}



.source_marketplace {
    font-size: 9px;
    color: #A3A3A380;
    margin: 0 0 0 3px;
}




#calculator_modes {
    display: flex;
    gap: 6px;
    margin-bottom: 30px;
}

.mode_button {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 34px;
    width: 90px;
    border-radius: 8px;
    color: var(--text-2-color);
}
.mode_button:hover {
    cursor: pointer;
    background-color: var(--background-color);
}


.mode_button.mode_active {
    background-color: var(--background-color);
}

#delete_all_btn {
    display: none;
    align-items: center;
    justify-content: center;
    height: 34px;
    margin-left: auto;
    border: 1px solid #EF53501A;
    border-radius: 8px;
    width: 90px;
}
#delete_all_btn:hover {
    background-color: #EF53501A;
    cursor: pointer;
}

#delete_all_btn p {
    color: #EF535099;
}



#listings_container {
    padding-top: 20px;
    position: relative;
    height:calc(100dvh - var(--standart-margin) * 2 - 50px - 50px);
}


.calculator_input_field_wrapper {
    display: flex;
    width: 100%;
}

.calculator_input_field_wrapper.below {
    margin-top: 16px;
}

.calculator_h2 {
    color: var(--text-2-color);
    font-size: 14px;
    margin: auto auto auto 0;
}

.calculator_value {
    color: var(--text-2-color);
    font-size: 14px;
    margin: 0;
}

.calculator_input_field {
    box-sizing: border-box;
    height: 30px;
    width: 55px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0 8px;
    color: var(--text-2-color);
    font-size: 14px;
}

.slider_wrapper {
    display: flex;
    align-items: center;
    height: 16px;
    position: relative;
    margin-top: 3px;
}

.slider_wrapper svg {
    display: block;
}

.slider_pointer {
    position: absolute;
    right: -6px;
    box-shadow: 0 0 10px 3px rgba(0, 0, 0, 0.25);
    transition: left 0.06s ease;
    touch-action: none;
    user-select: none;
}
.slider_pointer:hover {
    cursor: pointer;
}






#graph_container {
    display: flex;
    margin-top: 32px;
    position: relative;
}

#graph_wrapper {
    height: 180px;
    border-left: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    width: 100%;
}

.graph_values {
    position: absolute;
    margin: 0;
    font-size: 11px;
    color: #A3A3A380;
}

.graph_description {
    font-size: 12px;
    color: #A3A3A3B3;
    margin: 0;
}

#graph_y_description {
    position: absolute;
    writing-mode: vertical-rl;
    left: -6px;
    transform: rotate(180deg);
    height: 180px;
    box-sizing: border-box;
    text-align: center;
}


#left_axis_values {
    position: relative;
    width: 11px;
}

#graph_y_upper {
    top: -5.5px;
    right: 4px;
}

#graph_y_lower {
    top: calc(180px - 5.5px);
}

#preview_graph_right_wrapper {
    flex: 1;
    min-width: 0;
}

#right_axis_values {
    position: relative;
    display: flex;
    justify-content: center;
    margin-top: 3px;
}

#graph_x_min {
    left: 0;
}

#graph_x_max {
    right: 0;
}









#search-results li{
    
    display: flex;
  cursor: default;
  color: #D5D5D5;
  font-size: 15px;
  font-weight: 500;
  line-height: 18px;
  margin-bottom: 6px;
}

#search-results li:hover{
  background-color: var(--background-color);
}

#search-results li.rarity_mismatch {
    opacity: 0.5;
}


#calculator_outputs {
    display: none;
    margin-top: 100px;
    border-top: solid 1px var(--border-color);
    width: 100%;
    padding-top: 0;
}

#outputs_header {
    margin: 24px 0;
}

#output_stats {
    background-color: var(--background-color);
    width: 100%;
    border-radius: 18px;
    padding: 20px;
    box-sizing: border-box;
}

.output_description, .output_value {
    font-size: 12px;
    margin: 0 3px 0 0;
}

.output_description {
    color: #A3A3A3B3;
}

.output_value {
    color: var(--text-2-color);
}

#output_stats{
    display: flex;
}

.output_stat {
    display: flex;
}

#output_stats_left {
    width: 50%;
}

#output_stats_right, #output_stats_left {
    display: flex;
    gap: 6px;
    flex-direction: column;
}


.collection {
    margin: 3px auto 0 auto;
    font-size: 10px;
    color: #A3A3A380;
    width: 100%;
    text-align: left;
}

.input_title_wrapper {
    display: flex;
}


.output_float_value {
    color: var(--text-2-color);
    margin: 3px 0 0 0;
    font-size: 12px;
}

.output_chance {
    color: var(--text-2-color);
    margin: 0 0 0 auto;
    font-size: 12px;
}

#output_container {
    margin-top: 24px;
}

.top_output {
    border: 1px solid rgb(255 255 255 / 0.18);
}

.green {
    color: #26A69A;
}
.red {
    color: #EF5350;
}

#graph_description_text {
    margin-top: 20px;
}



#no_skin_text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    text-align: center;
}







@media (max-width: 1023px) {
    #calculator_main {
        max-height: calc(100% - 64px - 72px)
    }
}

