.lo-tips-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: visibility 0.1s linear, opacity 0.2s ease-out;
}

.lo-tips-popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.lo-tips-popup {
  position: fixed;
  top: 0;
  right: 0;
  width: 484px;
  height: 100%;
  background-color: #f2f2f3;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease-out;
}

.lo-tips-popup.active {
  transform: translateX(0);
}

@media (max-width: 768px) {
  .lo-tips-popup {
    width: 100%;
  }
}

/* Header */

.lo-tips-popup__header {
  background-color: #f2f2f3;
  border-bottom: 1px solid #e3e4e6;
  padding: 16px;
}

@media (min-width: 768px) {
  .lo-tips-popup__header {
    padding: 24px;
  }
}

.lo-tips-popup__header-content {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.lo-tips-popup__match-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.lo-tips-popup__title .match-teams-link {
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.3;
  color: #1d2129;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lo-tips-popup__title .match-teams-link__vs {
  font-weight: 400;
  color: #5d6066;
}

.lo-tips-popup__meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: "Roboto", sans-serif;
  font-weight: 400;
  font-size: 0.77778rem;
  line-height: 1.22222rem;
  color: #5d6066;
}

.lo-tips-popup__separator {
  margin: 0 2px;
  color: #bebec7;
}

.lo-tips-popup__market {
  display: inline-block;
  padding: 2px 8px;
  background-color: #eff3fa;
  color: #345599;
  border-radius: 4px;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.72222rem;
  line-height: 1.11111rem;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.lo-tips-popup__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: white;
  border-radius: 50%;
  cursor: pointer;
  flex-shrink: 0;
}

.lo-tips-popup__close .icon {
  width: 10px;
  min-width: 10px;
  height: 10px;
  min-height: 10px;
  color: #1d2129;
}

.lo-tips-popup__close:hover {
  opacity: 0.7;
}

/* Body */

.lo-tips-popup__body {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 20px 16px 24px;
}

@media (min-width: 768px) {
  .lo-tips-popup__body {
    padding: 24px;
  }
}

.lo-tips-popup__empty {
  font-family: "Roboto", sans-serif;
  font-size: 0.88889rem;
  color: #9ca3af;
  margin: 0;
}

/* Body sections */

.lo-tips-popup__section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lo-tips-popup__section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 7px;
  border-bottom: 1px solid #e3e4e6;
}

.lo-tips-popup__section-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  font-size: 0.77778rem;
  line-height: 1.11111rem;
  color: #1d2129;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.lo-tips-popup__ai-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 5px;
  background-color: #ede9fe;
  color: #6d28d9;
  border-radius: 4px;
  font-size: 0.61111rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
}

/* Text content card */

.lo-tips-popup__text-card {
  background-color: #fff;
  border-radius: 6px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.lo-tips-popup__reasoning {
  font-family: "Roboto", sans-serif;
  font-size: 0.88889rem;
  line-height: 1.55;
  color: #374151;
  margin: 0;
}

.lo-tips-popup__insights-text {
  font-family: "Roboto", sans-serif;
  font-size: 0.88889rem;
  line-height: 1.55;
  color: #374151;
  margin: 0;
  white-space: pre-line;
}

.lo-tips-popup__insights-intro {
  font-family: "Roboto", sans-serif;
  font-weight: 600;
  font-size: 0.88889rem;
  line-height: 1.5;
  color: #1d2129;
  margin: 0;
}

.lo-tips-popup__insights-bullets {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lo-tips-popup__insights-bullets li {
  font-family: "Roboto", sans-serif;
  font-size: 0.83333rem;
  line-height: 1.5;
  color: #374151;
}

.lo-tips-popup__insights-summary {
  font-family: "Roboto", sans-serif;
  font-style: italic;
  font-size: 0.83333rem;
  line-height: 1.5;
  color: #6b7280;
  margin: 0;
  padding-top: 4px;
  border-top: 1px solid #f3f4f6;
}

/* Expand button — floated right of .tip-match-name */

.tip-match-name {
  position: relative;
}

.tip-insights-expand {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: #eff3fa;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
  padding: 0;
}

.tip-insights-expand .icon {
  width: 13px;
  min-width: 13px;
  height: 13px;
  min-height: 13px;
  color: #345599;
}

.tip-insights-expand:hover {
  background-color: #dde8f8;
}
