:root {
  --caa-accent: #b32776;
  --caa-accent-strong: #861956;
  --caa-surface: #fff;
  --caa-text: #171717;
  --caa-border: #d7d7d7;
  --caa-font-scale: 1;
}

.caa-skip-link {
  position: fixed !important;
  top: 8px;
  left: 8px;
  z-index: 2147483647;
  transform: translateY(-160%);
  padding: 12px 16px;
  border-radius: 6px;
  color: #fff !important;
  background: #111 !important;
  font: 600 16px/1.3 Arial, sans-serif;
}

.caa-skip-link:focus { transform: translateY(0); }
.caa-skip-target { position: absolute; width: 1px; height: 1px; overflow: hidden; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #1565c0 !important;
  outline-offset: 3px !important;
}

@media (pointer: coarse), (max-width: 767px) {
  :where(a, button):has(> svg),
  :where(a, button).caa-touch-target,
  :where(.header-wrapper, .mobile-header-wrapper, .etheme-elementor-header-wrapper) :where(a, button) {
    min-width: 44px;
    min-height: 44px;
  }
}

.caa-widget {
  position: fixed;
  z-index: 2147483000;
  bottom: var(--caa-desktop-bottom, 24px);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.35;
  color: var(--caa-text);
}

.caa-widget.caa-desktop-left { left: var(--caa-desktop-side, 24px); }
.caa-widget.caa-desktop-right { right: var(--caa-desktop-side, 24px); }

.caa-trigger {
  display: grid;
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  color: #fff;
  background: var(--caa-accent);
  box-shadow: 0 4px 18px rgba(0, 0, 0, .28);
  cursor: pointer;
  transition: transform .18s ease, background .18s ease;
}

.caa-trigger:hover { background: var(--caa-accent-strong); transform: translateY(-2px); }

.caa-panel {
  position: absolute;
  width: min(350px, calc(100vw - 32px));
  max-height: min(650px, calc(100vh - 100px));
  bottom: 64px;
  overflow: auto;
  border: 1px solid var(--caa-border);
  border-radius: 14px;
  color: var(--caa-text);
  background: var(--caa-surface);
  box-shadow: 0 12px 42px rgba(0, 0, 0, .25);
}

.caa-desktop-right .caa-panel { right: 0; }
.caa-desktop-left .caa-panel { left: 0; }
.caa-panel[hidden] { display: none !important; }

.caa-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 18px;
  color: #fff;
  background: var(--caa-accent);
}

.caa-panel__header h2 { margin: 0; color: inherit; font: 700 18px/1.3 Arial, sans-serif; }
.caa-close { width: 44px; height: 44px; min-width: 44px; margin: -10px -10px -10px 0; padding: 0; border: 0; color: inherit; background: transparent; font-size: 32px; line-height: 1; cursor: pointer; }
.caa-text-size { padding: 16px 18px 8px; font-weight: 700; }
.caa-text-size > div { display: grid; grid-template-columns: 54px 1fr 54px; align-items: center; gap: 8px; margin-top: 8px; }
.caa-text-size button { min-height: 44px; border: 1px solid var(--caa-border); border-radius: 8px; color: var(--caa-text); background: #f7f7f7; font-weight: 700; cursor: pointer; }
.caa-text-size output { text-align: center; }
.caa-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 18px 18px; }
.caa-tool { display: flex; min-height: 74px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; padding: 8px; border: 1px solid var(--caa-border); border-radius: 9px; color: var(--caa-text); background: #fff; font: 600 13px/1.25 Arial, sans-serif; text-align: center; cursor: pointer; }
.caa-tool > span:first-child { font-size: 23px; font-weight: 700; }
.caa-tool[aria-pressed="true"] { border-color: var(--caa-accent); color: #fff; background: var(--caa-accent); }
.caa-panel__footer { display: flex; flex-direction: column; gap: 12px; padding: 15px 18px 18px; border-top: 1px solid var(--caa-border); text-align: center; }
.caa-panel__footer a { color: #7a174d; font-weight: 700; }
.caa-reset { min-height: 44px; border: 1px solid var(--caa-border); border-radius: 8px; color: var(--caa-text); background: #f7f7f7; font-weight: 700; cursor: pointer; }
.caa-announcer { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

html.caa-font-scaled { font-size: calc(100% * var(--caa-font-scale)) !important; }
html.caa-readable body, html.caa-readable body *:not([class*="icon"]):not(i) { font-family: Arial, Helvetica, sans-serif !important; }
html.caa-underline a:not(.caa-trigger) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px !important; }
html.caa-spacing body { letter-spacing: .06em !important; word-spacing: .12em !important; line-height: 1.7 !important; }
html.caa-highlight a:not(.caa-trigger) { outline: 2px solid #ff8c00 !important; outline-offset: 2px !important; background-color: #fff3b0 !important; color: #111 !important; }
html.caa-grayscale { filter: grayscale(1); }
html.caa-contrast body { color: #fff !important; background: #000 !important; }
html.caa-contrast body :where(main, section, article, header, footer, nav, div, aside) { border-color: #fff !important; color: #fff !important; background-color: #000 !important; }
html.caa-contrast body :where(a, button) { color: #ffeb3b !important; }
html.caa-contrast body :where(input, select, textarea) { border: 2px solid #fff !important; color: #fff !important; background: #111 !important; }
html.caa-cursor, html.caa-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Cpath fill='white' stroke='black' stroke-width='2' d='M3 2l20 17-9 1 5 9-5 2-5-9-6 7z'/%3E%3C/svg%3E") 3 2, auto !important; }

html.caa-motion *, html.caa-motion *::before, html.caa-motion *::after {
  scroll-behavior: auto !important;
  animation-duration: .001ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: .001ms !important;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

@media (max-width: 767px) {
  .caa-widget { bottom: var(--caa-mobile-bottom, 20px); }
  .caa-widget.caa-mobile-left { right: auto; left: var(--caa-mobile-side, 16px); }
  .caa-widget.caa-mobile-right { right: var(--caa-mobile-side, 16px); left: auto; }
  .caa-mobile-left .caa-panel { right: auto; left: 0; }
  .caa-mobile-right .caa-panel { right: 0; left: auto; }
  .caa-trigger { width: 50px; height: 50px; min-width: 50px; min-height: 50px; }
  .caa-panel { bottom: 60px; max-height: calc(100dvh - 90px); }
}

@media print {
  .caa-widget, .caa-skip-link { display: none !important; }
}
