/*
 * Wishlist Styles
 */

/* Wishlist Button */
.wishlist-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.wishlist-btn svg {
  width: 14px;
  height: 14px;
}

.wishlist-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.wishlist-btn-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-text-inverse);
}

.wishlist-btn-active:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-text-inverse);
}

/* Actions Cell (contains buy button and wishlist button) */
.wines-table .actions-cell {
  text-align: center;
  width: 40px;
}

.wines-table .actions-cell > * {
  display: block;
  margin: 0 auto var(--space-xs) auto;
}

.wines-table .actions-cell > *:last-child {
  margin-bottom: 0;
}

/* Mobile: show buttons inline */
@media (max-width: 900px) {
  .wines-table .actions-cell > * {
    display: inline-block;
    margin: 0 var(--space-xs) 0 0;
  }

  .wines-table .actions-cell > *:last-child {
    margin-right: 0;
  }
}

/* Wine Buy Section (on wine detail page) */
.wine-buy-section {
  display: flex;
  gap: var(--space-sm);
  align-items: center;
}

/* Wishlist Content Container */
.wishlist-content {
  width: 100%;
}

/* Hide form styling inside wishlist button */
.wishlist-btn form,
turbo-frame form {
  display: contents;
}
