/* INTERACTION-EFFECTS-1: approved combination — Linea viva links, Bordo luminoso buttons.
   Shared verbatim by WordPress, the app gateway and the legacy web app.
   Interaction-only properties have priority over older component hover rules. */
.ely-action-effects {
  --ely-effect-accent: #6feba9;
  --ely-effect-duration: 220ms;
}
html[data-theme='light'] .ely-action-effects,
.ely-action-effects.light,
.ely-action-effects--light {
  --ely-effect-accent: #15744e;
}
.ely-action-effects :is(.elyvian-site-dock, .e5-site-footer, .e5-manifesto, .e5-cta) {
  --ely-effect-accent: #6feba9;
}

/* Bordered actions retain their existing shape, fill, label and focus outline. */
.ely-action-effects
  :is(
    button,
    input[type='submit'],
    input[type='button'],
    a.button,
    a.btn,
    a.wp-element-button,
    a.wp-block-button__link,
    a.elyvian-global-cta,
    a.e5-button,
    a.e5-arrow,
    .e5-close a,
    a.e4-enter,
    a.e4-merge,
    a.e3-close__cta,
    a[class*='__primary'],
    a[class*='_primary_'],
    a[class*='__secondary'],
    a[class*='_secondary_'],
    a[class*='__button'],
    a[class*='_button_']
  ):not(
    .text-button,
    .text-link,
    .ea-link,
    [class*='textButton'],
    [class*='textLink'],
    button[class*='__link'],
    button[class*='_link_'],
    .msg-actions button,
    .studio-conversation-footer button
  ):not(:disabled, [aria-disabled='true']) {
  transition:
    border-color var(--ely-effect-duration),
    box-shadow var(--ely-effect-duration),
    transform var(--ely-effect-duration),
    background-color var(--ely-effect-duration),
    color var(--ely-effect-duration) !important;
}
.ely-action-effects
  :is(
    button,
    input[type='submit'],
    input[type='button'],
    a.button,
    a.btn,
    a.wp-element-button,
    a.wp-block-button__link,
    a.elyvian-global-cta,
    a.e5-button,
    a.e5-arrow,
    .e5-close a,
    a.e4-enter,
    a.e4-merge,
    a.e3-close__cta,
    a[class*='__primary'],
    a[class*='_primary_'],
    a[class*='__secondary'],
    a[class*='_secondary_'],
    a[class*='__button'],
    a[class*='_button_']
  ):not(
    .text-button,
    .text-link,
    .ea-link,
    [class*='textButton'],
    [class*='textLink'],
    button[class*='__link'],
    button[class*='_link_'],
    .msg-actions button,
    .studio-conversation-footer button
  ):not(:disabled, [aria-disabled='true']):is(:hover, :focus-visible) {
  border-color: var(--ely-effect-accent) !important;
  box-shadow:
    inset 0 -2px var(--ely-effect-accent),
    0 0 18px color-mix(in srgb, var(--ely-effect-accent) 14%, transparent) !important;
  opacity: 1;
  transform: none;
}
.ely-action-effects
  :is(
    button,
    input[type='submit'],
    input[type='button'],
    a.button,
    a.btn,
    a.wp-element-button,
    a.wp-block-button__link,
    a.elyvian-global-cta,
    a.e5-button,
    a.e5-arrow,
    .e5-close a,
    a.e4-enter,
    a.e4-merge,
    a.e3-close__cta,
    a[class*='__primary'],
    a[class*='_primary_'],
    a[class*='__secondary'],
    a[class*='_secondary_'],
    a[class*='__button'],
    a[class*='_button_']
  ):not(
    .text-button,
    .text-link,
    .ea-link,
    [class*='textButton'],
    [class*='textLink'],
    button[class*='__link'],
    button[class*='_link_'],
    .msg-actions button,
    .studio-conversation-footer button
  ):not(:disabled, [aria-disabled='true']):active {
  transform: scale(0.975);
}

/* A background underline wraps with text and needs no extra markup. */
.ely-action-effects
  :is(
    a[href],
    .text-button,
    .text-link,
    .ea-link,
    [class*='textButton'],
    [class*='textLink'],
    button[class*='__link'],
    button[class*='_link_'],
    .msg-actions button,
    .studio-conversation-footer button
  ):not(
    a.button,
    a.btn,
    a.wp-element-button,
    a.wp-block-button__link,
    a.elyvian-global-cta,
    a.e5-button,
    a.e5-arrow,
    .e5-close a,
    a.e4-enter,
    a.e4-merge,
    a.e3-close__cta,
    a[class*='__primary'],
    a[class*='_primary_'],
    a[class*='__secondary'],
    a[class*='_secondary_'],
    a[class*='__button'],
    a[class*='_button_']
  ):not(
    .brand,
    .wordmark,
    .skip,
    .skip-link,
    .wp-block-site-logo a,
    .wp-block-site-title a,
    .custom-logo-link,
    [class*='__brand'],
    [class*='_brand_'],
    [aria-label^='ELYVIAN'],
    [aria-label^='Elyvian']
  ):not([aria-disabled='true'], :disabled) {
  background-image: linear-gradient(var(--ely-effect-accent), var(--ely-effect-accent)) !important;
  background-size: 0% 2px !important;
  background-repeat: no-repeat !important;
  background-position: left bottom !important;
  text-decoration: none;
  transition:
    background-size var(--ely-effect-duration),
    color var(--ely-effect-duration) !important;
}
.ely-action-effects
  :is(
    a[href],
    .text-button,
    .text-link,
    .ea-link,
    [class*='textButton'],
    [class*='textLink'],
    button[class*='__link'],
    button[class*='_link_'],
    .msg-actions button,
    .studio-conversation-footer button
  ):not(
    a.button,
    a.btn,
    a.wp-element-button,
    a.wp-block-button__link,
    a.elyvian-global-cta,
    a.e5-button,
    a.e5-arrow,
    .e5-close a,
    a.e4-enter,
    a.e4-merge,
    a.e3-close__cta,
    a[class*='__primary'],
    a[class*='_primary_'],
    a[class*='__secondary'],
    a[class*='_secondary_'],
    a[class*='__button'],
    a[class*='_button_']
  ):not(
    .brand,
    .wordmark,
    .skip,
    .skip-link,
    .wp-block-site-logo a,
    .wp-block-site-title a,
    .custom-logo-link,
    [class*='__brand'],
    [class*='_brand_'],
    [aria-label^='ELYVIAN'],
    [aria-label^='Elyvian']
  ):not([aria-disabled='true'], :disabled):is(
    :hover,
    :focus-visible,
    :active,
    [aria-current='page']
  ) {
  background-size: 100% 2px !important;
}
/* Replace earlier decorative rules, retaining the current-page indication above. */
.ely-action-effects
  :is(
    .e5-link,
    .e10-mini figcaption a,
    .elyvian-header-login,
    .wp-block-navigation-item__content,
    .site-dock-link
  )::after {
  content: none;
}
@media (prefers-reduced-motion: reduce) {
  .ely-action-effects
    :is(
      button,
      input[type='submit'],
      input[type='button'],
      a.button,
      a.btn,
      a.wp-element-button,
      a.wp-block-button__link,
      a.elyvian-global-cta,
      a.e5-button,
      a.e5-arrow,
      .e5-close a,
      a.e4-enter,
      a.e4-merge,
      a.e3-close__cta,
      a[class*='__primary'],
      a[class*='_primary_'],
      a[class*='__secondary'],
      a[class*='_secondary_'],
      a[class*='__button'],
      a[class*='_button_']
    ):not(
      .text-button,
      .text-link,
      .ea-link,
      [class*='textButton'],
      [class*='textLink'],
      button[class*='__link'],
      button[class*='_link_'],
      .msg-actions button,
      .studio-conversation-footer button
    ):not(:disabled, [aria-disabled='true']),
  .ely-action-effects
    :is(
      a[href],
      .text-button,
      .text-link,
      .ea-link,
      [class*='textButton'],
      [class*='textLink'],
      button[class*='__link'],
      button[class*='_link_'],
      .msg-actions button,
      .studio-conversation-footer button
    ):not(
      a.button,
      a.btn,
      a.wp-element-button,
      a.wp-block-button__link,
      a.elyvian-global-cta,
      a.e5-button,
      a.e5-arrow,
      .e5-close a,
      a.e4-enter,
      a.e4-merge,
      a.e3-close__cta,
      a[class*='__primary'],
      a[class*='_primary_'],
      a[class*='__secondary'],
      a[class*='_secondary_'],
      a[class*='__button'],
      a[class*='_button_']
    ):not(
      .brand,
      .wordmark,
      .skip,
      .skip-link,
      .wp-block-site-logo a,
      .wp-block-site-title a,
      .custom-logo-link,
      [class*='__brand'],
      [class*='_brand_'],
      [aria-label^='ELYVIAN'],
      [aria-label^='Elyvian']
    ):not([aria-disabled='true'], :disabled) {
    transition: none !important;
  }
  .ely-action-effects
    :is(
      button,
      input[type='submit'],
      input[type='button'],
      a.button,
      a.btn,
      a.wp-element-button,
      a.wp-block-button__link,
      a.elyvian-global-cta,
      a.e5-button,
      a.e5-arrow,
      .e5-close a,
      a.e4-enter,
      a.e4-merge,
      a.e3-close__cta,
      a[class*='__primary'],
      a[class*='_primary_'],
      a[class*='__secondary'],
      a[class*='_secondary_'],
      a[class*='__button'],
      a[class*='_button_']
    ):not(
      .text-button,
      .text-link,
      .ea-link,
      [class*='textButton'],
      [class*='textLink'],
      button[class*='__link'],
      button[class*='_link_'],
      .msg-actions button,
      .studio-conversation-footer button
    ):not(:disabled, [aria-disabled='true']):active {
    transform: none;
  }
}
@media print {
  .ely-action-effects
    :is(
      button,
      input[type='submit'],
      input[type='button'],
      a.button,
      a.btn,
      a.wp-element-button,
      a.wp-block-button__link,
      a.elyvian-global-cta,
      a.e5-button,
      a.e5-arrow,
      .e5-close a,
      a.e4-enter,
      a.e4-merge,
      a.e3-close__cta,
      a[class*='__primary'],
      a[class*='_primary_'],
      a[class*='__secondary'],
      a[class*='_secondary_'],
      a[class*='__button'],
      a[class*='_button_']
    ):not(
      .text-button,
      .text-link,
      .ea-link,
      [class*='textButton'],
      [class*='textLink'],
      button[class*='__link'],
      button[class*='_link_'],
      .msg-actions button,
      .studio-conversation-footer button
    ):not(:disabled, [aria-disabled='true']) {
    box-shadow: none !important;
  }
  .ely-action-effects
    :is(
      a[href],
      .text-button,
      .text-link,
      .ea-link,
      [class*='textButton'],
      [class*='textLink'],
      button[class*='__link'],
      button[class*='_link_'],
      .msg-actions button,
      .studio-conversation-footer button
    ):not(
      a.button,
      a.btn,
      a.wp-element-button,
      a.wp-block-button__link,
      a.elyvian-global-cta,
      a.e5-button,
      a.e5-arrow,
      .e5-close a,
      a.e4-enter,
      a.e4-merge,
      a.e3-close__cta,
      a[class*='__primary'],
      a[class*='_primary_'],
      a[class*='__secondary'],
      a[class*='_secondary_'],
      a[class*='__button'],
      a[class*='_button_']
    ):not(
      .brand,
      .wordmark,
      .skip,
      .skip-link,
      .wp-block-site-logo a,
      .wp-block-site-title a,
      .custom-logo-link,
      [class*='__brand'],
      [class*='_brand_'],
      [aria-label^='ELYVIAN'],
      [aria-label^='Elyvian']
    ):not([aria-disabled='true'], :disabled) {
    background-image: none !important;
  }
}
