/* ── Mobile bottom sheet ─────────────────────────── */
.bc-mobile-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 2147483640;
  opacity: 0;
  transition: opacity 0.32s ease;
  pointer-events: none;
}
.bc-mobile-backdrop.bc-open {
  opacity: 1;
  pointer-events: auto;
}

/* Panel listy linkow — 48vh: chat widoczny powyzej, lista scrollowalna */
.bc-links-mobile-panel {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  max-height: 48vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
  z-index: 2147483641;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}
.bc-links-mobile-panel.bc-open {
  transform: translateY(0);
}

.bc-links-mobile-handle {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0 4px;
  flex-shrink: 0;
}
.bc-links-mobile-handle::after {
  content: '';
  display: block;
  width: 36px;
  height: 4px;
  background: #ddd;
  border-radius: 2px;
}

.bc-links-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 16px 10px;
  flex-shrink: 0;
}
.bc-links-mobile-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.bc-links-mobile-close {
  background: #f0ebe5;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 14px;
  cursor: pointer;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  -webkit-tap-highlight-color: transparent;
}

.bc-links-mobile-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* bc-mobile-sheet — dla navigate/iframe (pełna wysokosc) */
.bc-mobile-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 32px rgba(0,0,0,0.18);
  z-index: 2147483641;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  display: flex;
  flex-direction: column;
  max-height: 48vh;
  will-change: transform;
}
.bc-mobile-sheet.bc-sheet-full {
  max-height: 96vh;
}
.bc-mobile-sheet.bc-open {
  transform: translateY(0);
}
.bc-mobile-sheet.bc-closing {
  transform: translateY(100%);
}

.bc-sheet-handle-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0 4px;
  flex-shrink: 0;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.bc-sheet-handle-bar::after {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  background: #d1ccc7;
  border-radius: 2px;
}

.bc-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 16px 10px;
  flex-shrink: 0;
}
.bc-sheet-title {
  font-size: 15px;
  font-weight: 600;
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.bc-sheet-close {
  background: #f0ebe5;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 14px;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bc-sheet-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.bc-sheet-body iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ─── Contact Form in Mobile Sheet ─── */
.bc-sheet-form .bc-sheet-body { padding: 16px 20px; }
.bc-form-label { display: block; font-size: 13px; font-weight: 500; color: #5a5245; margin-bottom: 12px; }
.bc-form-input {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px;
  border: 1px solid #d4cfc5; border-radius: 8px; font-size: 15px;
  font-family: inherit; background: #fff; color: #333;
  box-sizing: border-box; -webkit-appearance: none;
}
.bc-form-input:focus { outline: none; border-color: #7a8f65; }
.bc-form-submit {
  display: block; width: 100%; padding: 13px; margin-top: 8px;
  background: #7a8f65; color: #fff; border: none; border-radius: 20px;
  font-size: 15px; font-weight: 600; cursor: pointer; font-family: inherit;
}
.bc-form-submit:disabled { opacity: 0.7; }
.bc-form-status { margin-top: 10px; font-size: 13px; text-align: center; }
