@font-face {
  font-family: "Chirp";
  src: url("../fonts/Chirp-Regular.woff2");
  font-weight: 400;
  font-style: normal;
  font-display: auto;
}

@font-face {
  font-family: "Chirp";
  src: url("../fonts/Chirp-Medium.woff2");
  font-weight: 600;
  font-style: normal;
  font-display: auto;
}

@font-face {
  font-family: "Chirp";
  src: url("../fonts/Chirp-Bold.woff2");
  font-weight: 700;
  font-style: normal;
  font-display: auto;
}

@font-face {
  font-family: "Chirp";
  src: url("../fonts/Chirp-Heavy.woff2");
  font-weight: 800;
  font-style: normal;
  font-display: auto;
}

:root {
  /* Fonts */
  --ff-fb: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ff-tw: "Chirp", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ff-rd: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif;
  --ff-main: var(--ff-fb);
  --font-size: 15px;
  /* Colors */
  --bg-color: #ffffff;
  --cite-color: #666666;
  --name-color: #050505;
  --text-color: #222222;
  --secondary-color: #65676b;
  --verified-color: #0866ff;
  --tag-color: #1DA1F2;
  --border-radius: 8px;
}

.widget {
  position: relative;
  z-index: 1;
  margin: 0 auto;
  padding: 0;
  pointer-events: none;
  user-select: none;
}

.widget,
.widget *,
.widget::before,
.widget::after {
  box-sizing: border-box;
}

.widget:not(:last-child) {
  margin-bottom: 10px;
}

.widget.widget--fb {
  --ff-main: var(--ff-fb);
  --secondary-color: #65676b;
}

.widget.widget--tw {
  --ff-main: var(--ff-tw);
  --font-size: 14px;
  --secondary-color: #536471;
  --border-radius: 20px;
}

.widget.widget--rd {
  --ff-main: var(--ff-rd);
  --font-size: 14px;
  --border-radius: 20px;
  --secondary-color: #536471;
}

.widget .widget__body {
  padding: 12px 16px 16px;
  font-family: var(--ff-main), Arial, sans-serif;
  background-color: var(--bg-color);
  border-radius: var(--border-radius);
  box-shadow: 0 0px 6px rgba(0, 0, 0, 0.1);
  margin-bottom: 10px;
}

.widget .widget__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-right: 15px;
}

.widget .widget__dots {
  position: absolute;
  top: 12px;
  right: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  fill: var(--secondary-color);
}

.widget .widget__dots svg {
  width: 100%;
  height: 100%;
}

.widget .widget__avatar {
  flex-shrink: 0;
  display: block;
  width: 40px;
  height: 40px;
}

.widget .widget__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.widget .widget__info {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.widget .widget__author {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
}

.widget--fb .widget__author svg {
  color: var(--verified-color);
}

.widget .widget__name {
  margin: 0;
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  color: var(--name-color);
}

.widget .widget__date-block {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 5px;
}

.widget--fb .widget__date-block span::after,
.widget--tw .widget__username::after,
.widget--rd .widget__username::after {
  content: "·";
  margin-left: 5px;
  font-weight: 600;
  color: var(--secondary-color);
}

.widget .widget__date-block svg {
  display: block;
}

.widget .widget__date {
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  color: var(--secondary-color);
}

.widget--fb .widget__date {
  font-size: 13px;
}

.widget .widget__block {
  margin: 0;
  line-height: 1;
}

.widget .widget__username {
  font: inherit;
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  color: var(--secondary-color);
}

.widget--rd .widget__username {
  font-weight: 600;
  color: var(--name-color);
}

.widget--rd .widget__username::before {
  content: "u/";
}

.widget .widget__main {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}

.widget .widget__main p {
  margin: 8px 0 0;
  font-weight: 400;
  font-size: var(--font-size);
  line-height: 1.33;
  word-break: break-word;
}

.widget .widget__main img {
  max-width: 80%;
  max-height: 500px;
  margin: 12px auto 0;
}

.widget--tw .widget__main img {
  margin: 12px 0 0;
}

.widget .widget__tag {
  color: var(--tag-color);
}

.widget__footer {
  display: flex;
  align-items: center;
  margin-top: 12px;
  color: var(--secondary-color);
}

/* Cite */
.widget .widget__cite {
  margin-top: 10px;
  padding: 5px 0 5px 20px;
  font-size: 16px;
  color: var(--cite-color);
}

/* Emoji */
.widget .emoji-block {
  display: flex;
  align-items: center;
  flex-grow: 1;
  font-size: 13px;
}

.widget .emoji-block span:not(.emoji) {
  margin-left: 5px;
}

.widget .emoji {
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  background-color: var(--bg-color);
  border: 2px solid var(--bg-color);
  border-radius: 50%;
}

.emoji + .emoji {
  margin-left: -4px;
}

.widget .emoji:nth-child(1) {
  z-index: 3;
}

.widget .emoji:nth-child(2) {
  z-index: 2;
}

.widget .emoji:nth-child(3) {
  z-index: 1;
}

.widget .emoji svg {
  width: 100%;
  height: 100%;
}

/* Actions */
.widget .actions-block {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
}

.widget--tw .actions-block {
  align-items: center;
  width: 100%;
}

.widget--rd .actions-block {
  width: 100%;
}

.widget .action {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  font-size: 13px;
  line-height: 1.33;
  color: var(--secondary-color);
}

.widget--rd .action {
  justify-content: center;
  width: fit-content;
  min-width: 47px;
  padding: 8px;
  background-color: #e5ebee;
  border-radius: var(--border-radius);
}

.widget .action span {
  font: inherit;
  font-weight: 400;
  color: var(--secondary-color);
}

.widget--tw .action span {
  font: inherit;
  font-weight: 400;
  color: var(--secondary-color);
}

.widget--rd .action span {
  font-weight: 600;
  color: var(--text-color);
}

.widget .action-desktop {
  display: none;
}

.action + .action {
  margin-left: 5px;
}

.widget--rd .action + .action {
  margin: 0;
}

.widget .action__num {
  font-weight: 400;
  font-size: 13px;
  color: var(--secondary-color);
}

@media (min-width: 660px) {
  .widget--tw .widget__main,
  .widget--tw .widget__footer {
    margin-left: 48px;
  }

  .widget .action-mobile {
    display: none;
  }

  .widget .action-desktop {
    display: flex;
  }

  .widget--rd .actions-block {
    width: auto;
    gap: 20px;
  }

  .action + .action {
    margin-left: 15px;
  }

  .widget--rd .action + .action {
    margin: 0;
  }
}
