/* Accessibility button: sits at the bottom-right of the hero's image column (Figma) */

.elementor-widget-shortcode:has(> .elementor-widget-container > .elementor-shortcode > .cura-a11y),
.elementor-widget-shortcode:has(.cura-a11y) {
  align-self: flex-end;
  width: auto;
}

.cura-a11y {
  position: relative;
  display: flex;
  justify-content: flex-end;
  font-family: 'Amiko', sans-serif;
}

#cura-a11y .cura-a11y-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0 !important;
  border-radius: 12px;
  background: transparent !important;
  cursor: pointer;
  box-shadow: none;
}

#cura-a11y .cura-a11y-btn:hover svg,
#cura-a11y .cura-a11y-btn:focus-visible svg {
  filter: drop-shadow(0 2px 6px rgba(65, 99, 123, 0.4));
}

#cura-a11y .cura-a11y-btn:focus-visible {
  outline: 2px solid #73B1DD;
  outline-offset: 2px;
}

#cura-a11y .cura-a11y-btn svg {
  width: 26px;
  height: auto;
}

.cura-a11y-panel {
  position: absolute;
  right: 0;
  bottom: 52px;
  z-index: 50;
  width: 240px;
  padding: 16px;
  background: #FCFBF9;
  border: 1px solid #C4CFD6;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(26, 41, 51, 0.22);
  color: #1A2933;
}

.cura-a11y-panel[hidden] {
  display: none;
}

.cura-a11y-title {
  margin: 0 0 12px;
  font-family: 'Sofia Sans Semi Condensed', 'Sofia Sans', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: #1A2933;
}

.cura-a11y-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
  font-size: 15px;
}

.cura-a11y-size {
  display: inline-flex;
  gap: 6px;
}

#cura-a11y .cura-a11y-panel button {
  margin: 0;
  padding: 8px 12px;
  border: 1px solid #C4CFD6 !important;
  border-radius: 10px;
  background: #F1F5F9 !important;
  color: #1A2933 !important;
  font-family: 'Amiko', sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

#cura-a11y .cura-a11y-panel .cura-a11y-toggle {
  display: block;
  width: 100%;
  margin: 0 0 8px;
  text-align: left;
}

#cura-a11y .cura-a11y-panel .cura-a11y-toggle[aria-pressed="true"] {
  background: #41637B !important;
  border-color: #41637B !important;
  color: #FBFEFD !important;
}

#cura-a11y .cura-a11y-panel .cura-a11y-reset {
  width: 100%;
  margin-top: 4px;
  background: transparent !important;
}

@media (max-width: 767px) {
  .cura-a11y-panel {
    width: min(240px, calc(100vw - 48px));
  }
}

/* ---- Preferences ---------------------------------------------------- */

html.cura-a11y-size-1 body {
  zoom: 1.1;
}

html.cura-a11y-size-2 body {
  zoom: 1.2;
}

html.cura-a11y-size-3 body {
  zoom: 1.3;
}

html.cura-a11y-contrast body {
  filter: contrast(1.25);
}

html.cura-a11y-links a:not(.elementor-button):not(.cura-a11y-btn) {
  text-decoration: underline !important;
}

html.cura-a11y-nomotion *,
html.cura-a11y-nomotion *::before,
html.cura-a11y-nomotion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

/* Figma: the Access icon is a FIXED element under the chat bubble (always visible while scrolling). */
.cura-a11y {
  position: fixed !important;
  right: 20px;
  bottom: 14px;
  z-index: 99998;
}

#cura-wa-chat {
  bottom: 62px !important;
}

@media (max-width: 767px) {
  .cura-a11y {
    right: 14px;
    bottom: 10px;
  }

  #cura-wa-chat {
    bottom: 56px !important;
  }
}
