.rjz-bookmark-icon {
  font-size: 18px;
  cursor: pointer;
  color: #ccc;
  transition: color 0.3s;
  border: 1px solid;
  padding: 0 8px;
  border-radius: 4px;
  display: flex;
  align-items: baseline;
  width: 204px;
  gap: 2px;
  line-height: 24px;
  min-height: 24px;
}

.rjz-bookmark-icon.bookmarked {
  color: gold;
}

.rjz-bookmark-icon span.text-button {
  font-size: 14px;
}

/* Remove bookmark button styles */
.rjz-remove-bookmark {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 24px;
  height: 24px;
  background: #ff4444;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  z-index: 10;
  padding: 0;
  box-sizing: border-box;
}

.rjz-remove-bookmark:hover {
  background: #cc0000;
  transform: scale(1.1);
}

/* Add position relative to items */
.bookmark-post-item {
  position: relative !important;
}

.rjz-bookmark-pdp-icon {
  margin-right: 4px;
}
.rjz-bookmark-plp-icon {
  position: absolute;
  color: black;
  z-index: 1;
  right: 8px;
  font-size: 24px;
  line-height: 16px;
  width: 16px;
  height: 16px;
  top: 8px;
}
.rjz-bookmark-plp-icon.bookmarked {
  color: red !important;
}
.rjz-bookmark-plp-icon:hover {
  color: #cc0000;
  cursor: pointer;
}

span.rjz-bookmark-plp-icon.processing {
  right: 0px;
  top: -2px;
}
.product span.rjz-bookmark-plp-icon.processing {
  top: 0px;
}
.product .rjz-bookmark-plp-icon.processing::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  vertical-align: middle;
  margin: auto;
}
.rjz-bookmark-plp-icon.processing::after,
.rjz-bookmark-pdp-icon::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid #ccc;
  border-top-color: #333;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 5px;
  vertical-align: middle;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/*New Bookmark button*/
.rjz-post-bookmark-wrapper {
  position: relative;
  display: inline-block;
}

.rjz-post-bookmark-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 115, 170, 0.8);
  color: white;
  border: none;
  padding: 5px;
  cursor: pointer;
  font-size: 18px;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rjz-post-bookmark-btn:hover {
  opacity: 0.7;
}

.rjz-post-bookmark-btn.bookmarked {
  background: rgb(255 202 0 / 49%);
  color: yellow;
}

span.rjz-bookmark-plp-icon.processing {
  opacity: 0.7;
  cursor: not-allowed;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.rjz-post-bookmark-btn .rjz-bookmark-plp-icon.processing::after {
  margin: 8px auto auto auto;
  top: 0;
}
