:root {
  --lc-wishlist-toggle-bg: #000;
  --lc-wishlist-toggle-fg: #fff;

  --lc-wishlist-request-button-bg: #000;
  --lc-wishlist-request-button-fg: #fff;
}

/* Container fixed to edge */
.lc-wishlist-container {
  position: fixed;
  top: 33%;
  right: 0;
  transform: translateY(-50%);
  z-index: 10000;
}

/* Toggle, default state */
.lc-wishlist-toggle {
  background: var(--lc-wishlist-toggle-bg);
  color: var(--lc-wishlist-toggle-fg);
  padding: 0.5rem 1rem;
  border-radius: 6px 0 0 6px;
  cursor: pointer;
  font-weight: bold;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.3);
  width: 80px;
  transition: width 0.2s ease;
  white-space: nowrap;
  overflow: hidden;
  font-size: 1.25rem;
}

/* Expanded toggle (when open) */
body.lc-wishlist-open .lc-wishlist-toggle {
  width: 280px;
  border-radius: 6px 6px 0 0;
}

/* Panel hidden by default */
.lc-wishlist-panel {
  position: absolute;
  top: 100%;
  right: 0;
  width: 280px;
  background: white;
  border: 1px solid #ccc;
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
  flex-direction: column;
  overflow: hidden;
  max-height: 400px;

  /* Initial hidden state */
  opacity: 0;
  visibility: hidden;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.2s ease, opacity 0.2s ease, visibility 0.2s;
}

/* Reveal when open */
body.lc-wishlist-open .lc-wishlist-panel {
  opacity: 1;
  visibility: visible;
  transform: scaleY(1);
}

/* Panel contents */
.lc-wishlist-items {
  overflow-y: auto;
  padding: 1rem;
  max-height: 280px;
}

.wishlist-item {
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5rem;
}

.wishlist-item a {
  flex-grow: 1;
  text-decoration: none;
  color: #333;
  margin-right: 0.5rem;
  font-weight: 500;
}

.remove-from-wishlist {
  background: none;
  border: none;
  color: #c00;
  cursor: pointer;
  font-size: 12px;
  text-transform: uppercase;
  font-weight: bold;
}

.lc-wishlist-request-btn {
  display: block;
  text-align: center;
  padding: 0.75rem 1rem;
  background-color: var(--lc-wishlist-request-button-bg);
  color: var(--lc-wishlist-request-button-fg);
  font-weight: bold;
  text-decoration: none;
  border-top: 1px solid #ddd;
  text-transform: uppercase;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.lc-wishlist-request-btn:hover {
  background-color: var(--lc-wishlist-request-button-fg);
  color: var(--lc-wishlist-request-button-bg);
}

#wishlist-widget {
  display: none;
}

body.lc-wishlist-has-items #wishlist-widget {
  display: block;
}
