/* Header Styles */

.page-wrapper {
  max-width: 1800px;
  margin: 0 auto;
  padding-top: 24px;
  padding-bottom: 24px;
  padding-inline: 37px;
  /* padding: 2rem; */
  /* transform: scale(0.9); */
  /* transform-origin: top center; */
}

@media (max-width: 800px) {
  .page-wrapper {
    padding: 0.3rem 2rem;
    /* max-width: 100%; */
  }
  #metrics-section-background-overlay {
    height: 97% !important;
    width: 103% !important;
  }
}

body {
  width: 100%;
  margin: 0 auto;
  overflow-x: hidden;
  max-width: 100%;
  background-color: white !important;
}
.scan-header {
  padding: 0.6rem 0rem;
  background: #fff;
  border-bottom: 1px solid #eee;
  position: relative;
  z-index: 200;
  width: 100%;
  max-width: 100%;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 96rem;
  margin: 0 auto;
}

.back-link {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.back-link .ti {
  font-size: 1rem;
  line-height: 1.5;
}

.back-link:hover {
  color: #333;
}

.back-link span {
  font-size: 0.8rem;
}
#metrics-section-background-overlay {
  position: absolute;
  width: 101.5%;
  height: 103%;
  background-color: white;
  left: -12px;
  bottom: 4px;
  border-radius: 15px;
}
.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.tabnav-logo {
  display: flex;
  align-items: center;
  gap: 1px;
  margin-bottom: 4px;
}

.tabnav-logo span {
  color: #8e56dc;
  font-size: 0.8rem;
  font-weight: 400;
  margin: 0;
  font-size: 1.1rem;
  margin-left: 3px;
}

.tabnav-logo svg {
  transform: translateY(-1px);
}

.logo-black {
  display: flex;
  align-items: center;
  transform: translateY(3px);
}
/* share link button starts */
.overview-heading-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}
.share-button .tooltip::before {
  content: none !important;
  display: none !important;
  height: 0 !important;
  width: 0 !important;
  border: none !important;
  background: transparent !important;
  position: static !important;
  transform: none !important;
}
.overview-heading-wrapper h3 {
  margin-right: 10px;
}

.share-button {
  margin-right: 3rem;
  margin-bottom: 12px;
  background-color: #f0f0f0;
  border: none;
  border-radius: 50%;
  width: 33px; /* Reduced from 40px to 33px */
  height: 33px; /* Reduced from 40px to 33px */
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s;
  padding: 0; /* Remove any padding */
}

.share-button:hover,
.share-button:focus {
  background-color: #e0e0e0;
}

.share-button svg {
  color: #666;
  width: 18px; /* Reduced from 20px to 18px for better proportions */
  height: 18px; /* Reduced from 20px to 18px for better proportions */
  display: block; /* Ensures proper centering */
  margin: 0; /* Remove any margin */
}

.share-button .tooltip {
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s,
    visibility 0.2s;
}

/* Remark Section Starts */
.accessibility-remark-section {
  display: flex;
  border: 1px #e7e7e7 groove;
  border-radius: 5px;
  padding: 1rem 1rem;
  margin-bottom: 1rem;
  flex-direction: column;
}
.accessibility-remark-first-row {
  display: flex;
  justify-content: space-between;
}
.accessibility-remark-first-row button {
  background-color: unset;
  border: none;
  transform: translateY(-5px);
}
.accessibility-remark-first-row h3 {
  font-size: 0.9rem;
  align-self: center;
  margin-left: 7px;
  margin-bottom: 5px;
}
.note-row {
  display: flex;
}
.explanation-row p {
  font-size: 0.8rem;
  margin-bottom: 0;
  margin-right: 2.5rem;
}

.accessibility-remark-first-row button svg {
  width: 30px;
}
/* Remark Section Ends */
.share-button:hover .tooltip,
.share-button:focus .tooltip {
  opacity: 1;
  visibility: visible;
}

.share-button.copied .tooltip {
  background-color: #4caf50;
}

/* share link button ends */
.custom-tanav-logo {
  margin-bottom: 0;
}
.overview-heading-wrapper {
  display: flex;
  justify-content: space-between;
}
.overview-heading-wrapper > h3 {
  align-self: center;
}
.logo-text {
  color: #666;
  font-size: 1rem;
}

.start-trial-btn {
  background: #8e56dc;
  color: white;
  height: 32px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.8rem;
  white-space: nowrap;
  font-weight: 400;
  transition: all 0.2s ease;
  box-shadow: 0 0.25rem 0.75rem rgba(107, 74, 232, 0.25);
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.start-trial-btn:hover {
  background: #8e56dc;
  color: white !important;

  box-shadow: 0 6px 16px rgba(107, 74, 232, 0.3);
}

.start-trial-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 12px rgba(107, 74, 232, 0.25);
}

/* Scan Content Styles */
.scan-content {
  padding: 0rem 0;

  position: relative;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: visible;
}

.background-image {
  position: absolute;
  top: -4.6875rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
  width: 100vw;
  height: 15.1875rem;
  overflow: hidden;
  display: flex;
  justify-content: center;
  /* max-width: 100%; */
}

.background-image img {
  width: 100%;
  height: 90%;
}

.scan-content-wrapper {
  display: flex;
  justify-content: start;
  width: 100%;
  margin: 0 auto;
  /* padding: 0 2rem; */
  gap: 1rem;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
}

.overview-section {
  display: flex;
  width: 39%;
  border: 1px #e7e7e7 groove;
  z-index: 100000;
  border-radius: 7px;
}

.score-card,
.overview-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
}

.score-card {
  /* width: 52%;
  min-width: 447px;
  max-width: 33.375rem; */
  width: 100%;
  /* margin-right: 12px; */
  /* max-width: 26rem;
  min-width: 18rem; */
  height: 13.5rem;
  position: relative;
  display: flex;
  flex-direction: column;
  padding-bottom: 0.9375rem;
  border: 1px #e7e7e7 groove;
}

.score-card-header {
  height: 87%;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 17px;
  flex-wrap: nowrap;
  gap: 1rem;
}

.score-info {
  flex: 1;
  min-width: 200px;
  max-width: calc(100% - 9.25rem);
}

.score-circle {
  margin: 0;
  position: relative;
  top: 0;
  right: 0;
  flex-shrink: 0;
  width: 8.25rem;
  height: 11.25rem;
}

.overview-card {
  /* width: 585px; */
  /* max-width: 46.875rem; */
  width: 100%;
  /* height: 16.2rem; */
  /* min-height: auto; */
  /* padding: 1.2rem 0; */
  padding: 0.9375rem 0;
  padding-bottom: 0;
}

.overview-card h3 {
  color: #1f2937;
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding: 0 1.5rem;
  padding-right: 0;
  margin-right: 0;
  display: inline;
}

.score-card h3,
.overview-card h3 {
  color: #3b3f44;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 12px;
  margin-right: 0.625rem;
}

.website-url {
  display: inline-flex;
  color: #666;
  font-size: 0.8rem;
  margin-bottom: 0.5rem;
  /* word-break: break-word; */
  position: relative;
  align-items: center;
  /* gap: 0.25rem; */
  max-width: 186px;
  width: 100%;
}

.website-url::before {
  content: ""; /* This is REQUIRED - without it, ::before won't show */
  background-image: url(../../images/checker/site-image.png);
  background-size: contain; /* or cover, or specific size */
  background-repeat: no-repeat;
  width: 32px; /* Set explicit dimensions */
  height: 21px;
  display: inline-block; /* or block */
  transform: translateY(1px);
}

.website-url:last-of-type:before {
  content: ""; /* This is REQUIRED - without it, ::before won't show */
  background-image: url(../../images/checker/violation-image.png);
  background-size: contain; /* or cover, or specific size */
  background-repeat: no-repeat;
  width: 32px; /* Set explicit dimensions */
  height: 21px;
  display: inline-block; /* or block */
  transform: translateY(1px);
}
.website-url .url-text {
  color: #333;
  max-width: 100px;
  white-space: normal;
  word-break: break-word;
  position: relative;
  display: inline-block;
}

.website-url .url-text:hover {
  overflow: visible;
  z-index: 1000;
}

.website-url .url-text:hover::after {
  content: attr(title);
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 0.5rem;
  border-radius: 4px;
  font-size: 0.8rem;
  white-space: normal;
  max-width: 300px;
  z-index: 1000;
  top: 100%;
  left: 0;
  margin-top: 0.25rem;
  word-break: break-word;
}

/* WCAG Compliance Overview Styles Starts */
.wcag-compliance-overview {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  border: 1px #e7e7e7 groove;
}

.wcag-overview-header {
  margin-bottom: 20px;
}

.wcag-overview-title {
  font-size: 0.9rem;
  font-weight: 500;
  color: #3b3f44;
  margin-bottom: 16px;
}
#wcagLegend {
  flex-direction: column;
}
#wcagLegend * {
  font-size: 0.7rem;
  color: #2d2833;
}
.wcag-progress-bar-container {
  width: 100%;
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 16px;
  display: flex;
}

.wcag-progress-section {
  height: 100%;
  transition: width 0.6s ease;
}
.wcag-progress-section:not(.wcag-progress-section:last-of-type) {
  margin-right: 2px;
}

.wcag-progress-section.visual-impairments {
  background-color: #5a189a;
}

.wcag-progress-section.motor-impairments {
  background-color: #7b2cbf;
}

.wcag-progress-section.cognitive {
  background-color: #9d4edd;
}

.wcag-progress-section.other {
  background-color: #c77dff;
}

.wcag-legend {
  display: flex;
  flex-wrap: wrap;
  margin-top: 12px;
}

.wcag-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: #64748b;
}

.wcag-legend-color {
  width: 9px;
  height: 9px;
  border-radius: 6px;
}

.wcag-legend-color.perceivable {
  background-color: #5a189a;
}

.wcag-legend-color.operable {
  background-color: #7b2cbf;
}

.wcag-legend-color.understandable {
  background-color: #9d4edd;
}

.wcag-legend-color.robust {
  background-color: #c77dff;
}

.wcag-violations-count {
  font-weight: 500;
  color: #1e293b;
}

.wcag-percentage {
  color: #64748b;
  font-size: 13px;
}

/* Responsive design */
@media (max-width: 640px) {
  .wcag-legend {
    flex-direction: column;
  }

  .wcag-compliance-overview {
    padding: 16px;
  }
}

/* WCAG Compliance Overview Styles Ends */

@media (max-width: 600px) {
  .website-url .url-text {
    max-width: 150px;
  }
}

/* Progress Ring */
.progress-ring {
  position: relative;
  width: 8.25rem;
  height: 11.25rem;
}

.progress-ring-background {
  fill: none;
  stroke: #e5e7eb;
  transition: stroke 0.5s;
}

.progress-ring-circle {
  fill: none;
  stroke: #2e8b57;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 0.5s;
}

.progress-ring-background.bg-danger {
  stroke: #fee1e2;
}

.progress-ring-background.bg-warning {
  stroke: #fff1e3;
}

.progress-ring-background.bg-success {
  stroke: #dcf6e8;
}

.progress-ring-background.custom-blue {
  stroke: #d4d8ff;
}

.progress-ring-circle.bg-danger {
  stroke: #dc3545;
}

.progress-ring-circle.bg-warning {
  stroke: #b15e0b;
}

.progress-ring-circle.bg-success {
  stroke: #2b814f;
}

.progress-ring-circle.custom-blue {
  stroke: #6b69f2;
}

.score-percentage {
  position: absolute;
  top: 34%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 1.7rem;
  font-weight: 400;
  color: #333;
}

.score-percentage span {
  font-size: 1.5rem;
  font-weight: normal;
}

@media (max-width: 1199px) {
  .progress-ring {
    width: 10.25rem;
    height: 10.25rem;
  }

  .score-percentage {
    font-size: 1.75rem;
    top: 43%;
    left: 46%;
  }

  .score-percentage span {
    font-size: 1.25rem;
  }

  .score-info {
    max-width: calc(100% - 11.25rem);
  }
}

/* @media (max-width: 800px) {
  .score-card-header {
    padding: 1rem;
  }

  .score-info {
    max-width: 150px;
    margin-right: 0.5rem;
  }

  .score-info h3 {
    line-height: 1.4;
    word-wrap: break-word;
    white-space: normal;
  }

  .score-circle {
    right: 0.5rem;
    top: 0.5rem;
  }

  .score-percentage {
    font-size: 2rem;
    top: 45%;
    left: 49%;
  }

  .score-percentage span {
    font-size: 1rem;
  }
} */

.scan-additional-info {
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.6rem;
  padding-right: 2.1875rem;
  padding-left: 0.8rem;
  margin-top: auto;
  border-top: 1px solid #e5e7eb;
}
.website-url {
  max-width: unset;
}
.scan-additional-info p {
  color: #666;
  font-size: 0.7rem;
  margin: 0;
}

.indicator-dot {
  display: none;
}

/* Progress Metrics */
.progress-metrics {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0;
}

.metric-item {
  display: flex;
  align-items: center;
  padding: 0.45rem 1.5rem;
  padding-right: 3rem;
  border-bottom: 1px solid #e5e7eb;
}

.metric-item:last-child {
  border-bottom: none;
}

.metric-label {
  color: #666;
  font-size: 0.76rem;
  font-weight: 400;
  width: 7rem;
  /* flex-shrink: 0;
  margin: 0;
  margin-left: 0.625rem; */
}

.progress-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-grow: 1;
  max-width: 17.5rem;
  margin-left: auto;
}

.progress {
  flex-grow: 1;
  height: 0.4rem;
  background-color: #e5e7eb;
  border-radius: 0.25rem;
  overflow: hidden;
  /* width: 20rem; */
}

.progress-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.3s ease;
}

.bg-danger {
  background-color: #ff5254;
}

.bg-warning {
  background-color: #b15e0b !important;
}

.bg-info {
  background-color: #6366f1;
}

.custom-blue {
  background-color: #6b69f2;
}

.bg-success {
  background-color: #2b814f;
}

.progress-value {
  color: #1f2937;
  font-size: 0.8rem;
  font-weight: 500;
  min-width: 2.8125rem;
  text-align: right;
  margin-left: auto;
}

/* Add switch button styles */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.switch-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.switch-label {
  color: #2d2833;
  font-size: 0.7rem;
  margin: 0;
  cursor: pointer;
}

.switch {
  margin-left: 6px;
  position: relative;
  display: inline-block;
  width: 3.125rem;
  height: 1.5rem;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.switch input:focus-visible + .slider {
  outline: 2px solid black;
  outline-offset: 2px;
}
.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e5e7eb;
  transition: 0.4s;
  border-radius: 1.5rem;
}

.slider:before {
  position: absolute;
  content: "";
  height: 1rem;
  width: 1rem;
  left: 0.3rem;
  bottom: 0.24rem;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #8e56dc;
}

input:checked + .slider:before {
  transform: translateX(1.5rem);
}

.score-section {
  display: flex;
  align-items: center;
  gap: 30px;
  max-height: 249px;
  width: 60%;
}

.score-image {
  height: 100%;
  margin-left: -15px;
  min-width: 523px;
  display: flex;
  justify-content: center;
  background-color: transparent;
  box-shadow: none;
  z-index: 10000;
}

.score-section.no-image,
.overview-section.no-image {
  width: 100%;
}

.website-url.no-image {
  max-width: unset;
}
.score-image.fallback-frame {
  height: 252px;
  width: 100%;
  max-width: 455px;
}

.score-image.fallback-frame img {
  width: 100%;
  object-fit: fill;
  max-width: 445px;
}

.score-image img {
  margin-left: 29px;
  border-radius: 12px;
  min-width: 523px;
  width: 523px;
  height: 100%;
  object-fit: contain;

  box-shadow: rgba(0, 0, 0, 0.05) 0px 2px 10px;
  position: relative;
  border: 1px groove rgb(231, 231, 231);
}

/* Issues Section Styles */
.issues-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.0625rem;
  width: 100%;
  max-width: 65.125rem;
  overflow: visible; /* Allow tooltips to show */
  flex: 1; /* Take up available space */
}

/* Issues Filter Container Styles */
.issues-filter-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.05);
  padding: 16px 20px;
  border: 1px #e7e7e7 groove;
  border-radius: 12px;
  background-color: #ffffff;
}

.issues-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 13px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background-color: #ffffff;
  color: #4b5563;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.issues-filter-btn:hover {
  border-color: #9ca3af;
  background-color: #f9fafb;
}

.issues-filter-btn:focus-visible {
  outline: 2px solid #8b5cf6;
  outline-offset: 2px;
}

.issues-filter-btn.active {
  border-color: #8b5cf6;
  color: rgba(142, 86, 220, 1);
  background: rgba(142, 86, 220, 0.13);
}

.issues-filter-icon {
  flex-shrink: 0;
  color: currentColor;
}

.issues-filter-text {
  color: inherit;
}

.issues-filter-count {
  color: inherit;
}

.issues-filter-info {
  flex-shrink: 0;
  color: #9ca3af;
  margin-left: auto;
  transition: color 0.2s ease;
}

.issues-filter-btn.active .issues-filter-info {
  color: rgba(142, 86, 220, 1);
}

/* Disabled state for filter buttons when count is 0 */
.issues-filter-btn[disabled],
.issues-filter-btn.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
  background-color: #f3f4f6;
  border-color: #e5e7eb;
  color: #9ca3af;
}

.issues-filter-btn[disabled]:hover,
.issues-filter-btn.disabled:hover {
  background-color: #f3f4f6;
  border-color: #e5e7eb;
}

.issues-filter-dropdown-item[disabled],
.issues-filter-dropdown-item.disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
  background-color: #f3f4f6;
  color: #9ca3af;
}

.issues-filter-dropdown-item[disabled]:hover,
.issues-filter-dropdown-item.disabled:hover {
  background-color: #f3f4f6;
}

/* Issues Filter Info Tooltip Styles */
.issues-filter-info-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-left: auto;
}

.issues-filter-info-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.9);
  color: white;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
  z-index: 1000;
}

.issues-filter-info-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: rgba(0, 0, 0, 0.9);
}

.issues-filter-info-wrapper:hover .issues-filter-info-tooltip,
.issues-filter-info-wrapper:focus-within .issues-filter-info-tooltip {
  opacity: 1;
  visibility: visible;
}

.issues-filter-info-wrapper .issues-filter-info {
  margin-left: 0;
  cursor: help;
}

/* Issues Filter Wrapper */
.issues-filter-wrapper {
  position: relative;
  overflow: visible;
}

/* Hide filters in certificate variant */
.certificate-variant .issues-filter-wrapper {
  display: none !important;
}

/* Dropdown Filter Styles (Hidden by default) */
.issues-filter-dropdown-wrapper {
  display: none;
  align-items: center;
  gap: 20px;
  overflow: visible;
}

.issues-filter-dropdown-header {
  margin-bottom: 0;
  flex-shrink: 0;
}

.issues-filter-dropdown-title {
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
}

.issues-filter-dropdown-subtitle {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
}

.issues-filter-dropdown-container {
  position: relative;
  /* width: 100%; */
}

.issues-filter-dropdown-btn {
  display: flex;
  align-items: center;
  min-width: 250px;
  /* width: 100%; */
  gap: 10px;
  padding: 12px 16px;
  border: 1px solid rgba(142, 86, 220, 1);
  border-radius: 12px;
  background-color: rgba(142, 86, 220, 0.13);
  color: rgba(142, 86, 220, 1);
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.issues-filter-dropdown-btn:hover {
  background-color: rgba(142, 86, 220, 0.18);
}

.issues-filter-dropdown-btn:focus-visible {
  outline: 2px solid rgba(142, 86, 220, 1);
  outline-offset: 2px;
}

.issues-filter-dropdown-btn[aria-expanded="true"] {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.issues-filter-dropdown-icon {
  flex-shrink: 0;
  color: currentColor;
}

.issues-filter-dropdown-text {
  flex: 1;
  color: currentColor;
}

.issues-filter-dropdown-chevron {
  flex-shrink: 0;
  color: currentColor;
  transition: transform 0.2s ease;
}

.issues-filter-dropdown-btn[aria-expanded="true"]
  .issues-filter-dropdown-chevron {
  transform: rotate(180deg);
}

.issues-filter-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  display: none;
  flex-direction: column;
  background-color: #ffffff;
  border: 1px solid rgba(142, 86, 220, 1);
  border-top: none;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  max-height: 400px;
  overflow-y: auto;
}

.issues-filter-dropdown-container.open .issues-filter-dropdown-menu {
  display: flex;
}

.issues-filter-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border: none;
  background: transparent;
  color: #4b5563;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease;
  text-align: left;
  width: 100%;
}

.issues-filter-dropdown-item:hover {
  background-color: #f9fafb;
}

.issues-filter-dropdown-item:focus-visible {
  outline: 2px solid rgba(142, 86, 220, 1);
  outline-offset: -2px;
}

.issues-filter-dropdown-item.active {
  background-color: rgba(142, 86, 220, 0.13);
  color: rgba(142, 86, 220, 1);
}

.issues-filter-dropdown-item-icon {
  flex-shrink: 0;
  color: currentColor;
}

.issues-filter-dropdown-item-text {
  /* flex: 1; */
  color: currentColor;
}

.issues-filter-dropdown-item-count {
  color: currentColor;
  font-size: 13px;
}

/* Issues Filter Container Responsive Styles */
@media (max-width: 992px) {
  .issues-filter-container {
    gap: 10px;
    padding: 14px 16px;
  }

  .issues-filter-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .issues-filter-container {
    gap: 8px;
    padding: 12px 14px;
  }

  .issues-filter-btn {
    padding: 8px 12px;
    font-size: 12px;
    gap: 6px;
  }

  .issues-filter-icon {
    width: 16px;
    height: 16px;
  }

  .issues-filter-info {
    width: 12px;
    height: 12px;
  }

  .issues-filter-info-tooltip {
    font-size: 11px;
    padding: 6px 10px;
  }
}

@media (max-width: 576px) {
  .issues-filter-container {
    flex-direction: column;
    gap: 8px;
  }

  .issues-filter-btn {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Dropdown view for screens 1760px and below */
@media (max-width: 1760px) {
  .issues-filter-container {
    display: none;
  }

  .issues-filter-dropdown-wrapper {
    display: flex;
  }
}

/* Add padding-top when there's no screenshot or invalid URL error */
body.invalid-url-error .issues-filter-dropdown-wrapper,
body:has(#screenshotImage:not([src])):not(:has(.certificate-badge-container)) .issues-filter-dropdown-wrapper,
body:has(#screenshotImage[style*="display: none"]):not(:has(.certificate-badge-container)) .issues-filter-dropdown-wrapper {
  padding-top: 30px !important;
}

/* Stack dropdown header above button on very small screens */
@media (max-width: 440px) {
  .issues-filter-dropdown-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .issues-filter-dropdown-header {
    width: 100%;
  }

  .issues-filter-dropdown-container {
    width: 100%;
  }

  .issues-filter-dropdown-btn {
    width: 100%;
    min-width: 0;
  }
}

.issues-section {
  width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: flex-start;
  flex-direction: column;
  background-color: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
  height: fit-content;
  border: 1px #e7e7e7 groove;
  transition: opacity 0.2s ease-in-out;
}

/* Hidden issues sections (no visible items after filtering) */
.issues-section[hidden] {
  display: none;
}

.issues-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0;
  padding-bottom: 0.9375rem;
  border-bottom: 1px solid #e5e7eb;
}

.issues-header h2 {
  font-size: 1rem;
  font-weight: 500;
  color: #3b3f44;
  margin: 0;
  padding-top: 0.9375rem;
  padding-left: 0.9375rem;
}

.issues-count {
  white-space: nowrap;
  width: fit-content;
  min-width: 200px;
  text-align: center;
  margin-right: 1.25rem;
  margin-top: 1.25rem;
  background-color: #fef2f2;
  color: rgba(196, 44, 44, 1);
  border: 1px solid rgba(184, 40, 72, 1);
  padding: 0.375rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.issues-count.success {
  background-color: #ecfdf5;
  color: #2b814f;
  border: 1px solid rgba(47, 111, 81, 1);
}

/* Hide issues-count when Passed or Not Applicable filters are active */
.issues-wrapper[data-current-filter="passed"] .issues-count,
.issues-wrapper[data-current-filter="not-applicable"] .issues-count {
  display: none;
}

/* Accordion Styles */
.accordion {
  width: 100%;
}

.accordion-item {
  border: none;
  background: transparent;
  border-radius: 0;
  margin-bottom: 0;
  box-shadow: none;
  border-bottom: 1px solid #e5e7eb;
  width: 100%;
  transition:
    opacity 0.2s ease-in-out,
    max-height 0.3s ease-in-out;
}

/* Hidden accordion items (filtered out) */
.accordion-item[hidden] {
  display: none;
}

.accordion-button {
  padding: 0.7rem 0;
  font-size: 1rem;
  font-weight: 400;
  color: #525252;
  background: transparent !important;
  border: none;
  border-radius: 0 !important;
  box-shadow: none !important;
  transition: transform 0.2s ease-in-out;
}
.container-fluid {
  background-color: transparent !important;
}
/* Add margin to accordion button text */
.accordion-button span {
  margin-left: 0.9rem;
  color: #3b3f44;
  font-weight: 500;
  font-size: 0.9rem;
}

.accordion-button .accordion-title {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-right: 0.75rem;
}

.accordion-button .accordion-badge {
  margin-left: 0;
  margin-right: 0;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.5rem;
  border-radius: 8px;
  background-color: #fef2f2;
  color: #c42c2c;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.accordion-button.collapsed {
  background-color: transparent;
}

.accordion-button:not(.collapsed) {
  color: #1f2937;

  box-shadow: none !important;
}

.accordion-button:focus-visible {
  border: none;
  /* background-color: #f4f4f4 !important; */
  outline: 2px purple solid !important;
  outline-offset: 2px;
  box-shadow: none !important;
}

.btn.btn-primary.start-trial-btn:focus-visible {
  background-color: #8e56dc;
  outline: 2px black solid;
  box-shadow: unset;
}
.accordion-button::after {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  margin-right: 2.1875rem;
  margin-left: auto;
  content: "";
  background-repeat: no-repeat;
  background-size: 1rem;
  transition: transform 0.3s ease;
}

.accordion-button:not(.collapsed)::after {
  transform: rotate(180deg);
}

.accordion-button.collapsed::after {
  transform: rotate(0deg);
}

.accordion-item.error .accordion-button i {
  color: #ef4444;
  margin-left: 0.9375rem;
  font-size: 1.5rem;
  background: #fef2f2;
  padding: 0.375rem;
  border-radius: 0.5rem;
  width: 1.875rem;
  height: 1.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion-item.error .accordion-button svg {
  margin-left: 0.9375rem;
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  display: block;
}

.accordion-item.success .accordion-button i {
  color: #10b981;
  margin-left: 0.9375rem;
  font-size: 1.5rem;
  background: #ecfdf5;
  padding: 0.375rem;
  border-radius: 0.5rem;
  width: 1.875rem;
  height: 1.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion-item.success .accordion-button svg {
  margin-left: 0.9375rem;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  display: block;
}

/* Page content hidden until provider detection is complete */
/* Exclude certificate variant - detection not needed for static certificate pages */
body.tabnav-detecting:not(.certificate-variant) .page-wrapper,
body.tabnav-detecting:not(.certificate-variant) .scan-content {
  visibility: hidden;
  opacity: 0;
}

/* Certificate variant: ALWAYS visible regardless of detection state */
/* This overrides any hiding from tabnav-detecting */
body.certificate-variant .page-wrapper,
body.certificate-variant .scan-content {
  visibility: visible !important;
  opacity: 1 !important;
}

/* Show page content after detection is complete */
body.tabnav-detection-complete .page-wrapper,
body.tabnav-detection-complete .scan-content {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.15s ease-in;
}

/* Tabnav AI Mode Pending - Hide error items immediately to prevent flash of failed checks */
body.tabnav-ai-mode-pending .accordion-item.error {
  display: none !important;
}

body.tabnav-ai-mode-pending .issues-section .issues-count {
  visibility: hidden;
}

body.tabnav-ai-mode-pending .accordion-badge {
  display: none !important;
}

/* Hide violations count and related UI in pending mode */
body.tabnav-ai-mode-pending .total-violations-count,
body.tabnav-ai-mode-pending .issues-section-header .issues-count {
  visibility: hidden;
}

/* Hide any red/error status indicators in pending mode */
body.tabnav-ai-mode-pending .failed-status {
  display: none !important;
}

/* Hide Failed Checks filter button and count in pending mode */
body.tabnav-ai-mode-pending .issues-filter-btn[data-filter="failed"],
body.tabnav-ai-mode-pending .issues-filter-dropdown-item[data-filter="failed"] {
  display: none !important;
}

/* Tabnav AI Mode Active - Disabled state for failed filter button after transformation */
body.tabnav-ai-mode .issues-filter-btn[data-filter="failed"] {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

body.tabnav-ai-mode .issues-filter-btn[data-filter="failed"] .issues-filter-count {
  display: none;
}

body.tabnav-ai-mode .issues-filter-dropdown-item[data-filter="failed"] {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

body.tabnav-ai-mode .issues-filter-dropdown-item[data-filter="failed"] .issues-filter-dropdown-item-count {
  display: none;
}

.accordion-body {
  padding: 2px;
  /* padding: 1.25rem 0 1.25rem 2.5rem; */
  /* padding: 1.25rem 0 1.25rem 1.25rem; */
  background-color: #f3f6fb;
  border-radius: 0;
}

body:has(#certificate-banner) .accordion-body,
.certificate-variant .accordion-body {
  padding: 1.25rem 0 1.25rem 1.25rem !important;
}

.issue-details {
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  /* padding: 1.25rem; */
  margin-right: 1.25rem;
}

.inaccordion-section-padding {
  padding-inline: 1.25rem;
}
.issue-details h4 {
  font-size: 0.9rem;
  font-weight: 500;
  color: #2f3a47;
  margin-bottom: 0.4375rem;
}

.issue-details h4.code-block-heading {
  border-top: 1px #c8c8c8 solid;
  padding-top: 1.5rem;
  color: #4a4a4a;
  font-size: 0.9375rem;
  font-weight: 500;
}

/* ============================================= 
   Two-Column Accordion Layout
   ============================================= */
.issue-details-container {
  display: flex;
  gap: 10px;
  border-radius: 0.5rem;
  padding: 10px;
  /* padding: 1.25rem;
  margin-right: 1.25rem; */
}

.issue-details-left {
  flex: 0 0 270px;
  min-width: 270px;
  display: flex;

  flex-direction: column;
  gap: 0;
}

.issue-details-right {
  flex: 1;
  min-width: 0;
  background-color: #fff;
  border-radius: 0.5rem;
  padding: 13px;
  border: 1px solid #e5e7eb;
  position: relative;
}

/* Empty state for passed and irrelevant status */
.issue-details-right.passed-empty-state,
.issue-details-right.irrelevant-empty-state {
  height: fit-content;
}

.empty-state-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.empty-state-image {
  /* max-width: 200px; */
  height: auto;
}

.empty-state-text {
  font-size: 14px;
  font-weight: 400;
  color: #aeaeae;
  margin: 0;
  text-align: center;
}

/* Status Explanation Section - NEW DESIGN (non-certificate only) */
/* Uses :not(.inaccordion-section-padding) to exclude certificate variant */
.status-explanation-section:not(.inaccordion-section-padding) {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 12px;
  border-radius: 0.5rem 0.5rem 0 0;
  background-color: #fff;
  border: 1px solid #e5e7eb;
  border-bottom: none;
  position: relative;
}

/* Hide the h4::after icon in new design - icon is SVG in .status-icon-wrapper */
.status-explanation-section:not(.inaccordion-section-padding) h4::after {
  display: none;
}

.status-explanation-section:not(.inaccordion-section-padding).failed-status {
  background-color: #fef2f2;
  border: 1px solid rgba(227, 229, 232, 1);
}

.status-explanation-section:not(.inaccordion-section-padding).failed-status
  .status-icon-wrapper {
  color: #dc2626;
}

.status-explanation-section:not(.inaccordion-section-padding).failed-status
  .status-title,
.status-explanation-section:not(.inaccordion-section-padding).failed-status
  .status-description {
  color: #b82848;
}

.status-explanation-section:not(.inaccordion-section-padding).failed-status
  .status-title::after {
  content: "";
  background-image: url(../../images/checker/checker-exclamation-red.png);
  background-size: contain;
  background-repeat: no-repeat;
  width: 20px;
  height: 21px;
  display: inline-block;
  position: absolute;
  right: 12px;
  top: 12px;
}

.status-explanation-section:not(.inaccordion-section-padding).passed-status {
  background-color: #ecfdf5;
  border: 1px solid rgba(227, 229, 232, 1);
}

.status-explanation-section:not(.inaccordion-section-padding).passed-status
  .status-icon-wrapper {
  padding-top: 2px;
  color: #368761;
}

.status-explanation-section:not(.inaccordion-section-padding).passed-status
  .status-title,
.status-explanation-section:not(.inaccordion-section-padding).passed-status
  .status-description {
  color: #2f6f51;
}

.status-explanation-section:not(.inaccordion-section-padding).passed-status
  .status-title::after {
  content: "";
  background-image: url(../../images/checker/checker-exclamation-green.png);
  background-size: contain;
  background-repeat: no-repeat;
  width: 20px;
  height: 21px;
  display: inline-block;
  position: absolute;
  right: 12px;
  top: 12px;
}

.status-explanation-section:not(
    .inaccordion-section-padding
  ).irrelevant-status {
  background-color: #f5f5f5;
  border: 1px solid #e3e5e8;
}

.status-explanation-section:not(.inaccordion-section-padding).irrelevant-status
  .status-icon-wrapper {
  padding-top: 2px;
  color: #4D525C;
}

.status-explanation-section:not(.inaccordion-section-padding).irrelevant-status
  .status-title,
.status-explanation-section:not(.inaccordion-section-padding).irrelevant-status
  .status-description {
  color: #494f59fa;
}

.status-explanation-section:not(.inaccordion-section-padding).irrelevant-status
  .status-title::after {
  content: "";
  background-image: url(../../images/checker/checker-exclamation-black.png);
  background-size: contain;
  background-repeat: no-repeat;
  width: 20px;
  height: 21px;
  display: inline-block;
  position: absolute;
  right: 12px;
  top: 12px;
}

.status-icon-wrapper {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 1px;
}

.status-explanation-section:not(.inaccordion-section-padding).passed-status
  .status-icon-wrapper
  svg,
.status-explanation-section:not(.inaccordion-section-padding).irrelevant-status
  .status-icon-wrapper
  svg {
  display: block;
}

/* Status icon classes for individual styling */
.status-icon-failed {
  color: #C42C2C;
  margin-top: -3px;
  display: block;
}

.status-icon-passed {
  margin: 1px 3px;
  display: block;
}

.status-icon-irrelevant {
  margin: 6px;
  display: block;
}

.status-header {
  display: flex;
  align-items: flex-start;
  gap: 4px;
}

.status-title-wrapper {
  flex: 1;
}

.status-title {
  font-size: 0.875rem;
  font-weight: 600;
  /* margin: 0 0 0.25rem 0; */
  color: inherit;
}

.status-description-wrapper {
  width: 100%;
  margin-top: 0.5rem;
  margin-left: 4px;
}

.status-description {
  font-size: 12px;
  text-align: left;
  color: #6b7280;
  margin: 0;
  line-height: 1.5;
}

/* Inner Dropdown Styles */
.inner-dropdown {
  padding: 11px;
  background-color: #fff;
  border-left: 1px solid #e3e5e8;
  border-right: 1px solid #e3e5e8;
  border-bottom: 1px solid #e3e5e8;
}

.inner-dropdown:last-child {
  border-radius: 0 0 8px 8px;
}

.inner-dropdown-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  border-radius: 8px;
  padding: 8px 1rem;
  background-color: #f5f5f5;
  border: 1px solid #cfcfcf;
  /* border-bottom: 1px solid rgba(229, 231, 235, 1); */
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: #3c4653;
  text-align: left;
  transition: background-color 0.15s ease;
  gap: 0.625rem;
  margin-bottom: 0.4rem;
}

.inner-dropdown-toggle:last-of-type {
  margin-bottom: 0;
}

.inner-dropdown-toggle[aria-expanded="true"] {
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  margin-bottom: 0;
}

.inner-dropdown-toggle:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: -2px;
  border-radius: 0.25rem;
}

.wcag-academy-toggle {
  background-color: rgba(57, 127, 87, 0.12);
  border: 1px solid #397f5785;
}

.wcag-academy-toggle .wcag-academy-text {
  color: #397f57;
}

.wcag-academy-toggle .inner-dropdown-chevron {
  color: #397f57;
}

/* WCAG Academy Content Styles */
.inner-dropdown-content.wcag-academy-content.show {
  background-color: rgba(57, 127, 87, 0.12);
  border-left: 1px solid #397f5785;
  border-right: 1px solid #397f5785;
  border-bottom: 1px solid #397f5785;
}

.wcag-academy-content .wcag-version-badge {
  display: inline-block;
  background-color: #ffffff;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 400;
  color: #397f57;
  margin-bottom: 0.75rem;
}

.wcag-academy-content .wcag-description {
  color: #397f57;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.wcag-academy-content .wcag-learn-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  background-color: #467756;
  color: rgb(255, 255, 255);
  padding: 6px 13px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: background-color 0.2s;
}

.wcag-academy-content .wcag-learn-more-btn:hover {
  background-color: #2f6f4d;
}

.wcag-academy-content .wcag-learn-more-btn svg {
  stroke: #ffffff;
}

.inner-dropdown-icon {
  flex-shrink: 0;
  color: #3c4653;
  width: 22px;
  height: 22px;
}

.inner-dropdown-toggle span {
  font-size: 14px;
  flex: 1;
  color: #3c4653;
  font-weight: 500;
}

.inner-dropdown-chevron {
  flex-shrink: 0;
  color: #3c4653;
  transition: transform 0.2s ease;
  width: 16px;
  height: 16px;
}

.inner-dropdown-toggle[aria-expanded="true"] .inner-dropdown-chevron {
  transform: rotate(180deg);
}

.inner-dropdown-toggle.collapsed .inner-dropdown-chevron {
  transform: rotate(0deg);
}

.inner-dropdown-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  background-color: #f8f9fa;
  border-left: none;
  border-right: none;
  border-bottom: none;
  transition:
    max-height 0.20s ease-out,
    padding 0.20s ease-out,
    margin 0.20s ease-out,
    opacity 0.20s ease-out;
 
}

.inner-dropdown-content.show {
  max-height: 1000px;
  padding: 1rem;
  border-left: 1px solid #cfcfcf;
  border-right: 1px solid #cfcfcf;
  border-bottom: 1px solid #cfcfcf;
  border-bottom-left-radius: 10px;
  margin-bottom: 0.5rem;
  border-bottom-right-radius: 10px;
  opacity: 1;
}

.inner-dropdown-content p {
  font-size: 14px;
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
}

/* WCAG Academy Dropdown Specific Styles */
.wcag-version-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 500;
  color: #6b7280;
  background-color: #f3f4f6;
  padding: 0.25rem 0.625rem;
  border-radius: 0.25rem;
  margin-bottom: 0.75rem;
}

.wcag-description {
  margin-bottom: 1rem !important;
}

.wcag-learn-more-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #fff;
  background-color: #7c3aed;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.wcag-learn-more-btn:hover {
  background-color: #6d28d9;
  color: #fff;
}

.wcag-learn-more-btn:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
}

.wcag-learn-more-btn svg {
  stroke: currentColor;
}

/* Code Elements Section in Right Column */
.code-elements-heading {
  font-size: 0.8rem;
    font-weight: 500;
    color: #343434;
  margin: 0 0 1rem 0;
}

/* Passed state for code elements heading */
.code-elements-heading.passed,
.code-block-heading.passed {
  color: #368761;
}

/* Tabnav AI mode - style code elements as passed */
body.tabnav-ai-mode .code-elements-heading,
body.tabnav-ai-mode .code-block-heading {
  color: #368761;
}

.no-code-elements {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  color: #9ca3af;
  font-size: 0.875rem;
}

/* Responsive Design for Two-Column Layout */
@media (max-width: 1024px) {
  .issue-details-container {
    flex-direction: column;
  }

  .issue-details-left {
    flex: none;
    min-width: 100%;
  }

  .issue-details-right {
    min-width: 100%;
  }
}

.toggle-switch {
  position: relative;
  width: 109px;
  height: 31px;
  background-color: white;
  border: 1.5px solid #c5c5c5;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.toggle-switch:focus {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

.toggle-switch:focus:not(:focus-visible) {
  outline: none;
}

.toggle-switch:focus-visible {
  outline: 2px solid #0066cc;
  outline-offset: 2px;
}

#toggle-label {
  display: inline-flex;
  align-items: center;
  color: #666;
  font-size: 0.7rem;
  margin: 0;
}
#toggle-label::before {
  content: ""; /* This is REQUIRED - without it, ::before won't show */
  background-image: url(../../images/checker/toggle-widget-decoration.png);
  background-size: contain; /* or cover, or specific size */
  background-repeat: no-repeat;
  width: 33px; /* Set explicit dimensions */
  height: 26px;
  transform: translateY(4px);
  display: inline-flex; /* or block */
}

.toggle-circle {
  position: absolute;
  top: 3px;
  left: 5px;
  width: 50px;
  height: 23px;
  background-color: #969696;
  border-radius: 20px;
  transition: left 0.3s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.off-text {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-weight: 400;
  font-size: 13px;
  z-index: 10;
  transition: color 0.3s ease;
}

.on-text {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
  color: #121212;
  font-size: 13px;
  font-weight: normal;
  z-index: 10;
  transition: color 0.3s ease;
}

.toggle-switch.active .toggle-circle {
  left: 51px;
  background-color: #8e56dc;
}

.toggle-switch.active .off-text {
  color: #333;
}

.toggle-switch.active .on-text {
  color: white;
}

/* Disabled toggle switch styles */
.toggle-switch[aria-disabled="true"] {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}

.toggle-switch[aria-disabled="true"] .toggle-circle {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); /* Reduced shadow for disabled state */
}

/* Optional: Add a subtle disabled pattern overlay */
.toggle-switch[aria-disabled="true"]::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 2px,
    rgba(255, 255, 255, 0.1) 2px,
    rgba(255, 255, 255, 0.1) 4px
  );
  border-radius: 20px;
  pointer-events: none;
}

/* Ensure the disabled state shows even when active */
.toggle-switch.active[aria-disabled="true"] {
  opacity: 0.6;
}

.toggle-switch.active[aria-disabled="true"] .toggle-circle {
  background-color: #8e56dc; /* Keep the purple color but muted due to opacity */
}

/* Disabled label styling */
#toggle-label.disabled {
  opacity: 0.8;
  font-style: italic;
}

/* Optional: Add a tooltip or visual indicator for disabled state */
.toggle-switch[aria-disabled="true"]::before {
  content: attr(data-disabled-reason);
  position: absolute;
  top: -30px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.2s,
    visibility 0.2s;
  z-index: 1000;
}

.toggle-switch[aria-disabled="true"]:hover::before {
  opacity: 1;
  visibility: visible;
}

div.tabnav-academy p {
  /* display:flex; */
  font-size: 0.79rem;
  margin-bottom: 1rem;
}
.tabnav-academy p::before {
  content: ""; /* This is REQUIRED - without it, ::before won't show */
  background-image: url(../../images/checker/tabnav-academy.png);
  background-size: contain; /* or cover, or specific size */
  background-repeat: no-repeat;
  width: 30px; /* Set explicit dimensions */
  height: 26px;
  transform: translateY(8px);
  display: inline-flex; /* or block */
}
.success-criterion-link {
  color: #2e8b57;
  font-weight: 500;
  text-decoration: underline;
}
.success-criterion-link svg path {
  fill: #2e8b57;
}
.success-criterion-link svg {
  transform: translateY(-1px);
  transition: transform 0.2s ease; /* Add smooth transition */
}

.success-criterion-link:hover svg {
  transform: translateY(-1px) translateX(2px);
}
.issue-details p {
  color: #4b5563;
  font-size: 0.8rem;
  line-height: 1.5;
  margin-bottom: 1.5625rem;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
#copy-announcements {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.code-blocks {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-right: 7px;
  margin-bottom: 0;
  /* max-height: 500px; */
  overflow-y: auto;
  /* padding-right: 0.5rem; */
}

/* Custom scrollbar for code blocks */
.code-blocks::-webkit-scrollbar {
  width: 6px;
}

.code-blocks::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 3px;
}

.code-blocks::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

.code-blocks::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.code-block {
  background-color: #374151;
  border-radius: 0.5rem;
  position: relative;
  overflow: hidden;
  height: 2.625rem;
  cursor: text;
  display: flex;
  align-items: center;
  border: 1px solid #4b5563;
  flex: 1; /* Takes up remaining space */
  transform: unset;
}

/* Custom scrollbar styles */
.code-block::-webkit-scrollbar {
  height: 4px;
  background-color: rgba(255, 255, 255, 0.1);
}

.code-block::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.code-block::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.code-block:hover {
  border-color: #6b7280;
}

.code-icon {
  color: white;
  width: 16px;
  height: 16px;
}

.code-icon-section {
  background-color: #ef4444;
  width: 2.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.code-block:active {
  cursor: text;
}

.code-content {
  flex: 1;
  padding: 0.75rem 1.5rem 0.75rem 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.code-content::-webkit-scrollbar {
  display: none;
}

.code-content code {
  color: #fff;
  font-family: "Courier New", "Monaco", "Menlo", monospace;
  font-size: 0.8125rem;
  white-space: nowrap;
  display: block;
  line-height: 1.3125rem;
  pointer-events: none;
  user-select: text;
  -webkit-user-select: text;
  -moz-user-select: text;
  -ms-user-select: text;
}

.copy-button-external {
  background: transparent;
  border: 1px solid #d1d5db;
  padding: 0.5rem;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s ease;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  background-color: white;
  border: unset;
}

.copy-button-external:focus-visible {
  outline: 2px solid #8a2be2;
  outline-offset: -4px;
  /* box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.3); */
  z-index: 100;
  position: relative;
}
.copy-button-external:hover {
  color: #374151;
  background-color: #f3f4f6;
  border-color: #9ca3af;
}
.copy-button-external:active {
  transform: scale(0.95);
}

.copy-button:active {
  transform: scale(0.95);
}

.copy-button-external.copied {
  color: #10b981;
  border-color: #10b981;
  /* background-color: #ECFDF5; */
}

.copy-button-external.copied:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: -4px;
}

.copy-button-external.copied:hover {
  background-color: white;
}

.copy-icon,
.check-icon {
  transition: opacity 0.2s ease;
}

.hidden {
  display: none;
}

/* Code Block Actions Container */
.code-block-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* Fix with AI Button Styles */

/* Outer wrapper with background */
.fix-with-ai-wrapper {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 3.86px;
  gap: 6.43px;
  width: auto;
  min-width: fit-content;
  flex-shrink: 0;
  height: 39.84px;
  background: rgba(61, 0, 255, 0.08);
  border-radius: 10px;
  transition: all 0.5s ease;
}

/* The actual button */
.fix-with-ai-btn {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  padding: 9.65px 19.29px;
  gap: 5.14px;
  width: 100%;
  height: 32.12px;
  background: linear-gradient(269.68deg, #9A51F6 -1.56%, #6024B4 95.92%);
  background-size: 200% 100%;
  background-position: 0% 0%;
  box-shadow: inset 0px 0px 5.14px rgba(255, 255, 255, 0.5), 
              inset 0px -15.43px 20.58px rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: background-position 0.4s ease, 
              width 0.5s ease, 
              height 0.5s ease,
              padding 0.5s ease,
              background 0.5s ease,
              box-shadow 0.5s ease,
              border 0.5s ease;
}

/* Hover effect */
.fix-with-ai-btn:hover {
  background-position: 100% 0%;
}

/* Active/Click effect */
.fix-with-ai-btn:active {
  background-position: 100% 0%;
}

/* Focus visible */
.fix-with-ai-btn:focus-visible {
  outline: 2px solid #a855f7;
  outline-offset: 2px;
}

/* Button text */
.fix-with-ai-text {
  font-family: "Inter", sans-serif;
  font-style: normal;
  font-weight: 400;
  font-size: 10.29px;
  line-height: 12px;
  color: #FFFFFF;
  white-space: nowrap;
  transition: opacity 0.3s ease;
}

/* Sparkle icon */
.fix-with-ai-sparkle {
  width: 13.45px;
  height: 12.83px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.5s ease;
  position: relative;
}

.fix-with-ai-sparkle svg {
  width: 100%;
  height: 100%;
}

.fix-with-ai-sparkle svg path {
  transition: fill 0.5s ease;
}

/* Show/hide icons based on state */
.fix-with-ai-sparkle .single-star {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.fix-with-ai-sparkle .three-stars {
  display: block;
  position: relative;
}

.fix-with-ai-btn.loading .fix-with-ai-sparkle .three-stars,
.fix-with-ai-btn.loading-active .fix-with-ai-sparkle .three-stars {
  display: none !important;
}

.fix-with-ai-btn.loading .fix-with-ai-sparkle .single-star,
.fix-with-ai-btn.loading-active .fix-with-ai-sparkle .single-star {
  display: block !important;
}

/* Loading state - button stays same size */
.fix-with-ai-btn.loading .fix-with-ai-text {
  animation: fixAiTextToCenter 0.6s ease-out forwards;
}

/* Individual letter animations */
.fix-with-ai-btn.loading .fix-with-ai-text span {
  display: inline-block;
  animation: fixAiLetterFade 0.15s ease-out forwards;
}

.fix-with-ai-btn.loading .fix-with-ai-text span:nth-child(1) { animation-delay: 0.55s; }
.fix-with-ai-btn.loading .fix-with-ai-text span:nth-child(2) { animation-delay: 0.5s; }
.fix-with-ai-btn.loading .fix-with-ai-text span:nth-child(3) { animation-delay: 0.45s; }
.fix-with-ai-btn.loading .fix-with-ai-text span:nth-child(4) { animation-delay: 0.4s; }
.fix-with-ai-btn.loading .fix-with-ai-text span:nth-child(5) { animation-delay: 0.35s; }
.fix-with-ai-btn.loading .fix-with-ai-text span:nth-child(6) { animation-delay: 0.3s; }
.fix-with-ai-btn.loading .fix-with-ai-text span:nth-child(7) { animation-delay: 0.25s; }
.fix-with-ai-btn.loading .fix-with-ai-text span:nth-child(8) { animation-delay: 0.2s; }
.fix-with-ai-btn.loading .fix-with-ai-text span:nth-child(9) { animation-delay: 0.15s; }
.fix-with-ai-btn.loading .fix-with-ai-text span:nth-child(10) { animation-delay: 0.1s; }
.fix-with-ai-btn.loading .fix-with-ai-text span:nth-child(11) { animation-delay: 0.05s; }
.fix-with-ai-btn.loading .fix-with-ai-text span:nth-child(12) { animation-delay: 0s; }

.fix-with-ai-btn.loading .fix-with-ai-sparkle {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.fix-with-ai-btn.loading .fix-with-ai-sparkle .single-star {
  animation: fixAiIconFadeIn 0.5s ease-out forwards;
  opacity: 0;
}

.fix-with-ai-btn.loading-active .fix-with-ai-sparkle {
  animation: fixAiIconHalfTurnPause 4.5s cubic-bezier(0.33, 0, 0.1, 1) infinite;
}

/* Hide text completely after animation */
.fix-with-ai-btn.loading-active .fix-with-ai-text {
  opacity: 0;
  pointer-events: none;
}

.fix-with-ai-btn.completed .fix-with-ai-text {
  display: none;
}

/* Final completed state - NOW everything changes */
.fix-with-ai-btn.completed {
  width: 44.72px;
  height: 39.84px;
  padding: 12px;
  background: #F5F5F5;
  border: 1px solid #A2A2A2;
  border-radius: 9.25px;
  box-shadow: none;
}

.fix-with-ai-btn.completed .fix-with-ai-sparkle {
  position: static;
  transform: scale(1) rotate(0deg);
  animation: none;
}

.fix-with-ai-btn.completed .fix-with-ai-sparkle .three-stars {
  display: block !important;
  animation: fixAiFadeInScale 0.4s ease-out forwards;
}

.fix-with-ai-btn.completed .fix-with-ai-sparkle .single-star {
  display: none !important;
}

.fix-with-ai-btn.completed .fix-with-ai-sparkle svg path {
  fill: #7C7C7C;
}

/* Button wrapper animation for completed state */
.fix-with-ai-wrapper.completed {
  width: auto;
  height: auto;
  padding: 0;
  background: transparent;
  align-items: center;
  border-radius: 0;
}

/* Keyframe animations for Fix with AI button */
@keyframes fixAiTextToCenter {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-5px);
  }
}

@keyframes fixAiLetterFade {
  0% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes fixAiIconFadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes fixAiIconHalfTurnPause {
  0% {
    transform: translateX(-50%) rotate(0deg);
  }
  25% {
    transform: translateX(-50%) rotate(180deg);
  }
  45% {
    transform: translateX(-50%) rotate(180deg);
  }
  70% {
    transform: translateX(-50%) rotate(360deg);
  }
  100% {
    transform: translateX(-50%) rotate(360deg);
  }
}

@keyframes fixAiFadeInScale {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fixAiGradientLoading {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Responsive adjustments for Fix with AI button */
@media (max-width: 768px) {
  .fix-with-ai-wrapper {
    width: 100px;
    height: 36px;
    padding: 3px;
  }

  .fix-with-ai-btn {
    width: 94px;
    height: 30px;
    padding: 8px 14px;
  }

  .fix-with-ai-text {
    font-size: 9px;
  }

  .fix-with-ai-sparkle {
    width: 11px;
    height: 11px;
  }
}

/* Start of not-applicable (gray) state styles */

/* Gray state for not-applicable issues */

.accordion-item.not-applicable .accordion-button {
  background-color: #f9fafb; /* Light gray background */
  border-color: #9ca3af;
}

.accordion-item.not-applicable .accordion-button:hover {
  background-color: #f3f4f6; /* Slightly darker gray on hover */
}

.accordion-item.not-applicable .accordion-button:focus {
  border-color: #6b7280; /* Darker gray border on focus */
  box-shadow: 0 0 0 0.2rem rgba(156, 163, 175, 0.25); /* Gray focus shadow */
}

.accordion-item.not-applicable .accordion-button i {
  color: #6b7280; /* Gray icon color */
  margin-left: 0.9375rem;
  font-size: 1.5rem;
  background: #f3f4f6; /* Light gray background for icon */
  padding: 0.375rem;
  border-radius: 0.5rem;
  width: 1.875rem;
  height: 1.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.accordion-item.not-applicable .accordion-button svg {
  margin-left: 0.9375rem;
  width: 29px;
  height: 29px;
  flex-shrink: 0;
  display: block;
}

/* .accordion-item.not-applicable .accordion-button span {
  color: #374151; /* Dark gray text */
/* } */
*/

/* Icon for not-applicable items - using minus sign */
.ti-square-rounded-minus::before {
  content: "−"; /* Unicode minus sign */
  font-family: inherit;
  font-weight: bold;
  font-size: 1.2rem;
}

/* Start of status explanation section styles - OLD DESIGN (certificate variant only) */

.certificate-variant .status-explanation-section {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: unset;
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-bottom: 1px solid #e9ecef; /* Override new design's border-bottom: none */
  border-radius: 8px;
  border-bottom-right-radius: 0px;
  border-bottom-left-radius: 0px;
  padding: 1.25rem;
  /* margin-bottom: 1.5rem; */
  position: relative;
}

.certificate-variant .status-explanation-section h4 {
  display: block !important;
  width: 100% !important;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  /* margin-left: 2.5rem; Space for the icon */
  color: #374151;
}

.certificate-variant .status-explanation-section p {
  display: block !important;
  width: 100% !important;
  font-size: 0.8rem;
  line-height: 1.4;
  margin-bottom: 0;
  /* margin-left: 2.5rem; Space for the icon */
  color: #6b7280;
}

/* Base icon styling for all status types - OLD DESIGN (certificate) */
.certificate-variant .status-explanation-section h4::after {
  content: "";
  background-size: contain;
  background-repeat: no-repeat;
  width: 32px;
  height: 21px;
  display: inline-block !important; /* Override the hide rule from new design */
  position: absolute;
  right: 1rem;
  top: 1rem;
  transform: translateY(1px);
}

/* Failed status styling (red) */
.certificate-variant .status-explanation-section.failed-status {
  background-color: #fef2f2;
  border: 1px solid #e3e5e8;
  border-bottom: 1px solid #e3e5e8;
  margin-bottom: 1.5rem;
}

.certificate-variant .status-explanation-section.failed-status h4 {
  color: rgba(184, 40, 72, 1);
}

.certificate-variant .status-explanation-section.failed-status p {
  color: rgba(184, 40, 72, 1);
}

.certificate-variant .status-explanation-section.failed-status h4::after {
  background-image: url(../../images/checker/checker-exclamation-red.png);
}

/* Passed status styling (green) */
.certificate-variant .status-explanation-section.passed-status {
  background-color: rgba(236, 253, 245, 1);
  border: 1px solid #e3e5e8;
  border-bottom: 1px solid #e3e5e8;
  margin-bottom: 1.5rem;
}

/* Certificate variant base styling - uses inaccordion-section-padding class */
.status-explanation-section.inaccordion-section-padding {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  background-color: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  border-radius: 8px !important;
  border-bottom-right-radius: 0px !important;
  border-bottom-left-radius: 0px !important;
  padding: 1.25rem !important;
  position: relative !important;
}

/* Certificate variant passed-status styling */
.status-explanation-section.inaccordion-section-padding.passed-status {
  background-color: rgba(236, 253, 245, 1) !important;
  border-color: #e3e5e8 !important;
  margin-bottom: 1.5rem !important;
}

.status-explanation-section.inaccordion-section-padding.passed-status h4 {
  display: block !important;
  width: 100% !important;
  color: rgba(47, 111, 81, 1) !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  margin: 0 0 0.5rem 0 !important;
}

.status-explanation-section.inaccordion-section-padding.passed-status p {
  display: block !important;
  width: 100% !important;
  color: rgba(47, 111, 81, 1) !important;
  font-size: 0.8rem !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

.status-explanation-section.inaccordion-section-padding.passed-status
  h4::after {
  content: "" !important;
  background-image: url(../../images/checker/checker-exclamation-green.png) !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  width: 32px !important;
  height: 21px !important;
  display: inline-block !important;
  position: absolute !important;
  right: 1rem !important;
  top: 1rem !important;
}

/* Certificate variant irrelevant-status styling */
.status-explanation-section.inaccordion-section-padding.irrelevant-status {
  background-color: #f3f4f6 !important;
  border-color: #e3e5e8 !important;
  margin-bottom: 1.5rem !important;
}

.status-explanation-section.inaccordion-section-padding.irrelevant-status h4 {
  display: block !important;
  width: 100% !important;
  color: #494f59 !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  margin: 0 0 0.5rem 0 !important;
}

.status-explanation-section.inaccordion-section-padding.irrelevant-status p {
  display: block !important;
  width: 100% !important;
  color: #494f59 !important;
  font-size: 0.8rem !important;
  line-height: 1.4 !important;
  margin: 0 !important;
}

.status-explanation-section.inaccordion-section-padding.irrelevant-status
  h4::after {
  content: "" !important;
  background-image: url(../../images/checker/checker-exclamation-black.png) !important;
  background-size: contain !important;
  background-repeat: no-repeat !important;
  width: 32px !important;
  height: 21px !important;
  display: inline-block !important;
  position: absolute !important;
  right: 1rem !important;
  top: 1rem !important;
}

.certificate-variant .status-explanation-section.passed-status h4 {
  color: rgba(47, 111, 81, 1);
}

.certificate-variant .status-explanation-section.passed-status p {
  color: rgba(47, 111, 81, 1);
}

.certificate-variant .status-explanation-section.passed-status h4::after {
  background-image: url(../../images/checker/checker-exclamation-green.png);
}

/* Irrelevant status styling (gray) */
.certificate-variant .status-explanation-section.irrelevant-status {
  background-color: #f3f4f6;
  border: 1px solid #e3e5e8;
  border-bottom: 1px solid #e3e5e8;
  margin-bottom: 1.5rem;
}

.certificate-variant .status-explanation-section.irrelevant-status h4 {
  color: #494f59fa;
}

.certificate-variant .status-explanation-section.irrelevant-status h4::after {
  background-image: url(../../images/checker/checker-exclamation-black.png);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .certificate-variant .status-explanation-section h4,
  .certificate-variant .status-explanation-section p {
    /* margin-left: 2rem; Slightly less space on mobile */
  }

  .certificate-variant .status-explanation-section h4::before {
    width: 28px;
    height: 18px;
    left: 0.75rem;
  }
}

/* End of status explanation section styles - OLD DESIGN */

/* Certificate variant: Section spacing for old accordion design */
.certificate-variant .issue-summary-section,
.certificate-variant .why-matters-section {
  padding-top: 0rem;
  padding-bottom: 0.5rem;
}

.certificate-variant .issue-summary-section h4,
.certificate-variant .why-matters-section h4 {
  margin-top: 0.5rem;
}

.certificate-variant .tabnav-academy {
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

/* End of not-applicable (gray) state styles */

/* Responsive adjustments */
@media (max-width: 768px) {
  /* .code-block-container {
    gap: 0.5rem;
  } */

  .code-block {
    height: auto;
    min-height: 2.625rem;
  }

  .code-content {
    padding: 0.5rem 0.75rem;
  }

  .code-content code {
    font-size: 0.75rem;
    line-height: 1.2rem;
  }

  .code-icon-section {
    background-color: #ef4444;
    width: 3rem; /* Slightly wider to accommodate the 26px icon */
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .code-icon {
    color: white;
    width: 26px;
    height: 26px;
  }

  .copy-button-external {
    width: 2.25rem;
    height: 2.25rem;
  }

  .copy-button-external svg {
    width: 24px;
    height: 24px;
  }
}

/* Focus styles for accessibility */

/* Focus styles for accessibility */
.copy-button:focus {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}

/* Animation for better UX */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.code-block-container {
  animation: fadeIn 0.2s ease-out;
  display: flex;
  align-items: center;
  /* gap: 0.75rem; */
}
.code-block {
  animation: fadeIn 0.2s ease-out;
}

/* Smooth scrolling for code content */
.code-content {
  scroll-behavior: smooth;
}

/* Custom scrollbar for code content (optional, only shows on hover) */
.code-content:hover {
  /* scrollbar-width: thin; */
  scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.code-content:hover::-webkit-scrollbar {
  display: block;
  height: 4px;
}

.code-content:hover::-webkit-scrollbar-track {
  background: transparent;
}

.code-content:hover::-webkit-scrollbar-thumb {
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 2px;
}

.code-content:hover::-webkit-scrollbar-thumb:hover {
  background-color: rgba(255, 255, 255, 0.4);
}

.code-block::before {
  display: none;
}

/* Hide scrollbar for Chrome, Safari and Opera */
.code-block::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* Start of no-image layout adjustments */

/* When image is hidden, adjust section widths */
.score-section.no-image {
  width: 50% !important;
  min-width: unset;
}

.overview-section.no-image {
  width: 50% !important;
  min-width: unset;
}

/* Responsive adjustments for no-image scenario */
@media (max-width: 1450px) {
  .score-section.no-image,
  .overview-section.no-image {
    width: 100% !important;
  }
}

@media (max-width: 1000px) {
  .score-section.no-image,
  .overview-section.no-image {
    width: 100% !important;
  }
}

/* End of no-image layout adjustments */

/* Content Bottom Section */
.content-bottom-section {
  display: flex;
  /* justify-content: center; */
  gap: 0.7rem;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
  margin-top: 0;
  padding-top: 0;
  align-items: flex-start; /* Align items to the top */
}

/* Promotional Cards Section */
.promo-cards-section {
  display: flex;
  position: sticky;
  top: 0.9375rem;
  flex-direction: column;
  gap: 1.25rem;
  width: 35%;
  /* max-width: 26rem; */
  flex-shrink: 1; /* Allow shrinking */
  height: fit-content;
  transition: top 0.1s ease;
  overflow-y: auto; /* Add scrolling if needed */
  align-self: flex-start; /* Keep the section aligned to the top */
  z-index: 10; /* Ensure it appears above other content when sticky */
}

.promo-card {
  background: #fff;
  border-radius: 0.5rem;
  box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.05);
  overflow: hidden;
  height: 18.725rem;
  min-height: 18.125rem; /* Add min-height to prevent it from shrinking vertically */
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
  flex-shrink: 0; /* Prevent individual cards from shrinking */
  border: 1px #e7e7e7 groove;
}

.promo-card-image {
  width: 100%;
  height: 9.375rem;
  overflow: hidden;
}

.promo-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.promo-card-content {
  padding-left: 1.25rem;
  padding-right: 1.25rem;
  padding-top: 1.5625rem;
  padding-bottom: 1.875rem;
}

.promo-card-content h3 {
  color: #1f2937;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.promo-card-content p {
  color: #6b7280;
  font-size: 0.845rem;
  line-height: 2;
  margin-bottom: 1rem;
  /* width: 9.625rem; */
}

.wcag-progress-bar-container:not(.data-loaded) .wcag-progress-section {
  width: 0% !important;
  background-color: transparent !important;
}

/* Prevent all-green state from showing during loading */
.wcag-progress-bar-container:not(.data-loaded).all-green {
  background-color: #e2e8f0 !important; /* Keep gray background */
}

.wcag-progress-bar-container:not(.data-loaded).all-green
  .wcag-progress-section {
  display: block !important; /* Override the hide */
  width: 0% !important;
  background-color: transparent !important;
}

/* Only apply all-green styles when data is loaded */
.wcag-progress-bar-container.data-loaded.all-green {
  background-color: #2b814f !important;
}

.wcag-progress-bar-container.data-loaded.all-green .wcag-progress-section {
  display: none !important;
}

/* Smooth animation only after data is loaded */
.wcag-progress-bar-container.data-loaded .wcag-progress-section {
  transition:
    width 0.6s ease,
    background-color 0.6s ease;
}

.wcag-progress-bar-container.all-green {
  background-color: #2b814f !important; /* Fill the entire container with green */
}

/* Hide ALL individual sections when in all-green mode */
.wcag-progress-bar-container.all-green .wcag-progress-section {
  display: none !important;
}

/* Alternative approach: Make all sections invisible but keep container green */
.wcag-progress-bar-container.all-green .wcag-progress-section {
  opacity: 0 !important;
  width: 0 !important;
}

.wcag-progress-bar-container.all-green {
  background-color: #2b814f !important;
  border-radius: 4px !important;
}

/* URL Tooltip Wrapper */
.url-tooltip-wrapper {
  position: relative;
  display: inline-block;
}

/* URL Display Button */
.url-display-button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: color 0.2s ease;
}

.url-display-button:focus {
  color: #6b69f2; /* Change to your preferred hover color */
  outline: 2px solid #6b69f2;
  outline-offset: 2px;
}

/* Tooltip Content */
.url-tooltip-content {
  position: absolute;
  bottom: 100%;
  left: 76%;
  transform: translateX(-50%);
  background-color: #333;
  color: white;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 14px;
  white-space: nowrap;
  z-index: 1000;
  margin-bottom: 5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    visibility 0.2s ease;
  pointer-events: auto;
  word-break: break-all;
}

/* Tooltip visible state */
.url-tooltip-content.visible {
  visibility: visible;
  opacity: 1;
}

/* Tooltip Arrow */
.url-tooltip-arrow {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #333;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .url-tooltip-content {
    /* max-width: 250px; */
    font-size: 12px;
    padding: 6px 10px;
  }
}

/* Focus visible for better accessibility */
.url-display-button:focus-visible {
  outline: 2px solid #6b69f2;
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .url-tooltip-content {
    background-color: #000;
    border: 1px solid #fff;
  }

  .url-tooltip-arrow {
    border-top-color: #000;
  }
}

@media (max-width: 2000px) {
  .promo-card-image {
    width: 100%;
    height: 9.375rem;
  }
  .promo-card-content p {
    width: 100%;
  }
}

.promo-card-link {
  color: #545454;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.625rem;
  transition: color 0.2s ease;
}

.promo-card-link:hover {
  color: #8e56dc;
}

.promo-card-link i {
  font-size: 1rem;
  transition: transform 0.2s ease;
}

.promo-card-link:hover i {
  transform: translateX(4px);
}

/* Promo Card New Styles */
.promo-card-new {
  background: rgba(142, 86, 220, 1);
  border-radius: 12px;
  padding: 30px;
  text-align: left;
  color: white;
  position: relative;
  overflow: hidden;
}

.people-images {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 20px;
  gap: -10px;
}

.person-image {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 3px solid white;
  margin-left: -8px;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 1;
  background-color: #ddd;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.person-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.person-image:first-child {
  margin-left: 0;
}

.person-image:hover {
  transform: translateY(-8px) scale(1.1);
  z-index: 10;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.person-image:focus {
  outline: none;
  border: 3px solid rgb(14, 177, 35);
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px rgba(255, 255, 255, 0.5);
  transform: translateY(-8px) scale(1.1);
  z-index: 10;
  padding: 1px;
}

.person-image:focus-visible {
  outline: none;
  border: 3px solid rgb(111, 236, 73);
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px rgba(255, 255, 255, 0.5);
  transform: translateY(-8px) scale(1.1);
  z-index: 10;
}

.consultation-text {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  opacity: 0.85;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.main-title {
  font-size: 25px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 20px;
  color: white;
}

.promo-service-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.promo-service-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  padding: 10px 15px;
  text-decoration: none;
  color: white;
  transition: all 0.3s ease;
}

.promo-service-link:hover {
  background-color: rgba(255, 255, 255, 0.25);
  
}

.promo-service-link:focus {
  outline: none;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px rgba(255, 255, 255, 0.5);
}

.promo-service-link:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px rgba(255, 255, 255, 0.5);
}

.promo-service-link-text {
  font-size: 14px;
  font-weight: 500;
}

.promo-service-link-action {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.promo-service-link-action svg {
  width: 17px;
  height: 17px;
}

.contact-button {
  justify-content: space-between;
  background-color: #18171c  ;
  color: white;
  border: none;
  width: 100%;
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.contact-button svg {
  transition: transform 0.3s ease;
}

.contact-button:hover {
  background-color: #3a3945;
}

.contact-button:hover svg {
  transform: translate(5px, 0px);
}

.contact-button:focus {
  outline: none;
  background-color: #1a1920;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

.contact-button:focus-visible {
  outline: none;
  background-color: #1a1920;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
}

@keyframes float {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  50% {
    transform: translate(-20px, -20px) rotate(180deg);
  }
}

/* Certificate variant: Disable links in people images */
.certificate-variant .people-images .person-image {
  pointer-events: none;
  cursor: default;
}

/* Certificate variant: Disable service links */
.certificate-variant .promo-service-link {
  pointer-events: none;
  cursor: default;
}

.certificate-variant .contact-button {
  pointer-events: none;
  cursor: default;
}

/* Responsive design for promo-card-new */
@media (max-width: 1200px) {
  .promo-service-link-action {
    font-size: 0;
    line-height: 0;
  }

  .promo-service-link-action svg {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 480px) {
  .main-title {
    font-size: 20px;
  }

  .person-image {
    width: 45px;
    height: 45px;
  }

  .promo-service-link {
    padding: 14px 16px;
  }

  .promo-service-link-text {
    font-size: 14px;
  }

  .contact-button {
    padding: 14px 16px;
    font-size: 14px;
  }
}

.accordion-button i {
  transition: transform 0.3s ease;
  transform-origin: center;
}

/* Responsive breakpoints */
@media (max-width: 800px) {
  .background-image {
    /* max-width: 100%; */
  }

  .background-image img {
    max-width: 100%;
    height: 78%;
  }

  .container-fluid {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .scan-content-wrapper {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0px;
    max-width: 100%;
  }

  /* Make children of score/overview sections direct flex items */
  .score-section,
  .overview-section {
    display: contents;
    width: 100%;
  }

  /* Set the desired order for mobile */
  .score-image {
    order: 1;
    width: 100%;
    margin-bottom: 5px;
    margin-top: 23px;
    margin-left: 0px;
  }

  .score-image.fallback-frame {
    height: 252px;
    width: 100%;
    max-width: 455px;
    margin-bottom: 5px;
    margin-top: 23px;
  }
  .score-image img {
    margin-left: 0px;
    border-radius: 12px;
    width: 100%;
    min-width: 0px;
    max-width: 460px;
    height: 100%;
    object-fit: contain;
  }

  .score-image.fallback-frame img {
    width: 100%;
    object-fit: fill;
    max-width: 445px;
    margin-left: 15px;
  }

  .score-card {
    order: 2;
    width: 100%;
    max-width: 40.375rem;
    margin-top: 1.5rem;
  }

  .overview-card {
    order: 3;
    width: 100%;
    max-width: 46.875rem;
    margin-top: 1.5rem;
    margin-right: 0;
  }

  /* Adjust content bottom section */
  .content-bottom-section {
    display: flex;
    flex-direction: column !important;
    align-items: center;
    width: 100%;
    max-width: 100%;
  }

  .issues-wrapper {
    order: 1 !important; /* Ensure issues appear first */
    width: 100%;
  }

  .promo-cards-section {
    order: 2 !important; /* Ensure promo cards appear second/below */
    margin-top: 2rem;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    position: static;
  }

  .promo-card {
    height: 100%;
    width: 100%;
    /* max-width: 26rem; */
  }
}

@media (min-width: 1450px) {
  .score-section {
    min-width: 940px;
  }
}
/* Layout for screen widths between 2000px and 650px */
@media (min-width: 650px) and (max-width: 1450px) {
  .website-url {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    word-break: break-word;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 400px;
  }
  .url-display-button {
    transform: translateX(10px);
  }
  .website-url strong {
    transform: translateX(-5px);
  }
  .website-url span {
    transform: translateX(-10px);
  }
  .scan-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  /* Display score section in a row */
  .score-section {
    gap: 26px;
    display: flex;
    flex-direction: row;
    justify-content: start;
    width: 100%;
    margin-bottom: 1.2rem;
  }

  .score-image {
    width: 60%;
    min-width: 350px;
    max-width: 640px;
    max-height: 17.5rem;

    order: 1;
  }

  #metrics-section-background-overlay {
    left: -11px;
    width: 102%;
  }
  .score-card {
    width: 100%;
    min-width: 374px;
    height: 249px;
    max-width: none;
    order: 2;
    margin: 0;
  }

  /* Overview section takes full width below */
  .overview-section {
    width: 100%;
    margin-left: 0rem;
  }

  .overview-card {
    width: 100%;
    max-width: 100%;
    margin-right: 0;
  }
}

/* Adjustments for smaller screens */
@media (max-width: 75rem) {
  /* 1200px */
  /* Remove duplicated styles that are now in the 2000px media query */
}

@media (max-width: 62rem) {
  /* 992px */

  .score-image {
    width: 100%;
  }
}

@media (max-width: 48rem) {
  /* 768px */
  .header-wrapper,
  .scan-content-wrapper,
  .content-bottom-section {
    padding: 0 0rem;
  }

  .score-card,
  .overview-card {
    height: auto;
    min-height: 13.8rem;
  }
}

@media (max-width: 36rem) {
  /* 576px */
  .metric-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .progress-container {
    width: 100%;
    max-width: none; /* Allow full width */
    margin-left: 0; /* Adjust margin */
  }

  .progress {
    width: 100%;
  }
}

@media (max-width: 920px) {
  .score-section {
    gap: 35px;
    display: flex;
    flex-direction: row;
    justify-content: start;
    width: 100%;
    margin-bottom: 1.2rem;
  }
}

/* Adjustments for mobile screens below 600px */
@media (max-width: 600px) {
  .header-wrapper {
    justify-content: space-between;
    align-items: center;
  }

  .website-url {
    align-items: start;
  }
  .back-link span {
    display: none;
  }

  .back-link:after {
    content: "Back";
    margin-left: 5px;
    font-size: 0.9rem;
  }

  .start-trial-btn {
    display: none;
  }

  .score-card {
    width: 100%;
    min-width: 250px;
    /* max-width: 34.375rem; */
    order: 2;
    margin: 0;
  }
  .score-image img {
    max-width: unset !important;
    min-width: unset !important;
  }
  .score-image {
    max-width: unset !important;
    min-width: unset !important;
  }
  .tabnav-logo {
    margin-right: auto;
    margin-left: auto;
    transform: translateX(-29.12px); /* Shift left by 58.23px from center */
  }
}

@media (max-width: 800px) {
  .overview-section {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .overview-card {
    width: 100%;
    max-width: 77%;
    margin-top: 1.5rem;
  }
  .page-wrapper {
    padding: 0.3rem 1rem;
  }
}

@media (max-width: 1800px) {
  .overview-card {
    width: 100%;
    /* max-width: 45.875rem; */
  }

  .score-image {
    min-width: 523px;
  }
}

@media (min-width: 1200px) {
  .scan-additional-info {
    padding-top: 0.4rem;
  }
}
@media (max-width: 470px) {
  .score-image {
    width: 100%;
    max-width: 418px;
    min-width: 0px;
  }

  .score-image.fallback-frame {
    height: 252px;
    width: 100%;
    max-width: 418px;
    min-width: 0px;
  }

  .score-image.fallback-frame img {
    width: 100%;
    object-fit: contain;
    max-width: 418px;
    min-width: 0px;
  }

  .score-circle {
    right: 24px;
  }
}
@media (min-width: 1000px) and (max-width: 1450px) {
  #metrics-section-background-overlay {
    height: 101%;
  }
}

@media (min-width: 800px) and (max-width: 860px) {
  #metrics-section-background-overlay {
    height: 97%;
    width: 103%;
  }
  .page-wrapper {
    padding: 0.3rem 2rem;
  }
}
@media (max-width: 1000px) {
  .scan-content-wrapper {
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 0px;
    max-width: 100%;
  }

  /* Make children of score/overview sections direct flex items */
  .score-section,
  .overview-section {
    display: contents;
    width: 100%;
  }

  /* Set the desired order for mobile */
  .score-image {
    order: 1;
    width: 100%;
    margin-left: 0;
    margin-bottom: 0;
    max-width: unset;
    max-height: unset;
  }
  .score-image img {
    width: 100%;
    object-fit: fill;
    margin-left: 0;
  }
  .score-image img.fallback-frame {
    display: none;
  }

  .score-card {
    order: 2;
    width: 100%;
    /* max-width: 34.375rem; */
    margin-top: 1.2rem;
  }

  .overview-card {
    order: 3;
    width: 100%;
    max-width: 46.875rem;
    margin-top: 1.2rem;
    margin-right: 0;
    border: 1px #e7e7e7 groove;
  }

  /* Adjust content bottom section */
  .content-bottom-section {
    display: flex;
    flex-direction: column !important;
    align-items: center;
    width: 100%;
    max-width: 100%;
  }

  .issues-wrapper {
    order: 1 !important; /* Ensure issues appear first */
    width: 100%;
  }

  .promo-cards-section {
    order: 2 !important; /* Ensure promo cards appear second/below */
    margin-top: 2rem;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    position: static;
  }

  .promo-card {
    height: 100%;
    width: 100%;
    /* max-width: 26rem; */
  }
}
@media (max-width: 380px) {
  .score-image {
    order: 1;
    width: 320px;
    margin-bottom: 0px;
  }

  .score-image.fallback-frame {
    height: 252px;
    width: 320px;
    margin-bottom: 0px;
  }

  .score-image.fallback-frame img {
    width: 100%;
    object-fit: contain;
    max-width: 320px;
  }

  .score-circle {
    margin: 0;
    position: relative;
    top: 0;
    right: 28px;
    flex-shrink: 0;
    width: 8.25rem;
    height: 11.25rem;
  }
}
@media (max-width: 760px) {
  .score-image {
    order: 1;
    width: 100%;
    margin-bottom: 47px;
  }
}
@media (max-width: 650px) {
  .score-image {
    order: 1;
    width: 100%;
    margin-bottom: 5px;
    margin-top: 23px;
  }
}
@media (min-width: 650px) and (max-width: 800px) {
  div#metrics-section-background-overlay {
    width: 104% !important;
    left: -13px;
  }
}
@media (max-width: 768px) {
  .issues-count {
    width: fit-content;
    min-width: 0;
  }
  #metrics-section-background-overlay {
    bottom: 8px;
  }
}

@media (min-width: 500px) and (max-width: 650px) {
  div#metrics-section-background-overlay {
    bottom: 6px;
    height: 98% !important ;
    width: 104.5% !important;
  }
}

@media (min-width: 460px) and (max-width: 500px) {
  #metrics-section-background-overlay {
    width: 105.5% !important;
    bottom: 11px;
  }
}
@media (max-width: 460px) {
  .issues-count {
    font-size: 12px;
    white-space: wrap;
  }
  .page-wrapper {
    padding: 1rem 0.8rem;
  }
  .score-image img {
    width: 100%;
    object-fit: contain;
  }

  .score-image.fallback-frame img {
    width: 100%;
    object-fit: contain;
  }
  #metrics-section-background-overlay {
    height: 98% !important;
    width: 105% !important;
    left: -9px !important;
    bottom: 10px;
  }
  .website-url,
  .website-url.no-image {
    width: 150%;
  }
  .score-image {
    order: 1;
    width: 100%;
    margin-bottom: 0px;
    margin-top: 18px;
  }

  .score-image.fallback-frame {
    order: 1;
    width: 100%;
    margin-bottom: 0px;
    margin-top: 15px;
  }
  .score-card-header {
    flex-direction: column;
  }
  .score-circle {
    align-self: center;
    right: unset;
    height: unset;
  }
  .website-url {
    max-width: unset;
  }
  .switch {
    min-width: 3.125rem;
  }

  .violations-count {
    margin-left: 0;
  }
}
@media (max-width: 400px) {
  .scan-additional-info {
    white-space: wrap;
  }
}
@media (max-width: 900px) {
  .promo-cards-section {
    flex-wrap: wrap;
    margin-bottom: 20px;
  }
}

@media (min-width: 861px) and (max-width: 1000px) {
  #metrics-section-background-overlay {
    height: 100.5%;
    width: 103%;
    left: -13px;
  }
}
@media (max-width: 860px) and (min-width: 650px) {
  .score-image {
    margin-top: 31px;
  }

  .promo-cards-section {
    position: sticky;
    top: 0.9375rem;
    /* max-width: 26rem; */
    flex-shrink: 1;
    align-self: center;
  }
}

@media (max-width: 649px) {
  .promo-cards-section {
    position: static;
    margin-top: 2rem;
    max-width: 100%;
  }

  .content-bottom-section {
    flex-direction: column;
    align-items: center;
  }

  .issues-wrapper {
    width: 100%;
    max-width: 100%;
  }
}

/* Add sticky behavior for medium screens */
@media (min-width: 650px) and (max-width: 1199px) {
  .promo-cards-section {
    position: sticky;
    top: 0.9375rem;
    /* max-width: 26rem; */
    flex-shrink: 1;
  }

  .content-bottom-section {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
  }
}
@media (max-width: 1199px) {
  .score-circle {
    margin-right: 20px;
  }
}

@media (min-width: 1199px) {
  .content-bottom-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 22rem; /* Use grid for better layout control */
    gap: 0.7rem;
  }

  .promo-cards-section {
    grid-column: 2;
    width: 100%;
    max-width: 26rem;
  }

  .issues-wrapper {
    grid-column: 1;
    width: 100%;
    max-width: 100%;
  }
}
@media (max-width: 860px) {
  .score-image {
    order: 1;
    width: 100%;
    margin-bottom: 0;
    max-width: 763px;
  }
  .score-image img {
    width: 100%;
    object-fit: fill;
    max-width: 762px;
  }
}
@media (max-width: 700px) {
  .score-image {
    order: 1;
    width: 100%;
    margin-bottom: 0px;
    max-width: 763px;
  }
}
@media (max-width: 640px) {
  .score-image {
    order: 1;
    width: 100%;
    margin-bottom: 0px;
    max-width: 763px;
  }
}
@media (max-width: 560px) {
  .score-image {
    order: 1;
    width: 100%;
    margin-bottom: 0px;
    max-width: 763px;
  }
}

@media (min-width: 770px) and (max-width: 1000px) {
  .overview-card {
    max-width: unset;
  }
}

/* External Link Icon Styles */
.acc-report-external-link-wrapper {
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  margin-left: 4px;
  vertical-align: middle;
}

.acc-report-external-link-wrapper:focus-visible {
  outline: 2px solid #8e56dc;
  outline-offset: 2px;
  border-radius: 2px;
}

.acc-report-info-item .acc-report-external-link-icon {
  width: 18px !important;
  height: 18px !important;
  background: transparent !important;
  padding: 0 !important;
  border-radius: 0 !important;
  fill: none !important;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  transition: transform 0.2s ease;
}



.acc-report-info-item .acc-report-external-link-icon path {
  fill: #bda1e6 !important;
  transition: fill 0.2s ease;
}

/* ============================================= 
   AI Suggestion Accordion Styles
   ============================================= */

.ai-suggestion-accordion {
  width: 95%;
  margin-top: 0.5rem;
  margin-bottom: 25px;
  margin-left: auto;
  border-radius: 0.5rem;
  overflow: hidden;
  animation: fadeIn 0.3s ease-out;
  border: 1px solid #8E56DC;
  background-color: #F5F5F5;
  transition: border-color 0.2s ease;
}

.ai-suggestion-accordion:has(.ai-suggestion-toggle[aria-expanded="false"]) {
  border-color: #9A9A9A;
}

.ai-suggestion-divider {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background-color: #D3D3D3;
  margin-top: 18px;
}

.ai-suggestion-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 1rem;
  background-color: transparent;
  border: none;
  border-radius: 0.5rem 0.5rem 0 0;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.ai-suggestion-toggle:hover {
  background-color: transparent;
}

.ai-suggestion-toggle:focus-visible {
  outline: 2px solid #8e56dc;
  outline-offset: -2px;
}

.ai-suggestion-toggle[aria-expanded="false"] {
  border-radius: 0.5rem;
}

.ai-suggestion-toggle[aria-expanded="false"] + .ai-suggestion-content {
  max-height: 0;
  padding: 0 1rem;
  opacity: 0;
}

.ai-suggestion-header-text {
  font-size: 14px;
  font-weight: 500;
  color: #8e56dc;
  transition: color 0.2s ease;
}

.ai-suggestion-toggle[aria-expanded="false"] .ai-suggestion-header-text {
  color: #6E6E6E;
}

.ai-suggestion-chevron {
  width: 16px;
  height: 16px;
  color: #6b7280;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.ai-suggestion-toggle[aria-expanded="true"] .ai-suggestion-chevron {
  transform: rotate(180deg);
}

.ai-suggestion-toggle[aria-expanded="false"] .ai-suggestion-chevron {
  transform: rotate(0deg);
}

.ai-suggestion-content {
  max-height: 0;
  overflow: hidden;
  padding: 0 1rem;
  background-color: transparent;
  border: none;
  border-radius: 0 0 0.5rem 0.5rem;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out, opacity 0.3s ease-out;
  opacity: 0;
}

.ai-suggestion-content.show {
  max-height: 500px;
  /* padding: 1rem; */
  opacity: 1;
}

.ai-suggestion-description {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 1rem 0;
  min-height: 1.5em;
  white-space: pre-wrap;
}

/* AI typing effect cursor */
.ai-typing-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background-color: #8e56dc;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: aiCursorBlink 0.7s infinite;
}

@keyframes aiCursorBlink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

.ai-suggestion-description.ai-typing-active {
  /* white-space: pre-wrap is now on the base .ai-suggestion-description */
}

.ai-suggestion-code-wrapper {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: opacity 0.4s ease-out, max-height 0.4s ease-out, margin 0.4s ease-out;
  margin-bottom: 0;
}

.ai-suggestion-code-wrapper.show {
  opacity: 1;
  max-height: 200px;
  margin-bottom: 0.75rem;
}

.ai-suggestion-code-block {
  display: flex;
  align-items: center;
  background-color: #374151;
  border-radius: 0.5rem;
  height: 2.625rem;
  border: 1px solid #4b5563;
  overflow: hidden;
  flex: 1;
  cursor: text;
}

.ai-suggestion-code-block:active {
  cursor: text;
}

.ai-suggestion-code-block .code-icon-section {
  background-color: #8e56dc;
  width: 2.5rem;
  /* height: 100%; */
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-suggestion-code-block .code-content {
  flex: 1;
  padding: 0.75rem 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.ai-suggestion-code-block .code-content::-webkit-scrollbar {
  display: none;
}

.ai-suggestion-code-block .code-content code {
  color: #fff;
  font-family: "Courier New", "Monaco", "Menlo", monospace;
  font-size: 0.8125rem;
  white-space: nowrap;
  display: block;
  line-height: 1.3125rem;
}

.ai-suggestion-copy-btn {
  background: transparent;
  border: 1px solid #d1d5db;
  padding: 0.5rem;
  cursor: pointer;
  color: #6b7280;
  transition: all 0.2s ease;
  border-radius: 0.375rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: unset;
}

.ai-suggestion-copy-btn:focus-visible {
  outline: 2px solid #8a2be2;
  outline-offset: -4px;
  z-index: 100;
  position: relative;
}

.ai-suggestion-copy-btn:hover {
  color: #374151;
  background-color: #f3f4f6;
  border-color: #9ca3af;
}

.ai-suggestion-copy-btn:active {
  transform: scale(0.95);
}

.ai-suggestion-copy-btn.copied {
  color: #10b981;
  border-color: #10b981;
}

.ai-suggestion-copy-btn.copied:focus-visible {
  outline: 2px solid #10b981;
  outline-offset: -4px;
}

.ai-suggestion-copy-btn.copied:hover {
  background-color: white;
}

/* AI Suggestion Error State */
.ai-suggestion-error {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: #dc2626;
  background-color: #fef2f2;
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  border: 1px solid #fecaca;
}

.ai-error-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  background-color: #dc2626;
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.0625rem;
}

/* Disabled copy button state */
.ai-suggestion-copy-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.ai-suggestion-copy-btn:disabled:hover {
  background-color: white;
  color: inherit;
  border-color: #e5e7eb;
}

/* Responsive adjustments for AI suggestion accordion */
@media (max-width: 768px) {
  .ai-suggestion-toggle {
    padding: 0.625rem 0.75rem;
  }

  .ai-suggestion-header-text {
    font-size: 0.8125rem;
  }

  /* .ai-suggestion-content.show {
    padding: 0.75rem;
  } */

  .ai-suggestion-description {
    font-size: 0.75rem;
  }

  .ai-suggestion-code-block {
    height: auto;
    min-height: 2.625rem;
  }

  .ai-suggestion-code-block .code-content {
    padding: 0.5rem 0.75rem;
  }

  .ai-suggestion-code-block .code-content code {
    font-size: 0.75rem;
    line-height: 1.2rem;
  }
}

/* ============================================
   Load More Code Elements Styles
   ============================================ */

/* Container for code blocks with load more functionality */
.issue-details-right {
  position: relative;
}

/* Hide code blocks beyond the visible limit */
.issue-details-right.has-more-elements .code-block-container.hidden-code-block {
  display: none;
}

/* Blur overlay at the bottom of code blocks */
.code-blocks-load-more-overlay {
  display: none;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62) 0%, #FFFFFF 71.63%, #FFFFFF 100%);
  pointer-events: none;
  z-index: 5;
}

.issue-details-right.has-more-elements .code-blocks-load-more-overlay {
  display: block;
}

/* Load more button container */
.code-blocks-load-more-container {
  display: none;
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.issue-details-right.has-more-elements .code-blocks-load-more-container {
  display: flex;
}

/* Load more button */
.code-blocks-load-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0px 13px;
  background-color: #ffffff;
  border: 1.18px solid #CFCFCF;
  border-radius: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 400;
  color: #3B3F44;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0px 1px 2px rgba(16, 24, 40, 0.05);
}

.code-blocks-load-more-btn:hover {
  background-color: #F9FAFB;
  border-color: #98A2B3;
}

.code-blocks-load-more-btn:focus {
  outline: 2px solid #7F56D9;
  outline-offset: 2px;
}

.code-blocks-load-more-btn:focus:not(:focus-visible) {
  outline: none;
}

.code-blocks-load-more-btn:focus-visible {
  outline: 2px solid #7F56D9;
  outline-offset: 2px;
}

.code-blocks-load-more-btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* When expanded, hide overlay and load more button */
.issue-details-right.expanded-elements .code-blocks-load-more-overlay,
.issue-details-right.expanded-elements .code-blocks-load-more-container {
  display: none;
}

.issue-details-right.expanded-elements .code-block-container.hidden-code-block {
  display: block;
}


