@media (max-width: 600px) {
  .button-contacts-position {
    position: fixed;
    bottom: 96px;
    right: 24px;
  }

  .button-contacts {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .button-contacts .font-size-24 {
    display: none;
  }

  .button-contacts .img-contact {
    width: 24px;
    height: 24px;
    margin: 0;
  }
}

.maincontent {
  scrollbar-width: none;
}

.maincontent::-webkit-scrollbar {
  width: 0;
  height: 0;
}

.single-contact-header,
.back-btn-mobile,
.contact-actions-mobile {
  display: none;
}

@media (max-width: 1100px) {
  contacts.maincontent {
    display: block;
    width: 100%;
    border-right: none;
    padding-bottom: 80px;
  }

  #singleContactWrapper {
    display: none;
    width: 100%;
    padding: 16px;
  }
  .main-container-edit-contact {
    border-top-left-radius: 24px;
  }

  #singleContactID:empty {
    display: none;
  }

  #singleContactID:not(:empty) {
    display: block;
    position: static;
    background: #ffffff;
    box-shadow: 0 -6px 24px rgba(15, 23, 42, 0.15);
  }

  .single-contact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding: 16px;
  }

  .contact_information {
    display: inline;
  }

  .back-btn-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: none;
    padding: 0;
    cursor: pointer;
    position: static;
    width: 24px;
    height: 24px;
  }

  .show-contact-container {
    position: static;
    top: auto;
    margin-top: 24px;
    padding: 14px;
  }

  #singleContactWrapper .show-contact-container > h2 {
    display: none !important;
  }

  .edit-delete-container {
    display: none;
  }

  .contact-actions-mobile {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    position: fixed;
    right: 16px;
    bottom: 80px;
    z-index: 1500;
    width: max-content;
  }

  .contact-fab-toggle {
    display: none;
  }

  .contact-fab img {
    width: 51px;
    height: 53px;
  }

  .contact-fab-menu {
    display: none;
    position: absolute;
    right: 0;
    bottom: 22px;
    transform: translateY(18px);
    z-index: 3;
    margin: 0;
    padding: 8px 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 140px;
  }

  .contact-fab-item {
    width: 100%;
    padding: 8px 16px;
    border: none;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font: inherit;
  }

  .contact-fab-item:hover {
    background: #f5f5f5;
  }

  .contact-fab-item img {
    width: 18px;
    height: 18px;
  }

  .contact-actions-inline {
    display: none;
  }

  .contact-fab-toggle:checked + .contact-fab {
    display: none;
  }

  .contact-fab-toggle:checked + .contact-fab + .contact-fab-menu {
    display: block;
  }

}

.contact-fab-toggle {
  display: none;
}

.contact-fab-menu {
  display: none;
}

#toast-root {
  position: fixed;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  z-index: 9999;
  pointer-events: none;
}

.toast {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #4589ff;
  color: #fff;
  padding: 20px 30px;
  border-radius: 18px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  font: 500 16px/1.2 "Open Sans", system-ui, sans-serif;
  opacity: 0;
  transform: translateY(100vh) scale(0.98);
  pointer-events: none;
}
.toast--error {
  background: #e53935;
}

.toast img {
  width: 20px;
  height: 20px;
  display: block;
  filter: brightness(0) invert(1);
}

.toast--show {
  animation: toast-up 0.35s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.toast--hide {
  animation: toast-down 0.25s ease-in forwards;
}

@keyframes toast-up {
  from {
    opacity: 0;
    transform: translateY(100vh) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(50vh) scale(1);
  }
}

@keyframes toast-down {
  from {
    opacity: 1;
    transform: translateY(50vh) scale(1);
  }
  to {
    opacity: 0;
    transform: translateY(100vh) scale(0.98);
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast--show,
  .toast--hide {
    animation-duration: 0.01ms;
  }
}

.toast-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  background: #fff;
  -webkit-mask: url("../assets/img/Board.svg") no-repeat center / contain;
  mask: url("../assets/img/Board.svg") no-repeat center / contain;
}

@media (max-width: 1100px) {
  .add-contact,
  .edit-contact {
    width: 100%;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    padding: 107px 16px;
    box-sizing: border-box;
  }

  .main-container-edit-contact {
    width: 100%;
    height: auto;
    min-height: calc(81vh - 32px);
    border-radius: 30px;
  }

  .edit-contact-headcard {
    width: 100%;
    height: auto;
    padding: 72px 32px 40px 32px;
  }

  .edit-contact-content {
    width: 100%;
    padding: 40px 32px 48px 32px;
  }

  .button-edit-contact-order {
    width: 100%;
    gap: 16px;
  }

  .button-edit-contact {
    flex: 1;
    width: 100%;
  }
  .main-container-edit-contact.right-side-rounded {
    border-top-left-radius: 30px;
  }
}

@media (max-width: 700px) {
  .main-container-edit-contact {
    border-radius: 24px;
    gap: 56px;
  }

  .edit-contact-headcard {
    padding: 64px 24px 32px 24px;
  }

  .edit-contact-content {
    padding: 32px 20px 40px 20px;
    gap: 24px;
  }

  .edit-contact-inputfield {
    width: 100%;
    padding-left: 4px;
    padding-top: 34px;
    padding-bottom: 10px;
  }

  .close-icon-edit-contact {
    top: 16px;
    right: 16px;
  }
}
