/* Google Search & Discover "Agregar a Favoritos" editorial integration */
:is(body[data-direction-preview="propuesta"], body[data-eha-site-mode="public"]) .eha-google-fav-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none !important;
  border-radius: 999px;
  font-family: Roboto, Arial, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

:is(body[data-direction-preview="propuesta"], body[data-eha-site-mode="public"]) .eha-google-fav-star {
  color: #fbbc04;
  font-size: 0.85em;
  line-height: 1;
}

/* Masthead dark top-bar pill */
:is(body[data-direction-preview="propuesta"], body[data-eha-site-mode="public"]) .eha-google-fav-masthead {
  padding: 2px 9px;
  font-size: 11px;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

:is(body[data-direction-preview="propuesta"], body[data-eha-site-mode="public"]) .eha-google-fav-masthead:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.55);
}

:is(body[data-direction-preview="propuesta"], body[data-eha-site-mode="public"]) .eha-google-fav-masthead:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Inline chip next to article byline */
:is(body[data-direction-preview="propuesta"], body[data-eha-site-mode="public"]) .eha-google-fav-inline {
  margin-inline-start: auto;
  padding: 4px 10px;
  font-size: 11.5px;
  color: #092b4d !important;
  background: #f4f6f9;
  border: 1px solid #cfd8e3;
}

:is(body[data-direction-preview="propuesta"], body[data-eha-site-mode="public"]) .eha-google-fav-inline .eha-google-fav-star {
  color: #b34d00;
}

:is(body[data-direction-preview="propuesta"], body[data-eha-site-mode="public"]) .eha-google-fav-inline:hover {
  background: #e8eef5;
  border-color: #9387b7;
}

/* End-of-article editorial callout */
:is(body[data-direction-preview="propuesta"], body[data-eha-site-mode="public"]) .eha-google-fav-callout {
  margin: 28px 0 24px;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  border: 1px solid #dde3ea;
  border-inline-start: 4px solid #b34d00;
  border-radius: 6px;
  background: #fafaf5;
}

:is(body[data-direction-preview="propuesta"], body[data-eha-site-mode="public"]) .eha-google-fav-callout-copy {
  flex: 1 1 260px;
  min-inline-size: 0;
}

:is(body[data-direction-preview="propuesta"], body[data-eha-site-mode="public"]) .eha-google-fav-callout-copy strong {
  display: block;
  margin-bottom: 3px;
  font: 700 15px/1.3 Roboto, Arial, sans-serif;
  color: #092b4d;
}

:is(body[data-direction-preview="propuesta"], body[data-eha-site-mode="public"]) .eha-google-fav-callout-copy p {
  margin: 0;
  font: 400 13px/1.45 Roboto, Arial, sans-serif;
  color: #465360;
}

:is(body[data-direction-preview="propuesta"], body[data-eha-site-mode="public"]) .eha-google-fav-cta {
  flex: 0 0 auto;
  padding: 8px 14px;
  font-size: 12.5px;
  color: #fff !important;
  background: #092b4d;
  border: 1px solid #092b4d;
}

:is(body[data-direction-preview="propuesta"], body[data-eha-site-mode="public"]) .eha-google-fav-cta:hover {
  background: #12406e;
  border-color: #12406e;
}

:is(body[data-direction-preview="propuesta"], body[data-eha-site-mode="public"]) .eha-google-fav-inline:focus-visible,
:is(body[data-direction-preview="propuesta"], body[data-eha-site-mode="public"]) .eha-google-fav-cta:focus-visible {
  outline: 3px solid #9387b7;
  outline-offset: 2px;
}

/* Local preview confirmation toast/popover */
.eha-google-fav-preview-toast {
  position: fixed;
  inset: auto 16px 16px auto;
  margin: 0;
  max-inline-size: min(24rem, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 6px;
  background: #092b4d;
  color: #fff;
  box-shadow: 0 10px 26px rgba(9, 43, 77, 0.32);
  font: 400 12.5px/1.45 Roboto, Arial, sans-serif;
  z-index: 2147483646;
  display: none;
}

.eha-google-fav-preview-toast:is(:popover-open, .\:popover-open, .is-open) {
  display: block;
}

.eha-google-fav-preview-toast strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  color: #fbbc04;
}

.eha-google-fav-preview-toast code {
  color: #d8e6f5;
  font-size: 11.5px;
}

.eha-google-fav-preview-close {
  margin-top: 10px;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 4px;
  background: transparent;
  color: #fff;
  font: 600 11.5px/1.3 Roboto, Arial, sans-serif;
  cursor: pointer;
}
