/* Standalone modal, not dependent on Magnific Popup or Porto markup. */
#b1g2-popup[hidden] { display: none !important; }
#b1g2-popup.fungi-b2g1-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, .55);
  overflow-y: auto;
  box-sizing: border-box;
}
#b1g2-popup, #b1g2-popup * { box-sizing: border-box; }
body.fungi-b2g1-popup-open { overflow: hidden; }
#b1g2-popup .popup {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  margin: auto;
  text-align: left;
}
#b1g2-popup .popup__close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  border-radius: 50%;
  transition: opacity 0.15s;
}
#b1g2-popup .popup__close:hover { opacity: 0.5; }
#b1g2-popup .popup__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  margin-bottom: 18px;
}
#b1g2-popup .popup__title {
  font-family: "SF Pro Text", sans-serif !important;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 12px;
  padding-right: 24px;
  color: #1a1a1a;
}
#b1g2-popup .popup__text {
  font-size: 15px;
  line-height: 1.5;
  color: #1a1a1a;
  margin: 0 0 24px;
}
#b1g2-popup .popup__list { list-style: disc; padding-left: 20px; margin-top: 8px; margin-bottom: 24px; }
#b1g2-popup .popup__item { margin-bottom: 14px; }
#b1g2-popup .popup__item:last-child { margin-bottom: 0; }
#b1g2-popup .popup__address { font-size: 14px; color: #1a1a1a; text-decoration: underline; text-underline-offset: 2px; line-height: 1.5; }
#b1g2-popup .popup__address:hover { color: #039855; }
#b1g2-popup .popup__phone-line { font-size: 14px; color: #1a1a1a; margin-top: 2px; line-height: 1.5; }
#b1g2-popup .popup__phone { color: #039855; font-weight: 600; text-decoration: none; font-size: 16px; }
#b1g2-popup .popup__phone:hover { text-decoration: underline; }
#b1g2-popup .popup__btn {
  display: block;
  width: 100%;
  padding: 16px;
  background: #23342A;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-align: center;
  text-decoration: none;
  line-height: normal;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 24px;
}
#b1g2-popup .popup__btn:hover { background: #162c1f; color: #fff; }
#b1g2-popup .popup__close:focus-visible, #b1g2-popup .popup__btn:focus-visible {
  outline: 3px solid #039855;
  outline-offset: 3px;
}
@media (max-width: 480px) {
  #b1g2-popup.fungi-b2g1-popup-overlay { padding: 14px; }
  #b1g2-popup .popup { padding: 20px; }
}

/* Smooth entry; opacity/transform do not block the add-to-cart request. */
#b1g2-popup.fungi-b2g1-popup-overlay:not([hidden]) {
  animation: fungi-b2g1-backdrop-enter 280ms ease-out both;
}
#b1g2-popup.fungi-b2g1-popup-overlay:not([hidden]) > .popup {
  animation: fungi-b2g1-dialog-enter 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes fungi-b2g1-backdrop-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes fungi-b2g1-dialog-enter {
  from { opacity: 0; transform: translateY(12px) scale(0.975); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  #b1g2-popup.fungi-b2g1-popup-overlay:not([hidden]),
  #b1g2-popup.fungi-b2g1-popup-overlay:not([hidden]) > .popup {
    animation: none;
  }
}
