:host(:not(:is([hydrated], .hydrated))) {
  @apply not-hydrated;
}


mds-text {
  &:not(:is([hydrated], .hydrated)) {
    @apply not-hydrated;
  }
}


/**
 * @prop --mds-price-table-features-cell-padding: Public. Padding applied to each feature cell, defaults to the section padding.
 * @prop --mds-price-table-features-cell-icon-supported-color-hover: Color of the supported feature icon on hover.
 * @prop --mds-price-table-features-cell-icon-supported-color: Default color of the supported feature icon.
 * @prop --mds-price-table-features-cell-icon-unsupported-color-hover: Color of the unsupported feature icon on hover.
 * @prop --mds-price-table-features-cell-icon-unsupported-color: Default color of the unsupported feature icon.
 * @prop --mds-price-table-features-cell-border-color: Border color of individual feature cells, defaults to the border color of the section.
 */

:host {
  --mds-price-table-features-cell-padding: var(--mds-price-table-features-padding, --spacing(300));
  --mds-price-table-features-cell-icon-supported-color-hover: rgb(var(--label-green-06, 34 195 93));
  --mds-price-table-features-cell-icon-supported-color: rgb(var(--label-green-06, 34 195 93));
  --mds-price-table-features-cell-icon-unsupported-color-hover: rgb(var(--magma-text-disabled, var(--text-neutral-disabled, 119 119 119)));
  --mds-price-table-features-cell-icon-unsupported-color: rgb(var(--magma-text-disabled, var(--text-neutral-disabled, 119 119 119)));
  --mds-price-table-features-cell-border-color: var(
    --mds-price-table-features-border-color,
    rgb(var(--magma-border-muted, var(--border-neutral-muted, 206 206 206)))
  );
  --mds-price-table-features-cell-transition-duration: var(--duration-200, 200ms);
  --private-price-table-features-cell-transition-duration: var(--mds-price-table-features-cell-transition-duration);

  @apply ease-out;

  border-bottom: 1px solid var(--mds-price-table-features-cell-border-color, rgb(var(--magma-border-muted, var(--border-neutral-muted, 206 206 206))));
  display: table-cell;
  padding: var(--mds-price-table-features-cell-padding, --spacing(300));
  transition-duration: var(--private-price-table-features-cell-transition-duration);
  transition-property: border-color, border-color, transform;
  vertical-align: top;
}

.icon {
  @apply ease-out
    svg;

  display: flex;
  fill: var(--icon-fill-color, currentColor);
  height: --spacing(600);
  transition-duration: var(--private-price-table-features-cell-transition-duration);
  transition-property: fill;
  width: --spacing(600);
}

.icon--supported {
  --icon-fill-color: var(--mds-price-table-features-cell-icon-supported-color, rgb(var(--label-green-06, 34 195 93)));
}

.icon--unsupported {
  --icon-fill-color: var(--mds-price-table-features-cell-icon-unsupported-color, rgb(var(--magma-text-disabled, var(--text-neutral-disabled, 119 119 119))));
}

/* Motion, held back.
 *
 * Every component zeroes the private durations its own base CSS reads, which composes
 * with the public knobs - but that only reaches the declarations that read them. An audit
 * of the 52 sheets found 21 transitions in 15 components that did not: the host's own
 * transition in mds-button and mds-table, the focus ring of the input family, the tab
 * slider, the close button of mds-note. This reset reaches the whole shadow tree, which is
 * what the preference promises, and keeps reaching it when a declaration is added.
 *
 * Transitions only, on purpose. A keyframe animation is usually a loader, and a loader has
 * to keep saying "working": mds-spinner slows to 8s under reduced motion instead of
 * freezing, and a duration of nearly zero on an infinite animation would spin it out of
 * control instead of stopping it.
 *
 * 0.01ms rather than 0s, so a component that waits for its own transitionend still gets
 * one: mds-modal, mds-push-notification and mds-tree-item all listen for it, and a
 * transition of zero never fires it. */

/* stylelint-disable time-min-milliseconds -- the floor is there to keep a transition
   perceivable; the point of these two is that it is not. */

:host([pref-animation='reduce']),
:host([pref-animation='reduce']) *,
:host([pref-animation='reduce']) *::before,
:host([pref-animation='reduce']) *::after {
  transition-duration: 0.01ms !important;
}

@media (prefers-reduced-motion: reduce) {
  :host([pref-animation='system']),
  :host([pref-animation='system']) *,
  :host([pref-animation='system']) *::before,
  :host([pref-animation='system']) *::after,
  :host(:not([pref-animation])),
  :host(:not([pref-animation])) *,
  :host(:not([pref-animation])) *::before,
  :host(:not([pref-animation])) *::after {
    transition-duration: 0.01ms !important;
  }
}

/* stylelint-enable time-min-milliseconds */


/* Animation preference. The component mirrors the resolved mode from <html>
 * onto its host as pref-animation (see subscribePreference in @common/preference);
 * these plain shadow selectors then zero the private duration(s) the base CSS
 * reads. `reduce` always stops; `system` and no controller follow the OS via
 * @media; `no-preference` keeps the base value. Customization composes (the base
 * sets --private from the public token, this only overrides it when reduced). */

:host([pref-animation='reduce']) {
  --private-price-table-features-cell-transition-duration: 0s;
}

@media (prefers-reduced-motion: reduce) {
  :host([pref-animation='system']),
  :host(:not([pref-animation])) {
    --private-price-table-features-cell-transition-duration: 0s;
  }
}

/* Theme preference. The component reflects the resolved theme mode and scheme
 * from <html> onto its host as pref-mode + pref-theme-scheme (see
 * subscribePreference in @common/preference); these plain shadow selectors refine
 * for dark. `dark` is the explicit choice; `system` and no controller follow the
 * OS via @media; the scheme axis gates it. Cross-browser, no :host-context. */

:host([pref-mode='dark']:not([pref-theme-scheme='light'])),
:host([pref-theme-scheme='dark']) {
  --mds-price-table-features-cell-icon-supported-color: rgb(var(--label-green-03, 16 102 48));
  --mds-price-table-features-cell-icon-supported-color-hover: rgb(var(--label-green-02, 12 79 37));
  --mds-price-table-features-cell-icon-unsupported-color-hover: rgb(var(--magma-text-subtle, var(--text-neutral-subtle, 99 99 99)));
}

@media (prefers-color-scheme: dark) {
  :host([pref-mode='system']:not([pref-theme-scheme='light'])),
  :host(:not([pref-mode]):not([pref-theme-scheme='light'])) {
    --mds-price-table-features-cell-icon-supported-color: rgb(var(--label-green-03, 16 102 48));
    --mds-price-table-features-cell-icon-supported-color-hover: rgb(var(--label-green-02, 12 79 37));
    --mds-price-table-features-cell-icon-unsupported-color-hover: rgb(var(--magma-text-subtle, var(--text-neutral-subtle, 99 99 99)));
  }
}

/* Contrast preference. The component reflects the resolved mode from <html> onto
 * its host as pref-contrast (see subscribePreference in @common/preference); these
 * plain shadow selectors refine for high contrast. `more` is the explicit choice;
 * `system` and no controller follow the OS via @media. Cross-browser, no :host-context. */

:host([pref-contrast='more']) {
  --mds-price-table-features-cell-icon-supported-color-hover: rgb(var(--label-green-01, 7 52 25));
  --mds-price-table-features-cell-icon-supported-color: rgb(var(--label-green-02, 12 79 37));
  --mds-price-table-features-cell-icon-unsupported-color-hover: rgb(var(--magma-text-default, var(--text-neutral-default, 5 5 5)));
  --mds-price-table-features-cell-icon-unsupported-color: rgb(var(--magma-text-default, var(--text-neutral-default, 5 5 5)));
}

@media (prefers-contrast: more) {
  :host([pref-contrast='system']),
  :host(:not([pref-contrast])) {
    --mds-price-table-features-cell-icon-supported-color-hover: rgb(var(--label-green-01, 7 52 25));
    --mds-price-table-features-cell-icon-supported-color: rgb(var(--label-green-02, 12 79 37));
    --mds-price-table-features-cell-icon-unsupported-color-hover: rgb(var(--magma-text-default, var(--text-neutral-default, 5 5 5)));
    --mds-price-table-features-cell-icon-unsupported-color: rgb(var(--magma-text-default, var(--text-neutral-default, 5 5 5)));
  }
}

