/**
 * AnimateBox.dev — Teardrop Button
 * https://animatebox.dev
 *
 * Theme via --ab-td-* variables. Defaults: DM Sans, black & white, solid fills.
 */

.ab-teardrop-button {
  --ab-td-font: "DM Sans", "Avenir Next", "Segoe UI", sans-serif;
  --ab-td-fill: #f3f1ec;
  /* Light ink + difference blend → dark on fill, light over the carve */
  --ab-td-text: #ffffff;
  --ab-td-blob: #0b0b0c;
  --ab-td-padding: 1.4rem 2.75rem;
  --ab-td-size: 1.05rem;
  --ab-td-weight: 600;
  --ab-td-tracking: 0.02em;
  --ab-td-gap: 0.75rem;

  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1px;
  min-height: 1px;
  margin: 0;
  padding: var(--ab-td-padding);
  border: 0;
  background: transparent;
  color: var(--ab-td-text);
  font-family: var(--ab-td-font);
  font-size: var(--ab-td-size);
  font-weight: var(--ab-td-weight);
  font-optical-sizing: auto;
  letter-spacing: var(--ab-td-tracking);
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  box-sizing: border-box;
  overflow: visible;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  appearance: none;
}

.ab-teardrop-button:focus {
  outline: none;
}

.ab-teardrop-button:focus-visible {
  outline: 2px solid #f3f1ec;
  outline-offset: 4px;
}

.ab-teardrop-button__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  z-index: 1;
  pointer-events: none;
}

.ab-teardrop-button__label {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--ab-td-gap);
  line-height: 1;
  white-space: nowrap;
  pointer-events: none;
  /* Keeps label readable over the dark teardrop carve */
  mix-blend-mode: difference;
}

.ab-teardrop-button__label[data-icon-side="right"] {
  flex-direction: row-reverse;
}

.ab-teardrop-button__icon {
  display: block;
  flex: none;
  line-height: 1;
  pointer-events: none;
}

.ab-teardrop-button__text {
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  .ab-teardrop-button {
    scroll-behavior: auto;
  }
}
