// ------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Changes to this file may cause incorrect behavior and will be lost if the code is regenerated.
// </auto-generated>
// ------------------------------------------------------------------------------
// #region Imports
import { css } from '../../../../../Dom/Css';
// #endregion
/**
 * @public
 */
export function scrollElementMemphisStyle() {
    return css `
:host {
  --scroll-action-button-width: 40px;
  --scroll-font-family: unset;
  --scroll-font-letter-spacing: unset;
  --scroll-font-line-height: unset;
  --scroll-font-size: unset;
  --scroll-font-text-decoration: unset;
  --scroll-font-text-transform: unset;
  --scroll-font-weight: unset;
  --scroll-gap: unset;
  --scroll-gradient-size: 40px;
  --scroll-padding-bottom: unset;
  --scroll-padding-left: unset;
  --scroll-padding-right: unset;
  --scroll-padding-top: unset;
  --scroll-transition-duration: var(--memphis-duration-medium);
  --scroll-transition-mode: ease;
  --scroll-transition-property: background-color, box-shadow, transform;
  --scroll-translate: unset;
}

@media screen and (prefers-reduced-motion: reduce) {
  :host {
    transition-duration: .01ms;
  }
}

:host {
  box-sizing: border-box;
  display: block;
  position: relative;
}

:host *, :host :before, :host :after {
  box-sizing: border-box;
  background-repeat: no-repeat;
}

:host :before, :host :after {
  text-decoration: inherit;
  vertical-align: inherit;
}

:host([hidden]) {
  display: none !important;
}

:host [part="root"] {
  height: inherit;
  display: grid;
  position: relative;
}

:host [part="scroller"] {
  z-index: 1;
  overflow: auto;
}

:host [part="content"] {
  gap: var(--scroll-content-gap, 0);
  min-height: 28px;
  padding: var(--scroll-padding-top) var(--scroll-padding-right) var(--scroll-padding-bottom) var(--scroll-padding-left);
  position: relative;
}

:host [part="content"] [part="anchorTop"] {
  position: absolute;
  top: 0;
}

:host [part="content"] [part="anchorBottom"] {
  position: absolute;
  bottom: 0;
}

:host [part="content"] [part="triggerStart"], :host [part="content"] [part="triggerEnd"] {
  visibility: hidden;
  width: 1px;
  position: absolute;
  top: 0;
  bottom: 0;
}

:host [part="content"] [part="triggerStart"] {
  left: 0;
}

:host [part="content"] [part="triggerEnd"] {
  right: 0;
}

:host(:not([orientation="horizontal"])) [part="scroller"] {
  flex-direction: column;
  flex: 1;
  display: flex;
}

:host(:not([orientation="horizontal"])) [part="content"] {
  transform-origin: top;
  flex-direction: column;
  flex-grow: 1;
  height: min-content;
  display: flex;
  overflow: hidden;
}

:host([orientation="horizontal"]) [part="scroller"] {
  overflow: auto hidden;
}

:host([orientation="horizontal"]) [part="content"] {
  vertical-align: top;
  flex-direction: row;
  min-width: 100%;
  display: inline-flex;
}

:host([orientation="vertical"]) [part="triggerStart"], :host([orientation="vertical"]) [part="triggerEnd"] {
  width: auto;
  height: 1px;
  left: 0;
  right: 0;
}

:host([orientation="vertical"]) [part="triggerStart"] {
  inset: 0 auto auto;
}

:host([orientation="vertical"]) [part="triggerEnd"] {
  inset: auto auto 0;
}

:host([show-scroll-buttons]) [part="root"], :host([show-scroll-buttons][orientation="horizontal"]) [part="root"] {
  grid-template-columns: var(--scroll-action-button-width, 40px) minmax(0, 1fr) var(--scroll-action-button-width, 40px);
}

:host([show-scroll-buttons]) [part="scroller"], :host([show-scroll-buttons][orientation="horizontal"]) [part="scroller"] {
  grid-area: 1 / 1 / 1 / -1;
  overflow: auto hidden;
}

:host([show-scroll-buttons]) [part="content"], :host([show-scroll-buttons][orientation="horizontal"]) [part="content"] {
  flex-direction: row;
  min-width: 100%;
  display: inline-flex;
}

:host([show-scroll-buttons]) [part="actionPrev"], :host([show-scroll-buttons]) [part="actionNext"], :host([show-scroll-buttons][orientation="horizontal"]) [part="actionPrev"], :host([show-scroll-buttons][orientation="horizontal"]) [part="actionNext"] {
  opacity: 1;
  pointer-events: auto;
  transition: opacity var(--scroll-transition-duration, .25s) var(--scroll-transition-mode, ease);
}

:host([show-scroll-buttons]) [part="actionPrev"], :host([show-scroll-buttons][orientation="horizontal"]) [part="actionPrev"] {
  width: var(--scroll-action-button-width, 40px);
  align-items: var(--scroll-align-scroll-indicator, center);
  z-index: 2;
  direction: ltr;
  justify-content: flex-start;
  display: flex;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
}

:host([show-scroll-buttons]) [part="actionNext"], :host([show-scroll-buttons][orientation="horizontal"]) [part="actionNext"] {
  width: var(--scroll-action-button-width, 40px);
  align-items: var(--scroll-align-scroll-indicator, center);
  z-index: 2;
  direction: ltr;
  justify-content: flex-end;
  display: flex;
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
}

:host([show-scroll-buttons][orientation="vertical"]) {
  height: 100%;
}

:host([show-scroll-buttons][orientation="vertical"]) [part="root"] {
  grid-template-columns: auto;
  grid-template-rows: var(--scroll-action-button-width, 40px) minmax(0, 1fr) var(--scroll-action-button-width, 40px);
  height: 100%;
}

:host([show-scroll-buttons][orientation="vertical"]) [part="scroller"] {
  grid-area: 1 / 1 / -1 / 1;
  overflow: hidden auto;
}

:host([show-scroll-buttons][orientation="vertical"]) [part="content"] {
  flex-direction: column;
  min-height: 100%;
  display: flex;
}

:host([show-scroll-buttons][orientation="vertical"]) [part="actionPrev"] {
  width: auto;
  height: var(--scroll-action-button-width, 40px);
  z-index: 2;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  inset: 0 0 auto;
}

:host([show-scroll-buttons][orientation="vertical"]) [part="actionNext"] {
  width: auto;
  height: var(--scroll-action-button-width, 40px);
  z-index: 2;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  inset: auto 0 0;
}

:host([show-scroll-buttons][is-at-scroll-start]) [part="actionPrev"], :host([show-scroll-buttons][is-at-scroll-end]) [part="actionNext"] {
  opacity: 0;
  pointer-events: none;
}

:host(:not([orientation="vertical"]):not([is-at-scroll-start]):not([is-at-scroll-end])) [part="scroller"] {
  -webkit-mask: linear-gradient(90deg, #0000 0, #000 var(--scroll-gradient-size, 40px) calc(100% - var(--scroll-gradient-size, 40px)), #0000 100%) alpha;
  mask: linear-gradient(90deg, #0000 0, #000 var(--scroll-gradient-size, 40px) calc(100% - var(--scroll-gradient-size, 40px)), #0000 100%) alpha;
}

:host(:not([orientation="vertical"])[is-at-scroll-start]:not([is-at-scroll-end])) [part="scroller"] {
  -webkit-mask: linear-gradient(90deg, #000 calc(100% - var(--scroll-gradient-size, 40px)), #0000 100%) alpha;
  mask: linear-gradient(90deg, #000 calc(100% - var(--scroll-gradient-size, 40px)), #0000 100%) alpha;
}

:host(:not([orientation="vertical"]):not([is-at-scroll-start])[is-at-scroll-end]) [part="scroller"] {
  -webkit-mask: linear-gradient(90deg, #0000 0, #000 var(--scroll-gradient-size, 40px)) alpha;
  mask: linear-gradient(90deg, #0000 0, #000 var(--scroll-gradient-size, 40px)) alpha;
}

:host([orientation="vertical"]:not([is-at-scroll-start]):not([is-at-scroll-end])) [part="scroller"] {
  -webkit-mask: linear-gradient(180deg, #0000 0, #000 var(--scroll-gradient-size, 40px) calc(100% - var(--scroll-gradient-size, 40px)), #0000 100%) alpha;
  mask: linear-gradient(180deg, #0000 0, #000 var(--scroll-gradient-size, 40px) calc(100% - var(--scroll-gradient-size, 40px)), #0000 100%) alpha;
}

:host([orientation="vertical"][is-at-scroll-start]:not([is-at-scroll-end])) [part="scroller"] {
  -webkit-mask: linear-gradient(180deg, #000 calc(100% - var(--scroll-gradient-size, 40px)), #0000 100%) alpha;
  mask: linear-gradient(180deg, #000 calc(100% - var(--scroll-gradient-size, 40px)), #0000 100%) alpha;
}

:host([orientation="vertical"]:not([is-at-scroll-start])[is-at-scroll-end]) [part="scroller"] {
  -webkit-mask: linear-gradient(180deg, #0000 0, #000 var(--scroll-gradient-size, 40px)) alpha;
  mask: linear-gradient(180deg, #0000 0, #000 var(--scroll-gradient-size, 40px)) alpha;
}

:host(:not([show-scrollbar])) [part="scroller"] {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

:host(:not([show-scrollbar])) [part="scroller"]::-webkit-scrollbar {
  display: none;
}

    `;
}
//# sourceMappingURL=ScrollElement.Memphis.js.map