/*
  Button 09 — Save Action — standalone HTML/CSS/JS implementation.
  No build step, no framework, no external dependency: copy index.html,
  this file, and script.js into any project as-is. `--button-accent` is a
  plain custom property — override it wherever this button is used.
*/

:root {
  --button-accent: #39ff14;
  --button-foreground: #0f172a;
  --button-border: #d4d4d8;
  --button-border-hover: #a1a1aa;
}

.save-btn {
  display: inline-flex;
  height: 2.5rem;
  align-items: center;
  gap: 0.375rem;
  border-radius: 9999px;
  border: 1px solid var(--button-border);
  background-color: #ffffff;
  padding: 0 1rem;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif, "Apple Color Emoji",
    "Segoe UI Emoji";
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--button-foreground);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 150ms ease, transform 150ms ease;
}

.save-btn:hover {
  border-color: var(--button-border-hover);
}

.save-btn:active {
  transform: scale(0.96);
}

.save-btn:focus-visible {
  outline: 2px solid var(--button-accent);
  outline-offset: 2px;
}

.save-btn[aria-pressed="true"] {
  border-color: var(--button-foreground);
}

.save-btn__icon {
  display: flex;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
}

.save-btn__icon svg {
  width: 100%;
  height: 100%;
}

@keyframes save-btn-pop {
  0% {
    transform: scale(1);
  }
  40% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

.save-btn[aria-pressed="true"] .save-btn__icon {
  animation: save-btn-pop 260ms ease;
}

@media (prefers-reduced-motion: reduce) {
  .save-btn {
    transition: border-color 150ms ease;
    transform: none;
  }

  .save-btn:active {
    transform: none;
  }

  .save-btn[aria-pressed="true"] .save-btn__icon {
    animation: none;
  }
}

/*
  Page layout — the canvas this resource is presented on. Adjust or drop it
  when placing the resource inside your own layout.
*/

body {
  margin: 0;
  font-family:
    Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(to bottom, #fafafa, #f4f4f5);
}
.button09-layout {
  display: flex;
  min-height: 20rem;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.button09-layout__panel {
  display: flex;
  width: 100%;
  max-width: 24rem;
  flex-direction: column;
  gap: 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
  padding: 1.25rem;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 16px 40px -16px rgba(0, 0, 0, 0.14);
}
.button09-layout__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.button09-layout__row + .button09-layout__row {
  border-top: 1px solid #e5e5e5;
  padding-top: 0.75rem;
}
.button09-layout__name {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 600;
  color: #0f172a;
}
.button09-layout__price {
  margin: 0.125rem 0 0;
  font-size: 0.75rem;
  color: #737373;
}
