/* Read Later bookmark button */
.ci-read-later-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background: #fff;
  color: #8b1538;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  line-height: 1;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.ci-read-later-btn:hover {
  border-color: #8b1538;
  background: #fdf8f9;
}

.ci-read-later-btn.is-saved {
  background: #fdf8f9;
  border-color: #8b1538;
}

.ci-read-later-btn.is-saved svg path {
  fill: currentColor;
}

.ci-news-card--list .ci-read-later-btn {
  flex-direction: column;
  gap: 0;
  padding: 8px;
  border: 0;
  background: transparent;
}

.ci-news-card--list .ci-read-later-btn .ci-read-later-btn__label {
  display: none;
}

.ci-article-hero__action-icons {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.ci-article-hero__action-icons .ci-read-later-btn.ci-read-later-btn--icon-only {
  width: 40px;
  height: 40px;
  min-height: 40px;
  padding: 0;
  gap: 0;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f5f5f5;
  color: #8b1538;
  box-shadow: none;
}

.ci-article-hero__action-icons .ci-read-later-btn.ci-read-later-btn--icon-only:hover {
  background: #ffffff;
  border-color: #d1d5db;
}

.ci-article-hero__action-icons .ci-read-later-btn.ci-read-later-btn--icon-only.is-saved {
  background: #fdf8f9;
  border-color: #8b1538;
}

.ci-article-hero__action-icons .ci-read-later-btn.ci-read-later-btn--icon-only svg {
  width: 18px;
  height: 22px;
}

/* Toast after save */
.ci-read-later-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 10300;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 14px;
  background: #1a1a1a;
  color: #fff;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  font-size: 14px;
}

.ci-read-later-toast[hidden] {
  display: none;
}

.ci-read-later-toast__icon {
  flex-shrink: 0;
  color: #f5b8c8;
}

.ci-read-later-toast__link {
  color: #f5b8c8;
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}

.ci-read-later-toast__link:hover {
  color: #fff;
}

.ci-read-later-toast__close {
  margin-left: auto;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #aaa;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.ci-read-later-toast__close:hover {
  color: #fff;
}

@media (max-width: 768px) {
  .ci-read-later-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
}
