/* *
* Entries
*/

.liveblog-entry {
  display: block;
  padding: 1rem;
  background: #f7f7f7;
  border-top: 2px solid #eee;
  border-bottom: 2px solid #eee;
}

.liveblog-entry.is-key-event {
  border-color: #00af00;
  background: #f3fbf3;
}

.liveblog-entry.is-pinned,
.liveblog-entry.is-pinned.is-key-event {
  border: 2px solid #00d700 !important;
  background: #b7ebb7 !important;
}

#wpcom-liveblog-container .liveblog-entry.is-pinned {
  border: 2px solid #00d700 !important;
}

.liveblog-entry.is-key-event::after {
  content: none !important;
  display: none !important;
}

.liveblog-meta {
  color: #666;
}

.liveblog-entry-aside {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
  margin-bottom: .55rem;
}

.liveblog-entry-main {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
}

.liveblog-entry-content * {
  word-break: break-all;
}

.entry-content .liveblog-meta-time,
.entry-content .liveblog-meta-time:hover,
.entry-content .liveblog-meta-time:focus {
  -webkit-box-shadow: none;
  box-shadow: none;
}

.liveblog-meta-time span {
  display: block;
  font-size: 12px;
  line-height: 1.2;
}

.liveblog-entry-content {
  margin-top: .35rem;
}

.liveblog-entry-edit {
  width: 100%;
}

.liveblog-meta-time span:first-child {
  font-weight: 600;
  color: #333;
  margin-bottom: 5px;
}

.liveblog-entry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.liveblog-entry-footer-authors {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-bottom: 0 !important;
}

.liveblog-meta-author {
  display: flex;
  align-items: center;
  margin-right: 8px;
}

.liveblog-meta-author-name {
  font-size: 13px;
  margin-left: 8px;
}

.liveblog-meta-authour-avatar {
  border-radius: 50%;
  overflow: hidden;
  width: 30px;
  height: 30px;
}

.liveblog-hash {
  color: #21759b;
}

/**
* Events
*/

.liveblog-event {
  padding-bottom: 1rem;
  padding-left: 1rem;
}

.liveblog-event::before,
.liveblog-event:only-child::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: -4.5px;
  width: 10px;
  height: 10px;
  background: #bbb;
  border-radius: 50%;
  -webkit-transition: background .3s ease-in-out;
  -o-transition: background .3s ease-in-out;
  transition: background .3s ease-in-out;
}

.liveblog-event::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 0;
  height: 100%;
  width: 1px;
  background: #bbb;
}

.liveblog-event::before,
.liveblog-event::after {
  top: 10px;
}

.liveblog-event:only-child::after {
  display: none;
}

.liveblog-event:not(:only-child):first-child::before,
.liveblog-event:not(:only-child):last-child::before {
  height: 1px;
  border-radius: 0%;
}

.liveblog-event:not(:only-child):last-child::after {
  display: none;
}

.liveblog-event:hover::before {
  background: #333;
  -webkit-transition: background .3s ease-in-out;
  -o-transition: background .3s ease-in-out;
  transition: background .3s ease-in-out;
}

.liveblog-event-content {
  margin-top: 5px;
  font-weight: 600;
  font-size: 14px;
}

/**
* Editor card styling to match entry cards
*/
.liveblog-editor-container {
  background: #f7f8f7;
  border: 1px solid rgba(16, 60, 32, 0.08);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(12, 50, 28, 0.08);
  margin-bottom: 1.25rem;
}

/**
* Pagination
*/

.liveblog-pagination-first,
.liveblog-pagination-last {
  background: #eee;
  color: #111;
}

/**
* ECO Liveblog Buttons (outline)
*/
.entry-content .liveblog-publish-btn,
.entry__content .liveblog-publish-btn,
.entry-content .liveblog-pagination-btn,
.entry__content .liveblog-pagination-btn,
.entry-content .liveblog-update-btn,
.entry__content .liveblog-update-btn,
.entry-content .liveblog-entry-tools .liveblog-btn,
.entry__content .liveblog-entry-tools .liveblog-btn {
  background: transparent !important;
  color: #00af00 !important;
  border: 1px solid #00af00 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

.entry-content .liveblog-publish-btn:hover,
.entry__content .liveblog-publish-btn:hover,
.entry-content .liveblog-pagination-btn:hover,
.entry__content .liveblog-pagination-btn:hover,
.entry-content .liveblog-update-btn:hover,
.entry__content .liveblog-update-btn:hover,
.entry-content .liveblog-entry-tools .liveblog-btn:hover,
.entry__content .liveblog-entry-tools .liveblog-btn:hover {
  background: #00af00 !important;
  color: #fff !important;
  border-color: #00af00 !important;
}

.entry__content .liveblog-entry-tools .liveblog-btn-delete,
.entry__content .liveblog-entry-tools .liveblog-btn-delete {
  color: #b10e0e !important;
  border-color: #b10e0e !important;
}

.entry__content .liveblog-entry-tools .liveblog-btn-delete:hover,
.entry__content .liveblog-entry-tools .liveblog-btn-delete:hover {
  background: #b10e0e !important;
  color: #fff !important;
  border-color: #b10e0e !important;
}

.entry-content .liveblog-publish-btn,
.entry__content .liveblog-publish-btn,
.entry-content .liveblog-pagination-btn,
.entry__content .liveblog-pagination-btn {
  padding: .4rem .9rem !important;
  font-size: .85rem !important;
  min-height: 38px !important;
  font-weight: 500 !important;
  border-width: 1px !important;
}

.entry-content .liveblog-update-btn-container,
.entry__content .liveblog-update-btn-container {
  margin-top: 1rem !important;
  margin-bottom: 1rem !important;
}

/* tabs liveblogs sobrepondo header */
.liveblog-editor-tab {
  z-index: 0 !important;
}

.liveblog-editor-tab.is-active::after {
  display: none !important;
}

.liveblog-entry-edit .liveblog-editor-container {
  padding: 20px;
}

.liveblog-toolbar {
  margin-top: 10px;
  padding: 10px;
}

/* Keep authors dropdown above key-moments column and entry menus */
.liveblog-editor-container .Select {
  position: relative;
  z-index: 2;
}

.liveblog-editor-container .Select-menu-outer {
  z-index: 130 !important;
}

/*
* ECO Live 2-column layout
*/
.eco-live-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1.1rem;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.eco-live-layout.eco-live-layout--single-col {
  grid-template-columns: 1fr;
}

.eco-live-layout__left,
.eco-live-layout__right {
  min-width: 0;
  max-width: 100%;
}

.eco-live-layout__left {
  position: -webkit-sticky;
  position: sticky;
  top: var(--eco-live-sticky-top, 100px);
  align-self: flex-start;
  height: -webkit-fit-content;
  height: fit-content;
  z-index: 1;
}

@media (max-width: 1023px) {
  .eco-live-layout {
    display: block;
    grid-template-columns: 1fr;
  }

  .eco-live-layout__left {
    position: static;
    top: auto;
    width: 100%;
    margin-bottom: 1rem;
  }

  .eco-live-layout__right {
    width: 100%;
  }
}

#wpcom-liveblog-container,
#wpcom-liveblog-container .eco-live-wrapper {
  overflow: visible !important;
  width: 100%;
  max-width: 100%;
}

#wpcom-liveblog-container .eco-live-layout,
#wpcom-liveblog-container .eco-live-layout__left,
#wpcom-liveblog-container .eco-live-layout__right,
#wpcom-liveblog-container .liveblog-feed,
#wpcom-liveblog-container .liveblog-entry,
#wpcom-liveblog-container .liveblog-entry-main,
#wpcom-liveblog-container .liveblog-entry-content {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

@media (min-width: 1024px) {
  .container,
  article.entry,
  #content.site-content,
  .entry__content,
  .content-trimmer,
  .theiaStickySidebar,
  .sticky-sidebar__sidebar {
    overflow: visible !important;
  }

  .container,
  article.entry,
  .content-trimmer,
  .theiaStickySidebar {
    transform: none !important;
  }
}

#wpcom-liveblog-container img,
#wpcom-liveblog-container iframe,
#wpcom-liveblog-container video,
#wpcom-liveblog-container table {
  max-width: 100% !important;
}

.eco-live-key-moments {
  margin: 0;
  padding: .55rem .6rem .6rem;
  background: #f7f8f7;
  border: 1px solid rgba(16, 60, 32, 0.08);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(12, 50, 28, 0.08);
}

.eco-live-key-moments-empty {
  color: #6a7075;
  font-size: .9rem;
  line-height: 1.35;
  padding: .35rem .2rem .15rem;
}

.eco-live-key-moments-header {
  margin: 0 0 .5rem;
}

.eco-live-key-moments-title {
  margin: 0 !important;
  font-size: 1.55rem;
  line-height: 1.2;
  color: #00af00;
}

.eco-live-key-moments-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  max-height: calc(100vh - var(--eco-live-sticky-top, 100px) - 16px);
  overflow-y: auto;
  padding-bottom: .4rem;
  padding-right: .15rem;
}

@media (max-width: 1023px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
  }

  #page,
  .site,
  article.entry,
  #content.site-content,
  .entry__content,
  .theiaStickySidebar,
  .sticky-sidebar__sidebar {
    overflow-x: hidden !important;
    max-width: 100% !important;
    overscroll-behavior-x: none;
  }

  .container,
  article.entry {
    width: auto !important;
  }

  .content-trimmer {
    width: auto !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
  }

  #wpcom-liveblog-container,
  #wpcom-liveblog-container .eco-live-wrapper,
  #wpcom-liveblog-container .eco-live-layout,
  #wpcom-liveblog-container .eco-live-layout__left,
  #wpcom-liveblog-container .eco-live-layout__right {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden !important;
    overscroll-behavior-x: none;
    touch-action: pan-y;
  }

  .eco-live-key-moments {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    max-height: none;
  }

  .eco-live-key-moments-list {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    max-height: none;
    overflow-y: visible;
  }
}

@media (max-width: 639px) {
  .eco-live-key-moments-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: .75rem;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 .35rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .eco-live-key-moment-card {
    flex: 0 0 min(280px, 82vw);
    margin-top: 0;
    scroll-snap-align: start;
  }

  #wpcom-liveblog-container .liveblog-entry:not(.liveblog-card):first-child {
    padding-top: 20px !important;
  }
}

.eco-live-key-moment-card {
  margin-top: 10px;
  display: block;
  text-align: left;
  border: 1px solid #d8e8d8;
  border-radius: 12px;
  background: #fff;
  padding: .65rem .7rem;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  text-decoration: none;
  background-image: none;
}

.eco-live-key-moment-card:hover {
  border-color: #00af00;
  box-shadow: 0 6px 16px rgba(0, 140, 0, 0.12);
  transform: translateY(-1px);
}

.eco-live-key-moment-time {
  display: block;
  margin-bottom: .32rem;
  font-size: .74rem;
  font-weight: 700;
  color: #00af00;
}

.eco-live-key-moment-title {
  display: block;
  overflow: hidden;
  color: #1f1f1f;
  font-size: .9rem;
  line-height: 1.3;
  max-height: 2.6em;
}

/*
* Entry menu
*/
.liveblog-entry-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 0 !important;
  padding-top: 0 !important;
}

.liveblog-entry-top-actions {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  margin-left: auto;
  z-index: 1;
}

.liveblog-entry-key-star {
  color: #00af00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.liveblog-entry-pin {
  color: #007a00;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.liveblog-entry-key-star svg,
.liveblog-entry-pin svg {
  width: 14px;
  height: 14px;
  display: block;
}

.liveblog-entry-pin svg path {
  fill: currentColor;
}

.liveblog-entry-key-star svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.liveblog-entry-menu-toggle {
  cursor: pointer;
  border: 1px solid #00af00;
  background: transparent;
  color: #00af00;
  border-radius: 10px;
  padding: 0 .45rem;
  line-height: 1;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.liveblog-entry-menu-dots {
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
}

.liveblog-entry-menu-panel {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 5;
  min-width: 210px;
  background: #fff;
  border: 1px solid rgba(16, 60, 32, 0.12);
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(12, 50, 28, 0.12);
  padding: .4rem;
}

.liveblog-entry-menu-panel.is-open {
  display: block;
}

#wpcom-liveblog-container .liveblog-entry-menu-panel .liveblog-btn.liveblog-btn-small {
  display: flex;
  align-items: center;
  gap: .45rem;
  width: 100%;
  text-align: left;
  margin: 0;
  background: #fff !important;
  color: #2f3438 !important;
  border: 1px solid #d7dce0 !important;
  border-radius: 8px;
  font-weight: 500;
}

#wpcom-liveblog-container .liveblog-entry-menu-panel .liveblog-btn.liveblog-btn-small:hover,
#wpcom-liveblog-container .liveblog-entry-menu-panel .liveblog-btn.liveblog-btn-small:focus {
  background: #f3f5f6 !important;
  color: #1f2327 !important;
  border-color: #c9ced2 !important;
}

.liveblog-entry-menu-item-icon {
  width: 1em;
  text-align: center;
  line-height: 1;
  opacity: .8;
}

.liveblog-entry-menu-item-icon svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  display: block;
}

.liveblog-entry-menu-item-icon--pin svg path {
  fill: currentColor;
}

.liveblog-entry-menu-item-icon--star svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/*
* Share modal
*/
.eco-live-share-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.eco-live-share-modal {
  width: min(520px, 100%);
  background: #fff;
  border-radius: 16px;
  padding: 1rem 1rem 1rem;
  position: relative;
  box-shadow: 0 16px 44px rgba(16, 22, 28, 0.22);
}

.eco-live-share-close {
  position: absolute;
  top: .35rem;
  right: .55rem;
  border: 0;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #8b8f93;
  cursor: pointer;
}

.eco-live-share-title {
  margin: 0 0 .7rem !important;
  margin-top: 0 !important;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  color: #1d2024;
}

.eco-live-share-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .6rem;
}

.eco-live-share-item {
  border: 0;
  background: transparent;
  color: #3f4347;
  text-decoration: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  min-width: 58px;
  padding: 0;
  font-size: .74rem;
  font-weight: 600;
  color: #5c636a;
  outline: none;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
}

.eco-live-share-actions .eco-live-share-item,
.eco-live-share-actions .eco-live-share-item:focus,
.eco-live-share-actions .eco-live-share-item:active,
.eco-live-share-actions .eco-live-share-item:focus-visible {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #5c636a !important;
  padding: 0 !important;
  line-height: 1.2 !important;
  min-height: 0 !important;
}

.eco-live-share-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: transparent;
  color: #2b3137;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all .15s ease;
}

.eco-live-share-icon svg {
  width: 28px;
  height: 28px;
}

.eco-live-share-icon--facebook,
.eco-live-share-icon--linkedin,
.eco-live-share-icon--whatsapp {
  color: #1f252b;
}

.eco-live-share-icon--facebook svg,
.eco-live-share-icon--linkedin svg,
.eco-live-share-icon--whatsapp svg {
  width: 28px;
  height: 28px;
}

.eco-live-share-icon--x svg {
  width: 24px;
  height: 24px;
}

.eco-live-share-item > span:last-child {
  display: block;
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.2;
  color: inherit;
}

.eco-live-share-item:hover .eco-live-share-icon,
.eco-live-share-item:focus .eco-live-share-icon {
  background: #fff;
  border-color: #00af00;
  color: #00af00;
  transform: translateY(-1px);
}

.eco-live-share-actions .eco-live-share-item:hover,
.eco-live-share-actions .eco-live-share-item:focus {
  color: #00af00 !important;
}

.eco-live-share-feedback {
  margin-top: .85rem;
  text-align: center;
  font-size: .85rem;
  color: #00af00;
  font-weight: 700;
}

.eco-live-return-top {
  margin-bottom: 24px;
}
