/* Header Styles */

.page-wrapper {
  max-width: 1800px;
  margin: 0 auto;
  padding: 2rem 2rem;
  /* 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;
  transform: translateY(1px) rotate(180deg);
}

.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;
  flex-direction: row-reverse;
  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-left: 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-right: 7px;
  margin-bottom: 5px;
}
.note-row {
  display: flex;
  /* flex-direction:row-reverse; */
}
.explanation-row p {
  font-size: 0.8rem;
  margin-bottom: 0;
  margin-left: 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;
}

#profile-impact-heading {
  padding-left: 0;
  padding-right: 1.5rem;
  margin-left: 0;
}
.score-card h3,
.overview-card h3 {
  color: #3b3f44;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 12px;
  margin-left: 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);
  transform: translateX(7px);
}

.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);
  transform: translateX(7px);
}
.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;
  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 {
  direction: rtl;
  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;
  width: 0%;
}
.wcag-progress-section:not(.wcag-progress-section:last-of-type) {
  margin-right: 2px;
}

.wcag-progress-section.perceivable {
  background-color: #5a189a;
}

.wcag-progress-section.operable {
  background-color: #7b2cbf;
}

.wcag-progress-section.understandable {
  background-color: #9d4edd;
}

.wcag-progress-section.robust {
  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: 58%;
  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: 60%;
  }

  .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-left: 2.1875rem;
  padding-right: 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: 1.6rem;
  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: 2rem;
  flex-grow: 1;
  max-width: 17.5rem;
  margin-right: 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-right: 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-right: -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-right: 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-x: hidden; /* Hide horizontal overflow */
  flex: 1; /* Take up available space */
}

.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;
}

.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-right: 0.9375rem;
}

.issues-count {
  width: 196px;
  text-align: center;
  margin-left: 1.25rem;
  margin-top: 1.25rem;
  background-color: #fef2f2;
  color: #c42c2c;
  padding: 0.375rem 1rem;
  border-radius: 0.375rem;
  font-size: 0.8rem;
  font-weight: 500;
}

.issues-count.success {
  background-color: #ecfdf5;
  color: #2b814f;
}

/* 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%;
}

.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-right: 0.9rem;
  color: #525252;
  font-weight: 500;
  font-size: 0.9rem;
}

.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-left: 2.1875rem;
  margin-right: 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-right: 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.success .accordion-button i {
  color: #10b981;
  margin-right: 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-body {
  /* padding: 1.25rem 0 1.25rem 2.5rem; */
  padding: 1.25rem 0 1.25rem 1.25rem;
  background-color: #f3f6fb;
  border-radius: 0;
}

.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: 1rem;
  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;
}

.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: translateX(4px) 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: 16px;
  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: translateX(6px) 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) rotate(180deg);
  transition: transform 0.2s ease; /* Add smooth transition */
}

.success-criterion-link:hover svg {
  transform: translateY(-1px) translateX(-2px) rotate(180deg);
}
.issue-details p {
  color: #4b5563;
  font-size: 0.875rem;
  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: 0.75rem;
  margin-bottom: 1.5rem;
}

.code-block {
  direction: ltr;
  background-color: #374151;
  border-radius: 0.5rem;
  position: relative;
  overflow: hidden;
  height: 2.625rem;
  cursor: grab;
  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: grabbing;
}

.code-content {
  flex: 1;
  padding: 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;
}

/* 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-right: 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-button span {
  text-align: right;
}
/* 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 */

.status-explanation-section {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  border-bottom-right-radius: 0px;
  border-bottom-left-radius: 0px;
  padding: 1.25rem;
  /* margin-bottom: 1.5rem; */
  position: relative;
}

.status-explanation-section h4 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  /* margin-left: 2.5rem; Space for the icon */
  color: #374151;
}

.status-explanation-section p {
  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 */
.status-explanation-section h4::after {
  content: "";
  background-size: contain;
  background-repeat: no-repeat;
  width: 32px;
  height: 21px;
  display: inline-block;
  position: absolute;
  left: 1rem;
  top: 1rem;
  transform: translateY(1px);
}

/* Failed status styling (red) */
.status-explanation-section.failed-status {
  background-color: #fef2f2;
  border-color: #e3e5e8;
  margin-bottom: 1.5rem;
}

.status-explanation-section.failed-status h4 {
  color: #dc2626;
}

.status-explanation-section.failed-status h4::after {
  background-image: url(../../images/checker/checker-exclamation-red.png);
}

/* Passed status styling (green) */
.status-explanation-section.passed-status {
  background-color: #f0fdf4;
  border-color: #e3e5e8;
  margin-bottom: 1.5rem;
}

.status-explanation-section.passed-status h4 {
  color: #16a34a;
}

.status-explanation-section.passed-status h4::after {
  background-image: url(../../images/checker/checker-exclamation-green.png);
}

/* Irrelevant status styling (gray) */
.status-explanation-section.irrelevant-status {
  background-color: #f3f4f6;
  border-color: #e3e5e8;
  margin-bottom: 1.5rem;
}

.status-explanation-section.irrelevant-status h4 {
  color: #494f59fa;
}

.status-explanation-section.irrelevant-status h4::after {
  background-image: url(../../images/checker/checker-exclamation-black.png);
}

/* Add this CSS to your result.css file: */

/* 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: 26%;
  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;
}

/* RTL Support */
[dir="rtl"] .url-tooltip-content {
  right: 76%;
  left: auto;
  transform: translateX(50%);
}

/* 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;
  }
}
/* Responsive adjustments */
@media (max-width: 768px) {
  .status-explanation-section h4,
  .status-explanation-section p {
    /* margin-left: 2rem; Slightly less space on mobile */
  }

  .status-explanation-section h4::before {
    width: 28px;
    height: 18px;
    left: 0.75rem;
  }
}

/* End of status explanation section styles */

/* 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: 100%;
    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;
}
.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; */
}

/* Hide progress sections before data is loaded */
.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;
}

/* Smooth animation only after data is loaded */
.wcag-progress-bar-container.data-loaded .wcag-progress-section {
  margin-right: 2px;
  transition:
    width 0.6s ease,
    background-color 0.6s ease;
}

/* All-green state: hide individual sections and make container green */
.wcag-progress-bar-container.data-loaded.all-green {
  background-color: #2b814f !important;
  border-radius: 4px !important;
}

.wcag-progress-bar-container.data-loaded.all-green .wcag-progress-section {
  display: none !important;
}

@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;
  transform: translateY(1px) rotate(180deg);
}

.promo-card-link:hover i {
  transform: translateY(1px) translateX(-2px) rotate(180deg);
}

.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;
  }

  .website-url strong {
    transform: translateX(5px);
  }
  .website-url span {
    transform: translateX(10px);
  }
  .url-display-button {
    transform: translateX(-11px);
  }
  .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;
    transform: translateX(-6px);
  }
  .score-image img {
    width: 100%;
    object-fit: fill;
    margin-left: 0;
    margin-right: 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) {
  #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: 470px) {
  .score-circle {
    transform: translateX(20px);
  }
}
@media (min-width: 460px) and (max-width: 500px) {
  #metrics-section-background-overlay {
    width: 105.5% !important;
    bottom: 11px;
  }
}
@media (max-width: 460px) {
  .page-wrapper {
    padding: 1rem 0.1rem;
  }
  .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;
  }
  .issues-count {
    width: 163px;
  }
}
@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-left: 20px;
  }
}

@media (min-width: 1199px) {
  .content-bottom-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 26rem; /* 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;
  }
}
