/* Accessibility Button */
#accessibility-toggle {
  position: fixed;
  bottom: 25px;
  left: 0;
  z-index: 99999;
  background: #c9475f;
  color: white;
  border: none;
  border-radius: 0 20px 20px 0;
  width: 45px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  /*box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2);*/
  cursor: pointer;
  /*transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);*/
  cursor: pointer;
  padding: 4px;
}

#accessibility-toggle:hover {
    background-color: #AE273F;
  /*transform: translateY(-2px);*/
  /*box-shadow: 0 6px 24px rgba(37, 99, 235, 0.3);*/
}

#accessibility-toggle:focus {
    background-color: #AE273F;
  /*outline: 3px solid #ffdd00;*/
  /*outline-offset: 2px;*/
  /*transform: translateY(-2px);*/
  /*box-shadow: 0 6px 24px rgba(37, 99, 235, 0.3);*/
}

#accessibility-toggle img {
  width: 20px;
  height: 25px;
}

/* Accessibility Widget */
#accessibility-widget {
  display: none;
  position: fixed;
  top: 25px; 
  left: 10px;
  z-index: 10000;
  width: min(90vw, 380px);
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  padding: 24px;
  font-family: system-ui, -apple-system, sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

#accessibility-widget.open {
  display: block;
  animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#accessibility-widget h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid #f3f4f6;
}

.widget-section {
  margin-bottom: 20px;
}

#accessability-widget-headline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    position: relative;
}

#accessability-widget-headline h2 {
    margin: 0;
    margin-bottom: 16px;
    padding: 0 15px 0 0; /* Right padding only */
    order: 2; /* Places h2 on the right */
    text-align: right;
    width: 100%;
}

#close-accessibility {
    position: absolute;
    width: 24px !important;
    height: 24px;
    border: none;
    background-color: transparent !important;
    top: 0px;
    left: 16px;
    
}

#close-accessibility::before,
#close-accessibility::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 2px;
    background: #333;
}

#close-accessibility::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

#close-accessibility::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.widget-section-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #444;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

#accessibility-widget .button-group {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 8px;
}

#accessibility-widget button {
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 12px;
  background: #f7f7f7;
  color: #333;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#accessibility-widget button:hover {
  background: #e5e7eb;
  transform: translateY(-1px);
}

/* Feature Groups */
.text-controls { background: #f7f7f7 !important; color: #333 !important; }
.visual-controls { background: #f7f7f7 !important; color: #333 !important; }
.reading-controls { background: #f7f7f7 !important; color: #333 !important; }
.navigation-controls { background: #f7f7f7 !important; color: #333 !important; }

/* Summary Modal */
.summary-overlay {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(90vw, 600px);
  max-height: 80vh;
  background: #ffffff;
  border-radius: 24px;
  padding: 32px;
  z-index: 10001;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.summary-overlay p {
  font-size: 1rem;
  line-height: 1.6;
  color: #374151;
  margin-bottom: 16px;
}

.summary-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.summary-actions button {
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.2s;
}

.close-button {
  background: #ef4444 !important;
  color: white !important;
}

.read-button {
  background: #2563eb !important;
  color: white !important;
}

/* Reset Button */
#reset-all-settings {
  width: 100%;
  padding: 12px;
  margin-top: 16px;
  border: none;
  border-radius: 12px;
  background: #ef4444;
  color: white;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#reset-all-settings:hover {
  background: #dc2626;
  transform: translateY(-1px);
}

#reset-all-settings svg {
    width: 40px;
    height: auto;
}

/* Footer */
#accessibility-widget .footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 2px solid #f3f4f6;
  text-align: center;
  font-size: 0.75rem;
  color: #444;
}

#accessibility-widget .footer a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}



/* Loader Styles */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10001;
}

.loader {
  width: 48px;
  height: 48px;
  border: 5px solid #FFF;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  /*0% { transform: rotate(0deg); }*/
  /*100% { transform: rotate(360deg); }*/
}

.inverted-colors {
  filter: invert(1);
}

.highlight-links a {
  padding: 2px 4px;
  background-color: #fef3c7;
  border: 2px solid #f59e0b;
  border-radius: 4px;
  text-decoration: none !important;
  color: #000 !important;
  transition: all 0.2s ease;
}

.highlight-links a:hover {
  background-color: #fcd34d;
  border-color: #d97706;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.highlight-links a:focus {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
}

.hide-images img {
  display: none;
}

.hide-images [style*="background-image"] {
  background-image: none !important;
}

@media only screen and (max-width:600px) {
    #accessibility-toggle {
        width: 48px;
        height: 48px;
        left: 0;
        bottom: 16px;
        z-index: 9999999;
    }
    #accessibility-toggle img {
        width: 22px;
        height: auto;
    }
    #accessibility-widget { 
        z-index: 9999999;
        max-width: 100%;
        top: 0;
    }
    #accessibility-widget #close-accessibility {
        display: none;
    }
}
  
/** Corrections **/
.insurances-table .h4-wrapper.insurance-head h3 {
    color: #fff;
    font-size: 1rem;
    line-height: 2;
    padding-bottom: 0;
}
#page_footer_insurance .h4-wrapper.insurance-head-outer h3 * {color: #fff !important;}
#page_footer_insurance .h4-wrapper.insurance-head-outer h3 .link {color: #fff;}
#page_footer_insurance .h4-wrapper.insurance-head-outer h3 .link.red {color: #c9475f !important;}

@media only screen and (max-width:600px) {
    .article-page.node-124 #page_footer_insurance .h4-wrapper.insurance-head-outer h3 {
        color: #fff;
        font-size: 1rem;
    }

}