/* UNAR – vzornik odstinu latek · mobilni vrstva
   Nacita se AZ ZA unar-vzornik-odstinu-v7.css a jen ji doplnuje.

   Co resi:
   1) Na mobilu se vzornik oteviral uvnitr uzkeho sloupce tabulky parametru
      (sirka ~200 px), takze mrizka vzorku byla nepouzitelna.
      Nove se otevira jako spodni panel pres celou sirku obrazovky.
   2) Panel je fixni, takze nic v obsahu neposouva.
   3) Hledani ma 16px pismo - iOS Safari pak stranku nezvetsuje (a neuskakuje).
*/

.up-backdrop { display: none; }
.up-picker__close { display: none; }

@media (max-width: 767px) {

  .up-picker__panel {
    position: fixed !important;
    top: auto !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 14px 14px 0 0 !important;
    box-shadow: 0 -8px 30px rgba(15, 25, 40, .28) !important;
    z-index: 2147483000 !important;
    max-height: 80vh;
    display: flex !important;
    flex-direction: column;
  }
  .up-picker__panel[hidden] { display: none !important; }

  .up-picker__head {
    position: relative;
    padding: 14px 12px 10px !important;
    flex: 0 0 auto;
  }
  .up-picker__head::before {
    content: '';
    position: absolute;
    top: 5px; left: 50%;
    transform: translateX(-50%);
    width: 38px; height: 4px;
    border-radius: 2px;
    background: #d5dae2;
  }
  .up-picker__search {
    font-size: 16px !important;
    height: 38px !important;
  }
  .up-picker__close {
    display: block;
    flex: 0 0 auto;
    width: 34px; height: 34px;
    margin-left: 4px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #eef1f5;
    color: #4a5262;
    font-size: 15px;
    line-height: 34px;
    text-align: center;
    cursor: pointer;
  }

  .up-picker__grid {
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)) !important;
    max-height: none !important;
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(12px + env(safe-area-inset-bottom)) !important;
  }
  .up-picker__note { flex: 0 0 auto; }

  .up-backdrop {
    display: block;
    position: fixed;
    top: 0; right: 0; bottom: 0; left: 0;
    background: rgba(15, 25, 40, .45);
    z-index: 2147482999;
  }
  .up-backdrop[hidden] { display: none !important; }
}
