/* Ukryj belkę na desktopie */
.mobile-sticky-bar {
  display: none;
}

@media (max-width: 767px) {
  body {
    padding-bottom: 68px;
  }

  .mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9990;
    display: flex;
    gap: 10px;
    padding: 10px 12px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom));
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.08);
  }

  .mobile-sticky-bar__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 9999px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    text-decoration: none !important;
    transition: opacity 0.2s ease;
  }

  .mobile-sticky-bar__btn--call {
    background-color: #ffffff;
    color: #2e7d32;
    border: 1.5px solid #2e7d32;
  }

  .mobile-sticky-bar__btn--vaccine {
    background-color: #2e7d32;
    color: #ffffff;
    border: 1.5px solid #2e7d32;
  }

  .mobile-sticky-bar__btn:active {
    opacity: 0.85;
  }
}

/* Style Modala */
.apteka-modal[hidden] {
  display: none !important;
}

.apteka-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: flex-end; /* Wysuwa się wygodnie od dołu na telefonie */
  justify-content: center;
  padding: 16px;
}

.apteka-modal__backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.apteka-modal__content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15);
  animation: modalSlideUp 0.2s ease-out;
}

@keyframes modalSlideUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.apteka-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.apteka-modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
}

.apteka-modal__close {
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
}

.apteka-modal__desc {
  margin: 0 0 16px 0;
  font-size: 14px;
  color: #475569;
}

.apteka-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.apteka-modal__phone-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background-color: #2e7d32;
  color: #ffffff !important;
  border-radius: 12px;
  text-decoration: none !important;
  transition: background-color 0.2s ease;
}

.apteka-modal__phone-btn:active {
  background-color: #1b5e20;
}

.apteka-modal__city {
  font-size: 13px;
  font-weight: 500;
  opacity: 0.9;
}

.apteka-modal__number {
  font-size: 17px;
  font-weight: 700;
  margin-top: 2px;
}