
.flags-wrapper {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  max-width: 1000px;
  margin: 0 auto;
}

.flag-bookmarks a, .flag-shortcut a, .flag-unread a {
  font-family: Arial, Helvetica, sans-serif;
  text-decoration: none;
  color: #333;
  padding: 8px 16px !important;
  transition: .3s;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  margin: 0 0 15px 0;
  border-radius: 8px;
}

.flag-bookmarks a {
  background-color: white;
}

.flag-shortcut a {
  background-color: white;
}

.flag-unread a {
  background-color: white;
}

.flag-bookmarks .ajax-progress, .flag-shortcut .ajax-progress, .flag-unread .ajax-progress {
  display: none;
}

.flag-bookmarks a:hover {
  background-color: #eeeeee;
  color: #333;
}

.flag-shortcut a:hover {
  background-color: #eeeeee;
  color: #333;
}

.flag-unread a:hover {
  background-color: #eeeeee;
  color: #333;
}

.flag-bookmarks a:focus {
  background-color #eeeeee;
  color: #333;
}

.flag-shortcut a:focus {
  background-color: #eeeeee;
  color: #333;
}

.flag-unread a:focus {
  background-color: #eeeeee;
  color: #333;
}

.flag-bookmarks a:before {
  content: '\f005';
  font-family: FontAwesome;
  margin-right: 5px;
}

.flag-shortcut a:before {
  content: '\f14d';
  font-family: FontAwesome;
  margin-right: 5px;
}

.flag-unread a:before {
  content: '\f0f3';
  font-family: FontAwesome;
  margin-right: 5px;
}


div.flag-sidebar-block {
  position: fixed;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 302;
}

div.flag-sidebar-block img {
  width: 25px;
}

div.flag-sidebar-block ul li {
  padding: 0px !important;
  margin: 0 !important;
}

div.flag-sidebar-block ul li:before {
  content: none !important;
}

.sidebar-block {
  position: relative;
  align-items: center;
  margin-bottom: 20px;
}
.sidebar-block.sidebar-bookmark { display: none; }
.sidebar-block.sidebar-shortcut { display: none; }
.sidebar-block.sidebar-unread { display: none; }

.sidebar-block .sidebar-bookmark-list,
.sidebar-block .sidebar-shortcut-list,
.sidebar-block .sidebar-unread-list {
  display: block;
  position: absolute;
  top: 0;
  right: 100%;
  padding: 0;
  width: 220px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.sidebar-block:hover .sidebar-bookmark-list,
.sidebar-block:hover .sidebar-shortcut-list,
.sidebar-block:hover .sidebar-unread-list {
  max-height: 315px;
}

.sidebar-block ul {
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-y: auto;
  max-height: 250px;
}


.sidebar-bookmark-icon,
.sidebar-shortcut-icon,
.sidebar-unread-icon {
  width: 70px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.sidebar-unread-icon .unread-number {
  background-color: #c30a32;
  width: 17px;
  height: 17px;
  font-size: 10px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  position: absolute;
  top: -5px;
  left: -5px;
  font-weight: 700;
}

.sidebar-bookmark-icon, .sidebar-shortcut-icon, .sidebar-unread-icon i {
  font-size: 26px;
  font-family: "FontAwesome";
  font-style: normal;
}

.headline {
  font-weight: bold;
  padding: 14px 10px;
  height: 50px;
  background-color: rgba(0,0,0,0.1);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.headline span {
  padding: 0px 3px 0px 3px;
}

.sidebar-bookmark-icon {
  background-color: #EDCD19;
}

.sidebar-shortcut-icon {
  background-color: #0CBED2;
}

.sidebar-unread-icon {
  background-color: #adadad;
}

.sidebar-bookmark-list {
  background-color: #ffffc8;
}

.sidebar-shortcut-list {
  background-color: #CCEFF3;
}

.sidebar-unread-list {
  background-color: #eee;
}



.shortcut-item-link {
  padding: 4px 10px;
  display: block;
  font-size: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  color: #333;
  text-decoration: none;
}

.shortcut-item-link:hover {
  background: rgba(255,255,255,0.6);
  text-decoration: none;
  color: #000;
  font-weight: bold;
  letter-spacing: -0.3px;
}

.bookmark-item-link {
  padding: 4px 10px;
  display: block;
  font-size: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  color: #333;
  text-decoration: none;
}

.bookmark-item-link:hover {
  background: rgba(255,255,255,0.6);
  text-decoration: none;
  color: #000;
  font-weight: bold;
  letter-spacing: -0.3px;
}

.unread-item-link {
  padding: 4px 10px;
  display: block;
  font-size: 12px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  color: #333;
  text-decoration: none;
}

.unread-item-link:hover{
  background: rgba(255,255,255,0.6);
  text-decoration: none;
  color: #000;
  font-weight: bold;
  letter-spacing: -0.3px;
}

.unread-read-all {
  cursor: pointer;
  padding: 4px 10px;
  display: block;
  font-size: 14px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  color: #333;
  text-decoration: none;
}
.unread-read-all:hover{
  background: rgba(255,255,255,0.6);
  text-decoration: none;
  color: #000;
  font-weight: bold;
  letter-spacing: -0.3px;
}


@media only screen and (max-width: 740px) {
  .sidebar-bookmark-icon,
  .sidebar-shortcut-icon,
  .sidebar-unread-icon {
    width: 45px;
    height: 45px;
  }
  .sidebar-bookmark-icon,
  .sidebar-shortcut-icon,
  .sidebar-unread-icon i {
    font-size: 18px;
  }
  .headline {
    height: 45px;
  }
}

.flags-button-wrapper {
  display: flex;
  justify-content: flex-end;
  gap: 15px;
  margin-bottom: 10px;
}