@media (max-width: 1500px) {
  .popup_main {
    width: 78%;
  }
}

@media (max-width: 1300px) {
  .btns_container {
    flex-direction: column;
  }

  .btns_container button {
    width: 60%;
  }
}

@media (max-width: 1000px) {
  .deals_list {
    width: 100%;
  }
  .popup_main {
    width: 85%;
  }
  .popup_main h3 {
    font-size: 44px;
  }
}

@media (max-width: 850px) {
  .deal_info span {
    font-size: 24px;
  }
  .heading_product_name,
  .heading_product_consumption,
  .heading_product_price {
    font-size: 20px;
  }
  .deal_products_list {
    font-size: 20px;
  }
  .service_price_block {
    font-size: 20px;
  }
  .font_size_20 {
    font-size: 20px;
  }
  .deal_info {
    font-size: 24px;
  }
  .add_user_btn,
  .submit_btn {
    font-size: 20px;
  }
  .product_consumption input,
  .service_price_block input {
    font-size: 20px;
  }
}

@media (max-width: 750px) {
  .popup_main {
    width: 90%;
    padding: 25px 15px;
  }

  .popup_main h3 {
    font-size: 32px;
  }
}

@media (max-width: 700px) {
  .filters_block {
    flex-direction: column;
  }
  .date_filter,
  .deal_name_filter {
    width: 80%;
    margin: 5px 0;
  }
  .date_filter input {
    height: 100%;
  }
  .filters_block div {
    align-items: center;
  }
}

@media (max-width: 645px) {
  .deal_info {
    font-size: 20px;
  }
  .heading_product_name,
  .heading_product_consumption,
  .heading_product_price {
    font-size: 18px;
  }
  .deal_info span {
    font-size: 20px;
    line-height: 1 !important;
  }
  .product_name,
  .product_consumption,
  .product_price,
  .service_price_block {
    font-size: 18px;
  }
  .product_consumption input,
  .service_price_block input {
    font-size: 18px;
  }
  .font_size_20 {
    font-size: 18px;
  }
  .add_user_btn,
  .submit_btn {
    font-size: 18px;
  }
  .btns_container button {
    width: 75%;
  }
  .deal_info {
    font-size: 20px;
  }
}

@media (max-width: 620px) {
  .filters_block {
    flex-direction: column;
  }
  .product_name,
  .product_consumption {
    font-size: 15px;
    text-wrap: wrap;
    overflow-wrap: break-word;
    margin-right: 5px;
  }
  .product_consumption input {
    width: 30%;
  }
  .btns_container {
    flex-direction: column;
  }
  .heading_product_name,
  .heading_product_consumption,
  .heading_product_price {
    font-size: 15px;
  }
  .service_price_block {
    width: 80%;
  }
}

@media (max-width: 560px) {
  .popup_main {
    width: 95%;
  }

  .popup_main h3 {
    font-size: 28px;
  }
}

@media (max-width: 520px) {
  .deals_list {
    padding: 30px 0;
  }
  .popup_main h3 {
    font-size: 24px;
  }

  .close_popup {
    padding: 0;
  }
  .product_price {
    margin: 0 0 0 0 !important;
  }
}

@media (max-width: 460px) {
  .deal_info {
    font-size: 18px;
  }
  .heading_product_name,
  .heading_product_consumption,
  .heading_product_price {
    font-size: 14px;
  }
  .deal_info span {
    font-size: 18px;
  }
  .product_name,
  .product_consumption,
  .product_price,
  .service_price_block {
    font-size: 14px;
  }
  .product_consumption input,
  .service_price_block input {
    font-size: 14px;
  }
  .font_size_20 {
    font-size: 14px;
  }
  .add_user_btn,
  .submit_btn {
    font-size: 14px;
  }
  .btns_container button {
    width: 85%;
  }
  .deal_info {
    font-size: 18px;
  }
}

@media (max-width: 400px) {
  .container {
    padding: 15px 0;
  }

  .popup_main h3 {
    font-size: 22px;
  }

  .close_popup {
    top: 15px;
    right: 15px;
  }

  .close_popup img {
    width: 20px;
    height: 20px;
  }

  .deal {
    padding: 25px 15px;
  }

  .popup_main_inner {
    gap: 8px;
  }

  .popup_main {
    padding: 40px 15px 25px;
  }
}

@media (max-width: 355px) {
  .date_filter .search_icon {
    display: none;
  }

  .deal_info {
    font-size: 16px;
  }
  .heading_product_name,
  .heading_product_consumption,
  .heading_product_price {
    font-size: 12px;
  }
  .deal_info span {
    font-size: 16px;
  }
  .product_name,
  .product_consumption,
  .product_price,
  .service_price_block {
    font-size: 12px;
  }
  .product_consumption input,
  .service_price_block input {
    font-size: 12px;
  }
  .add_user_btn,
  .submit_btn {
    font-size: 12px;
  }
  .signature-popup {
    width: 90%;
    padding: 14px;
  }
  #aveSignature,
  #closeSignature,
  #clearSignature {
    padding: 10px;
    font-size: 12px;
  }
}
