/* Shared interaction states without moving calendar, gallery, or icon controls. */
:where(button, [role="button"], a.btn-primary, a.btn-ghost, a[class*="rounded"][class*="bg-"]) {
  transition-duration: .18s;
  transition-property: background-color, border-color, color, box-shadow, outline-color, transform;
  outline-offset: 3px;
}
@media (hover: hover) {
  :where(button, [role="button"], a.btn-primary, a.btn-ghost, a[class*="rounded"][class*="bg-"]):not(:disabled):not([aria-disabled="true"]):not([aria-busy="true"]):hover {
    outline: 2px solid rgba(8, 119, 150, .48);
    box-shadow: 0 4px 14px rgba(8, 119, 150, .18);
  }
}
:where(button, [role="button"], a.btn-primary, a.btn-ghost):focus-visible {
  outline: 3px solid #087796;
  outline-offset: 3px;
}
.btn-code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  margin-top: .75rem;
  padding: .85rem 1rem;
  border: 1px solid #1d4ed8;
  border-radius: 1rem;
  background: #2563eb;
  color: #fff;
  font-size: .875rem;
  font-weight: 700;
  box-shadow: 0 4px 12px rgb(37 99 235 / 18%);
}
.btn-code:not(:disabled):hover { background: #1d4ed8; }
.button-is-busy {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: .5rem !important;
  cursor: wait !important;
  opacity: .85;
  transform: none !important;
}
.button-feedback-label { line-height: 1.7; }
.album-pagination__number.button-is-busy { width: auto; padding-inline: .65rem; }
.button-feedback-spinner {
  display: inline-block;
  flex: 0 0 1em;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-inline-start-color: transparent;
  border-radius: 50%;
  animation: button-feedback-spin .75s linear infinite;
}
.button-feedback-announcer {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@keyframes button-feedback-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .button-feedback-spinner { animation: none; }
  :where(button, [role="button"], a.btn-primary, a.btn-ghost) { transition: none; }
}
