/*
 * 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: full-width buttons with text */
@media (max-width: 768px) {
  .wines-table .actions-cell {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
  }

  .wines-table .actions-cell > * {
    display: block;
    margin: 0;
    width: 100%;
  }

  .wines-table .actions-cell turbo-frame {
    display: block;
    width: 100%;
  }

  .wines-table .actions-cell .btn-buy-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    width: 100%;
    height: auto;
    min-height: var(--tap-target-min);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-sm);
  }

  .wines-table .actions-cell .btn-buy-icon::after {
    content: "Buy on Vintages";
    font-weight: 500;
  }

  .wines-table .actions-cell .wishlist-btn {
    width: 100%;
    height: auto;
    min-height: var(--tap-target-min);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-sm);
    gap: var(--space-xs);
    font-size: var(--font-size-sm);
    font-weight: 500;
  }

  .wines-table .actions-cell .wishlist-btn svg {
    width: 16px;
    height: 16px;
  }

  .wines-table .actions-cell .wishlist-btn::after {
    content: "Add to Wishlist";
  }

  .wines-table .actions-cell .wishlist-btn-active::after {
    content: "Remove from Wishlist";
  }
}

/* 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;
}
