import { css } from "lit";
const componentStyle = css`
          * {
            -webkit-tap-highlight-color: transparent;
          }

* {
  box-sizing: border-box;
}

/* === Wrapper === */

.aton-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Standard size types */

.type-indicator,
.type-regular,
.type-aton,
.type-n-up {
  width: var(--maneuvering-components-poi-button-touch-target, 48px);
  height: var(--maneuvering-components-poi-button-touch-target, 48px);
}

/* Large size types */

.type-large,
.type-n-up-large {
  width: var(--maneuvering-components-poi-button-large-touch-target, 64px);
  height: var(--maneuvering-components-poi-button-large-touch-target, 64px);
}

/* ==========================================================================
   Non-indicator, non-aton types (Regular, Large, NUp, NUpLarge)
   — delegate to inner obc-poi-object, override CSS custom properties
   ========================================================================== */

.style-green obc-poi-object {
  --overlay-container-background-color: var(
    --overlay-navigation-green-primary-color
  );
  --overlay-border-outline-color: var(
    --overlay-navigation-green-secondary-color
  );
  --element-neutral-color: var(
    --overlay-navigation-green-on-primary-color,
    #005f43
  );
  --element-active-color: var(
    --overlay-navigation-green-on-primary-color,
    #005f43
  );
  --indicator-stroke-color: var(--overlay-navigation-green-primary-color);
}

.style-red obc-poi-object {
  --overlay-container-background-color: var(
    --overlay-navigation-red-primary-color
  );
  --overlay-border-outline-color: var(--overlay-navigation-red-secondary-color);
  --element-neutral-color: var(
    --overlay-navigation-red-on-primary-color,
    #863d3c
  );
  --element-active-color: var(
    --overlay-navigation-red-on-primary-color,
    #863d3c
  );
  --indicator-stroke-color: var(--overlay-navigation-red-primary-color);
}

.style-yellow obc-poi-object {
  --overlay-container-background-color: var(
    --overlay-navigation-yellow-primary-color
  );
  --overlay-border-outline-color: var(
    --overlay-navigation-yellow-secondary-color
  );
  --element-neutral-color: var(
    --overlay-navigation-yellow-on-primary-color,
    #635200
  );
  --element-active-color: var(
    --overlay-navigation-yellow-on-primary-color,
    #635200
  );
  --indicator-stroke-color: var(--overlay-navigation-yellow-primary-color);
}

/* Indicator type: flip fill to primary (light), stroke to on-primary (dark) */

.type-indicator.style-green obc-poi-object {
  --element-neutral-color: var(--overlay-navigation-green-primary-color);
  --element-active-color: var(--overlay-navigation-green-primary-color);
  --indicator-stroke-color: var(
    --overlay-navigation-green-on-primary-color,
    #005f43
  );
}

.type-indicator.style-red obc-poi-object {
  --element-neutral-color: var(--overlay-navigation-red-primary-color);
  --element-active-color: var(--overlay-navigation-red-primary-color);
  --indicator-stroke-color: var(
    --overlay-navigation-red-on-primary-color,
    #863d3c
  );
}

.type-indicator.style-yellow obc-poi-object {
  --element-neutral-color: var(--overlay-navigation-yellow-primary-color);
  --element-active-color: var(--overlay-navigation-yellow-primary-color);
  --indicator-stroke-color: var(
    --overlay-navigation-yellow-on-primary-color,
    #635200
  );
}

/* Indicator static: revert fill to on-primary (dark) since stroke is removed */

.type-indicator.state-static-unchecked.style-green obc-poi-object,
.type-indicator.state-static-checked.style-green obc-poi-object {
  --element-neutral-color: var(
    --overlay-navigation-green-on-primary-color,
    #005f43
  );
  --element-active-color: var(
    --overlay-navigation-green-on-primary-color,
    #005f43
  );
}

.type-indicator.state-static-unchecked.style-red obc-poi-object,
.type-indicator.state-static-checked.style-red obc-poi-object {
  --element-neutral-color: var(
    --overlay-navigation-red-on-primary-color,
    #863d3c
  );
  --element-active-color: var(
    --overlay-navigation-red-on-primary-color,
    #863d3c
  );
}

.type-indicator.state-static-unchecked.style-yellow obc-poi-object,
.type-indicator.state-static-checked.style-yellow obc-poi-object {
  --element-neutral-color: var(
    --overlay-navigation-yellow-on-primary-color,
    #635200
  );
  --element-active-color: var(
    --overlay-navigation-yellow-on-primary-color,
    #635200
  );
}

/* Static states: colored styles keep their navigation background, not flat white.
   The inner obc-poi-object always receives objectStyle="regular", so its static rule
   applies flat white. We override via ::part(background-frame) for colored styles. */

.state-static-unchecked.style-green obc-poi-object::part(background-frame),
.state-static-checked.style-green obc-poi-object::part(background-frame) {
  background-color: var(--overlay-navigation-green-primary-color);
  border-color: var(--overlay-navigation-green-secondary-color);
}

.state-static-unchecked.style-red obc-poi-object::part(background-frame),
.state-static-checked.style-red obc-poi-object::part(background-frame) {
  background-color: var(--overlay-navigation-red-primary-color);
  border-color: var(--overlay-navigation-red-secondary-color);
}

.state-static-unchecked.style-yellow obc-poi-object::part(background-frame),
.state-static-checked.style-yellow obc-poi-object::part(background-frame) {
  background-color: var(--overlay-navigation-yellow-primary-color);
  border-color: var(--overlay-navigation-yellow-secondary-color);
}

/* ==========================================================================
   AtoN Diamond Type — custom rendering (no obc-poi-object)
   ========================================================================== */

.aton-diamond-frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  --obc-poi-aton-diamond-size: 32px;
}

.aton-diamond-frame::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--obc-poi-aton-diamond-size);
  height: var(--obc-poi-aton-diamond-size);
  transform: translate(-50%, -50%) translateY(2px) rotate(45deg);
  border-radius: var(
    --maneuvering-components-poi-button-border-radius-square,
    6px
  );
  background: var(--obc-poi-aton-object-shadow-color, rgba(0, 0, 0, 0.22));
  filter: blur(var(--obc-poi-aton-object-shadow-blur, 3px));
  opacity: var(--obc-poi-aton-object-shadow-opacity, 1);
  pointer-events: none;
  z-index: 0;
}

/* Diamond background */

.aton-diamond-background {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 32px;
  height: 32px;
  transform: rotate(45deg);
  border-radius: var(
    --maneuvering-components-poi-button-border-radius-square,
    6px
  );
  background-color: var(--overlay-container-background-color);
  border: 1px solid var(--overlay-border-outline-color);
  overflow: hidden;
  z-index: 1;
}

/* Diamond color styles */

.style-green .aton-diamond-background {
  background-color: var(--overlay-navigation-green-primary-color);
  border-color: var(--overlay-navigation-green-secondary-color);
}

.style-red .aton-diamond-background {
  background-color: var(--overlay-navigation-red-primary-color);
  border-color: var(--overlay-navigation-red-secondary-color);
}

.style-yellow .aton-diamond-background {
  background-color: var(--overlay-navigation-yellow-primary-color);
  border-color: var(--overlay-navigation-yellow-secondary-color);
}

/* Diamond static state — regular/white switches to flat background */

.state-static-unchecked.style-regular .aton-diamond-background,
.state-static-checked.style-regular .aton-diamond-background {
  background-color: var(--normal-enabled-background-color);
  border-color: var(--normal-enabled-border-color);
}

/* Diamond overlapped state — smaller diamond, hidden icon */

.state-overlapped .aton-diamond-background {
  width: 28px;
  height: 28px;
}

.state-overlapped .aton-diamond-frame {
  --obc-poi-aton-diamond-size: 28px;
}

.state-overlapped .aton-icon-container {
  opacity: 0;
}

/* Diamond icon container */

.aton-icon-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--maneuvering-components-poi-button-icon-size, 24px);
  height: var(--maneuvering-components-poi-button-icon-size, 24px);
  z-index: 2;
}

/* Diamond icon — default uses element-neutral-color */

.aton-icon-container ::slotted(*) {
  width: 100%;
  height: 100%;
  color: var(--element-neutral-color);
  --element-active-color: var(--element-neutral-color);
}

/* Diamond icon — colored styles always use on-primary-color regardless of state */

.style-green .aton-icon-container ::slotted(*) {
  color: var(--overlay-navigation-green-on-primary-color, #005f43);
  --element-active-color: var(
    --overlay-navigation-green-on-primary-color,
    #005f43
  );
}

.style-red .aton-icon-container ::slotted(*) {
  color: var(--overlay-navigation-red-on-primary-color, #863d3c);
  --element-active-color: var(
    --overlay-navigation-red-on-primary-color,
    #863d3c
  );
}

.style-yellow .aton-icon-container ::slotted(*) {
  color: var(--overlay-navigation-yellow-on-primary-color, #635200);
  --element-active-color: var(
    --overlay-navigation-yellow-on-primary-color,
    #635200
  );
}

/* Diamond icon — regular/white checked/activated switches to active color */

.state-checked.style-regular .aton-icon-container ::slotted(*),
.state-static-checked.style-regular .aton-icon-container ::slotted(*),
.state-activated.style-regular .aton-icon-container ::slotted(*) {
  color: var(--element-active-color);
  --element-active-color: inherit;
}

/* ==========================================================================
   Interactive hover/active states for AtoN diamond
   ========================================================================== */

.aton-wrapper.interactive {
  cursor: pointer;
}

.aton-wrapper.interactive .aton-diamond-background {
  transition:
    background-color var(--obc-poi-color-transition-duration, 0.1s) ease,
    border-color var(--obc-poi-color-transition-duration, 0.1s) ease;
}

/* Regular style — uses flat hover/pressed colors */

:host(:hover) .aton-wrapper.interactive.style-regular .aton-diamond-background {
  background-color: var(--flat-hover-background-color);
}

:host(:active)
  .aton-wrapper.interactive.style-regular
  .aton-diamond-background {
  background-color: var(--flat-pressed-background-color);
}

/* Colored styles — lighten on hover/active via color-mix */

:host(:hover) .aton-wrapper.interactive.style-green .aton-diamond-background {
  background-color: color-mix(
    in srgb,
    var(--overlay-navigation-green-primary-color) 85%,
    white
  );
}

:host(:active) .aton-wrapper.interactive.style-green .aton-diamond-background {
  background-color: color-mix(
    in srgb,
    var(--overlay-navigation-green-primary-color) 75%,
    white
  );
}

:host(:hover) .aton-wrapper.interactive.style-red .aton-diamond-background {
  background-color: color-mix(
    in srgb,
    var(--overlay-navigation-red-primary-color) 85%,
    white
  );
}

:host(:active) .aton-wrapper.interactive.style-red .aton-diamond-background {
  background-color: color-mix(
    in srgb,
    var(--overlay-navigation-red-primary-color) 75%,
    white
  );
}

:host(:hover) .aton-wrapper.interactive.style-yellow .aton-diamond-background {
  background-color: color-mix(
    in srgb,
    var(--overlay-navigation-yellow-primary-color) 85%,
    white
  );
}

:host(:active) .aton-wrapper.interactive.style-yellow .aton-diamond-background {
  background-color: color-mix(
    in srgb,
    var(--overlay-navigation-yellow-primary-color) 75%,
    white
  );
}
`;
export {
  componentStyle as default
};
//# sourceMappingURL=poi-object-aton.css.js.map
