/* Opportunity share popover */
.opp-share {
  position: relative;
  flex-shrink: 0;
}

.opp-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-width: 2.35rem;
  padding-left: 0.55rem;
  padding-right: 0.55rem;
}

.opp-share-btn-label {
  font-size: 0.8125rem;
  font-weight: 600;
}

.opp-share-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.45rem);
  z-index: 30;
  width: min(15.5rem, 78vw);
  padding: 0.4rem;
  border-radius: 0.85rem;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.14);
}

.opp-card-list .opp-share-menu,
.day-opp-actions .opp-share-menu {
  bottom: auto;
  top: calc(100% + 0.45rem);
}

.opp-share-menu[hidden] {
  display: none !important;
}

.opp-share-menu-head {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #94a3b8;
  padding: 0.35rem 0.55rem 0.25rem;
}

.opp-share-item {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  text-decoration: none;
  color: #0f172a;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 0.55rem;
  border-radius: 0.55rem;
  cursor: pointer;
}

.opp-share-item:hover,
.opp-share-item:focus {
  background: #f1f5f9;
  color: #0f172a;
  text-decoration: none;
}

.opp-share-ico {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 0.4rem;
  display: grid;
  place-items: center;
  background: #f1f5f9;
  color: #334155;
  font-size: 0.7rem;
  font-weight: 800;
  flex-shrink: 0;
}

.opp-share-ico--wa { background: #dcfce7; color: #15803d; }
.opp-share-ico--fb { background: #dbeafe; color: #1d4ed8; }
.opp-share-ico--x { background: #f1f5f9; color: #0f172a; }
.opp-share-ico--li { background: #e0f2fe; color: #0369a1; }
.opp-share-ico--tg { background: #e0f2fe; color: #0284c7; }

html[data-bs-theme="dark"] .opp-share-menu {
  background: #0f172a;
  border-color: rgba(255, 255, 255, 0.1);
}

html[data-bs-theme="dark"] .opp-share-item {
  color: #e2e8f0;
}

html[data-bs-theme="dark"] .opp-share-item:hover {
  background: #1e293b;
  color: #fff;
}

/* Appended docked-basket styles live with opp-dock rail */

/* When basket is nested in the Your opportunities rail */
.ai-basket.ai-basket--docked {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  z-index: 1;
  pointer-events: auto;
  display: flex;
  flex-direction: column-reverse;
  align-items: center;
}

.ai-basket.ai-basket--docked .ai-basket-fab {
  width: 3.1rem;
  height: 3.1rem;
  box-shadow: 0 6px 20px rgba(13, 148, 136, 0.32);
}

.ai-basket.ai-basket--docked .ai-basket-panel {
  left: auto;
  right: 0;
  bottom: calc(100% + 0.45rem);
  width: min(18.5rem, calc(100vw - 2rem));
}

body.has-opp-dock .opp-dock-basket-slot .ai-basket {
  /* ensure no leftover fixed offsets */
  transform: none;
}
