@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600&family=Jost:wght@300;400;500&display=swap');

:root {
  --mfb-z:    99999;
  --mfb-ease: cubic-bezier(.34,1.3,.64,1);
}

#mfb-wrap {
  position: fixed;
  z-index: var(--mfb-z);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
#mfb-wrap[data-position="bottom-right"] { bottom: 32px; right: 32px; }
#mfb-wrap[data-position="bottom-left"]  { bottom: 32px; left:  32px; }

#mfb-trigger {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: none;
  padding: 6px;
  background: #111;
  cursor: pointer;
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
  transition: transform .3s var(--mfb-ease), box-shadow .25s;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
#mfb-trigger:hover {
  transform: scale(1.07);
  box-shadow: 0 6px 28px rgba(0,0,0,.2);
}
#mfb-trigger:active { transform: scale(.96); }
#mfb-trigger:focus { outline: none; }
#mfb-trigger:focus-visible { outline: none; }
#mfb-trigger img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

#mfb-popup {
  width: 340px;
  background: #fff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 16px 48px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.05);
  font-family: 'Jost', sans-serif;
  transform-origin: bottom center;
  transform: scale(.9) translateY(12px);
  opacity: 0;
  transition: transform .35s var(--mfb-ease), opacity .22s;
  pointer-events: none;
}
#mfb-popup:not([hidden]) {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}
#mfb-popup[hidden] { display: none; }

.mfb-popup-top {
  display: flex;
  justify-content: flex-end;
  padding: 16px 22px 12px;
  border-bottom: 1px solid #f0f0f0;
}
.mfb-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #111;
  font-family: 'Jost', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  padding: 0;
  transition: opacity .15s;
}
.mfb-close:hover { opacity: .45; }

.mfb-popup-body { padding: 22px 22px 28px; }

.mfb-popup-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: #111;
  margin: 0 0 14px;
  letter-spacing: .06em;
  line-height: 1.1;
}
.mfb-rule {
  width: 24px;
  height: 1px;
  background: #111;
  margin-bottom: 20px;
}

.mfb-contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #ebebeb;
}
.mfb-contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #ebebeb;
  text-decoration: none;
  color: #111;
  transition: padding-left .2s var(--mfb-ease);
}
.mfb-contact-item:hover { padding-left: 6px; }

.mfb-ci-info { display: flex; flex-direction: column; gap: 3px; }
.mfb-ci-label {
  font-size: 10px;
  font-weight: 500;
  color: #999;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.mfb-ci-value {
  font-size: 14px;
  font-weight: 400;
  color: #111;
}
.mfb-ci-arrow {
  font-size: 16px;
  color: #ccc;
  flex-shrink: 0;
  transition: color .18s, transform .18s;
}
.mfb-contact-item:hover .mfb-ci-arrow {
  color: #111;
  transform: translateX(3px);
}

@media (max-width: 420px) {
  #mfb-popup { width: calc(100vw - 36px); }
  #mfb-wrap[data-position="bottom-right"] { right: 18px; bottom: 22px; }
  #mfb-wrap[data-position="bottom-left"]  { left:  18px; bottom: 22px; }
}
