/* Botones de fuentes preferidas de Google — castillocanton.com
   Hoja de estilos alojada para los códigos generados en
   https://castillocanton.com/boton-fuentes-preferidas/
   Sin JavaScript, sin rastreo: solo presentación. */

.ccfp-btn,
.ccfp-store {
  box-sizing: border-box;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  cursor: pointer;
}

/* ── Botón personalizado (una línea, con estrella o favicon) ── */
.ccfp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #dadce0;
  border-radius: 9999px;
  background: #ffffff;
  color: #1f1f1f;
  line-height: 1.4;
  transition: box-shadow 0.15s ease;
}
.ccfp-btn:hover {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}
.ccfp-btn.ccfp-dark {
  background: #1f1f1f;
  color: #ffffff;
  border-color: #5f6368;
}
.ccfp-sm { font-size: 13px; padding: 7px 14px; }
.ccfp-md { font-size: 14px; padding: 10px 18px; }
.ccfp-lg { font-size: 16px; padding: 13px 22px; }

.ccfp-star {
  width: 1em;
  height: 1em;
  flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fbbc04' d='M12 2l2.9 6.3 6.9.8-5.1 4.7 1.4 6.8L12 17.2 5.9 20.6l1.4-6.8L2.2 9.1l6.9-.8z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.ccfp-favicon {
  width: 16px;
  height: 16px;
  flex: none;
  border-radius: 2px;
}

/* Texto que cambia al pasar el ratón */
.ccfp-swap {
  display: grid;
}
.ccfp-swap > .ccfp-rest,
.ccfp-swap > .ccfp-hover {
  grid-area: 1 / 1;
  white-space: nowrap;
  transition: opacity 0.15s ease;
}
.ccfp-swap > .ccfp-hover {
  opacity: 0;
}
.ccfp-btn:hover .ccfp-rest {
  opacity: 0;
}
.ccfp-btn:hover .ccfp-hover {
  opacity: 1;
}

/* ── Botón apilado (dos líneas, con la "G" de Google) ── */
.ccfp-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #dadce0;
  border-radius: 10px;
  background: #ffffff;
  color: #1f1f1f;
  line-height: 1.15;
}
.ccfp-store.ccfp-dark {
  background: #1f1f1f;
  color: #ffffff;
  border-color: #5f6368;
}
.ccfp-store.ccfp-sm { padding: 7px 14px; }
.ccfp-store.ccfp-md { padding: 9px 18px; }
.ccfp-store.ccfp-lg { padding: 12px 22px; }

.ccfp-g {
  width: 1.7em;
  height: 1.7em;
  flex: none;
  font-size: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234285F4' d='M23.5 12.3c0-.9-.1-1.5-.3-2.2H12v4.3h6.5c-.1 1.1-.8 2.7-2.4 3.8l3.7 2.9c2.3-2.1 3.7-5.2 3.7-8.8z'/%3E%3Cpath fill='%2334A853' d='M12 24c3.2 0 5.9-1.1 7.9-2.9l-3.7-2.9c-1 .7-2.4 1.2-4.2 1.2-3.2 0-5.9-2.1-6.8-5.1L1.3 17.2C3.3 21.2 7.3 24 12 24z'/%3E%3Cpath fill='%23FBBC05' d='M5.2 14.3c-.2-.7-.4-1.5-.4-2.3s.2-1.6.4-2.3L1.3 6.8C.5 8.4 0 10.1 0 12s.5 3.6 1.3 5.2l3.9-2.9z'/%3E%3Cpath fill='%23EA4335' d='M12 4.7c1.8 0 3 .8 3.7 1.4l3.3-3.2C17.9 1.1 15.2 0 12 0 7.3 0 3.3 2.8 1.3 6.8l3.9 2.9c.9-2.9 3.6-5 6.8-5z'/%3E%3C/svg%3E") no-repeat center / contain;
}
.ccfp-store.ccfp-sm .ccfp-g { font-size: 14px; }
.ccfp-store.ccfp-lg .ccfp-g { font-size: 19px; }

.ccfp-store-tx {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}
.ccfp-store-lead {
  font-size: 0.72em;
  opacity: 0.75;
}
.ccfp-store.ccfp-sm { font-size: 13px; }
.ccfp-store.ccfp-md { font-size: 15px; }
.ccfp-store.ccfp-lg { font-size: 17px; }
.ccfp-store-name {
  font-size: 1.05em;
  font-weight: 700;
  }
