/* Concerto CSS file */

.concerto-link {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  background: none;
  border: none;
  color: inherit;
  transition: background-color 0.3s ease;
  /* Smooth transition for hover */
}

.concerto-link i {
  line-height: 0;
  /* Remove extra spacing around the Font Awesome icon */
  vertical-align: middle;
  background: none !important;
  padding: 0;
  /* Remove any padding that might cause a background to appear */
}

/* Target the ::before pseudo-element to resize the icon */
.concerto-link i.fa-compass::before,
.concerto-link i.fa-lock::before {
  font-size: 1.5rem !important;
  /* Smaller size for the icon */
  color: inherit;
}

.footer--bottom .btn-secondary.concerto-link {
  border-width: 0px;
  margin-right: 0px;
}

/* Override font-weight set by bootstrap5 to a.btn as it breaks displaying
subsets of Font Awesome icons. */
div.concerto a i.fa-solid {
  font-weight: 900;
}

/* Add a rule for fa-regular if needed, but... requires PRO */
div.concerto .info-icon-wrapper i.fa-regular {
  font-weight: 400;
}

/* Info icon wrapper to position the icon and text */
.info-icon-wrapper {
  position: relative;
  /* display: inline-flex; */
  align-items: center;
  vertical-align: middle;
}

/* Style the info icon */
.fa-circle-info.info-circle {
  cursor: pointer;
  color: #fff;
  /* White color */
  font-size: 0.625rem;
  /* Small size */
  background: none !important;
  /* Remove any blue background */
}

.block-sm i.fa-circle-info.info-circle::before {
  /* font-size: 0.625rem; */
  font-size: 0.875rem;
}

/* Hover and focus states for interactivity */
.fa-circle-info.info-circle:hover,
.fa-circle-info.info-circle:focus {
  color: #ccc;
  /* Slightly lighter shade for hover/focus */
}

/* Style the info text popover */
.info-text {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  z-index: 1000;
  width: max-content;
  max-width: 200px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  font-size: 0.875rem;
}

/* Add a small triangle (caret) above the popover */
.info-text::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-bottom: 5px solid #333;
}

/* Accessibility: Ensure focus is visible */
.fa-circle-info.info-circle:focus {
  outline: 2px solid #007bff;
  outline-offset: 2px;
}

/* Ensure the info icon inherits the same font-weight fix as other fa-solid icons */
div.concerto .info-icon-wrapper i.fa-solid {
  font-weight: 900;
}
