/* Author: Arnold Szepesi. Working interaction standard. */
@layer inu-r08-interactions {
  html[data-r08-interactions] [data-r08-interactive] {
    cursor: pointer !important;
    transition: background-color 180ms ease, border-color 180ms ease,
      color 180ms ease, filter 180ms ease, box-shadow 180ms ease,
      opacity 180ms ease, scale 180ms ease !important;
    -webkit-tap-highlight-color: #1A28381A;
  }

  html[data-r08-interactions] :is(select, label[for], input[type="checkbox"],
    input[type="radio"], input[type="range"], input[type="color"]):not(:disabled) {
    cursor: pointer !important;
  }

  html[data-r08-interactions] [data-r08-control="button"]:not(:disabled):not([data-r08-accordion]):hover {
    filter: brightness(.94) !important;
    box-shadow: inset 0 0 0 1px currentColor !important;
  }

  html[data-r08-interactions] [data-r08-control="button"]:not(:disabled):not([data-r08-accordion]):active {
    filter: brightness(.88) !important;
    scale: .985 !important;
  }

  html[data-r08-interactions] [data-r08-control="link"]:hover {
    text-decoration-line: underline !important;
    text-decoration-thickness: .08em !important;
    text-underline-offset: .2em !important;
    filter: brightness(.9) !important;
  }

  html[data-r08-interactions] [data-r08-control="link"]:active {
    opacity: .76 !important;
  }

  html[data-r08-interactions] [data-r08-control="brand"]:hover {
    opacity: .78 !important;
  }

  html[data-r08-interactions] [data-r08-control="brand"]:active {
    opacity: .64 !important;
    scale: .985 !important;
  }

  html[data-r08-interactions] :is([data-r08-interactive]:not([data-r09-name-input]), input:not([type="hidden"]):not([data-r09-name-input]),
    textarea, select):focus-visible {
    outline: 3px solid #8A5730 !important;
    outline-offset: 4px !important;
    box-shadow: 0 0 0 2px #F4F1EC !important;
  }

  html[data-r08-interactions] [data-r08-arrow] {
    --r08-arrow-x: 4px;
    --r08-arrow-y: 0px;
    display: inline-block !important;
    flex-shrink: 0;
    translate: 0 0 !important;
    transition: translate 180ms ease !important;
  }

  html[data-r08-interactions] [data-r08-arrow="down"] {
    --r08-arrow-x: 0px;
    --r08-arrow-y: 4px;
  }

  html[data-r08-interactions] [data-r08-arrow="up"] {
    --r08-arrow-x: 0px;
    --r08-arrow-y: -4px;
  }

  html[data-r08-interactions] [data-r08-arrow="left"] {
    --r08-arrow-x: -4px;
  }

  html[data-r08-interactions] [data-r08-arrow="diagonal"] {
    --r08-arrow-x: 2.828427px;
    --r08-arrow-y: -2.828427px;
  }

  html[data-r08-interactions] [data-r08-interactive]:is(:hover, :focus-visible) [data-r08-arrow] {
    translate: var(--r08-arrow-x) var(--r08-arrow-y) !important;
  }

  html[data-r08-interactions] summary[data-r08-accordion] {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    list-style: none !important;
    transition: background-color 180ms ease, box-shadow 180ms ease !important;
  }

  html[data-r08-interactions] summary[data-r08-accordion]::-webkit-details-marker {
    display: none !important;
  }

  html[data-r08-interactions] summary[data-r08-accordion]::marker {
    content: "" !important;
  }

  html[data-r08-interactions] summary[data-r08-accordion]::after {
    content: none !important;
    display: none !important;
  }

  html[data-r08-interactions] summary[data-r08-accordion]:hover {
    background-color: #CCCAC626 !important;
    filter: none !important;
    box-shadow: inset 3px 0 0 currentColor !important;
  }

  html[data-r08-interactions] summary[data-r08-accordion]:active {
    background-color: #CCCAC645 !important;
    scale: 1 !important;
  }

  html[data-r08-interactions] [data-r08-marker-shell] {
    display: inline-grid !important;
    place-items: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    flex: 0 0 36px !important;
    margin-inline-start: auto !important;
    border: 1px solid currentColor !important;
    border-radius: 50% !important;
  }

  html[data-r08-interactions] [data-r08-accordion-marker] {
    display: block !important;
    width: 20px !important;
    height: 20px !important;
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.8 !important;
    stroke-linecap: round !important;
    stroke-linejoin: round !important;
    transform: none !important;
    rotate: 0deg !important;
    transition: rotate 180ms ease !important;
  }

  html[data-r08-interactions] details[open] > summary[data-r08-accordion] [data-r08-accordion-marker] {
    rotate: 180deg !important;
  }

  @media (prefers-reduced-motion: reduce) {
    html[data-r08-interactions] :is([data-r08-interactive], [data-r08-arrow],
      [data-r08-accordion-marker]) {
      transition: none !important;
      animation: none !important;
    }

    html[data-r08-interactions] [data-r08-interactive]:active {
      scale: 1 !important;
    }

    html[data-r08-interactions] [data-r08-arrow],
    html[data-r08-interactions] [data-r08-interactive]:is(:hover, :focus-visible) [data-r08-arrow] {
      translate: 0 0 !important;
    }
  }
}
