/* KODEANDKISS — EPUB checkout / cold light, cyan and crimson. */
#editions .edition-card__checkout[data-checkout-sku] {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-inline-size: 100%;
  min-block-size: 3rem;
  padding: .78rem 1.2rem;
  border: 2px solid transparent;
  border-radius: 100vmax;
  background-color: #071323;
  background:
    radial-gradient(ellipse at 12% 0%, rgb(14 142 196 / .3), transparent 52%) padding-box,
    linear-gradient(112deg, #092134, #10172c 52%, #321221) padding-box,
    linear-gradient(108deg, #ff3d62 0%, #f7fdff 19%, #48e7ff 43%, #559bff 69%, #f4fbff 84%, #ff3d62 100%) border-box;
  color: #f7fdff;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-shadow: 0 1px 3px #020b19, 0 0 12px rgb(194 243 255 / .22);
  box-shadow:
    -5px 0 22px rgb(44 225 255 / .27),
    6px 1px 23px rgb(255 51 93 / .25),
    0 7px 23px rgb(16 69 143 / .32),
    inset 0 1px 1px rgb(255 255 255 / .32);
  opacity: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: rgb(90 223 255 / .22);
}

#editions .edition-card__checkout[data-checkout-sku]::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block: -35%;
  inset-inline-start: -80%;
  inline-size: 55%;
  background: linear-gradient(90deg, transparent, rgb(96 227 255 / .08) 24%, rgb(255 255 255 / .24) 51%, rgb(112 166 255 / .1) 70%, transparent);
  transform: skewX(-24deg);
  pointer-events: none;
}

#editions .edition-card__checkout[data-checkout-sku]::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(ellipse 7px 1px at 19% 3%, rgb(255 255 255 / .9), transparent),
    radial-gradient(ellipse 1px 6px at 19% 3%, rgb(255 255 255 / .7), transparent),
    radial-gradient(ellipse 6px 1px at 83% 97%, rgb(198 245 255 / .9), transparent);
  pointer-events: none;
}

#editions .edition-card__checkout[data-checkout-sku]:not(:disabled):is(:hover, :focus-visible) {
  color: #fff;
  box-shadow:
    -6px 0 28px rgb(44 225 255 / .43),
    7px 1px 29px rgb(255 51 93 / .38),
    0 8px 28px rgb(62 129 255 / .36),
    inset 0 1px 2px rgb(255 255 255 / .55);
}

#editions .edition-card__checkout[data-checkout-sku]:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 5px;
}

#editions .edition-card__checkout[data-checkout-sku]:not(:disabled):active {
  transform: translateY(1px);
}

#editions .edition-card__checkout[data-checkout-sku]:disabled {
  opacity: .52;
  cursor: not-allowed;
  box-shadow: 0 3px 12px rgb(16 69 143 / .18), inset 0 1px 1px rgb(255 255 255 / .18);
}

#editions .edition-card__checkout[data-checkout-sku][aria-busy="true"] {
  opacity: 1;
  cursor: progress;
  border-color: #b8f4ff;
  box-shadow: 0 0 22px rgb(52 217 255 / .34), 0 0 12px rgb(255 71 106 / .2);
}

@media (prefers-reduced-motion: no-preference) {
  #editions .edition-card__checkout[data-checkout-sku] {
    transition: box-shadow .22s ease, opacity .18s ease, transform .18s ease;
  }

  #editions .edition-card__checkout[data-checkout-sku]:not(:disabled)::before {
    animation: kk-epub-checkout-sheen 7.5s ease-in-out infinite;
  }

  #editions .edition-card__checkout[data-checkout-sku][aria-busy="true"]::before {
    animation: kk-epub-checkout-sheen 3.8s ease-in-out infinite;
  }

  @keyframes kk-epub-checkout-sheen {
    0%, 48% { transform: translateX(0) skewX(-24deg); }
    72%, 100% { transform: translateX(440%) skewX(-24deg); }
  }
}

@media (prefers-reduced-motion: reduce) {
  #editions .edition-card__checkout[data-checkout-sku],
  #editions .edition-card__checkout[data-checkout-sku]::before {
    animation: none;
    transition: none;
  }
}

@media (forced-colors: active) {
  #editions .edition-card__checkout[data-checkout-sku] {
    background: ButtonFace;
    border-color: ButtonText;
    color: ButtonText;
    text-shadow: none;
    box-shadow: none;
    opacity: 1;
  }

  #editions .edition-card__checkout[data-checkout-sku]:disabled {
    border-color: GrayText;
    color: GrayText;
  }

  #editions .edition-card__checkout[data-checkout-sku]:focus-visible {
    outline-color: Highlight;
  }

  #editions .edition-card__checkout[data-checkout-sku]::before,
  #editions .edition-card__checkout[data-checkout-sku]::after {
    display: none;
  }
}
