/*
 * ECLIPSE VAULT — GLOBAL BUTTON SYSTEM v1.0.0
 * Reference: Home CTA — fine lilac outline, glass-dark fill, subtle hover halo.
 * Intentional scope: front-end ACTUAL CTA controls only, not admin, icon-only
 * utilities, product-image triggers, in-game controllers or form inputs.
 * Disable the standalone plugin to roll back every style in one action.
 */
html body.evb-buttons-on {
  --evb-ink: #e9ddf7;
  --evb-line: rgba(179, 107, 246, .88);
  --evb-line-hover: #d7a2ff;
  --evb-bg: rgba(14, 7, 29, .33);
  --evb-bg-hover: rgba(71, 31, 112, .42);
  --evb-focus: rgba(224, 187, 255, .9);
}

/* The single shared action selector covers actual button families used in the
   latest Shop, Dust Shop, mini cart, Portal, Wars and Account Orders plugins,
   together with WooCommerce / Elementor standard CTAs. */
html body.evb-buttons-on :is(
  .evws button,
  .evws input[type="submit"],
  .evws a.evws-mini-view,
  .evws a.evws-modal-options,
  .evds-shop button,
  .evds-shop input[type="submit"],
  .evuc-floating a.evws-mini-view,
  .evuc-floating button.evws-mini-view,
  .evac .evac-btn,
  .evac .evp-small-btn,
  .evac .evp-secondary-btn,
  .evac .evp-inline-action,
  .evac .evp-register-btn,
  .evac .evp-daily-action,
  .evac .evp-pill-action,
  .evac .evp-yield-button,
  .evac .evp-yield-claim,
  .evac button[type="submit"],
  .evw button.evw-vote-button,
  .evw button.evw-arcade-claim,
  .evmo button,
  .evmo a.button,
  .ev-mdh-weekly-share button,
  .ev-mdh-weekly-share a,
  .ev-mdh .ev-mdh-primary,
  .woocommerce button.button,
  .woocommerce a.button,
  .woocommerce input.button,
  .woocommerce #respond input#submit,
  .woocommerce-page a.button,
  .woocommerce-page button.button,
  .wc-block-checkout__actions_row .wc-block-components-button,
  .wc-block-cart__submit .wc-block-components-button,
  .wc-block-cart__submit a,
  .wc-block-components-totals-coupon__button,
  a.elementor-button,
  button.elementor-button,
  .wp-block-button__link,
  .wp-element-button,
  .wpcf7-submit,
  .wpforms-submit
):not(:is(
  .evws-mini-toggle,
  .evws-mini-remove,
  .evws-dialog-close,
  .evws-filter-dock-close,
  .evws-circle,
  .evws-collection-pill,
  .evds-gift-image,
  .evds-gift-dialog-close,
  .evds-header-trigger,
  .evds-close-modal,
  .evp-qr-close,
  .evp-release-btn,
  .evws-qty button,
  .evws-search-shell button,
  .wc-block-components-quantity-selector button,
  .quantity button,
  .wc-block-components-express-payment__event-button,
  [aria-label="Close"],
  [aria-label="Close dialog"]
)) {
  -webkit-appearance: none !important;
  appearance: none !important;
  border: 1px solid var(--evb-line) !important;
  border-radius: 999px !important;
  background: var(--evb-bg) !important;
  color: var(--evb-ink) !important;
  box-shadow: inset 0 1px 0 rgba(220, 187, 255, .055), 0 0 0 rgba(164, 92, 255, 0) !important;
  min-height: 44px !important;
  padding: 10px 20px !important;
  font-family: "Montserrat", Arial, sans-serif !important;
  font-size: 11.5px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: .085em !important;
  text-align: center !important;
  text-decoration: none !important;
  text-shadow: none !important;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .22s ease, border-color .22s ease,
              box-shadow .22s ease, color .22s ease, filter .22s ease !important;
}

/* Hover, including dedicated high-specificity plugin rules. Never animate the
   width/height, which could shift layout or affect action hitboxes. */
@media (hover: hover) {
  html body.evb-buttons-on :is(
    .evws button,
    .evws input[type="submit"],
    .evws a.evws-mini-view,
    .evws a.evws-modal-options,
    .evds-shop button,
    .evds-shop input[type="submit"],
    .evuc-floating .evws-mini-view,
    .evac .evac-btn,
    .evac .evp-small-btn,
    .evac .evp-secondary-btn,
    .evac .evp-inline-action,
    .evac .evp-register-btn,
    .evac .evp-daily-action,
    .evac .evp-pill-action,
    .evac .evp-yield-button,
    .evac .evp-yield-claim,
    .evac button[type="submit"],
    .evw button.evw-vote-button,
    .evw button.evw-arcade-claim,
    .evmo button,
    .evmo a.button,
    .ev-mdh-weekly-share button,
    .ev-mdh-weekly-share a,
    .ev-mdh .ev-mdh-primary,
    .woocommerce button.button,
    .woocommerce a.button,
    .woocommerce input.button,
    .woocommerce #respond input#submit,
    .woocommerce-page a.button,
    .woocommerce-page button.button,
    .wc-block-checkout__actions_row .wc-block-components-button,
    .wc-block-cart__submit .wc-block-components-button,
    .wc-block-cart__submit a,
    .wc-block-components-totals-coupon__button,
    a.elementor-button,
    button.elementor-button,
    .wp-block-button__link,
    .wp-element-button,
    .wpcf7-submit,
    .wpforms-submit
  ):not(:is(
    .evws-mini-toggle, .evws-mini-remove, .evws-dialog-close,
    .evws-filter-dock-close, .evws-circle, .evws-collection-pill,
    .evds-gift-image, .evds-gift-dialog-close, .evds-header-trigger,
    .evds-close-modal, .evp-qr-close, .evp-release-btn,
    .evws-qty button, .evws-search-shell button,
    .wc-block-components-quantity-selector button, .quantity button,
    .wc-block-components-express-payment__event-button,
    [aria-label="Close"], [aria-label="Close dialog"]
  )):hover:not(:disabled):not([aria-disabled="true"]):not(.disabled) {
    border-color: var(--evb-line-hover) !important;
    background: var(--evb-bg-hover) !important;
    color: #fffaff !important;
    box-shadow: inset 0 0 13px rgba(174, 95, 247, .12),
                0 0 16px rgba(164, 85, 242, .24),
                0 0 4px rgba(203, 148, 255, .12) !important;
    text-shadow: 0 0 8px rgba(229, 200, 255, .17) !important;
  }
}

/* Clear keyboard focus, visually consistent with the lilac hover light. */
html body.evb-buttons-on :is(
  .evws button, .evws a.evws-mini-view, .evds-shop button,
  .evuc-floating .evws-mini-view, .evac .evac-btn,
  .evac .evp-small-btn, .evac .evp-secondary-btn,
  .evac button[type="submit"], .evw button.evw-vote-button,
  .evw button.evw-arcade-claim, .ev-mdh .ev-mdh-primary, .evmo button,
  .woocommerce button.button, .woocommerce a.button,
  .wc-block-checkout__actions_row .wc-block-components-button,
  .wc-block-cart__submit .wc-block-components-button,
  a.elementor-button, button.elementor-button,
  .wp-block-button__link, .wp-element-button,
  .wpcf7-submit, .wpforms-submit
):not(:is(
  .evws-mini-toggle, .evws-mini-remove, .evws-dialog-close,
  .evws-filter-dock-close, .evws-circle, .evws-collection-pill,
  .evds-gift-image, .evds-gift-dialog-close, .evds-header-trigger,
  .evds-close-modal, .evp-qr-close, .evp-release-btn,
  .evws-qty button, .evws-search-shell button,
  .wc-block-components-quantity-selector button, .quantity button
)):focus-visible {
  outline: 2px solid var(--evb-focus) !important;
  outline-offset: 3px !important;
  border-color: var(--evb-line-hover) !important;
  box-shadow: 0 0 17px rgba(164, 85, 242, .28) !important;
}

/* Selected category chips remain recognizable without a bright solid slab. */
html body.evb-buttons-on :is(
  .evws .evws-categories button,
  .evws .evws-nav-btn,
  .evds-shop .evds-gift-categories button,
  .evds-shop .evds-shop-tab,
  .evmo .evmo-filter
):is(.is-active, [aria-pressed="true"], [aria-selected="true"]) {
  border-color: #c390f7 !important;
  background: rgba(105, 47, 150, .42) !important;
  color: #fff4ff !important;
  box-shadow: inset 3px 0 0 rgba(201, 143, 254, .82),
              0 0 12px rgba(159, 83, 237, .12) !important;
}

/* Simple content CTA groups: keep paired actions balanced, without modifying
   their grid positions, event handlers or current button ordering. */
html body.evb-buttons-on .evws .evws-card-actions :is(.evws-buy, .evws-details-link),
html body.evb-buttons-on .evws .evws-modal-purchase .evws-buy,
html body.evb-buttons-on .evds-shop :is(.evds-key-price-button, .evds-gift-price-button) {
  min-height: 43px !important;
  padding-inline: 18px !important;
}

/* Full-width shared mini-cart CTA matches the shape of the Home actions. */
html body.evb-buttons-on :is(.evuc-floating, .evws) .evws-mini-view {
  min-height: 45px !important;
  border-radius: 999px !important;
  width: 100%;
}

/* Disabled purchase/reward controls keep a clear noninteractive appearance. */
html body.evb-buttons-on :is(.evws, .evds-shop, .evac, .evw, .evmo, .woocommerce)
:is(button, input[type="submit"], a.button):is(:disabled, [aria-disabled="true"], .disabled) {
  opacity: .48 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  filter: saturate(.55);
}

/* Small screens: matching pill treatment, without causing horizontal overflow. */
@media (max-width: 620px) {
  html body.evb-buttons-on :is(
    .evws button.evws-buy,
    .evws button.evws-details-link,
    .evds-shop .evds-gift-price-button,
    .evds-shop .evds-key-price-button,
    .evuc-floating .evws-mini-view,
    .woocommerce button.button,
    .woocommerce a.button,
    .wc-block-checkout__actions_row .wc-block-components-button,
    a.elementor-button,
    button.elementor-button
  ) {
    max-width: 100% !important;
    padding-inline: 14px !important;
    font-size: 11px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body.evb-buttons-on :is(.evws, .evds-shop, .evac, .evw, .evmo, .woocommerce, .ev-mdh) button,
  html body.evb-buttons-on :is(a.elementor-button, .wp-block-button__link, .wp-element-button) {
    transition: none !important;
  }
}

/* v1.0.1 — Compact, single-line Shop product-card actions.
   The global CTA font and padding from v1.0.0 made VIEW DETAILS wrap
   inside the half-width product card. Preserve the global outline/glow,
   while leaving click handlers and the underlying Shop card layout alone. */
html body.evb-buttons-on.evws-shop-scene .evws .evws-products .evws-product .evws-card-actions {
  display: flex !important;
  flex-wrap: nowrap !important;
  gap: 9px !important;
  align-items: stretch !important;
}
html body.evb-buttons-on.evws-shop-scene .evws .evws-products .evws-product .evws-card-actions :is(.evws-buy,.evws-details-link) {
  box-sizing: border-box !important;
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: auto !important;
  min-height: 43px !important;
  height: 43px !important;
  padding: 8px 9px !important;
  font-size: 10px !important;
  line-height: 1.15 !important;
  letter-spacing: .035em !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: clip !important;
}
/* Narrow mobile cards: preserve legibility without two-line CTA pills. */
@media (max-width: 430px) {
  html body.evb-buttons-on.evws-shop-scene .evws .evws-products .evws-product .evws-card-actions {
    gap: 6px !important;
  }
  html body.evb-buttons-on.evws-shop-scene .evws .evws-products .evws-product .evws-card-actions :is(.evws-buy,.evws-details-link) {
    padding-inline: 5px !important;
    font-size: 9.5px !important;
    letter-spacing: .01em !important;
  }
}
