/* AI ALBUM BASIC ACCESSIBILITY V1: one unobtrusive, shared storefront toggle. */
html.ai-basic-a11y-on {
  /* CSS-only display effect: it does not modify photos, canvases or print files. */
  -webkit-filter: grayscale(1) contrast(1.10);
  filter: grayscale(1) contrast(1.10);
}
html.ai-basic-a11y-on body {
  /* Slight increase for pixel-sized text as well as rem-sized UI text. */
  zoom: 1.08;
}

.ai-basic-a11y-widget,
.ai-basic-a11y-widget * {
  box-sizing: border-box;
}
.ai-basic-a11y-widget {
  position: fixed;
  left: max(12px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 99999;
  direction: rtl;
  width: 44px;
  font-family: Arial, 'Rubik', sans-serif;
  font-size: 14px;
  line-height: 1.45;
}
.ai-basic-a11y-launcher {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 50%;
  background: var(--store-accent, #173b6b);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(18,38,74,.24);
  -webkit-tap-highlight-color: transparent;
}
.ai-basic-a11y-launcher:hover { box-shadow: 0 5px 16px rgba(18,38,74,.36); }
.ai-basic-a11y-widget button:focus-visible {
  outline: 3px solid #111111;
  outline-offset: 3px;
}
.ai-basic-a11y-panel {
  position: absolute;
  left: 0;
  bottom: 54px;
  width: min(268px, calc(100vw - 24px));
  padding: 14px;
  background: #ffffff;
  color: #172b49;
  border: 1px solid #d2dbe8;
  border-radius: 12px;
  text-align: right;
  box-shadow: 0 9px 28px rgba(18,38,74,.20);
}
.ai-basic-a11y-panel[hidden] { display: none !important; }
.ai-basic-a11y-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 15px;
}
.ai-basic-a11y-close {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  padding: 0;
  background: #eef1f6;
  color: #263b59;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
}
.ai-basic-a11y-panel p {
  margin: 8px 0 12px;
  font-size: 13px;
  line-height: 1.6;
}
.ai-basic-a11y-action {
  width: 100%;
  min-height: 42px;
  padding: 9px 12px;
  background: var(--store-accent, #173b6b);
  border: 0;
  border-radius: 8px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.ai-basic-a11y-action.ai-basic-a11y-cancel { background: #333333; }
.ai-basic-a11y-panel small {
  display: block;
  margin-top: 10px;
  font-size: 11px;
  color: #536379;
  line-height: 1.5;
}
/* Avoid covering the existing toast notifications at bottom-left. */
body:has(.ai-basic-a11y-widget) #toast-area {
  bottom: 76px;
}
@media (max-width: 480px) {
  .ai-basic-a11y-widget {
    left: max(10px, env(safe-area-inset-left));
    bottom: max(12px, env(safe-area-inset-bottom));
  }
}
@media print {
  html.ai-basic-a11y-on { filter: none !important; -webkit-filter: none !important; }
  html.ai-basic-a11y-on body { zoom: 1 !important; }
  .ai-basic-a11y-widget { display: none !important; }
}
