/**
 * Styles for topics tab CTA and truncated engagement tips in partial reports
 */

/* Container for the CTA in the topics tab */
.topics-cta-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: transparent;
  border: none;
  border-radius: 0; /* Remove rounded corners */
  margin: 0; /* Remove vertical spacing */
  padding: 20px;
  padding-bottom: 40px; /* Add extra padding at the bottom */
  text-align: center;
  z-index: 10; /* Ensure it's above the content */
}

/* Inner container with solid background */
.topics-cta-inner-container {
  background-color: white;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  display: inline-block;
  max-width: 90%;
  margin: 0 auto;
}

/* Message in the CTA container */
.topics-cta-message {
  color: #495057;
  font-size: 16px;
  margin-bottom: 15px;
}

/* CTA button in topics tab now uses brand-button-compact */

/* Responsive adjustments */
@media (max-width: 768px) {
  .topics-cta-container {
    padding: 15px;
  }
  
  .topics-cta-inner-container {
    padding: 15px;
    max-width: 95%;
  }
  
  .topics-cta-message {
    font-size: 14px;
  }
  
  .topics-cta-container .brand-button-compact {
    font-size: 14px;
  }
}

/* Additional responsive styles for very small screens and embedded contexts */
@media (max-width: 480px) {
  .topics-cta-container {
    padding: 10px;
    margin: 0; /* Maintain zero margin */
  }
  
  .topics-cta-inner-container {
    padding: 12px;
    max-width: 100%;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.1);
  }
  
  .topics-cta-message {
    font-size: 12px;
    margin-bottom: 10px;
  }
  
  .topics-cta-container .brand-button-compact {
    font-size: 12px;
  }
}

/* Remove extra padding since CTA is now inline */
#engagementContent {
  position: relative;
  padding-bottom: 20px; /* Normal bottom padding */
}

/* Iframe-specific styles */
.iframe-embedded .topics-cta-container {
  margin: 0;
  border-radius: 0;
}