@media (max-width: 768px) {
  #ps-dopedfinder-searchbar {
    display: none;
  }
  /* Regole dal primo CSS con ID modificati */
  #ps-dopedfinder-searchbar-mobile {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    height: 45px;
  }

  #ps-dopedfinder-buttons-mobile {
    display: flex;
    gap: 10px;
  }

  #ps-dopedfinder-searchbar-mobile .input-group {
    display: flex;
    flex: 1;
    align-items: center;
    height: 100%;
    background: #fafafa;
    overflow: hidden;
    position: relative;
    padding-left: 50px;
  }

  #ps-dopedfinder-searchbar-mobile .input-group img.input-group-icon {
    position: absolute;
    left: 10px;
    height: 30px;
    width: auto;
    pointer-events: none;
  }

  #ps-dopedfinder-searchbar-mobile .input-group input {
    flex: 1;
    height: 100%;
    border: none;
    padding: 0 10px;
    font-size: 14px;
    outline: none;
    box-shadow: none;
    margin-right: 5px;
  }

  #ps-dopedfinder-searchbar-mobile .input-group button {
    color: white;
    height: 35px;
    width: 35px;
    border: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    left: -4px;
  }

  #ps-dopedfinder-searchbar-mobile .input-group button i {
    font-size: 16px;
  }

  #ps-dopedfinder-searchbar-mobile .input-group-sealed {
    box-shadow: 0 0 6px #d65f00cc;
    border: 1px solid #d65f00;
  }

  #ps-dopedfinder-searchbar-mobile .input-group-cards {
    box-shadow: 0 0 6px #009baccc;
    border: 1px solid #009bac;
  }

  #ps-dopedfinder-searchbar-mobile .search-icon-button-sealed {
    background-color: #d65f00;
  }

  #ps-dopedfinder-searchbar-mobile .search-icon-button-cards {
    background-color: #009bac;
  }

  #ps-dopedfinder-buttons-mobile .sealed-button,
  #ps-dopedfinder-buttons-mobile .single-cards-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    text-align: left;
    font-weight: 700;
    font-size: 13px;
    padding: 5px;
    line-height: 16px;
    border: 1px solid #dadada;
    cursor: pointer;
    transition: background-color 0.3s, box-shadow 0.3s, opacity 0.3s;
    flex: 1;
    height: 45px;
    width: 100px;
    box-sizing: border-box;
    opacity: 0.5;
  }

  #ps-dopedfinder-buttons-mobile .sealed-button {
    background-color: #d65f00;
    color: white;
  }

  #ps-dopedfinder-buttons-mobile .single-cards-button {
    background-color: #009bac;
    color: white;
  }

  #ps-dopedfinder-buttons-mobile .sealed-button.active,
  #ps-dopedfinder-buttons-mobile .single-cards-button.active {
    opacity: 1 !important;
    box-shadow: 0 0 6px currentColor !important;
  }

  #ps-dopedfinder-buttons-mobile .sealed-button:hover {
    background-color: #a64b00;
  }

  #ps-dopedfinder-buttons-mobile .single-cards-button:hover {
    background-color: #007885;
  }

  #ps-dopedfinder-buttons-mobile .button-image {
    height: 23px;
    width: auto;
    margin-right: 10px;
    display: inline-block;
    vertical-align: middle;
  }

  #ps-dopedfinder-buttons-mobile .button-arrow {
    margin-left: auto;
    font-size: 12px;
  }

  #search-context-sealed-mobile {
    display: flex;
  }

  #search-context-cards-mobile {
    display: none;
  }

  #ps-dopedfinder-searchbar-mobile .input-group .cross-icon-button-sealed {
    display: none;
    background-color: #d65f00;
  }

  #ps-dopedfinder-searchbar-mobile .input-group .cross-icon-button-cards {
    display: none;
    background-color: #009bac;
  }

  /* Regole dal secondo CSS con ID modificati */
  #ps-dopedfinder-searchbar-mobile.psdopedfinder-searchbar-visible {
    display: flex; /* Show when 'visible' class is added */
  }

  #ps-dopedfinder-searchbar-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 130px;
    background-color: white;
    z-index: 9999;
    display: none;
    flex-direction: column;
    gap: 15px;
    padding: 10px;
    box-sizing: border-box;
    overflow: hidden;
  }

  #ps-dopedfinder-buttons-mobile {
    display: flex;
    flex-direction: row;
    margin-bottom: 0;
    justify-content: space-between;
    width: 100%;
  }

  #ps-dopedfinder-buttons-mobile button {
    flex: 1;
    max-width: 48%;
    height: 45px;
  }

  #ps-dopedfinder-searchbar-mobile .input-group {
    min-height: 50px !important; /* Imposta altezza specifica */
    display: flex;
    align-items: center;
    padding: 0 5px;
    box-sizing: border-box; /* Assicurati che il padding sia incluso nelle dimensioni */
  }

  #ps-dopedfinder-searchbar-mobile .input-group input {
    flex: 1;
    height: 100%; /* Riempi l'altezza del contenitore */
    font-size: 16px;
    border: none;
    outline: none;
  }

  #ps-dopedfinder-searchbar-mobile .input-group button {
    max-height: 35px;
    height: 100%; /* Riempi l'altezza del contenitore */
    border: none;
    background-color: #d65f00;
    color: white;
  }

  #ps-dopedfinder-searchbar-mobile .input-group .cross-icon-button-sealed {
    display: none;
    background-color: #d65f00;
  }

  #ps-dopedfinder-searchbar-mobile .input-group .cross-icon-button-cards {
    display: none;
    background-color: #009bac;
  }

  #ps-dopedfinder-searchbar-mobile .input-group .search-icon-button-sealed {
    display: flex;
    background-color: #d65f00;
  }

  #ps-dopedfinder-searchbar-mobile .input-group .search-icon-button-cards {
    display: flex;
    background-color: #009bac;
  }

  #ps-dopedfinder-searchbar-mobile:not([data-enable-hoc]) {
    padding-top: 30px;
    padding-bottom: 30px;
  }
}
