.koolah-action {
  --action-depth: 4px;
  --action-face: linear-gradient(180deg, #fff5e5, #f0d9b8 65%, #e7c58f);
  --action-edge: #9a713a;
  --action-border: #c29a5b;
  --action-ink: #241c0e;
  --action-shadow: #4a311b38;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 48px;
  max-width: 100%;
  padding: 11px clamp(14px, 3vw, 24px);
  border: 1px solid var(--action-border);
  border-radius: 999px;
  background: var(--action-face);
  color: var(--action-ink);
  box-shadow: inset 0 1px 0 #ffffffb8, 0 var(--action-depth) 0 var(--action-edge), 0 7px 12px var(--action-shadow);
  font: 800 1rem/1.25 Manrope, system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 120ms ease-out, box-shadow 120ms ease-out;
}

.koolah-action--secondary {
  --action-depth: 2px;
  --action-face: linear-gradient(180deg, #fff, #edf3f8);
  --action-edge: #8fa2b6;
  --action-border: #8fa2b6;
  --action-ink: #233c53;
  --action-shadow: #2f41561f;
  font-size: .9rem;
}

#hero-section #home-hero-assess.koolah-action,
#checkout-sheet .koolah-action,
#assessment .koolah-action,
#product-order.koolah-action,
#product-order-configured.koolah-action {
  border-color: var(--action-border);
  border-radius: 999px;
  background: var(--action-face);
  color: var(--action-ink);
  box-shadow: inset 0 1px 0 #ffffffb8, 0 var(--action-depth) 0 var(--action-edge), 0 7px 12px var(--action-shadow);
  text-decoration: none;
}

.koolah-action--compact { min-height: 44px; padding: 8px 12px; font-size: .875rem; }
.koolah-action--wide { width: 100%; }
.koolah-action--spaced { margin-top: 12px; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .koolah-action:not(:disabled):hover { transform: translateY(-1px); }
}
.koolah-action:not(:disabled):active {
  --action-depth: 1px;
  transform: translateY(3px);
}
.koolah-action--secondary:not(:disabled):active { transform: translateY(1px); }
.koolah-action:focus-visible {
  outline: 2px solid #2f4156;
  outline-offset: 5px;
}
#assessment .koolah-action:focus-visible {
  outline-color: #fdf6e8;
  outline-offset: 3px;
}
.koolah-action:disabled {
  --action-depth: 0px;
  --action-face: #e2e8ee;
  --action-border: #c7d0da;
  --action-ink: #526274;
  --action-shadow: transparent;
  box-shadow: none;
  opacity: 1;
  cursor: not-allowed;
}
#checkout-sheet .koolah-action--payment:disabled {
  --action-depth: 2px;
  --action-face: linear-gradient(180deg, #faf4e9, #e9dac3);
  --action-edge: #ad9a7c;
  --action-border: #c7b89f;
  --action-ink: #615443;
  --action-shadow: transparent;
}

@media (prefers-reduced-motion: reduce) {
  .koolah-action { transition: none; }
  .koolah-action:not(:disabled):active { transform: none; }
}

.fulfilment-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}
.fulfilment-options .koolah-action { min-height: 44px; padding-inline: 10px; }
.fulfilment-options .koolah-action[aria-pressed="true"],
.checkout-methods .koolah-action:has(:checked) {
  --action-face: #2f4156;
  --action-edge: #1c2a38;
  --action-border: #2f4156;
  --action-ink: #fff;
}
#assessment .fulfilment-options .koolah-action:focus-visible {
  outline-color: #214c72;
}
.fulfilment-pickup-note { margin: 0 0 12px; color: #41566a; font-size: .875rem; }


@media (prefers-reduced-motion: no-preference) {
  :is(#home-hero-assess, #guided-show-estimate, .assessment-checkout-primary, .product-card-order, .koolah-action--payment, .koolah-action--shine).koolah-action:not(:disabled) {
    position: relative;
    overflow: hidden;
  }
  :is(#home-hero-assess, #guided-show-estimate, .assessment-checkout-primary, .product-card-order, .koolah-action--payment, .koolah-action--shine).koolah-action:not(:disabled)::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(112deg, transparent 35%, #ffffff86 50%, transparent 65%);
    animation: koolah-gold-shine 4.5s ease-out .5s 4 both;
  }
  .product-card:nth-child(even) .product-card-order.koolah-action:not(:disabled)::after {
    animation-delay: 1.25s;
  }
  @keyframes koolah-gold-shine {
    0% { transform: translateX(-105%); }
    16%, 100% { transform: translateX(105%); }
  }
}
