/* Core styles */
.ar-notice {
  position: fixed;
  z-index: 999999;
  box-shadow: 0 10px 24px rgba(0,0,0,.25);
  border-radius: 12px;
  padding: 12px 14px;
  max-width: 520px;
  width: calc(100% - 24px);
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  border: 1px solid rgba(255,255,255,0.08);
}

.ar-style-banner {
  border-radius: 0;
  max-width: 100%;
  width: 100%;
  left: 0 !important;
  right: 0 !important;
}

.ar-msg {
  flex: 1;
  line-height: 1.4;
}

.ar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ar-btn {
  appearance: none;
  border: 2px solid currentColor;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 600;
}

.ar-btn.ar-cancel {
  background: transparent;
}

.ar-link {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  font-size: 0.9em;
}

/* Positions */
.ar-pos-top-left    { top: 16px; left: 16px; }
.ar-pos-top-right   { top: 16px; right: 16px; }
.ar-pos-bottom-left { bottom: 16px; left: 16px; }
.ar-pos-bottom-right{ bottom: 16px; right: 16px; }
.ar-pos-top         { top: 0; }
.ar-pos-bottom      { bottom: 0; }

/* Toggle shortcode */
.ar-toggle-wrap {
  display: flex;
  margin: 8px 0;
}
.ar-align-left { justify-content: flex-start; }
.ar-align-center { justify-content: center; }
.ar-align-right { justify-content: flex-end; }

.ar-toggle {
  --w: 60px;
  --h: 32px;
  position: relative;
  width: var(--w);
  height: var(--h);
  background: #e5e7eb;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 3px;
  gap: 10px;
}
.ar-toggle[data-size="small"] { --w: 46px; --h: 26px; }
.ar-toggle[data-size="large"] { --w: 72px; --h: 36px; }

.ar-toggle[aria-pressed="true"] {
  background: #10b981;
}

.ar-toggle-knob {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(var(--h) - 6px);
  height: calc(var(--h) - 6px);
  background: white;
  border-radius: 50%;
  transition: transform .2s ease;
}
.ar-toggle[aria-pressed="true"] .ar-toggle-knob {
  transform: translateX(calc(var(--w) - var(--h)));
}
.ar-toggle-label {
  margin-left: calc(var(--w) + 10px);
  white-space: nowrap;
  font-weight: 600;
}
