html, body {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.pkp_structure_page {
  margin-top: 0 !important;
  padding-top: 0 !important;
  margin-bottom: 20px !important;
  padding-bottom: 20px !important;
}

.pkp_structure_head {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.pkp_head_wrapper,
.has_site_logo .pkp_head_wrapper {
  padding-top: 0 !important;
}

.pkp_site_name_wrapper {
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 0 !important;
  margin-top: 0 !important;
}

.pkp_site_name {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
}

.pkp_site_name > a {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.pkp_site_name .is_img {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.pkp_site_name .is_img img {
  display: block;
  max-height: 200px !important;
  margin-top: 0 !important;
}

.pkp_navigation_user_wrapper {
  top: 0 !important;
  right: 0 !important;
  padding-right: 30px !important;
  z-index: 1000;
}

.pkp_brand_footer {
  display: none !important;
}

@media (max-width: 991px) {
  .pkp_site_name_wrapper {
    height: auto !important;
  }
  .pkp_site_name {
    position: relative !important;
    left: 0 !important;
    padding-left: 10px !important;
    padding-right: 50px !important;
  }
  .pkp_site_name .is_img img {
    max-height: 70px !important;
  }
}

/* How to cite copy button & toast styling */
.citation_actions_bar {
  margin-top: 0.85em;
  margin-bottom: 0.5em;
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.citation_copy_button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #f8fafc;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  user-select: none;
  text-decoration: none;
}

.citation_copy_button:hover {
  background-color: #006699;
  color: #ffffff;
  border-color: #006699;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.citation_copy_button:hover svg {
  stroke: #ffffff;
}

.citation_copy_button:active {
  transform: scale(0.97);
}

.citation_copy_button.copied {
  background-color: #059669 !important;
  color: #ffffff !important;
  border-color: #059669 !important;
}

.citation_copy_button.copied svg {
  stroke: #ffffff !important;
}

.citation_copy_icon {
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.citation-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

@media (max-width: 640px) {
  .citation-toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
    align-items: center;
  }
}

.citation-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background-color: #0f172a;
  color: #ffffff;
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.citation-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.citation-toast.hide {
  opacity: 0;
  transform: translateY(10px);
}

.citation-toast-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background-color: #10b981;
  color: #ffffff;
  flex-shrink: 0;
}
